fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
[gnulib.git] / ChangeLog
blobad31f361a447b7e06197fe3a3e94d0a3199f8204
1 2020-12-06  Bruno Haible  <bruno@clisp.org>
3         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
4         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
5         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
6         nonnegative.
7         * modules/fnmatch (Depends-on): Add idx.
9 2020-12-06  Bruno Haible  <bruno@clisp.org>
11         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
12         * lib/c-stack.c: Include idx.h.
13         (die): Mark buflen as nonnegative.
14         * modules/c-stack (Depends-on): Add idx.
16 2020-12-06  Bruno Haible  <bruno@clisp.org>
18         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
19         * lib/backupfile.c: Include idx.h.
20         (numbered_backup): Mark base_offset as nonnegative.
21         (backupfile_internal): Likewise.
22         * modules/backup-rename (Depends-on): Add idx.
23         * modules/backupfile (Depends-on): Likewise.
25 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
27         doc: fix curved quotes issue
28         * doc/gnulib.texi: Set txicodequoteundirected and
29         txicodequotebacktick so that ` and ' in examples do not generate
30         curved single quotes that do the wrong thing when cut and pasted.
32         doc: mention static and dynamic checking
33         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
34         for static and dynamic checking.
36         intprops: Add INT_ADD_OK etc.
37         * doc/intprops.texi (Checking Integer Overflow): New section.
38         * lib/intprops.h: From a suggestion by Bruno Haible in:
39         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
40         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
42         doc: move exotic platfroms to Target Platforms
43         * doc/gnulib-intro.texi (Supported Platforms)
44         (Formerly Supported Platforms, Unsupported Platforms):
45         New subsections, split off from Target Platforms.
46         (Unsupported Platforms): Move the exotic-platform stuff here ...
47         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
48         section.
50         doc: mention intptr_t etc. and IBM i
51         * doc/gnulib-readme.texi (Other portability assumptions):
52         Mention intptr_t and uintptr_t, and that arithmetic on them
53         works in the usual way.
54         (Exotic platforms): New section, containing material from
55         the old 'Integer Portability' section.  Also mention IBM i.
56         * doc/intprops.texi (Wraparound Arithmetic):
57         Say that the macros work on unsigned integers too.
58         (Integer Portability): Remove.
60 2020-12-04  Bruno Haible  <bruno@clisp.org>
62         utime: Fix a test failure on macOS 10.13.
63         Reported by Martin Storsjö <martin@martin.st> in
64         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
65         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
66         slashes on files.
67         * lib/utime.c (utime): Add alternative implementation for Unix
68         platforms.
69         * modules/utime (Depends-on): Add stat.
70         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
71         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
72         trailing-slash bug.
73         * doc/posix-functions/open.texi: Likewise.
74         * doc/posix-functions/stat.texi: Likewise.
75         * doc/posix-functions/symlink.texi: Likewise.
77 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79         intprops: update doc and mention Unisys
80         * doc/gnulib-readme.texi (Other portability assumptions):
81         Also mention ptrdiff_t when talking about widths and overflow.
82         * doc/intprops.texi (Integer Properties): Summarize new section.
83         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
84         evaluates its argument.
85         (Integer Bounds): Fix typo.
86         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
87         Document that the _WRAPV macros now support pointers to unsigned
88         integers.
89         (Integer Range Overflow): Update SEI CERT citation.
90         (Integer Portability): New subsection, which mentions
91         the oddball Unisys platforms as non-Gnulib targets.
93 2020-12-03  Bruno Haible  <bruno@clisp.org>
95         idx: Clarify that idx_t always behaves like a signed type.
96         Suggested by Paul Eggert in
97         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
98         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
99         Don't test UNSIGNED_IDX_T.
101 2020-12-03  Bruno Haible  <bruno@clisp.org>
103         idx: New module.
104         * lib/idx.h: New file.
105         * modules/idx: New file.
106         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
107         ptrdiff_t.
108         * lib/canonicalize.c: Likewise.
109         * modules/canonicalize-lgpl (Depends-on): Add idx.
110         * modules/canonicalize (Depends-on): Likewise.
112 2020-12-03  Bruno Haible  <bruno@clisp.org>
114         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
115         Reported by Martin Storsjö <martin@martin.st> in
116         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
117         * tests/test-fprintf-posix3.c: Skip the test on macOS.
118         (main): Return a different exit code at each point. Allow 100 KB extra
119         memory consumption.
120         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
121         doesn't work" diagnostic.
123 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
125         canonicalize: refactor can_mode flag
126         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
127         (multiple_bits_set): ... this new static function.  Uses changed.
128         (canonicalize_filename_mode): Refactor for clarity to avoid
129         modifying the CAN_MODE argument.
131         canonicalize: prefer signed integer types
132         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
133         (seen_triple, canonicalize_filename_mode): Prefer signed to
134         unsigned types where either will do, as they avoid some glitches
135         in comparisons and can trap on overflow when debugging.
137         canonicalize: fix most of another EOVERFLOW issue
138         * lib/canonicalize.c (canonicalize_filename_mode):
139         Do not call stat if fewer than 20 symlinks have been traversed.
140         This avoids EOVERFLOW failure in the common case where there
141         are not that many symlinks, while continuing to catch loops
142         (or fail due to EOVERFLOW) in the unusual case when there
143         are many symlinks to traverse.
145         canonicalize: do not assume symlinks have st_ino
146         * lib/canonicalize.c (canonicalize_filename_mode):
147         When checking for loops, use st_dev and st_ino from the parent
148         directory not from the symlink, as pre-2017 POSIX says these
149         members are not reliable for symlinks.  Couple this with START
150         (the remaining file name to be resolved), not NAME (the whole file
151         name with START as its suffix).
152         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
154         canonicalize: fix EOVERFLOW bug
155         * lib/canonicalize.c (canonicalize_filename_mode):
156         When testing whether a directory entry is a symbolic link, or a
157         directory or other, do not use lstat or stat or
158         areadlink_with_size.  Just use areadlink, as this suffices and it
159         avoids the EOVERFLOW problem that lstat and stat have.
160         * modules/canonicalize (Depends-on): Depend on areadlink instead
161         of areadlink-with-size and stat.
163         canonicalize-lgpl: fix EOVERFLOW bug
164         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
165         (__realpath): Do not use lstat.  Just use readlink, as this
166         suffices and it avoids the EOVERFLOW problem that lstat has.
167         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
169 2020-12-02  Bruno Haible  <bruno@clisp.org>
171         strsignal-tests: Fix test failure on macOS 10.13.
172         Reported by Martin Storsjö <martin@martin.st> in
173         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
174         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
175         to be longer than the expected result.
177 2020-12-02  Bruno Haible  <bruno@clisp.org>
179         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
180         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
181         recursive self-include problem on FreeBSD 12.2 in C++ mode.
183 2020-12-02  Bruno Haible  <bruno@clisp.org>
185         spawn-pipe: Allow caller to specify directory for the subprocess.
186         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
187         Add directory argument.
188         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
189         (create_pipe): Add directory argument. If specified, resolve the program
190         file name and make it absolute, first. Pass the directory to spawnpvech
191         and posix_spawn_file_actions_addchdir.
192         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
193         argument.
194         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
195         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
196         * tests/test-spawn-pipe-main.c (test_pipe): Update.
197         * NEWS: Mention the change.
198         * lib/csharpcomp.c (compile_csharp_using_mono,
199         compile_csharp_using_sscli): Update.
200         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
201         is_gcj_43): Update.
202         * lib/javaversion.c (execute_and_read_line): Update.
203         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
204         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
206 2020-12-02  Bruno Haible  <bruno@clisp.org>
208         execute: Allow caller to specify directory for the subprocess.
209         * lib/execute.h (execute): Add directory argument.
210         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
211         (execute): Add directory argument. If specified, resolve the program
212         file name and make it absolute, first. Pass the directory to spawnpvech
213         and posix_spawn_file_actions_addchdir.
214         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
215         posix_spawn, posix_spawn_file_actions_addchdir.
216         * tests/test-execute-main.c: Add test for passing a directory.
217         * tests/test-execute-child.c: Likewise.
218         * tests/test-execute.sh: Update.
219         * modules/execute-tests (Depends-on): Add mkdir.
220         * NEWS: Mention the change.
221         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
222         * lib/csharpexec.c (execute_csharp_using_mono,
223         execute_csharp_using_sscli): Update.
224         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
225         compile_using_javac, compile_using_jikes, is_javac_present,
226         is_jikes_present): Update.
227         * lib/javaexec.c (execute_java_class): Update.
229 2020-12-01  Bruno Haible  <bruno@clisp.org>
231         vma-iter: Add support for macOS11/arm64.
232         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
233         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
234         and by Martin Storsjö <martin@martin.st> in
235         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
236         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
238 2020-12-01  Bruno Haible  <bruno@clisp.org>
240         spawn-pipe: Fix handling of OS/2 kLIBC.
241         Reported by KO Myung-Hun <komh78@gmail.com> in
242         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
243         * modules/spawn-pipe (configure.ac): Use the common idiom for
244         recognizing the OS/2 operating system.
246 2020-11-30  Bruno Haible  <bruno@clisp.org>
248         execute: Fix uninitialized use of errno.
249         * lib/execute.c (execute): Preserve errno across several system calls.
251 2020-11-30  Bruno Haible  <bruno@clisp.org>
253         access tests: Fix test failure on native Windows.
254         * tests/test-access.c (main): Change permissions of f2 file before
255         attempting to remove it.
257 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
259         faccessat: link with $(LIB_EACCESS)
260         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
261         module depends on euidaccess.
263 2020-11-30  Bruno Haible  <bruno@clisp.org>
265         execute, spawn-pipe: Make multithread-safe on native Windows.
266         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
267         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
268         (spawnpvech): New declaration.
269         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
270         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
271         (_): Remove macro.
272         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
273         undup_safer_noinherit): Remove functions.
274         (spawnpvech): New function.
275         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
276         cloexec, dup2, error, gettext-h.
277         * lib/execute.c: Include msvc-nothrow.h.
278         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
279         * lib/spawn-pipe.c: Include msvc-nothrow.h.
280         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
281         instead of _spawnvpe.
282         * modules/execute (Depends-on): Add msvc-nothrow.
283         * modules/spawn-pipe (Depends-on): Likewise.
285 2020-11-30  Bruno Haible  <bruno@clisp.org>
287         execute, spawn-pipe: Improve documentation.
288         * lib/execute.h: Describe progname, prog_path, prog_argv.
289         * lib/spawn-pipe.h: Likewise.
291 2020-11-30  Bruno Haible  <bruno@clisp.org>
293         execute tests: Add more tests.
294         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
295         inherited file descriptors >= 3.
296         * tests/test-execute-child.c: Likewise.
297         * tests/test-execute.sh: Update.
299 2020-11-30  Bruno Haible  <bruno@clisp.org>
301         havelib: Fix for non-ELF platforms (regression 2019-11-17).
302         Reported by comex <comexk@gmail.com> in
303         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
304         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
305         don't expect an ELF header.
307 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
309         bitset: use integer_length in table implementation
310         * lib/bitset/table.c (tbitset_list_reverse): Use
311         BITSET_FOR_EACH_BIT_REVERSE.
313 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
315         bitset: use integer_length in list implementation
316         * lib/bitset/list.c (lbitset_list_reverse): Use
317         BITSET_FOR_EACH_BIT_REVERSE.
319 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
321         bitset: use integer_length in vector implementation
322         * lib/bitset/array.c (vbitset_list_reverse): Use
323         BITSET_FOR_EACH_BIT_REVERSE.
325 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
327         bitset: use integer_length in array implementation
328         * modules/bitset (Depends-on): Add integer_length_l.
329         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
330         * lib/bitset/array.c (abitset_list_reverse): Use it.
332 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
334         bitset: style: use consistent names
335         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
336         and 'boffset' as 'bitoff', for consistency with the other
337         implementations.
338         * bitset/table.c (tbitset_list_reverse): Likewise.
340 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
342         bitset: style: sort header
343         * lib/bitset/base.h (bitset_ffs): Rename as...
344         (bitset_ffs_): this.
345         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
347 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
349         bitset: tests: check BITSET_FOR_EACH_REVERSE
350         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
351         Check BITSET_FOR_EACH_REVERSE.
353 2020-11-29  Bruno Haible  <bruno@clisp.org>
355         spawn-pipe tests: Fix test failure with MSVC.
356         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
357         (gl_msvc_invalid_parameter_handler): New function.
358         (main): Set a global invalid-parameter handler.
359         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
361 2020-11-29  Bruno Haible  <bruno@clisp.org>
363         execute: Add tests.
364         * tests/test-execute.sh: New file.
365         * tests/test-execute-main.c: New file.
366         * tests/test-execute-child.c: New file.
367         * modules/execute-tests: New file.
369 2020-11-29  Bruno Haible  <bruno@clisp.org>
371         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
372         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
373         works.
374         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
375         fallback implementation as on Haiku.
376         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
377         effective.
378         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
380 2020-11-29  Bruno Haible  <bruno@clisp.org>
382         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
383         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
384         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
385         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
386         * lib/windows-spawn.c: Remove modifications for kLIBC.
387         * modules/spawn-pipe (Files): Add the new files.
388         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
390 2020-11-28  Bruno Haible  <bruno@clisp.org>
392         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
393         Reported by Paul Eggert in
394         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
395         * m4/sparcv8+.m4: New file.
396         * modules/sparcv8+: New file.
397         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
399 2020-11-28  Bruno Haible  <bruno@clisp.org>
401         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
402         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
404 2020-11-28  Bruno Haible  <bruno@clisp.org>
406         windows-spawn: New module.
407         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
408         implementations.
409         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
410         * modules/windows-spawn: New file.
411         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
412         * lib/spawn-pipe.c: Likewise.
413         * modules/execute (Files): Remove lib/w32spawn.h.
414         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
415         xalloc.
416         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
417         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
418         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
419         xalloc.
420         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
422 2020-11-27  Bruno Haible  <bruno@clisp.org>
424         ssfmalloc tests: Port to macOS 11.
425         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
427 2020-11-26  Bruno Haible  <bruno@clisp.org>
429         Fix dependencies of modules that use '_exit' on native Windows.
430         Reported by Jim Meyering in
431         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
432         * modules/_Exit (Depends-on): Add unistd.
433         * modules/closein (Depends-on): Likewise.
434         * modules/closeout (Depends-on): Likewise.
435         * modules/forkpty (Depends-on): Likewise.
436         * modules/posix_spawn-internal (Depends-on): Likewise.
437         * modules/savewd (Depends-on): Likewise.
438         * modules/stat-time-tests (Depends-on): Likewise.
440 2020-11-26  Bruno Haible  <bruno@clisp.org>
442         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
443         * modules/raise-tests (Depends-on): Add unistd.
444         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
446 2020-11-25  Jim Meyering  <meyering@fb.com>
448         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
449         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
450         non-NULL, since we don't bother handing strdup failure.
452         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
453         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
454         * tests/test-raise.c: Include unistd.h.
455         (handler): Use _exit, not exit.
457 2020-11-23  Bruno Haible  <bruno@clisp.org>
459         Use the correct printf format attribute for mingw.
460         Reported by Reuben Thomas <rrt@sc3d.org> in
461         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
463         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
464         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
466         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
467         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
468         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
469         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
470         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
471         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
473         * modules/vasnprintf (Depends-on): Add stdio.
474         * lib/vasnprintf.h: Include <stdio.h>.
475         (asnprintf, vasnprintf): Use the standard printf format attribute.
477         * modules/xvasprintf (Depends-on): Add stdio.
478         * lib/xvasprintf.h: Include <stdio.h>.
479         (xasprintf, xvasprintf): Use the standard printf format attribute.
481         * modules/xprintf (Depends-on): List stdio first.
482         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
483         depends on GNULIB_VPRINTF_POSIX.
484         (xfprintf, xvfprintf): Use a printf format attribute that depends on
485         GNULIB_VFPRINTF_POSIX.
487         * modules/c-vasnprintf (Depends-on): Add stdio.
488         * lib/c-vasnprintf.h: Include <stdio.h>.
489         (c_vasnprintf): Use the standard printf format attribute.
491         * modules/c-vasprintf (Depends-on): Add stdio.
492         * lib/c-vasprintf.h: Include <stdio.h>.
493         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
495         * modules/c-vsnprintf (Depends-on): Add stdio.
496         * lib/c-vsnprintf.h: Include <stdio.h>.
497         (c_vsnprintf): Use the standard printf format attribute.
499         * modules/c-snprintf (Depends-on): Add stdio.
500         * lib/c-snprintf.h: Include <stdio.h>.
501         (c_snprintf): Use the standard printf format attribute.
503         * modules/c-xvasprintf (Depends-on): Add stdio.
504         * lib/c-xvasprintf.h: Include <stdio.h>.
505         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
507         * modules/error (Depends-on): Depend on stdio always.
508         * lib/error.h: Include <stdio.h>.
509         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
510         (error, error_at_line): Use a printf format attribute that depends on
511         GNULIB_VFPRINTF_POSIX.
512         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
513         _GL_ATTRIBUTE_FORMAT_PRINTF.
515         * modules/verror (Depends-on): Add stdio.
516         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
517         (verror, verror_at_line): Use the standard printf format attribute.
518         * lib/verror.c: Include "error.h".
520         * modules/argp (Depends-on): Add stdio.
521         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
522         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
524         * modules/libtextstyle-optional (Depends-on): Add stdio.
525         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
526         printf format attribute.
528         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
529         format attribute.
531 2020-11-23  Pádraig Brady  <P@draigBrady.com>
533         selinux-at, selinux-h: use const correct declarations
534         * lib/se-selinux.in.h: Use const for "set" functions,
535         to match current selinux, and support cleaner user code.
536         * lib/selinux-at.c: Likewise.
537         * lib/selinux-at.h: Likewise.
539 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
541         canonicalize-lgpl: fix memory leak
542         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
543         which could have occurred if BUF was so large that malloc was
544         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
545         this eliminates the need to free BUF separately.
547 2020-11-22  Bruno Haible  <bruno@clisp.org>
549         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
550         * modules/xvasprintf (Depends-on): Add xalloc.
551         * modules/pipe-filter-gi (Depends-on): Likewise.
552         * modules/execute (Depends-on): Likewise, for w32spawn.h.
553         * modules/spawn-pipe (Depends-on): Likewise.
555 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
557         bootstrap: add option hooks
558         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
559         (bootstrap_option_hook): Likewise.
560         (usage): Call bootstrap_print_option_usage_hook.
562 2020-11-22  Bruno Haible  <bruno@clisp.org>
564         argp: Don't break getprogname on non-glibc systems.
565         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
566         program_invocation_name and program_invocation_short_name.
568 2020-11-22  Bruno Haible  <bruno@clisp.org>
570         doc: Document <link.h>.
571         * doc/glibc-headers/link.texi: New file.
572         * doc/gnulib.texi: Include it.
574 2020-11-22  Bruno Haible  <bruno@clisp.org>
576         doc: Add references to the LSB.
577         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
578         * doc/posix-functions/*.texi: Likewise.
580 2020-11-22  Bruno Haible  <bruno@clisp.org>
582         doc: Fix a makeinfo warning (regression 2020-11-03).
583         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
585 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
587         parse-datetime: fix printf format typo
588         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
589         previous patch to this file.  Problem reported by Chris Elvidge in
590         <https://bugs.gnu.org/44763#32>.
592         setlocale-null-tests: work around GCC bug 44511
593         * tests/test-setlocale_null-mt-all.c:
594         * tests/test-setlocale_null-mt-one.c:
595         Ignore -Wreturn-type, to work around GCC bug 44511.
597         nl_langinfo-tests: work around GCC bug 44511
598         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
599         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
600         Problem reported for GNU grep by Andreas Schwab
601         <https://bugs.gnu.org/44535>.
603         selinux-h: add stubs for selabel_open etc.
604         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
605         because matchpathcon is deprecated in favor of selabel_open etc.,
606         so this patch adds stubs for these functions.
607         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
608         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
609         as it is needed for selabel_open and selinux/selinux.h declares
610         this type here.
611         * modules/selinux-h (Files): Add the new files.
612         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
613         (lib_SOURCES): Add se-label.in.h, se-label.c.
614         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
615         (selinux/label.h): New rule, mimicking selinux/context.h.
616         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
617         (Include): Add selinux/label.h.
619 2020-11-21  Bruno Haible  <bruno@clisp.org>
621         Update after 'test-driver' in Automake changed.
622         * build-aux/test-driver.diff: Rebase.
624 2020-11-21  Daiki Ueno  <ueno@gnu.org>
626         read-file: remove dead assignment
627         * lib/read-file.c (fread_file): Remove dead assignment when
628         RF_SENSITIVE is set, flagged by clang-analyzer.
630 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
632         bitset: tests: exercise the stats too
634         * tests/test-bitset.c: Display the stats at the end of the test.
635         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
636         last bin, display "256-..." rather that "256-511", since the last bin
637         does count item greater than or equal to 256.
639 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
641         bitset: tests: try harder to break it
642         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
643         BITSET_LIST_SIZE.
644         (main): Likewise.
645         While at it, also exercise super small bitsets.
647 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
649         bitset: use ffs where possible in the vector implementation
650         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
652 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
654         bitset: use ffs where possible in the table implementation
655         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
657 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
659         bitset: check empty and full bitsets
660         * tests/test-bitset.c (check_zero, check_ones): New.
661         (check_attributes): Use them.
663 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
665         bitset: be sure to always return a value
666         * lib/bitset/array.c (abitset_small_list): Always update *next and
667         return a value.
669 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
671         vcs-to-changelog: Expect spaces in file names
672         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
673         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
674         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
675         tabs to spaces.
676         (list_changes): Use tabs to identify file names.
678 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
680         bitset: strengthen tests
681         * tests/test-bitset.c (compare): Also check count.
682         Deal only with random values, move the one-bit tests to...
683         (check_one_bit): this new function.
684         (check_attributes): Call it.
686 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
688         bitset: fix iteration over table bitsets
689         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
691 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
693         bitset: rename internal details for consistency
694         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
696 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
698         bitset: test: run deterministic tests on several bitset sizes
699         * tests/test-bitset.c (check_attributes): Run it with small and large
700         sizes.
702 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
704         bitset: use ffs where possible in the list implementation
705         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
707 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
709         bitset: use ffs where possible in array implementation
710         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
712 2020-11-17  Bruno Haible  <bruno@clisp.org>
714         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
715         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
716         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
717         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
718         C++ mode.
720 2020-11-17  Bruno Haible  <bruno@clisp.org>
722         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
723         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
724         is always declared.
725         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
726         declared.
728 2020-11-17  Bruno Haible  <bruno@clisp.org>
730         Fix link errors on AIX.
731         * modules/clean-temp (Link): Link with $(LIBTHREAD).
732         * modules/getumask (Link): Link with $(LIBTHREAD).
733         * modules/getumask-tests (Makefile.am): Link test-getumask with
734         $(LIBTHREAD).
735         * modules/supersede (Link): Link with $(LIBTHREAD).
736         * modules/supersede-tests (Makefile.am): Link test-supersede with
737         $(LIBTHREAD).
738         * modules/fatal-signal (Link): New section.
739         * modules/execute (Link): New section.
740         * modules/csharpexec (Link): Link with $(LIBTHREAD).
741         * modules/javaexec (Link): Link with $(LIBTHREAD).
742         * modules/spawn-pipe (Link): New section.
743         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
744         $(LIBTHREAD).
745         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
746         * modules/javacomp (Link): Link with $(LIBTHREAD).
747         * modules/javaversion (Link): Link with $(LIBTHREAD).
748         * modules/pipe-filter-gi (Link): New section.
749         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
750         test-pipe-filter-gi2-main with $(LIBTHREAD).
751         * modules/pipe-filter-ii (Link): New section.
752         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
753         test-pipe-filter-ii2-main with $(LIBTHREAD).
754         * modules/term-style-control (Link): New section.
755         * modules/term-style-control-tests (Makefile.am): Link
756         test-term-style-control-hello, test-term-style-control-yes with
757         $(LIBTHREAD).
758         * modules/wait-process (Link): New section.
759         * modules/nonblocking-pipe-tests (Makefile.am): Link
760         test-nonblocking-pipe-main with $(LIBTHREAD).
761         * modules/nonblocking-socket-tests (Makefile.am): Link
762         test-nonblocking-socket-main with $(LIBTHREAD).
764 2020-11-16  Bruno Haible  <bruno@clisp.org>
766         Fix link errors on platforms with libunistring.
767         * modules/c32isalnum (Link): New section.
768         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
769         $(LIBUNISTRING).
770         * modules/c32isalpha (Link): New section.
771         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
772         $(LIBUNISTRING).
773         * modules/c32isblank (Link): New section.
774         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
775         $(LIBUNISTRING).
776         * modules/c32iscntrl (Link): New section.
777         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
778         $(LIBUNISTRING).
779         * modules/c32isdigit (Link): New section.
780         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
781         $(LIBUNISTRING).
782         * modules/c32isgraph (Link): New section.
783         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
784         $(LIBUNISTRING).
785         * modules/c32islower (Link): New section.
786         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
787         $(LIBUNISTRING).
788         * modules/c32isprint (Link): New section.
789         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
790         $(LIBUNISTRING).
791         * modules/c32ispunct (Link): New section.
792         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
793         $(LIBUNISTRING).
794         * modules/c32isspace (Link): New section.
795         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
796         $(LIBUNISTRING).
797         * modules/c32isupper (Link): New section.
798         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
799         $(LIBUNISTRING).
800         * modules/c32isxdigit (Link): New section.
801         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
802         $(LIBUNISTRING).
803         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
804         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
805         $(LIBUNISTRING).
807 2020-11-16  Bruno Haible  <bruno@clisp.org>
809         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
810         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
811         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
812         * modules/getumask-tests (Makefile.am): Link test-getumask with
813         $(LIBINTL).
814         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
815         * modules/supersede-tests (Makefile.am): Link test-supersede with
816         $(LIBINTL).
817         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
818         $(LIBINTL).
820 2020-11-16  Bruno Haible  <bruno@clisp.org>
822         getumask: Document link dependencies.
823         * modules/getumask (Link): New section.
825 2020-11-16  Bruno Haible  <bruno@clisp.org>
827         Update link dependencies in modules after 2020-09-09 change.
828         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
829         * modules/mkdtemp (Link): Likewise.
830         * modules/mkostemp (Link): Likewise.
831         * modules/mkostemps (Link): Likewise.
832         * modules/mkstemp (Link): Likewise.
833         * modules/mkstemps (Link): Likewise.
834         * modules/supersede (Link): Likewise.
835         * modules/tmpfile (Link): Likewise.
836         * modules/tmpfile-safer (Link): Likewise.
838 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
840         getumask-tests: port to Solaris 10 etc.
841         Problem reported by Tom Christensen in:
842         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
843         * modules/getumask-tests (test_getumask_LDADD):
844         Add $(LIB_CLOCK_GETTIME).
846 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
848         bitset: use ffsl to accelerate iterations over set bits
849         Suggested by Bruno Haible.
850         * modules/bitset: Depend upon ffsl.
851         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
852         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
854 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
856         bitset: more tests
857         * tests/test-bitset.c (compare): Make it clear that the random values
858         should not be modified.
859         Check bitset_first, bitset_last and BITSET_FOR_EACH.
861 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
863         bitset: fix the copy from lbitset to other types
864         * lib/bitset/list.c (lbitset_copy): Rename as...
865         (lbitset_copy_): this.
866         (lbitset_copy): New.
867         Dispatch to heterogeneous/homogeneous copy.
869 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
871         bitset: making debug traces more useful
872         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
874         bitset: comment changes
875         * lib/bitset.c: Move some documenting comments to...
876         * lib/bitset.h: here.
877         * lib/bitset/array.c: Fix some comments.
879 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
881         careadlinkat: warn better about GCC bug 93644
882         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
883         not in effect, use "#warning" to let builders know more clearly
884         about GCC bug 93644, because the bug triggers even if no -W option
885         is given to GCC.
887 2020-11-13  Jim Meyering  <meyering@fb.com>
889         hard-locale-tests: avoid a -Wstrict-prototypes warning
890         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
891         changing "main ()" to "main (void)". This was the only case that
892         triggered a warning when building grep with --enable-gcc-warnings.
894 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
896         time_rz: simplify CVE-2017-7476 fix
897         * lib/time_rz.c: Do not include limits.h; I think it was included
898         under the mistaken impression that limits.h defines SIZE_MAX.
899         (SIZE_MAX): Remove.
900         (save_abbr): Put string length into a ptrdiff_t variable,
901         so that the size comparison works naturally.  This
902         fixes CVE-2017-7476 in a cleaner way.
904         parse-datetime: streamline overflow checking
905         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
906         did not work for unsigned destinations, and since time_t might
907         be unsigned that meant it did not work for time_t destinations.
908         This limitation of INT_ADD_WRAPV has been fixed, so we can
909         now streamline parse-datetime.y a bit.
910         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
911         has not been used for a while.
912         (yylex, parse_datetime2): Assume C99 declarations after statements.
913         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
914         to TYPE_MINIMUM.
915         (parse_datetime2): No need for time_overflow now that
916         INT_ADD_WRAPV works for unsigned results.
918         parse-datetime-tests: port to Alpine Linux 3.12.1
919         * tests/test-parse-datetime.c: Include errno.h for errno,
920         and unistd.h for _SC_TZNAME_MAX and sysconf.
921         (main): In the outlandishly-long time zone abbreviation test,
922         do not exceed TZNAME_MAX as this has undefined behavior,
923         and on Alpine Linux 3.12.1 it makes the test fail.
925 2020-11-09  Pádraig Brady  <P@draigBrady.com>
927         mgetgroups: avoid warning with clang
928         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
929         so disable -Wpointer-sign for all clang versions.
931 2020-11-07  Bruno Haible  <bruno@clisp.org>
933         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
934         Reported by Simon Josefsson in
935         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
936         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
937         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
938         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
940 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
942         tests: pacify Sun C 5.9
943         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
944         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
945         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
946         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
947         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
948         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
949         Remove unreachable ‘return NULL;’s.
951         tests: port better to XLC 12.01
952         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
953         even in code that is not executed, as IBM XLC 12.01 complains "The
954         subscript -1 is less than zero."
955         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
956         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
957         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
958         arguments than are required by the macro definition."
960 2020-11-03  Bruno Haible  <bruno@clisp.org>
962         aligned-malloc: Use fixes from the new modules.
963         * modules/aligned-malloc (Depends-on): Add posix_memalign,
964         aligned_alloc, memalign.
965         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
967 2020-11-03  Bruno Haible  <bruno@clisp.org>
969         aligned_alloc: Add tests.
970         * tests/test-aligned_alloc.c: New file.
971         * modules/aligned_alloc-tests: New file.
973         aligned_alloc: New module.
974         * lib/stdlib.in.h (aligned_alloc): New declaration.
975         * lib/aligned_alloc.c: New file.
976         * m4/aligned_alloc.m4: New file.
977         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
978         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
979         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
980         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
981         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
982         * modules/aligned_alloc: New file.
983         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
984         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
985         AIX bug.
987 2020-11-03  Bruno Haible  <bruno@clisp.org>
989         posix_memalign: Add tests.
990         * tests/test-posix_memalign.c: New file.
991         * modules/posix_memalign-tests: New file.
993         posix_memalign: New module.
994         * lib/stdlib.in.h (posix_memalign): New declaration.
995         * lib/posix_memalign.c: New file.
996         * m4/posix_memalign.m4: New file.
997         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
998         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
999         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1000         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
1001         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1002         * modules/posix_memalign: New file.
1003         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
1004         * doc/posix-functions/posix_memalign.texi: Mention the new module and
1005         the OpenBSD bug.
1007 2020-11-03  Bruno Haible  <bruno@clisp.org>
1009         memalign: Add tests.
1010         * tests/test-memalign.c: New file.
1011         * modules/memalign-tests: New file.
1013         memalign: New module.
1014         * modules/memalign: New file.
1015         * doc/glibc-functions/memalign.texi: Mention the new module.
1017 2020-11-03  Bruno Haible  <bruno@clisp.org>
1019         verify tests: Fix crash with GCC (regression 2020-11-02).
1020         * tests/test-verify.c (main): Fix initializer of s.
1022 2020-11-03  Pádraig Brady  <P@draigBrady.com>
1024         mountlist: recognize more file system types as remote
1026         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
1027         "remote" file systems from stat.c in coreutils.
1029 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
1031         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
1032         * tests/test-verify.c (main): Initialize state variable.
1033         Reported by Bruno Haible for GCC 5.4.0.
1035 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1037         dfa.h: support inclusion from C++
1038         * lib/dfa.h: Allow multiple inclusion, and inclusion from
1039         C++ code.  The latter was suggested by Arnold Robbins.
1041 2020-11-01  Bruno Haible  <bruno@clisp.org>
1043         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
1044         * tests/test-ssfmalloc.c: Include <limits.h>.
1045         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
1047 2020-11-01  Bruno Haible  <bruno@clisp.org>
1049         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
1050         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
1052 2020-11-01  Jim Meyering  <meyering@fb.com>
1054         dfa-tests: test for today's invalid-merge fix
1055         * tests/test-dfa-invalid-merge.sh: New file.
1056         * modules/dfa-tests (Files): Add it.
1057         (TESTS): Add it.
1059 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1061         dfa: retain sequences of similar nodes in optimization
1062         DFA was merging similar nodes when it should not.  For example,
1063         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
1064         is not merged.  Problem reported by Gonzalo Padrino in
1065         https://bugs.gnu.org/44351
1066         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
1067         optimization.
1069 2020-11-01  Jim Meyering  <meyering@fb.com>
1071         test-dfa-match-aux.c: accept EREs, not BREs
1072         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
1073         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
1075 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
1077         verify tests: avoid -Wmissing-declarations warnings
1078         * tests/test-verify.c (test_assume_expressions): Add declaration.
1079         (test_assume_optimization): Likewise.
1080         (test_assume_noreturn): Likewise.
1081         (main): Move down after all other definitions.  While at it, also
1082         call test_assume_expressions and test_assume_optimization as a
1083         runtime check.
1085 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1087         sys_stat: update comments for S_IRWXUGO, S_IXUGO
1088         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
1089         Perhaps these macros should be removed, as they’re not in either
1090         POSIX or GNU.  They could be moved to stat-macros.h, which would
1091         be cleaner in some sense.
1093 2020-10-25  Bruno Haible  <bruno@clisp.org>
1095         ssfmalloc tests: Small tweaks.
1096         * tests/test-ssfmalloc.c: Add comments.
1097         (alloc_pages): Don't require PROT_EXEC bits.
1098         (block_sizes): Add more small sizes, for better coverage of
1099         ssfmalloc-bitmap.h.
1101         ssfmalloc tests: Portability to Minix.
1102         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
1103         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
1104         * m4/mmap-anon.m4: Update comment.
1106         ssfmalloc: Portability to AIX.
1107         * modules/ssfmalloc (Include): Add ssfmalloc.h.
1108         (Link): New section.
1109         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
1110         $(LIBTHREAD).
1112         ssfmalloc: Portability to Cygwin.
1113         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
1114         (pg_offset_t): Define depending on PAGESIZE_MAX.
1115         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
1116         (PAGESIZE_MAX): New macro.
1118         ssfmalloc: Fix buffer overrun in bitmap search.
1119         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
1120         word *words_end.
1122 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1124         doc: mention ‘restrict’ and C++
1125         * doc/gnulib-readme.texi (C99 features assumed): Document
1126         that ‘restrict’ should be avoided in C++ code.
1128 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1130         selinux-at, selinux-h: port to SELinux 3.1
1131         The new release finally deprecated the typedef 'security_context_t',
1132         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
1133         Use the simpler 'char *' instead.
1134         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
1135         (lgetfilecon): Likewise.
1136         (fgetfilecon): Likewise.
1137         (map_to_failure): Likewise.
1138         (rpl_getfilecon): Likewise.
1139         (rpl_lgetfilecon): Likewise.
1140         (rpl_fgetfilecon): Likewise.
1141         * lib/se-selinux.in.h (security_context_t): Remove typedef.
1142         (getcon): Adjust type of context parameter.
1143         (freecon): Likewise.
1144         (getfscreatecon): Likewise.
1145         (setfscreatecon): Likewise.
1146         (matchpathcon): Likewise.
1147         (getfilecon): Likewise.
1148         (lgetfilecon): Likewise.
1149         (fgetfilecon): Likewise.
1150         (setfilecon): Likewise.
1151         (lsetfilecon): Likewise.
1152         (fsetfilecon): Likewise.
1153         (security_check_context): Likewise.
1154         (security_check_context_raw): Likewise.
1155         (setexeccon): Likewise.
1156         (security_compute_create): Likewise.
1157         * lib/selinux-at.c (getfileconat): Likewise.
1158         (lgetfileconat): Likewise.
1159         (setfileconat): Likewise.
1160         (lsetfileconat): Likewise.
1161         * lib/selinux-at.h: Likewise.
1163 2020-10-19  Bruno Haible  <bruno@clisp.org>
1165         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
1166         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
1167         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
1168         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
1169         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
1170         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
1171         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
1173 2020-10-18  Bruno Haible  <bruno@clisp.org>
1175         ssfmalloc: Add tests.
1176         * tests/test-ssfmalloc.c: New file.
1177         * modules/ssfmalloc-tests: New file.
1179         ssfmalloc: New module.
1180         * lib/ssfmalloc.h: New file.
1181         * lib/ssfmalloc-bitmap.h: New file.
1182         * modules/ssfmalloc: New file.
1184 2020-10-18  Bruno Haible  <bruno@clisp.org>
1186         wchar: Fix configure test result on some versions of AIX.
1187         Reported by Clément Chigot <clement.chigot@atos.net> in
1188         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
1189         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
1190         systems.
1192 2020-10-18  Bruno Haible  <bruno@clisp.org>
1194         time: Fix warning about asctime when asctime is not used.
1195         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
1196         invocation.
1198 2020-10-18  Bruno Haible  <bruno@clisp.org>
1200         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
1201         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
1202         '_GL_ATTRIBUTE_CONST'.
1203         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
1204         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
1205         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
1206         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
1207         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
1208         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
1209         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
1211 2020-10-18  Bruno Haible  <bruno@clisp.org>
1213         obstack: Fix a clang warning.
1214         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
1216 2020-10-16  Bruno Haible  <bruno@clisp.org>
1218         hash: Rename hash_delete to hash_remove.
1219         * lib/hash.h (hash_remove): Renamed from hash_delete.
1220         (hash_delete): New declaration.
1221         * lib/hash.c (hash_remove): Renamed from hash_delete.
1222         (hash_delete): New function.
1223         * tests/test-hash.c (main): Update.
1224         * lib/fts-cycle.c (leave_dir): Likewise.
1225         * NEWS: Mention the change.
1227 2020-10-16  Bruno Haible  <bruno@clisp.org>
1229         hash, xhash: Make usable from C++.
1230         * lib/hash.h: Add extern "C".
1232 2020-10-16  Bruno Haible  <bruno@clisp.org>
1234         hash, xhash: Move comments to the .h file.
1235         * lib/hash.c: Move comments meant for the user from here...
1236         * lib/xhash.c: ... and here...
1237         * lib/hash.h: ... to here.
1239 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
1241         Don't declare an intention to modify the return value of strerror.
1242         * tests/test-perror2.c (main): Assign the return value of strerror to a
1243         'const char *' variable.
1245 2020-10-11  Bruno Haible  <bruno@clisp.org>
1247         *printf: Avoid "expanded before it was required" warning.
1248         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
1249         AC_DEFUN_ONCE.
1251 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
1253         getprogname: Add support for OpenServer 6 and UnixWare 7.
1254         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
1255         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
1257 2020-10-11  Bruno Haible  <bruno@clisp.org>
1259         tests: Avoid a name clash on UnixWare.
1260         Reported by Tim Rice <tim@multitalents.net> in
1261         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
1262         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
1264 2020-10-11  Bruno Haible  <bruno@clisp.org>
1266         stdioext: Update comments regarding UnixWare.
1267         Reported by Tim Rice <tim@multitalents.net> in
1268         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1269         * lib/fbufmode.c: Update comments.
1270         * lib/fflush.c: Likewise.
1271         * lib/fpending.c: Likewise.
1272         * lib/fpurge.c: Likewise.
1273         * lib/freadable.h: Likewise.
1274         * lib/freadable.c: Likewise.
1275         * lib/freadahead.c: Likewise.
1276         * lib/freading.h: Likewise.
1277         * lib/freading.c: Likewise.
1278         * lib/freadptr.c: Likewise.
1279         * lib/freadseek.c: Likewise.
1280         * lib/fseeko.c: Likewise.
1281         * lib/fseterr.c: Likewise.
1282         * lib/fwritable.h: Likewise.
1283         * lib/fwritable.c: Likewise.
1284         * lib/fwriting.h: Likewise.
1285         * lib/fwriting.c: Likewise.
1287 2020-10-11  Bruno Haible  <bruno@clisp.org>
1289         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
1290         Reported by Tim Rice <tim@multitalents.net> in
1291         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1292         Uses the info from
1293         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
1294         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
1296 2020-10-11  Bruno Haible  <bruno@clisp.org>
1298         stdioext: Avoid compilation errors on UnixWare 7.
1299         Reported by Tim Rice <tim@multitalents.net> in
1300         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
1301         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
1302         * lib/fpurge.c: Likewise.
1303         * lib/freadable.h: Likewise.
1304         * lib/freading.h: Likewise.
1305         * lib/fwritable.h: Likewise.
1306         * lib/fwriting.h: Likewise.
1307         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
1308         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1309         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
1310         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
1311         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
1312         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
1314 2020-10-11  Bruno Haible  <bruno@clisp.org>
1316         stdioext: Update comments regarding Cygwin.
1317         * lib/fpending.c: Update comments.
1318         * lib/fpurge.c: Likewise.
1319         * lib/freadable.h: Likewise.
1320         * lib/freadable.c: Likewise.
1321         * lib/freading.h: Likewise.
1322         * lib/freading.c: Likewise.
1323         * lib/fwritable.h: Likewise.
1324         * lib/fwritable.c: Likewise.
1325         * lib/fwriting.h: Likewise.
1326         * lib/fwriting.c: Likewise.
1328 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
1330         Fix "warning: implicit declaration of function 'pthread_sigmask'".
1331         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
1332         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
1334 2020-10-10  Bruno Haible  <bruno@clisp.org>
1336         *-list, *-oset, *-omap: Avoid possible compiler warnings.
1337         Reported by Marc Nieper-Wißkirchen in
1338         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
1339         * lib/gl_anylinked_list2.h (gl_linked_iterator,
1340         gl_linked_iterator_from_to): Mark as 'pure'.
1341         (gl_linked_iterator_free): Mark as 'const'.
1342         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
1343         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
1344         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
1345         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
1346         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
1347         (gl_tree_iterator_free): Mark as 'const'.
1348         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
1349         'pure'.
1350         (gl_tree_iterator_free): Mark as 'const'.
1351         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
1352         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
1353         (gl_tree_iterator_free): Mark as 'const'.
1354         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
1355         compare_position_threshold): Mark as 'pure'.
1356         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
1357         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
1358         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
1359         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
1360         'pure'.
1361         (gl_array_iterator_free): Mark as 'const'.
1362         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
1363         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
1364         (gl_array_iterator_free): Mark as 'const'.
1365         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
1366         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
1367         gl_array_iterator_atleast): Mark as 'pure'.
1368         (gl_array_iterator_free): Mark as 'const'.
1369         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
1370         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
1371         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
1372         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
1373         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
1374         gl_carray_sortedlist_search): Mark as 'pure'.
1375         (gl_carray_iterator_free): Mark as 'const'.
1377 2020-10-10  Bruno Haible  <bruno@clisp.org>
1379         rbtree-list: Avoid possible compiler warnings.
1380         This mirrors the change of avltree-list on 2014-09-16.
1381         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
1382         declaration. Add cast to void for ignored value of check_invariants.
1384 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1386         stack: New module.
1387         * MODULES.html.sh: Add entry for the stack module.
1388         * modules/stack: New file.
1389         * modules/stack-tests: New file.
1390         * lib/stack.h: New file.
1391         * tests/test-stack.c: New file.
1393 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1395         attribute: improve const, pure doc
1396         Problem reported by Marc Nieper-Wißkirchen in:
1397         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
1398         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
1399         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
1401 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1403         thread: pacify GCC on Solaris 10
1404         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
1405         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
1406         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
1407         where pthread_t is unsigned int.
1409 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1411         c-stack: avoid AS_IF
1412         Problem reported by Bruno Haible in:
1413         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
1414         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
1416         c-stack: pacify GCC 9.3.1 when using libsigsegv
1417         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
1419 2020-10-04  Bruno Haible  <bruno@clisp.org>
1421         localename: Fix a couple of "unused parameter" warnings.
1422         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
1423         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
1424         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
1425         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
1426         parameter list.
1428 2020-10-04  Bruno Haible  <bruno@clisp.org>
1430         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
1431         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
1432         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
1433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
1434         HAVE_SNPRINTF_TRUNCATION_C99.
1435         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
1436         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
1438 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1440         c-stack: streamline Solaris configuration
1441         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
1442         the code is used only if a test for sigaltstack worked
1443         in some other way.
1444         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
1445         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
1446         heuristic does not work).
1447         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
1448         we no longer require the libsigsegv module.
1449         (Depends-on): Depend on havelib, not libsigsegv.
1451         c-stack: stop using SIGSTKSZ
1452         It’s been proposed to stop making SIGSTKSZ an integer constant:
1453         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
1454         Also, using SIGSTKSZ in #if did not conform to current POSIX.
1455         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
1456         * lib/c-stack.c (SIGSTKSZ): Remove.
1457         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
1458         All uses changed.
1460         c-stack: fix libsigsegv typo
1461         Problem reported by Bruno Haible in:
1462         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
1463         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
1464         to be used only on Solaris (exactly where it is not needed!).
1466 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
1468         MODULES.html.sh: Fix typo.
1469         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
1471 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
1473         version-etc: pacify Oracle Studio 12.6
1474         Without this patch, it complains: "version-etc.h", line 64:
1475         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
1476         pedantic mode.
1477         * lib/version-etc.h (version_etc): Port to C89 macro rules.
1479 2020-09-27  Bruno Haible  <bruno@clisp.org>
1481         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
1482         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1483         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1484         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
1485         ourselves; don't use AC_DECL_SYS_SIGLIST.
1487 2020-09-27  Bruno Haible  <bruno@clisp.org>
1489         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
1490         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1491         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1492         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
1493         instead of _AC_COMPUTE_INT.
1495 2020-09-27  Bruno Haible  <bruno@clisp.org>
1497         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
1498         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1499         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1500         Based on a patch by Paul Eggert.
1501         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
1502         test STDC_HEADERS. Assume <stdlib.h> exists.
1503         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
1505 2020-09-27  Bruno Haible  <bruno@clisp.org>
1507         Enable testing of prereleases of Autoconf 2.70.
1508         Suggested by Paul Eggert in
1509         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
1510         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
1511         >= 2.70.
1512         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
1513         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
1514         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
1516 2020-09-27  Bruno Haible  <bruno@clisp.org>
1518         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
1519         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1520         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1521         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
1522         AC_PROG_CC, depending on the Autoconf version.
1524 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
1526         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
1527         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
1528         of AC_HELP_STRING.
1529         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
1531 2020-09-27  Bruno Haible  <bruno@clisp.org>
1533         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
1534         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1535         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1536         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
1538 2020-09-27  Bruno Haible  <bruno@clisp.org>
1540         extensions: Simplify last commit.
1541         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
1542         AC_GNU_SOURCE ever.
1544 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1546         extensions: require AC_GNU_SOURCE only for <=2.63
1547         Problem reported by Gavin Smith in:
1548         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
1549         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
1550         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
1551         shouldn’t be needed after that, and Autoconf 2.70 complains about
1552         it being obsolete.
1554 2020-09-26  Bruno Haible  <bruno@clisp.org>
1556         regex-tests: Make test more robust.
1557         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
1558         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
1560 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1562         regex-tests: fix possible Turkish false-alarm
1563         * modules/regex-tests (Depends-on): Add wctype-h.
1564         * tests/test-regex.c: Include wctype.h.
1565         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
1566         as the Turkish regex test assumes this.
1568         regex-tests: fix test and add debug output
1569         Perhaps this will fix the recent grep test failure reported at:
1570         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
1571         At least, the debug output should help narrow down the failure.
1572         * tests/test-regex.c: Include stdarg.h, stdio.h.
1573         (exit_status): New var.
1574         (report_error): New function.
1575         (main): Use it to report failures to stdout instead of merely
1576         exiting with some nonzero status.  The status info alone isn’t
1577         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
1578         regex before calling re_compile_pattern, fixing a portability bug.
1580         regex: no longer match glibc
1581         * config/srclist.txt: Comment out regex_internal.c for now.
1583 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1585         regex: fix ignore-case Turkish bug
1586         * lib/regex_internal.c (build_wcs_upper_buffer):
1587         Do not assume that converting single-byte character to upper
1588         yields a single-byte character.  This is not true for Turkish,
1589         where towupper (L'i') yields L'İ', which is not single-byte.
1590         * tests/test-regex.c (main): Test for this bug.
1592         regex: port to weird isascii platforms
1593         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
1595 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1597         dfa: make dfasupported a global function
1598         * lib/dfa.c (dfasupported): Rename, and make it global.
1599         Update caller.
1600         * lib/dfa.h (dfasupported): Add prototype.
1602 2020-09-20  Bruno Haible  <bruno@clisp.org>
1604         canonicalize: Add support for UNC file names on native Windows.
1605         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
1606         <https://savannah.gnu.org/bugs/?59079>.
1607         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
1608         extend the prefix to include the server.
1610 2020-09-20  Bruno Haible  <bruno@clisp.org>
1612         supersede: Fix test failures on native Windows.
1613         * lib/supersede.c (open_supersede): Handle non-regular files on native
1614         Windows like on Solaris.
1615         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
1617 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1619         test-stdalign: test Oracle Studio better
1620         * doc/posix-headers/stdalign.texi (stdalign.h):
1621         * tests/test-stdalign.c (main):
1622         Sun Studio Bug #2125432 seems to be fixed.
1624         c-stack: output diagnostic in single 'write'
1625         * lib/c-stack.c (die): In the typical case, use just one 'write'
1626         syscall to output the diagnostic, as this lessens interleaving.
1627         (die, c_stack_action): Assume C99.
1628         * modules/c-stack (Depends-on): Add c99, mempcpy.
1630         c-stack: improve checking if !libsigsegv
1631         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
1632         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
1633         unlikely pointer overflow.  Also, fix some obsolete code and typos.
1634         I found these problems while looking into this bug report:
1635         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
1636         * lib/c-stack.c: Include c-stack.h first, to test interface.
1637         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
1638         max_align_t, intprops.h for INT_ADD_WRAPV.
1639         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
1640         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
1641         for libsigsegv 2.8 and earlier since the bug should be fixed
1642         after that.
1643         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
1644         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
1645         Assume sprintf returns byte count; this assumption is safe now.
1646         (page_size): New static volatile variable, since sysconf isn’t
1647         documented to be async-signal-safe on Solaris.  This variable is
1648         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
1649         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
1650         SIGINFO_WORKS).
1651         (segv_handler): Use it if present.  Never report null pointer
1652         dereference as a stack overflow.  Check for (unlikely) unsigned
1653         and/or pointer overflow.
1654         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1655         Rename cache variables to gl_cv_sys_stack_overflow_works
1656         and gl_cv_sys_xsi_stack_overflow_heuristic.
1657         All uses changed.
1658         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
1659         c-stack no longer uses STACK_DIRECTION.
1660         Do not check for unistd.h, since we depend on unistd.
1661         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
1662         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
1663         stdbool, stddef.
1665 2020-09-20  Bruno Haible  <bruno@clisp.org>
1667         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
1668         * m4/musl.m4: Revert 2020-09-19 patch.
1669         * m4/setlocale_null.m4: Likewise.
1670         * modules/setlocale-null: Likewise.
1672 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
1673             Bruno Haible  <bruno@clisp.org>
1675         relocatable-prog: Fix for multiple relocatable library directories.
1676         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
1677         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
1678         being attached to a single one.
1680 2020-09-19  Jim Meyering  <meyering@fb.com>
1682         test-verify.c: avoid -Wshadow warnings
1683         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
1684         (enum): Capitalize member names. Adjust uses.
1686 2020-09-19  Bruno Haible  <bruno@clisp.org>
1688         havelib: Avoid linking with libc.a on GNU systems.
1689         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
1690         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
1691         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
1692         dependency_libs value of a .la file, ignore '-lc' options on GNU
1693         systems.
1695 2020-09-19  Bruno Haible  <bruno@clisp.org>
1697         Fix recognition of musl libc on Alpine Linux 3.10.
1698         Reported by Jeffrey Walton <noloader@gmail.com> in
1699         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
1700         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
1701         (gl_MUSL_LIBC): Require it.
1702         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
1703         * modules/setlocale-null (Files): Add m4/musl.m4.
1705 2020-09-19  Bruno Haible  <bruno@clisp.org>
1707         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
1708         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
1709         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
1710         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
1711         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
1712         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
1713         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
1714         or <threads.h>.
1715         (ITEMS, MAX_RESULT_LEN): New macros.
1716         (nl_langinfo_unlocked): New function.
1717         (gl_get_nl_langinfo_lock): New declaration.
1718         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
1719         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
1720         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
1721         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
1722         REPLACE_NL_LANGINFO.
1723         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
1724         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
1725         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
1726         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
1727         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
1729 2020-09-18  Bruno Haible  <bruno@clisp.org>
1731         fsusage, getaddrinfo: Produce more regular configure output.
1732         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
1733         corresponding AC_MSG_RESULT.
1734         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
1736 2020-09-18  Bruno Haible  <bruno@clisp.org>
1738         Add back gl_SILENT.
1739         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
1741 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1743         c-stack-tests: fix -fsanitize=undefined false alarm
1744         * tests/test-c-stack2.sh: Skip the test-harness self-test
1745         if ‘gcc -fsanitize=undefined’ is in use.
1747 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
1749         signalblocking: simplify and remove gl_SILENT
1750         gl_SILENT was problematic because if a trap was sprung, stderr
1751         generated during the trap was lost.  Avoid the problem by
1752         removing the need for gl_SILENT.
1753         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
1754         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
1755         Simplify, avoiding the need for gl_SILENT while preserving the
1756         ability of the user to override the value of the cache variable,
1757         now ac_cv_func_sigprocmask.
1759 2020-09-17  Bruno Haible  <bruno@clisp.org>
1761         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
1762         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
1763         (gl_SILENT): Use 'exec', not a compound statement, to redirect
1764         AS_MESSAGE_FD.
1766 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
1768         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
1769         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
1770         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
1771         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
1772         Define to 0.
1773         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
1774         Do not use __builtin_mul_overflow_p.
1776         libc-config: port __THROW to Ubuntu 4
1777         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
1778         for GCC 3.3.  Problem reported by Jeffrey Walton in:
1779         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
1780         The GCC 3.3.4 documentation says the attribute should work, but
1781         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
1782         little point or desire to research this circa-2004 platform further,
1783         so just avoid the attribute there.
1785 2020-09-17  Jim Meyering  <meyering@fb.com>
1787         test-dfa-match.sh: port timeout work-around to newer Busybox
1788         * tests/test-dfa-match.sh: Update timeout -t portability test to
1789         accommodate Busybox 1.30.0 and newer.
1791 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1793         fnmatch: adjust to match glibc fix
1794         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
1795         This does not affect Gnulib; it merely keeps Gnulib and glibc
1796         closer together, to help with any eventual merge, by incorporating
1797         a recent glibc patch.  The patch and the following commentary is
1798         by Andreas Schwab.
1799         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
1800         contains the index into the extra array, whereas wextra points
1801         into the extra array at this index, containing the length of the
1802         following collating sequence in the wide character representation.
1804 2020-09-16  Bruno Haible  <bruno@clisp.org>
1806         stat, fstat: Fix compilation error with old mingw headers.
1807         Reported by Eli Zaretskii <eliz@gnu.org> in
1808         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
1809         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
1810         define it.
1812 2020-09-16  Bruno Haible  <bruno@clisp.org>
1814         stat, fstat: Fix when compiling for versions older than Windows Vista.
1815         Reported by Eli Zaretskii <eliz@gnu.org> in
1816         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
1817         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
1818         that was originally set before we redefined it.
1819         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
1820         (gl_PREREQ_STAT): Require it.
1821         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
1823 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
1825         dfa: remove dfa-heap-overrun workaround
1826         * lib/dfa.c (reorder_tokens): Go back to a single pass that
1827         both sets map[*] and does other things.  This reverts
1828         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
1829         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
1830         fixed the underlying problem.
1832 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1834         dfa: avoid use of uninitialized constraint
1835         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
1836         to zero here.
1837         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
1838         use of an uninitialized constraint by later code when ! (flags[i]
1839         & OPT_QUEUED) means merge_nfa_state was not called to initialize
1840         the constraint.  Problem found by running 'valgrind src/grep -E
1841         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
1843         dfa: assume C99 in reorder_tokens
1844         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
1846         dfa: fix dfa-heap-overrun failure
1847         * lib/dfa.c (reorder_tokens): When setting
1848         map[d->follows[i].elems[j].index], instead of incorrectly assuming
1849         that (i < d->follows[i].elems[j].index), use two loops, one to set
1850         the map array and the other to use it.  The incorrect assumption
1851         caused some elements to be missed, and this in turn caused grep's
1852         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
1853         with GCC.  I found this bug while investigating
1854         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
1855         and I think the bug also occurs on GNU/Linux but with more-subtle
1856         symptoms.  The bug predates the recent dfa.c changes; perhaps the
1857         recent changes make the bug more likely.
1859 2020-09-13  Bruno Haible  <bruno@clisp.org>
1861         parse-datetime: Make the build rule work with parallel 'make'.
1862         Reported by Daiki Ueno <ueno@gnu.org> in
1863         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
1864         * modules/parse-datetime (Makefile.am): Use a phony target and the
1865         general idiom for rules that produce multiple files.
1867 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
1869         getpass: Check for nonnull prompt argument while avoiding warnings.
1870         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
1871         (getpass) [!_WIN32]: Print prompt only if nonnull.
1873 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1875         dfa: epsilon-closure tweaks (Bug#40634)
1876         Rename BACKWORD to BACKWARD consistently.
1877         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
1878         (addtok_mb): Redo slightly to make it act more like a state machine.
1879         Check depth only when it increases.
1880         (epsclosure): Let the switch test the tokens.
1881         (dfaanalyze): Cache tindex.  Simplify position loops.
1882         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
1883         only if it is not null, since we're testing that anyway.
1884         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
1886 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1888         dfa: use backward set in removal of epsilon closure
1889         When removing in epsilon closure, the code searched all nodes
1890         sequentially, and this was slow for some cases.  Build a backward
1891         set before search, and only check previous position with the set.
1892         Problem reported in <https://bugs.gnu.org/40634>.
1893         * lib/dfa.c (struct dfa): New member 'epsilon'.
1894         (addtok_mb): Check whether a pattern has epsilon node or not.
1895         (epsclosure): New arg BACKWORD; caller changed.  When removing
1896         epsilon node and reconnecting, check only previous positions.
1897         Treat BEG as if it were character.
1898         (dfaanalyze): Build backward set.
1900 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1902         canonicalize: fix pointer indexing bugs
1903         Problem reported by Florian Weimer in:
1904         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
1905         * lib/canonicalize-lgpl.c (__realpath):
1906         * lib/canonicalize.c (canonicalize_filename_mode):
1907         Do not generate a pointer past the end of the array.
1908         * lib/canonicalize.c (canonicalize_filename_mode):
1909         Do not use a pointer after passing it to realloc.
1911 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
1913         tempname: help merge with glibc
1914         Inspired by draft patches by Adhemerval Zanella in:
1915         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
1916         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
1917         * lib/tempname.c: Include stdalign.h, time.h.
1918         If _LIBC, do not include random-bits.h.
1919         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
1920         (RANDOM_BITS): Remove, replacing with ...
1921         (random_bits): ... this new static function.  All uses changed.
1922         Add entropy each time if getrandom is not supported.
1923         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
1924         Assume 64-bit support a la C99.
1925         (try_tempname_len): Take advantage of ASLR when initializing
1926         random value.
1927         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
1929         getcwd: merge recent glibc changes
1930         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
1931         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
1933 2020-09-06  Bruno Haible  <bruno@clisp.org>
1935         attribute: Clarify which file to include.
1936         * modules/attribute (Include): Add "attribute.h".
1938 2020-09-06  Bruno Haible  <bruno@clisp.org>
1940         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
1941         * lib/pipe-filter-ii.c: Include <process.h>.
1942         * lib/pipe-filter-gi.c: Likewise.
1944 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1946         verify: avoid __builtin_assume
1947         Our latest attempt to use Clang’s __builtin_assume caused a crash
1948         in GNU Emacs that we spent quite some time tracking down as being
1949         caused by the switch to __builtin_assume.  It’s not known whether
1950         the crash is due is a Clang bug or a portability bug in GNU Emacs.
1951         For now, play it safe and avoid __builtin_assume.
1952         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
1953         (assume): Simplify by not trying to use Clang’s __builtin_assume.
1955 2020-09-05  Bruno Haible  <bruno@clisp.org>
1957         Fix several "warning: no previous prototype for function".
1958         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
1959         in front of the declaration of the lookup function in
1960         unicase/locale-languages.h.
1961         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
1962         unictype/bidi_byname.h.
1963         * modules/unictype/category-byname (Makefile.am): Likewise in
1964         unictype/categ_byname.h.
1965         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
1966         unictype/combiningclass_byname.h.
1967         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
1968         unictype/joininggroup_byname.h.
1969         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
1970         unictype/joiningtype_byname.h.
1971         * modules/unictype/property-byname (Makefile.am): Likewise in
1972         unictype/pr_byname.h.
1973         * modules/unictype/scripts (Makefile.am): Likewise in
1974         unictype/scripts_byname.h.
1975         * modules/uninorm/composition (Makefile.am): Likewise in
1976         uninorm/composition-table.h.
1978 2020-09-05  Bruno Haible  <bruno@clisp.org>
1980         select: Fix "warning: no previous prototype for function".
1981         * lib/select.c: Include <sys/select.h>.
1983 2020-09-05  Bruno Haible  <bruno@clisp.org>
1985         Use module 'c99' when needed for variadic macros with '...' syntax.
1986         * modules/crypto/sm3 (Depends-on): Add c99.
1988 2020-09-05  Bruno Haible  <bruno@clisp.org>
1990         Use module 'c99' when needed for subobject initializer syntax.
1991         * modules/tempname (Depends-on): Add c99.
1992         * modules/nstrftime-tests (Depends-on): Likewise.
1994 2020-09-05  Bruno Haible  <bruno@clisp.org>
1996         Use module 'c99' when needed for declaration-after-statement syntax.
1997         * modules/backup-rename (Depends-on): Add c99.
1998         * modules/backupfile (Depends-on): Likewise.
1999         * modules/bitset-tests (Depends-on): Likewise.
2000         * modules/bitsetv (Depends-on): Likewise.
2001         * modules/c-strtod (Depends-on): Likewise.
2002         * modules/c-strtold (Depends-on): Likewise.
2003         * modules/clean-temp (Depends-on): Likewise.
2004         * modules/copy-file (Depends-on): Likewise.
2005         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
2006         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
2007         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
2008         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
2009         * modules/crypto/md5-buffer (Depends-on): Likewise.
2010         * modules/crypto/md5-tests (Depends-on): Likewise.
2011         * modules/crypto/sha1-buffer (Depends-on): Likewise.
2012         * modules/crypto/sha1-tests (Depends-on): Likewise.
2013         * modules/crypto/sha256-buffer (Depends-on): Likewise.
2014         * modules/crypto/sha256-tests (Depends-on): Likewise.
2015         * modules/crypto/sha512-buffer (Depends-on): Likewise.
2016         * modules/crypto/sha512-tests (Depends-on): Likewise.
2017         * modules/diffseq (Depends-on): Likewise.
2018         * modules/fatal-signal (Depends-on): Likewise.
2019         * modules/fchmodat (Depends-on): Likewise.
2020         * modules/fstrcmp (Depends-on): Likewise.
2021         * modules/fsusage (Depends-on): Likewise.
2022         * modules/fts (Depends-on): Likewise.
2023         * modules/fts-tests (Depends-on): Likewise.
2024         * modules/getumask (Depends-on): Likewise.
2025         * modules/git-merge-changelog (Depends-on): Likewise.
2026         * modules/hash-map (Depends-on): Likewise.
2027         * modules/hash-set (Depends-on): Likewise.
2028         * modules/lchmod (Depends-on): Likewise.
2029         * modules/libgmp-tests (Depends-on): Likewise.
2030         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
2031         * modules/linkedhash-map (Depends-on): Likewise.
2032         * modules/linkedhash-set (Depends-on): Likewise.
2033         * modules/long-options (Depends-on): Likewise.
2034         * modules/mbrtoc32 (Depends-on): Likewise.
2035         * modules/memchr2-tests (Depends-on): Likewise.
2036         * modules/memmem-tests (Depends-on): Likewise.
2037         * modules/memrchr-tests (Depends-on): Likewise.
2038         * modules/mktime-internal (Depends-on): Likewise.
2039         * modules/nstrftime (Depends-on): Likewise.
2040         * modules/opendirat (Depends-on): Likewise.
2041         * modules/parse-datetime (Depends-on): Likewise.
2042         * modules/quotearg-simple-tests (Depends-on): Likewise.
2043         * modules/same (Depends-on): Likewise.
2044         * modules/supersede (Depends-on): Likewise.
2045         * modules/supersede-tests (Depends-on): Likewise.
2046         * modules/time_rz (Depends-on): Likewise.
2047         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2048         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
2049         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
2050         * modules/xalloc (Depends-on): Likewise.
2051         * modules/xnanosleep (Depends-on): Likewise.
2053 2020-09-05  Bruno Haible  <bruno@clisp.org>
2055         Fix "warning: array initialized from parenthesized string constant".
2056         * tests/test-memmem.c (main): Remove parentheses around string constant.
2057         * tests/test-c-strcasestr.c (main): Likewise.
2058         * tests/test-strcasestr.c (main): Likewise.
2060 2020-09-05  Bruno Haible  <bruno@clisp.org>
2062         argmatch tests: Fix ISO C compliance warning.
2063         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
2064         invocation.
2066 2020-09-05  Bruno Haible  <bruno@clisp.org>
2068         uniname/uniname: Fix -Wshadow warning.
2069         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
2070         * modules/uniname/uniname (Depends-on): Add c99.
2072 2020-09-05  Bruno Haible  <bruno@clisp.org>
2074         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
2075         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
2076         argument to size_t.
2077         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
2078         n to size_t.
2080 2020-09-05  Bruno Haible  <bruno@clisp.org>
2082         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
2083         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
2084         u32_uctomb): Change type of last argument to ptrdiff_t.
2085         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
2086         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2087         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
2088         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
2089         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
2091 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2093         manywarnings: remove -Wchkp and -Wabi from C++ too
2094         Suggested by Reuben Thomas in:
2095         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
2096         At some point somebody should merge the many other manywarnings-c.m4
2097         changes into manywarnings-c++.m4 too, e.g.,
2098         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
2099         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2100         Remove -Wchkp, -Wabi.
2102 2020-08-30  Bruno Haible  <bruno@clisp.org>
2104         strerrorname_np: Add tests.
2105         * tests/test-strerrorname_np.c: New file.
2106         * modules/strerrorname_np-tests: New file.
2108         strerrorname_np: New module.
2109         * lib/string.in.h (strerrorname_np): New declaration.
2110         * lib/strerrorname_np.c: New file.
2111         * m4/strerrorname_np.m4: New file.
2112         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
2113         is declared.
2114         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
2115         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2116         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
2117         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2118         * modules/strerrorname_np: New file.
2119         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
2120         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
2121         the glibc 2.32 bug.
2123 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2125         perror, strerror_r: remove unportable tests
2126         Problem reported by Florian Weimer in:
2127         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
2128         * tests/test-perror2.c (main):
2129         * tests/test-strerror_r.c (main): Omit unportable tests.
2131 2020-08-26  Bruno Haible  <bruno@clisp.org>
2133         stdint, wchar, wctype-h: Change configure message.
2134         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
2135         enough..." instead of "checking whether wint_t is too small...".
2137 2020-08-26  Bruno Haible  <bruno@clisp.org>
2139         time_rz: Change configure message.
2140         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
2141         near extrema..." instead of "checking whether localtime loops forever
2142         near extrema...".
2144 2020-08-26  Bruno Haible  <bruno@clisp.org>
2146         stdint: Change configure message.
2147         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
2148         without ISO C predefines..." instead of "checking whether stdint.h
2149         predates C++11...".
2151 2020-08-26  Bruno Haible  <bruno@clisp.org>
2153         socketlib: Change configure message.
2154         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
2155         instead of "checking if we need to call WSAStartup in winsock2.h and
2156         -lws2_32...".
2158 2020-08-26  Bruno Haible  <bruno@clisp.org>
2160         include_next: Change configure message.
2161         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
2162         code line length is unlimited..." instead of "checking whether system
2163         header files limit the line length...".
2165 2020-08-26  Bruno Haible  <bruno@clisp.org>
2167         getcwd: Change configure message.
2168         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
2169         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
2170         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
2172 2020-08-26  Bruno Haible  <bruno@clisp.org>
2174         chdir-long: Change configure message.
2175         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
2176         system supports file names of any length..." instead of "checking
2177         whether this system has an arbitrary file name length limit...".
2178         Set gl_cv_have_unlimited_file_name_length instead of
2179         gl_cv_have_arbitrary_file_name_length_limit.
2180         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
2182 2020-08-26  Bruno Haible  <bruno@clisp.org>
2184         ceill: Change configure message.
2185         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
2186         instead of "checking whether ceill() breaks with small values...".
2188 2020-08-26  Bruno Haible  <bruno@clisp.org>
2190         iconv: Change configure message.
2191         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
2192         with its POSIX signature..." instead of "checking for iconv
2193         declaration...". Remove K&R C support.
2195 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2197         getcwd: help the merge back into glibc
2198         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
2199         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
2200         The idea is to make it easier for Gnulib lib/getcwd.c to match
2201         glibc io/getcwd-generic.c.
2202         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
2203         Include not-cancel.h.
2204         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
2205         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
2206         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
2207         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
2208         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
2209         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
2210         (__getcwd_generic): Rename from __getcwd.
2211         Use the abovementioned macros for consistency with glibc.
2212         (weak_alias): Remove.
2214 2020-08-25  Bruno Haible  <bruno@clisp.org>
2216         verify: Avoid warnings when assume(0) is used.
2217         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
2218         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
2219         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
2220         the constant 0.
2221         * tests/test-verify.c (f): New function.
2222         (state): New type.
2223         (test_assume_expressions, test_assume_optimization,
2224         test_assume_noreturn): New functions.
2226 2020-08-25  Bruno Haible  <bruno@clisp.org>
2228         fstrcmp: Clarification regarding NOTE_ORDERED.
2229         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
2231 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2233         diffseq: new option NOTE_ORDERED
2234         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
2235         * NEWS: Mention this.
2236         * lib/diffseq.h (NOTE_ORDERED): New macro.
2237         (IF_LINT2): Remove; no longer needed.
2238         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
2239         subproblem and iterate to do the larger.
2241 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2243         sys_types: let Autoconf 2.70 do pid_t
2244         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
2245         only for Autoconf versions 2.69 and earlier, since 2.70
2246         will be fixed.
2248 2020-08-23  Bruno Haible  <bruno@clisp.org>
2250         tests: Don't assume that pid_t fits in an 'int'.
2251         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
2252         of 'int'.
2253         * tests/test-nonblocking-socket-main.c (main): Likewise.
2255         sys_types: Fix definition of pid_t on 64-bit MSVC.
2256         * m4/pid_t.m4: New file.
2257         * modules/sys_types (Files): Add it.
2258         * modules/dirent (Files): Likewise.
2259         * modules/fcntl-h (Files): Likewise.
2260         * modules/sched (Files): Likewise.
2261         * modules/signal-h (Files): Likewise.
2262         * modules/spawn (Files): Likewise.
2263         * modules/sys_stat (Files): Likewise.
2264         * modules/sys_wait (Files): Likewise.
2265         * modules/termios (Files): Likewise.
2266         * modules/unistd (Files): Likewise.
2268 2020-08-23  Bruno Haible  <bruno@clisp.org>
2270         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
2271         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
2272         program.
2274 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2276         intprops: be consistent about +X vs X+0
2277         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
2279         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
2280         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
2281         is a bit-field, on older GCC or non-GCC compilers where we do
2282         things ourselves instead of using __builtin_mul_overflow.
2283         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
2284         to applying sizeof to a bit-field.
2285         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
2286         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
2288 2020-08-23  Bruno Haible  <bruno@clisp.org>
2290         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
2291         Reported by Jörg Sonnenberger <joerg@netbsd.org>
2292         via Thomas Klausner <tk@giga.or.at> in
2293         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
2294         * lib/supersede.c (open_supersede): When opening an existing non-regular
2295         file on Solaris, use O_CREAT although it should not be necessary.
2297 2020-08-23  Bruno Haible  <bruno@clisp.org>
2299         verify: Make assume work on bit field expressions (regr. 2020-08-22).
2300         Reported by Benno Schulenberg <bensberg@telfort.nl> in
2301         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
2302         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
2303         variable.
2305 2020-08-23  Bruno Haible  <bruno@clisp.org>
2307         libc-config: Improve comments.
2308         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
2309         cannot use clang's __diagnose_if__ here.
2311 2020-08-22  Bruno Haible  <bruno@clisp.org>
2313         verify: Do use __builtin_assume on clang.
2314         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
2315         variable in a statement expression.
2317 2020-08-22  Bruno Haible  <bruno@clisp.org>
2319         sig2str: Add more signals.
2320         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
2322 2020-08-22  Bruno Haible  <bruno@clisp.org>
2324         doc: Update for OpenBSD 6.0, 6.7.
2325         * doc/*/*.texi: Update.
2326         * m4/printf.m4: Update comments and cross-compilation guesses.
2327         * m4/ceill.m4: Update comments.
2328         * m4/getcwd-abort-bug.m4: Likewise.
2329         * m4/ilogb.m4: Likewise.
2330         * m4/ilogbf.m4: Likewise.
2331         * m4/langinfo_h.m4: Likewise.
2332         * m4/modf.m4: Likewise.
2333         * m4/modff.m4: Likewise.
2335 2020-08-22  Bruno Haible  <bruno@clisp.org>
2337         doc: Mention sig2str module.
2338         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
2340 2020-08-21  Bruno Haible  <bruno@clisp.org>
2342         sigdescr_np: Add tests.
2343         * tests/test-sigdescr_np.c: New file.
2344         * modules/sigdescr_np-tests: New file.
2346         sigdescr_np: New module.
2347         * lib/string.in.h (sigdescr_np): New declaration.
2348         * lib/sigdescr_np.c: New file.
2349         * m4/sigdescr_np.m4: New file.
2350         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
2351         declared.
2352         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
2353         HAVE_SIGDESCR_NP.
2354         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
2355         HAVE_SIGDESCR_NP.
2356         * modules/sigdescr_np: New file.
2357         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
2358         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
2360 2020-08-20  Bruno Haible  <bruno@clisp.org>
2362         sigabbrev_np: Add tests.
2363         * tests/test-sigabbrev_np.c: New file.
2364         * modules/sigabbrev_np-tests: New file.
2366         sigabbrev_np: New module.
2367         * lib/string.in.h (sigabbrev_np): New declaration.
2368         * lib/sigabbrev_np.c: New file.
2369         * m4/sigabbrev_np.m4: New file.
2370         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
2371         declared.
2372         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
2373         HAVE_SIGABBREV_NP.
2374         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
2375         HAVE_SIGABBREV_NP.
2376         * modules/sigabbrev_np: New file.
2377         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
2378         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
2380 2020-08-20  Bruno Haible  <bruno@clisp.org>
2382         stdalign tests: Skip test with AIX xlclang.
2383         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
2385 2020-08-20  Bruno Haible  <bruno@clisp.org>
2387         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
2388         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
2389         workaround as for GCC versions < 4.9.
2391 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2393         Sync up ProjectQuirks comments and documentation
2394         Transform the ProjectQuirks comments into a docstring so that it can
2395         be accessed from python as ProjectQuirks.__doc__ and harmonize
2396         descriptions with the documentation.
2397         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
2398         Transform comments into a docstring.
2399         * doc/vcs-to-changelog.texi: Sync up description with comments.
2401         Split ProjectQuirks out into its own file
2402         ProjectQuirks is used by external quirks files and importing it from
2403         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
2404         is cleaner to put it in its own file anyway.
2405         * build-aux/vcstocl/projectquirks.py: A new file...
2406         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
2407         we move ProjectQuirks and import the file.
2409 2020-08-19  Bruno Haible  <bruno@clisp.org>
2411         uchar: Fix compilation errors in C++ mode on macOS.
2412         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
2413         system header file before attempting to use 'char16_t' and 'char32_t'.
2415 2020-08-19  Bruno Haible  <bruno@clisp.org>
2417         ansi-c++-opt: Work around an autoconf macro reordering problem.
2418         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
2419         section.
2421 2020-08-19  Bruno Haible  <bruno@clisp.org>
2423         math C++ tests: Fix compilation error in with GCC 10.
2424         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
2425         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
2426         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2428 2020-08-19  Bruno Haible  <bruno@clisp.org>
2430         uchar: Fix compilation errors in C++ mode on OpenBSD.
2431         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
2432         CXX_HAS_UCHAR_TYPES is 1.
2433         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
2434         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
2435         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
2437 2020-08-19  Bruno Haible  <bruno@clisp.org>
2439         Fix compilation errors in C++ mode on OpenBSD.
2440         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
2441         OpenBSD with clang, use the approach without C preprocessor macro.
2443 2020-08-18  Bruno Haible  <bruno@clisp.org>
2445         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
2446         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
2447         AC_LANG_POP.
2449 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2451         verify: avoid __built_assume on Clang
2452         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
2453         Clang 9 incorrectly diagnoses arguments as having side effects
2454         even when they do not.  I guess Clang 9 considers any function
2455         call as if it had a side effect here.
2457         libc-config: avoid Clang’s __diagnose_if__
2458         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
2459         For now, do not use __diagnose_if__ here, as this fails
2460         on Fedora 31 with Clang 9.0.1, with diagnostic
2461         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
2462         size than length of destination buffer
2463         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
2464         for functions that are not called?
2466         careadlinkat: speedup for GCC 10 with GCC_LINT
2467         Inspired by a suggestion by Bruno Haible in:
2468         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
2469         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
2470         (readlink_stk): New function, with most of the old careadlinkat
2471         contents and with a new STACK_BUF arg.  Inline it in GCC 10
2472         if GCC_LINT.
2473         (careadlinkat): Use the new function for everything but the
2474         stack buffer.
2476         * build-aux/gcc-warning.spec: Update comments.
2478 2020-08-17  Bruno Haible  <bruno@clisp.org>
2480         Assume autoconf >= 2.64.
2481         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
2483 2020-08-17  Bruno Haible  <bruno@clisp.org>
2485         Revert autoupdate's revert.
2486         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
2488 2020-08-17  Bruno Haible  <bruno@clisp.org>
2490         uchar C++ tests: Fix build error on FreeBSD 12.
2491         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
2492         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
2493         <cuchar> does not exist.
2495 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2497         time_rz: remove unused functions
2498         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
2500         time_rz: fix issues with mktime_z failures
2501         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
2502         Use a cheaper tm_yday test for failed mktime.
2504 2020-08-16  Bruno Haible  <bruno@clisp.org>
2506         intprops test: Strengthen on clang.
2507         * tests/test-intprops.c (VERIFY): Use verify_stmt.
2509 2020-08-16  Bruno Haible  <bruno@clisp.org>
2511         nstrftime: Guide inlining also on clang.
2512         * lib/nstrftime.c (iso_week_days): Inline also on clang.
2514 2020-08-16  Bruno Haible  <bruno@clisp.org>
2516         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
2517         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
2519 2020-08-16  Bruno Haible  <bruno@clisp.org>
2521         log2l: Disable MSVC workaround on clang.
2522         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
2524 2020-08-16  Bruno Haible  <bruno@clisp.org>
2526         argp: Emit a warning also with clang.
2527         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
2528         clang.
2530 2020-08-16  Bruno Haible  <bruno@clisp.org>
2532         libc-config: Enable __REDIRECT macro also on clang.
2533         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
2534         __ASMNAME2): Define on clang like on GCC.
2536 2020-08-16  Bruno Haible  <bruno@clisp.org>
2538         regex: Use initializer shorthand syntax also with clang.
2539         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
2540         with clang.
2542 2020-08-16  Bruno Haible  <bruno@clisp.org>
2544         regex: Use space optimization also with clang.
2545         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
2546         with clang.
2548 2020-08-16  Bruno Haible  <bruno@clisp.org>
2550         Use _Static_assert and static_assert primitives when present on clang.
2551         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
2552         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
2553         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
2555 2020-08-16  Bruno Haible  <bruno@clisp.org>
2557         Use 'throw ()' for optimization in C++ mode also on clang.
2558         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
2559         * lib/getopt-cdefs.in.h (__THROW): Likewise.
2560         * lib/md5.h (__THROW): Likewise.
2562 2020-08-16  Bruno Haible  <bruno@clisp.org>
2564         absolute-header: Add support for clang.
2565         * modules/absolute-header (Makefile.am): Include '__clang__' in the
2566         HAVE_INCLUDE_NEXT expression.
2568 2020-08-16  Bruno Haible  <bruno@clisp.org>
2570         Fix "warning: implicitly declaring library function 'strcasecmp'".
2571         * lib/argp-help.c: Include <strings.h>.
2573 2020-08-16  Bruno Haible  <bruno@clisp.org>
2575         stdio: Don't break attribute 'scanf' on clang.
2576         * lib/stdio.in.h (scanf): Treat clang like GCC.
2578 2020-08-16  Bruno Haible  <bruno@clisp.org>
2580         Use __restrict also on clang.
2581         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
2582         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
2583         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
2585 2020-08-16  Bruno Haible  <bruno@clisp.org>
2587         pthread-spin: Use GCC built-ins also on clang.
2588         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2589         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
2590         also on clang.
2592 2020-08-16  Bruno Haible  <bruno@clisp.org>
2594         asyncsafe-spin tests: Update.
2595         * tests/test-asyncsafe-spin2.c: Update to match the change in
2596         lib/asyncsafe-spin.c from 2020-08-11.
2598 2020-08-16  Bruno Haible  <bruno@clisp.org>
2600         setenv: Use tree code also with clang.
2601         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
2603 2020-08-16  Bruno Haible  <bruno@clisp.org>
2605         math: Optimize signbit also on clang.
2606         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
2607         on clang.
2609 2020-08-16  Bruno Haible  <bruno@clisp.org>
2611         avltreehash-list, rbtreehash-list: Optimize also on clang.
2612         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
2613         __builtin_expect also on clang.
2615 2020-08-16  Bruno Haible  <bruno@clisp.org>
2617         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
2618         * lib/socket.c: Use WSASocketW, not WSASocketA.
2620         Fix "warning: format specifies type 'unsigned long'".
2621         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
2622         argument to match the format directive.
2624         Fix "warning: no case matching constant switch condition '0'".
2625         * tests/test-fcntl.c (check_flags): Add a 'default' case.
2627         Fix "warning: integer overflow in expression".
2628         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
2629         remove a 'long' overflow.
2631         Fix "warning: "getpagesize" redefined".
2632         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
2633         macro.
2635         Fix "warning: implicitly declaring library function 'strncasecmp'".
2636         * lib/strptime.c: Include <strings.h>.
2638         Fix "warning: 'snprintf' macro redefined".
2639         * lib/strerror_r.c (snprintf): Undefine before redefining.
2641         Fix "warning: address of array 'locale' will always evaluate to 'true'".
2642         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
2644         Fix "warning: '__stat64' macro redefined".
2645         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
2647         Fix "warning: 'format' attribute argument not supported: rpl_printf".
2648         * lib/stdio.in.h (printf): Treat clang like GCC.
2650         Fix "warning: attribute declaration must precede definition" with clang.
2651         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
2652         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
2653         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
2654         on non-glibc systems.
2655         * lib/netdb.in.h (gai_strerror): Likewise.
2656         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
2657         * lib/sys_stat.in.h (fstat): Likewise.
2658         * lib/utime.in.h (utime): Likewise.
2660         Fix undesired warnings.
2661         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
2662         clang.
2664 2020-08-16  Bruno Haible  <bruno@clisp.org>
2666         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
2667         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
2668         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
2669         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
2670         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
2672 2020-08-16  Bruno Haible  <bruno@clisp.org>
2674         Don't use Autoconf quadrigraphs.
2675         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
2676         Autoconf quadrigraph.
2677         * m4/free.m4 (gl_FUNC_FREE): Likewise.
2678         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
2679         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
2680         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
2681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
2682         * m4/math_h.m4 (gl_MATH_H): Likewise.
2683         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
2685 2020-08-16  Bruno Haible  <bruno@clisp.org>
2687         Fix quoting of AC_LANG_PROGRAM arguments.
2688         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
2689         arguments through [[...]].
2690         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
2691         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2692         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2693         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
2694         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
2695         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2696         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
2697         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2698         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
2699         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
2700         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
2701         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
2702         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2704 2020-08-16  Bruno Haible  <bruno@clisp.org>
2706         Assume autoconf >= 2.64.
2707         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
2708         * DEPENDENCIES: Require Autoconf 2.64 or newer.
2709         * NEWS: Mention the changed requirement.
2710         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
2711         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
2712         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
2713         variables.
2714         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2715         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
2716         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
2717         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
2718         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
2719         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
2720         Likewise.
2721         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
2722         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
2723         * m4/configmake.m4: Update comment.
2725 2020-08-16  Bruno Haible  <bruno@clisp.org>
2727         sys_ioctl: Simplify.
2728         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
2729         AC_INCLUDES_DEFAULT.
2731 2020-08-16  Bruno Haible  <bruno@clisp.org>
2733         Fix quoting of AC_LANG_SOURCE arguments.
2734         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
2735         GL_NOCRASH expansion.
2736         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
2737         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2738         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2739         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2740         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2742 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2744         nstrftime: be more predictable about errno
2745         This aligns nstrftime better with draft POSIX 202x strftime.
2746         * lib/nstrftime.c: Include errno.h.
2747         (width_add, __strftime_internal): Set errno on failure,
2748         and preserve it on success.  Check for mktime_z failure.
2749         * modules/nstrftime (Depends-on): Add errno.
2750         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
2751         * tests/test-nstrftime.c: Include intprops.h, limits.h.
2752         (errno_test): New test function.
2753         (main): Call it.
2755 2020-08-15  Bruno Haible  <bruno@clisp.org>
2757         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
2758         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
2759         from dependency analysis first.
2761 2020-08-15  Bruno Haible  <bruno@clisp.org>
2763         Determine asm output option and filename suffix for MSVC/clang.
2764         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
2765         clang-cl.
2767 2020-08-15  Bruno Haible  <bruno@clisp.org>
2769         doc: Update for MSVC/clang.
2770         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
2771         that MSVC 14 does not have.
2773 2020-08-15  Bruno Haible  <bruno@clisp.org>
2775         Revert autoupdate's revert.
2776         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
2778 2020-08-15  Bruno Haible  <bruno@clisp.org>
2780         frexpl: Fix configuration test result on MSVC.
2781         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
2782         zero.
2784 2020-08-15  Bruno Haible  <bruno@clisp.org>
2786         Support compiling without -loldnames on native Windows.
2787         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
2788         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
2789         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2790         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
2791         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
2793         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
2794         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
2795         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2796         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
2797         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
2798         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
2799         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
2800         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
2801         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
2802         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
2803         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2804         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2805         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
2806         Likewise.
2807         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
2808         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2809         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
2810         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
2811         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2812         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
2813         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
2814         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2815         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2816         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
2817         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2818         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
2819         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
2820         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2821         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
2822         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2823         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2824         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2825         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
2826         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2827         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
2828         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2829         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2830         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2831         * m4/utimens.m4 (gl_UTIMENS): Likewise.
2832         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2833         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2834         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
2835         test for getcwd.
2836         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
2837         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
2838         with GL_MDA_DEFINES.
2839         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
2840         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
2841         prefixed symbol.
2842         * lib/search.in.h (lfind, lsearch): Likewise.
2843         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
2844         Likewise.
2845         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
2846         * lib/string.in.h (memccpy, strdup): Likewise.
2847         * lib/sys_stat.in.h (chmod, umask): Likewise.
2848         * lib/time.in.h (tzset): Likewise.
2849         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
2850         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
2851         read, rmdir, swab, unlink, write): Likewise.
2852         * lib/utime.in.h (utime): Likewise.
2853         * lib/wchar.in.h (wcsdup): Likewise.
2854         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
2855         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
2856         rpl_-prefixed macro.
2857         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
2858         * lib/close.c (close_nothrow): On native Windows, use _close.
2859         * lib/creat.c (orig_creat): On native Windows, use _creat.
2860         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
2861         * lib/dup2.c (dup2_nothrow): Use _dup2.
2862         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
2863         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
2864         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
2865         * lib/open.c (orig_open): On native Windows, use _open.
2866         * lib/read.c (read_nothrow): Use _read.
2867         * lib/rmdir.c: On native Windows, use _rmdir.
2868         * lib/unlink.c: On native Windows, use _unlink.
2869         * lib/write.c (write_nothrow): Use _write.
2870         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
2871         undefined symbol.
2872         * lib/sys_socket.in.h (close): Likewise.
2873         * lib/sys_time.in.h (close): Likewise.
2874         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
2876 2020-08-15  Bruno Haible  <bruno@clisp.org>
2878         Fix "unknown pragma ignored" warnings with clang on native Windows.
2879         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
2880         * lib/cbrtf.c: Likewise.
2881         * lib/ceil.c: Likewise.
2882         * lib/floor.c: Likewise.
2883         * lib/fma.c: Likewise.
2884         * lib/fmod.c: Likewise.
2885         * lib/rint.c: Likewise.
2886         * lib/round.c: Likewise.
2887         * lib/trunc.c: Likewise.
2888         * tests/test-ceil2.c: Likewise.
2889         * tests/test-ceilf2.c: Likewise.
2890         * tests/test-floor2.c: Likewise.
2891         * tests/test-floorf2.c: Likewise.
2892         * tests/test-trunc2.c: Likewise.
2893         * tests/test-truncf2.c: Likewise.
2894         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2895         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2897 2020-08-15  Bruno Haible  <bruno@clisp.org>
2899         Fix compilation errors in C++ mode with clang on native Windows.
2900         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
2901         non-glibc systems.
2902         * lib/sched.in.h (sched_yield): Likewise.
2904 2020-08-14  Bruno Haible  <bruno@clisp.org>
2906         stdnoreturn: Work around problem with MSVC/clang.
2907         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
2908         system header after <stdnoreturn.h>.
2909         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
2911 2020-08-14  Bruno Haible  <bruno@clisp.org>
2913         utime-h: Generate an utime.h file always.
2914         * modules/utime-h (Makefile.am): Generate utime.h always.
2915         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
2916         GL_GENERATE_UTIME_H.
2918 2020-08-14  Bruno Haible  <bruno@clisp.org>
2920         mktime, mktime-internal: Remove obsolete code.
2921         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
2923 2020-08-14  Bruno Haible  <bruno@clisp.org>
2925         getcwd: Remove obsolete code.
2926         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
2927         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2929 2020-08-14  Bruno Haible  <bruno@clisp.org>
2931         tzset: Assume the function exists.
2932         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
2933         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
2934         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
2935         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
2936         HAVE_TZSET.
2937         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
2938         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
2940         nstrftime: Assume tzset exists.
2941         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
2942         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
2943         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
2945         mktime, mktime-internal: Assume tzset exists.
2946         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
2947         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
2949 2020-08-14  Bruno Haible  <bruno@clisp.org>
2951         strdup: Assume the function exists.
2952         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
2953         whether strdup exists.
2954         * modules/strdup (Files): Remove lib/strdup.c.
2955         (configure.ac): Don't compile strdup.c.
2956         * modules/strdup-posix (Depends-on, configure.ac): Don't test
2957         ac_cv_func_strdup.
2958         * doc/posix-functions/strdup.texi: Update.
2959         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
2960         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
2961         (Depends-on): Remove unistr/u8-strlen.
2963 2020-08-13  Bruno Haible  <bruno@clisp.org>
2965         sys_random: Work around an uClibc bug.
2966         Reported by akater <nuclearspace@gmail.com>
2967         via Stefan Kangas <stefan@marxist.se>
2968         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
2969         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
2970         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
2971         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2972         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
2974 2020-08-12  Bruno Haible  <bruno@clisp.org>
2976         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
2977         Reported by Florian Weimer in
2978         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
2979         * lib/gen-uni-tables.c (output_predicate): Change the element type of
2980         the level3 array to 'unsigned int'.
2981         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
2982         * lib/unictype/categ_*.h: Regenerated.
2983         * lib/unictype/ctype_*.h: Regenerated.
2984         * lib/unictype/pr_*.h: Regenerated.
2985         * lib/unictype/sy_*.h: Regenerated.
2986         * lib/unicase/cased.h: Regenerated.
2987         * lib/unicase/ignorable.h: Regenerated.
2989 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2991         stdint: port intptr_t to more-recent MinGW
2992         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
2993         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
2994         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
2995         Apparently those two macros were removed in mingwrt-3.22
2996         dated 2016-07-14.
2998 2020-08-12  Bruno Haible  <bruno@clisp.org>
3000         thread-optim: Export function-like macros only.
3001         Suggested by Paul Eggert.
3002         * lib/thread-optim.h (gl_multithreaded): New macro.
3003         (IF_MT_DECL, IF_MT): Remove macros.
3004         * doc/multithread.texi (Multithreading Optimizations): Add a small
3005         example.
3006         * lib/fatal-signal.c: Update all uses.
3007         * lib/clean-temp.c: Likewise.
3008         * lib/localename.c: Likewise.
3009         * modules/localename (Depends-on): Add stdbool.
3011 2020-08-12  Bruno Haible  <bruno@clisp.org>
3013         Revert autoupdate's revert.
3014         * config/srclist.txt: Mark regex.h as needing sync with glibc.
3016 2020-08-11  Bruno Haible  <bruno@clisp.org>
3018         thread-optim: Fix a compiler warning.
3019         * lib/thread-optim.h (IF_MT_DECL): Define differently.
3021 2020-08-11  Bruno Haible  <bruno@clisp.org>
3023         Use __restrict also on clang.
3024         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
3025         (__restrict_arr): On clang, define like on GCC.
3026         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
3027         (_Restrict_arr_): Use _Restrict_ also on clang.
3028         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
3029         (_Restrict_arr_): Use _Restrict_ also on clang.
3031 2020-08-11  Bruno Haible  <bruno@clisp.org>
3033         Use flexible array syntax also on clang.
3034         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
3035         define like for GCC 3.
3037 2020-08-11  Bruno Haible  <bruno@clisp.org>
3039         fcntl: On native Windows, use _setmode, not setmode.
3040         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
3041         * lib/binary-io.h: Update comment.
3042         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
3043         * tests/test-dup2.c: Likewise.
3044         * tests/test-dup-safer.c: Likewise.
3045         * tests/test-fcntl.c: Likewise.
3047 2020-08-11  Bruno Haible  <bruno@clisp.org>
3049         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
3050         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
3051         * lib/spawn-pipe.c (create_pipe): Likewise.
3052         * tests/test-nonblocking-pipe-main.c (main): Likewise.
3053         * tests/test-nonblocking-socket-main.c (main): Likewise.
3054         * lib/wait-process.c: Update comment.
3055         * doc/posix-functions/fork.texi: Update.
3057 2020-08-11  Bruno Haible  <bruno@clisp.org>
3059         asyncsafe-spin: Use GCC built-ins also on clang.
3060         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
3061         the newer GCC built-ins also on clang.
3063 2020-08-11  Bruno Haible  <bruno@clisp.org>
3065         Use expression statements also on clang.
3066         * lib/cdefs.h (__extension__): Don't define to empty on clang.
3067         * lib/obstack.h (__extension__): Likewise.
3068         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
3069         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
3070         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
3071         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
3072         obstack_finish, obstack_free): Enable as optimized macros also on clang.
3073         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
3075 2020-08-10  Bruno Haible  <bruno@clisp.org>
3077         Use many __attribute__s with clang.
3078         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
3079         on clang.
3080         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
3081         New macros.
3082         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
3083         on clang.
3084         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
3085         also on older clang versions.
3086         (__attribute__): Don't define to empty on clang.
3087         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
3088         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
3089         (__attribute_const__): Use __attribute__ __const__ also on clang.
3090         (__attribute_used__): Use __attribute__ __used__ also on clang.
3091         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
3092         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
3093         clang.
3094         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
3095         clang.
3096         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
3097         also on clang.
3098         (__nonnull): Use __attribute__ __nonnull__ also on clang.
3099         (__attribute_warn_unused_result__): Use __attribute__
3100         __warn_unused_result__ also on clang.
3101         (__always_inline): Use __attribute__ __always_inline__ also on clang.
3102         (__attribute_artificial__): Use __attribute__ __artificial__ also on
3103         clang >= 7.
3104         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
3105         clang versions.
3106         (_Noreturn): Don't redefine on clang >= 3.5.
3107         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
3108         also on clang.
3109         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
3110         on clang.
3111         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3112         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3113         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3114         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
3115         also on clang.
3116         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3117         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
3118         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
3119         also on clang.
3120         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
3121         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
3122         __attribute__ __noreturn__ also on clang.
3123         * lib/obstack.h (__attribute_noreturn__): Likewise.
3124         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
3125         clang.
3126         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
3127         always_inline also on clang.
3128         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
3129         clang.
3131 2020-08-10  Bruno Haible  <bruno@clisp.org>
3133         c-ldtoastr tests: Fix test failure.
3134         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
3135         is longer than 'double'.
3137 2020-08-10  Bruno Haible  <bruno@clisp.org>
3139         Revert autoupdate's revert.
3140         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
3142 2020-08-09  Bruno Haible  <bruno@clisp.org>
3144         string: Fix build error in C++ mode with clang (regression from today).
3145         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
3146         parameters, one for GCC, one for clang.
3147         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
3148         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
3149         as return type.
3151 2020-08-09  Bruno Haible  <bruno@clisp.org>
3153         ftruncate: Use _chsize, not chsize.
3154         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
3155         * lib/ftruncate.c: Test HAVE__CHSIZE.
3156         (chsize_nothrow): Use _chsize, not chsize.
3158 2020-08-09  Bruno Haible  <bruno@clisp.org>
3160         Silence warnings from clang 10 with -Wimplicit-fallthrough.
3161         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
3162         clang >= 10.
3163         * lib/fnmatch.c (FALLTHROUGH): Likewise.
3164         * lib/fts.c (FALLTHROUGH): Likewise.
3165         * tests/macros.h (FALLTHROUGH): Likewise.
3166         * lib/regex_internal.h (FALLTHROUGH): Likewise.
3167         * config/srclist.txt: Mark it as needing sync with glibc.
3169 2020-08-09  Bruno Haible  <bruno@clisp.org>
3171         stdbool tests: Enable the stricter tests also on clang.
3172         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
3173         (e): Enable the address-to-bool conversion test also on clang.
3175 2020-08-09  Bruno Haible  <bruno@clisp.org>
3177         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
3178         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
3180 2020-08-09  Bruno Haible  <bruno@clisp.org>
3182         Use attribute __aligned__ with clang.
3183         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
3184         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
3186 2020-08-09  Bruno Haible  <bruno@clisp.org>
3188         Use __alignof__ with clang.
3189         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
3190         on clang.
3191         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
3192         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
3193         clang.
3194         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
3195         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
3196         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
3197         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
3199 2020-08-09  Bruno Haible  <bruno@clisp.org>
3201         ignore-value: Simplify on clang.
3202         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
3203         workaround.
3205 2020-08-09  Bruno Haible  <bruno@clisp.org>
3207         Use __typeof__ with clang.
3208         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
3209         "clang -std=gnu99".
3210         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
3211         * tests/test-stdint.c (verify_same_types): Enable the check also on
3212         clang.
3214 2020-08-09  Bruno Haible  <bruno@clisp.org>
3216         Add ability to emit user-defined warnings and errors with clang.
3217         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
3218         _GL_ATTRIBUTE_WARNING using an attribute for clang.
3219         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
3220         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
3221         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
3222         attribute for clang.
3224 2020-08-09  Bruno Haible  <bruno@clisp.org>
3226         intprops: Fix typo in comment.
3227         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
3229 2020-08-09  Bruno Haible  <bruno@clisp.org>
3231         Use __builtin_signbit* with clang.
3232         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
3233         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
3234         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3236         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3237         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
3238         not REPLACE_SIGNBIT_USING_GCC.
3240 2020-08-09  Bruno Haible  <bruno@clisp.org>
3242         Use __builtin_isnan with clang.
3243         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3244         not __builtin_isnanf. Also on clang.
3245         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
3246         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
3247         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
3248         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
3249         built-in.
3250         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3251         not __builtin_isnanl. Also on clang.
3252         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
3253         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
3254         * lib/math.in.h (__has_builtin): Remove macro.
3255         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
3256         __builtin_isnanf. Also on clang.
3257         (isnand, gl_isnan_d): With clang, use the GCC built-in.
3258         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
3259         __builtin_isnanl. Also on clang.
3260         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
3261         on clang.
3263 2020-08-09  Bruno Haible  <bruno@clisp.org>
3265         thread-optim: Fix logic error.
3266         Reported by Paul Eggert.
3267         * lib/thread-optim.h (IF_MT): Fix logic error.
3269 2020-08-08  Bruno Haible  <bruno@clisp.org>
3271         localename: Use module 'thread-optim'.
3272         * lib/localename.c: Include thread-optim.h.
3273         (struniq): Use IF_MT macro.
3274         * modules/localename (Depends-on): Add thread-optim.
3276         clean-temp: Use module 'thread-optim'.
3277         * lib/clean-temp.c: Include thread-optim.h.
3278         (register_temporary_file, unregister_temporary_file, create_temp_dir,
3279         register_temp_file, unregister_temp_file, register_temp_subdir,
3280         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
3281         close_temp, fclose_variant_temp): Use IF_MT macro.
3282         * modules/clean-temp (Depends-on): Add thread-optim.
3284         fatal-signal: Use module 'thread-optim'.
3285         * lib/fatal-signal.c: Include thread-optim.h.
3286         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
3287         macro.
3288         * modules/fatal-signal (Depends-on): Add thread-optim.
3290 2020-08-08  Bruno Haible  <bruno@clisp.org>
3292         New module 'thread-optim'.
3293         * lib/thread-optim.h: New file.
3294         * modules/thread-optim: New file.
3295         * doc/multithread.texi (Multithreading Optimizations): New section.
3297 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
3299         doc: more updates for glibc 2.32
3300         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
3301         * doc/posix-functions/fchmodat.texi: Update.
3303 2020-08-07  Bruno Haible  <bruno@clisp.org>
3305         doc: Update for glibc 2.32.
3306         * doc/glibc-functions/__libc_single_threaded.texi: New file.
3307         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
3308         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
3309         * doc/glibc-functions/sigabbrev_np.texi: New file.
3310         * doc/glibc-functions/sigdescr_np.texi: New file.
3311         * doc/glibc-functions/strerrordesc_np.texi: New file.
3312         * doc/glibc-functions/strerrorname_np.texi: New file.
3313         * doc/gnulib.texi: Include them.
3314         (Glibc sys/single_threaded.h): New section.
3315         * doc/pastposix-functions/h_errno.texi: Update.
3316         * doc/posix-functions/*.texi: Likewise.
3317         * doc/glibc-functions/*.texi: Likewise.
3319 2020-08-07  Bruno Haible  <bruno@clisp.org>
3321         alloca: No need to compile alloca.c with clang.
3322         * lib/alloca.c: Skip all code with clang.
3324         Use __builtin_alloca with clang.
3325         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
3327 2020-08-06  Bruno Haible  <bruno@clisp.org>
3329         Use __builtin_assume with clang.
3330         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
3331         (assume): Use __builtin_assume when available.
3333 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
3335         libgmp: add <gmp/gmp.h> support
3336         * m4/libgmp.m4 (gl_LIBGMP):
3337         * modules/libgmp (configure.ac, Makefile.am):
3338         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
3339         ‘#include <gmp.h>’.
3341 2020-08-06  Bruno Haible  <bruno@clisp.org>
3343         Consider that clang defines __OPTIMIZE__ like GCC does.
3344         * lib/streq.h: Define the inline functions also on clang.
3345         * lib/c-strcaseeq.h: Likewise.
3346         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
3347         the GCC workaround to clang.
3349 2020-08-06  Bruno Haible  <bruno@clisp.org>
3351         safe-alloc: Remove unused code.
3352         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
3354 2020-08-06  Bruno Haible  <bruno@clisp.org>
3356         Use __builtin_expect with clang everywhere.
3357         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
3358         also on clang.
3360 2020-08-05  Bruno Haible  <bruno@clisp.org>
3362         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
3363         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
3364         built-in also on clang.
3365         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
3366         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
3368 2020-08-05  Bruno Haible  <bruno@clisp.org>
3370         Use __builtin_clz{,l,ll} with clang, also on Windows.
3371         * lib/integer_length.c: With clang, use the GCC built-in, not
3372         <intrin.h>.
3373         * lib/integer_length_l.c: Likewise.
3374         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
3375         also on clang.
3376         * lib/vasnprintf.c (divide): Likewise.
3378 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
3380         Update srclist.txt as per recent glibc changes
3381         * config/srclist.txt: Uncomment lines to reflect recent merges
3382         from Gnulib to glibc.
3384 2020-08-03  Bruno Haible  <bruno@clisp.org>
3386         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3387         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
3389 2020-08-03  Bruno Haible  <bruno@clisp.org>
3391         integer_length_ll: Optimize for MSVC in 64-bit mode.
3392         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3393         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3395 2020-08-03  Bruno Haible  <bruno@clisp.org>
3397         integer_length_ll: Optimize for MSVC in 32-bit mode.
3398         * lib/integer_length_l.c: Include <intrin.h>.
3399         (integer_length): Define as inline function, like in
3400         lib/integer_length.c.
3402 2020-08-03  Bruno Haible  <bruno@clisp.org>
3404         integer_length: Optimize for MSVC.
3405         * lib/integer_length.c: Include <intrin.h>.
3406         (integer_length): With MSVC, use the _BitScanReverse built-in.
3408 2020-08-03  Bruno Haible  <bruno@clisp.org>
3410         ffsll: Optimize for MSVC in 64-bit mode.
3411         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3412         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3413         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
3415 2020-08-03  Bruno Haible  <bruno@clisp.org>
3417         ffsll: Optimize for MSVC in 32-bit mode.
3418         * lib/ffsl.h: Include <intrin.h>.
3419         (ffs): Define as inline function, like in lib/ffs.c.
3421 2020-08-03  Bruno Haible  <bruno@clisp.org>
3423         ffs: Optimize for MSVC.
3424         * lib/ffs.c: Include <intrin.h>.
3425         (ffs): With MSVC, use the _BitScanForward built-in.
3427 2020-08-03  Bruno Haible  <bruno@clisp.org>
3429         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
3430         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
3431         variable.
3433 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
3435         fopen: Avoid undesired interactions with glibc headers.
3436         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
3437         __need_FILE, as the latter does not work with glibc.
3439 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3441         fcntl: document some F_SETLK errno variations
3442         * doc/posix-functions/fcntl.texi (fcntl): Document
3443         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
3445 2020-08-02  Bruno Haible  <bruno@clisp.org>
3447         oset: Add an 'iterator_atleast' operation.
3448         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
3449         extracted from gl_array_search_atleast.
3450         (gl_array_search_atleast): Use it.
3451         (gl_array_iterator_atleast): New function.
3452         (gl_array_oset_implementation): Use it.
3453         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
3454         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
3455         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
3456         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
3457         member.
3458         (gl_oset_iterator_atleast): New function.
3459         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
3460         (gl_OSet::iterator): Add another auxiliary constructor.
3461         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
3462         New functions.
3463         (main): Test also gl_oset_iterator_atleast.
3464         * tests/test-avltree_oset.c (is_at_least): New function.
3465         (main): Test also gl_oset_iterator_atleast.
3466         * tests/test-rbtree_oset.c (is_at_least): New function.
3467         (main): Test also gl_oset_iterator_atleast.
3468         * tests/test-oset-c++.cc (is_at_most): New function.
3469         (main): Test also gl_OSet::begin_atleast.
3471 2020-08-02  Bruno Haible  <bruno@clisp.org>
3473         oset-c++, omap-c++: Remove restriction for search_atleast method.
3474         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
3475         a different type than the element.
3476         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
3477         a different type than the key.
3479 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3481         gnumakefile: say ‘$(MAKE)’ not ‘make’
3482         * top/GNUmakefile (abort-due-to-no-makefile):
3483         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
3484         This change is backported from Autoconf.
3486 2020-08-01  Bruno Haible  <bruno@clisp.org>
3488         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3489         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
3490         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3491         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3492         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3493         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
3495 2020-08-01  Bruno Haible  <bruno@clisp.org>
3497         libtextstyle-optional: Update tests.
3498         * modules/libtextstyle-optional-tests (configure.ac): Invoke
3499         gl_LIBTEXTSTYLE_OPTIONAL.
3501 2020-08-01  Bruno Haible  <bruno@clisp.org>
3503         parse-datetime: Fix wrong #line statements.
3504         * modules/parse-datetime (Makefile.am): Correct #line statements also in
3505         parse-datetime-gen.h.
3507 2020-08-01  Bruno Haible  <bruno@clisp.org>
3509         libtextstyle[-optional]: Allow requesting a minimum version.
3510         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
3511         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
3512         gl_LIBTEXTSTYLE_SEARCH): New macros.
3513         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
3514         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
3515         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
3516         * modules/libtextstyle-optional (configure.ac): Don't invoke
3517         gl_LIBTEXTSTYLE_OPTIONAL.
3518         * NEWS: Mention the changes.
3520 2020-07-31  Bruno Haible  <bruno@clisp.org>
3522         _GL_CMP: Improve documentation.
3523         Reported by Paul Eggert in
3524         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
3525         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
3526         passed.
3528 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3530         largefile: sync with Autoconf master
3531         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
3532         Avoid undefined behavior on platforms where off_t is 32 bits.
3533         See: https://bugs.debian.org/742780
3535         alloca: sync with Autoconf master
3536         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3537         Do not define if Autoconf 2.70 or later, since Autoconf master
3538         now matches us.
3540 2020-07-30  Bruno Haible  <bruno@clisp.org>
3542         unicodeio: Add comment.
3543         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
3544         different iconv behaviours.
3546 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3548         Work around some Oracle Studio attribute bugs
3549         These were discovered when building bleeding-edge Emacs with
3550         Oracle Studio.
3551         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
3552         Port to Oracle Studio 12.6, which mishandles __attribute__
3553         ((__cold__)) and __attribute__ ((__may_alias__)) even though
3554         __has_attribute says they work.
3556 2020-07-29  Bruno Haible  <bruno@clisp.org>
3558         unicodeio: Fix wrong result on musl libc.
3559         Reported by A. Wilcox <awilfox@adelielinux.org> in
3560         <https://www.openwall.com/lists/musl/2020/07/29/2>.
3561         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
3562         on musl libc.
3563         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
3564         * modules/unicodeio (Files): Add m4/musl.m4.
3566 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
3568         fsusage, regex, stat-size: remove Cray support
3569         As near as I can make out this is actually support for UNICOS/mp,
3570         last released 2005, and Cray hasn’t supported that for years.
3571         * config/srclist.txt: Comment out regex.h for now.
3572         * lib/fsusage.c (get_fs_usage):
3573         * lib/regex.h (re_comp, re_exec):
3574         * lib/stat-size.h (ST_NBLOCKSIZE):
3575         Don’t worry about _CRAY.
3577 2020-07-29  Bruno Haible  <bruno@clisp.org>
3579         parse-datetime: Fix compilation error with bison 3.7.
3580         * modules/parse-datetime (Makefile.am): Create a generated header file
3581         parse-datetime-gen.h in the source directory. Correct #include and
3582         #line statements during preprocessing.
3584 2020-07-28  Bruno Haible  <bruno@clisp.org>
3586         fopen-gnu: Create files correctly (regression from 2020-05-24).
3587         * lib/fopen.c (rpl_open): Pass a third argument to open().
3589 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3591         xalloc-die: don’t depend on xalloc
3592         This removes a circular dependency, as xalloc depends on xalloc-die.
3593         * modules/xalloc-die (Files): Add lib/xalloc.h.
3594         (Depends-on): Remove xalloc.
3595         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
3597         dfa-tests: port to MSVC
3598         Problem reported by Gisle Vanem in:
3599         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
3600         Also, remove an unnecessary dependency on getprogname.
3601         * modules/dfa-tests (Depends-on): Remove getprogname.
3602         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
3603         (exit_status): New static var.
3604         (dfawarn): Set it instead of exiting.
3605         Do not declare as _Noreturn, to pacify MSVC.
3606         (main): Return exit_status.
3608 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3610         argz: pacify MSVC
3611         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
3612         Problem reported by Gisle Vanem.
3614         libgmp: remove dependency on havelib
3615         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
3616         use the more-traditional AC_SEARCH_LIBS approach.
3617         This should work better with GNU Emacs configuration,
3618         which uses pkg-config instead of a havelib-style approach.
3619         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
3620         * modules/libgmp (Depends-on): Remove havelib.
3622         libgmp: remove HAVE_GMP, LIB_GMP
3623         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
3624         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
3626 2020-07-26  Bruno Haible  <bruno@clisp.org>
3628         inttypes: Remove support for AIX 4.
3629         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
3630         * m4/inttypes-pri.m4: Remove file.
3631         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
3632         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
3633         * modules/inttypes-incomplete (Makefile.am): Don't substitute
3634         PRI_MACROS_BROKEN.
3635         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
3637 2020-07-26  Bruno Haible  <bruno@clisp.org>
3639         gettimeofday: Remove workaround for Mac OS X 10.0.
3640         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
3641         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
3642         * lib/gettimeofday.c: Don't include localtime-buffer.h.
3643         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3644         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3645         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
3646         * modules/localtime-buffer: Remove file.
3647         * lib/localtime-buffer.h: Remove file.
3648         * lib/localtime-buffer.c: Remove file.
3649         * m4/localtime-buffer.m4: Remove file.
3650         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
3652 2020-07-26  Bruno Haible  <bruno@clisp.org>
3654         tzset: Remove workaround for Solaris 2.6.
3655         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
3656         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
3657         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
3658         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
3659         * lib/localtime-buffer.c: Likewise.
3660         * lib/localtime.c: Likewise.
3661         * lib/tzset.c: Don't include localtime-buffer.h.
3662         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
3663         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
3664         is 1.
3665         * modules/tzset (Depends-on): Remove localtime-buffer.
3667 2020-07-26  Bruno Haible  <bruno@clisp.org>
3669         expl: Simplify autoconf test.
3670         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
3671         with small values..." test into the "checking whether expl works..."
3672         test.
3674 2020-07-26  Bruno Haible  <bruno@clisp.org>
3676         alloca: Remove Cray-2 and Cray Y-MP support.
3677         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
3678         Enable also on Autoconf >= 2.69.
3679         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
3680         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
3681         i00afunc): Remove.
3683 2020-07-25  Bruno Haible  <bruno@clisp.org>
3685         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
3686         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
3688 2020-07-25  Bruno Haible  <bruno@clisp.org>
3690         sigprocmask: Small autoconf macro improvement.
3691         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
3692         user to override the value of gl_cv_func_sigprocmask.
3693         * m4/gnulib-common.m4 (gl_SILENT): New macro.
3695 2020-07-25  Bruno Haible  <bruno@clisp.org>
3697         Small autoconf macro improvements.
3698         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
3699         override the value of gl_cv_func_working_mktime.
3700         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
3701         compiler produces multi-arch binaries..." in the configure output.
3702         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
3703         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
3705 2020-07-25  Bruno Haible  <bruno@clisp.org>
3707         doc: Update for NetBSD 7.1, 8.0, 9.0.
3708         * doc/*/*.texi: Update.
3709         * m4/exp2l.m4: Update comments.
3710         * m4/expl.m4: Likewise.
3711         * m4/ilogb.m4: Likewise.
3712         * m4/ilogbf.m4: Likewise.
3713         * m4/log10l.m4: Likewise.
3714         * m4/logl.m4: Likewise.
3715         * m4/printf.m4: Likewise.
3716         * m4/rintl.m4: Likewise.
3717         * m4/wcwidth.m4: Likewise.
3719 2020-07-24  Bruno Haible  <bruno@clisp.org>
3721         doc: Update for Mac OS X 10.13.
3722         * doc/*/*.texi: Update.
3723         * m4/expm1l.m4: Update comments.
3724         * m4/getgroups.m4: Likewise.
3725         * m4/getlogin_r.m4: Likewise.
3726         * m4/linkat.m4: Likewise.
3727         * m4/printf.m4: Likewise.
3729 2020-07-24  Bruno Haible  <bruno@clisp.org>
3731         doc: Update for Cygwin 2.9.0.
3732         * doc/*/*.texi: Update.
3734 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3736         parse-datetime: modernize doc
3737         * doc/parse-datetime.texi: Use more-current examples.
3738         Don’t lead with 32-bit time_t, as it’s on its way out.
3739         Capitalize “Epoch” to be consistent with POSIX.
3741         timespec: remove dependence on ‘verify’
3742         * lib/timespec.h: Do not include verify.h; no longer needed.
3743         * modules/timespec (Depends-on): Remove ‘verify’.
3745         Optimize a few more three-valued comparisons
3746         * lib/timespec.h (timespec_cmp, timespec_sign):
3747         * lib/utimecmp.c (utimecmpat):
3748         Avoid conditional branches by using _GL_CMP.
3750         Fix _GL_CMP parenthesization typo
3751         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
3753 2020-07-24  Bruno Haible  <bruno@clisp.org>
3755         dfa: Revert breaking gawk.
3756         Reported by Arnold Robbins <arnold@skeeve.com>.
3757         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
3759 2020-07-23  Bruno Haible  <bruno@clisp.org>
3761         Optimize three-valued comparison between integers.
3762         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
3763         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
3764         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
3765         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
3766         * lib/dfa.c (compare): Likewise.
3767         * lib/fts.c (fts_compare_ino): Likewise.
3768         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
3769         * lib/mbscasecmp.c (mbscasecmp): Likewise.
3770         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
3771         * lib/memcasecmp.c (memcasecmp): Likewise.
3772         * lib/memcmp2.c (memcmp2): Likewise.
3773         * lib/savedir.c (direntry_cmp_inode): Likewise.
3774         * lib/strcasecmp.c (strcasecmp): Likewise.
3775         * lib/strncasecmp.c (strncasecmp): Likewise.
3776         * lib/unistr/u-cmp2.h (FUNC): Likewise.
3778 2020-07-23  Bruno Haible  <bruno@clisp.org>
3780         lchmod: Use /proc on Cygwin.
3781         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
3783 2020-07-23  Ken Brown  <kbrown@cornell.edu>
3785         fchmodat: Use /proc on Cygwin
3786         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
3788 2020-07-21  Bruno Haible  <bruno@clisp.org>
3790         aligned-malloc: Optionally use aligned_alloc.
3791         * lib/aligned-malloc.h: Verify the alignment.
3792         (aligned_malloc): Use aligned_alloc as an alternative.
3793         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
3794         * doc/posix-functions/aligned_alloc.texi: Mention the modules
3795         'aligned-malloc' and 'pagealign_alloc'.
3797 2020-07-21  Bruno Haible  <bruno@clisp.org>
3799         aligned-malloc: Add tests.
3800         * tests/test-aligned-malloc.c: New file.
3801         * modules/aligned-malloc-tests: New file.
3803         aligned-malloc: New module.
3804         * lib/aligned-malloc.h: New file.
3805         * m4/malloc-align.m4: New file.
3806         * modules/aligned-malloc: New file.
3807         * doc/posix-functions/posix_memalign.texi: Mention the new module.
3808         * doc/glibc-functions/memalign.texi: Likewise.
3810 2020-07-21  Bruno Haible  <bruno@clisp.org>
3812         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
3813         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
3814         sure PRIPTR_PREFIX is defined to "ll", not "l".
3816 2020-07-21  Bruno Haible  <bruno@clisp.org>
3818         printf-posix: Make an autoconf test more future-proof.
3819         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
3820         using uintptr_t.
3822 2020-07-20  Bruno Haible  <bruno@clisp.org>
3824         list, oset, omap: Relicense some of the container modules under LGPLv2+.
3825         * modules/list (License): Change to LGPLv2+.
3826         * modules/array-list (License): Likewise.
3827         * modules/carray-list (License): Likewise.
3828         * modules/linked-list (License): Likewise.
3829         * modules/avltree-list (License): Likewise.
3830         * modules/rbtree-list (License): Likewise.
3831         * modules/oset (License): Likewise.
3832         * modules/array-oset (License): Likewise.
3833         * modules/avltree-oset (License): Likewise.
3834         * modules/rbtree-oset (License): Likewise.
3835         * modules/omap (License): Likewise.
3836         * modules/array-omap (License): Likewise.
3837         * modules/avltree-omap (License): Likewise.
3838         * modules/rbtree-omap (License): Likewise.
3840 2020-07-20  Bruno Haible  <bruno@clisp.org>
3842         oset: Add an 'update' operation.
3843         * lib/gl_array_oset.c (gl_array_update): New function.
3844         (gl_array_oset_implementation): Use it.
3845         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
3846         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
3847         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
3848         extracted from gl_tree_nx_add_before.
3849         (gl_tree_nx_add_before): Invoke it.
3850         (gl_tree_add_node_after): New function, extracted from
3851         gl_tree_nx_add_after.
3852         (gl_tree_nx_add_after): Invoke it.
3853         (gl_tree_remove_node_no_free): New function, extracted from
3854         gl_tree_remove_node.
3855         (gl_tree_remove_node): Invoke it.
3856         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
3857         extracted from gl_tree_nx_add_before.
3858         (gl_tree_nx_add_before): Invoke it.
3859         (gl_tree_add_node_after): New function, extracted from
3860         gl_tree_nx_add_after.
3861         (gl_tree_nx_add_after): Invoke it.
3862         (gl_tree_remove_node_no_free): New function, extracted from
3863         gl_tree_remove_node.
3864         (gl_tree_remove_node): Invoke it.
3865         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
3866         from gl_tree_iterator_next.
3867         (gl_tree_iterator_next): Invoke it.
3868         (gl_tree_prev_node, gl_tree_update): New functions.
3869         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
3870         (gl_avltree_oset_implementation): Use gl_tree_update.
3871         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
3872         (gl_rbtree_oset_implementation): Use gl_tree_update.
3873         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
3874         (gl_oset_update): New function.
3875         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
3876         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
3877         * modules/rbtree-oset (configure.ac): Likewise.
3878         * tests/test-oset-update.h: New file.
3879         * tests/test-array_oset.c: Include test-oset-update.h.
3880         (main): Invoke test_update.
3881         * tests/test-avltree_oset.c: Likewise.
3882         * tests/test-rbtree_oset.c: Likewise.
3883         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
3884         * modules/avltree-oset-tests (Files): Likewise.
3885         * modules/rbtree-oset-tests (Files): Likewise.
3886         * tests/test-oset-c++.cc (action): New function.
3887         (main): Test the 'update' member function.
3889 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3891         md5, sha1, sha256, sha512: pacify Autoconf 2.70
3892         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
3893         shell if, so that the argument to AC_CHECK_HEADERS is
3894         a simple string that does not require shell evaluation.
3895         This fixes a warning generated by Autoconf 2.69b.
3897 2020-07-12  Bruno Haible  <bruno@clisp.org>
3899         libgmp: Avoid warning when --without-libgmp is used.
3900         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
3901         GCC >= 8, not for GCC >= 4.6.
3903 2020-07-12  Bruno Haible  <bruno@clisp.org>
3905         libgmp: Link to the correct shared library.
3906         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
3907         * modules/libgmp (Depends-on): Add havelib.
3908         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
3909         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
3911 2020-07-12  Bruno Haible  <bruno@clisp.org>
3913         libgmp tests: Add some safety checks.
3914         * modules/libgmp-tests (Depends-on): Add verify.
3915         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
3916         (main): Verify that gmp.h and libgmp versions match.
3918 2020-07-10  Bruno Haible  <bruno@clisp.org>
3920         unicodeio: Fix wrong result on NetBSD.
3921         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
3922         characters also on NetBSD.
3924 2020-07-09  Bruno Haible  <bruno@clisp.org>
3926         unicodeio: Fix wrong result on Solaris 11.
3927         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
3928         via Akim Demaille <akim.demaille@gmail.com> in
3929         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
3930         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
3931         characters on Solaris.
3932         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
3933         UTF-8 output or the specified fallback.
3935 2020-07-08  Bruno Haible  <bruno@clisp.org>
3937         unicodeio: Add tests.
3938         * tests/test-unicodeio.c: New file.
3939         * tests/test-unicodeio1.sh: New file.
3940         * tests/test-unicodeio2.sh: New file.
3941         * tests/test-unicodeio3.sh: New file.
3942         * modules/unicodeio-tests: New file.
3944 2020-07-08  Bruno Haible  <bruno@clisp.org>
3946         unicodeio: Document link requirements.
3947         * modules/unicodeio (Link): New section.
3949 2020-07-07  Bruno Haible  <bruno@clisp.org>
3951         doc: Remove support for some very old platforms.
3952         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
3953         * doc/posix-functions/memcpy.texi: Likewise.
3954         * doc/posix-functions/memmove.texi: Likewise.
3955         * doc/posix-functions/memset.texi: Likewise.
3956         * doc/posix-functions/getcwd.texi: Likewise.
3958         memchr: Remove support for some very old platforms.
3959         * m4/memchr-obsolete.m4: Remove file.
3960         * modules/memchr-obsolete: Remove file.
3961         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
3962         absent. Don't define HAVE_MEMCHR.
3963         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
3964         * modules/memchr (Depends-on): Remove memchr-obsolete.
3965         (configure.ac): Assume HAVE_MEMCHR is 1.
3966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3967         HAVE_MEMCHR.
3968         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
3969         * doc/posix-functions/memchr.texi: Don't mention module
3970         'memchr-obsolete'.
3971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
3972         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
3973         * modules/strnlen (Depends-on): Remove memchr-obsolete.
3975         dup2: Remove support for some very old platforms.
3976         * m4/dup2-obsolete.m4: Remove file.
3977         * modules/dup2-obsolete: Remove file.
3978         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
3979         Don't define HAVE_DUP2.
3980         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
3981         * lib/dup2.c: Likewise.
3982         * modules/dup2 (Depends-on, configure.ac): Likewise.
3983         (Depends-on): Remove dup2-obsolete.
3984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
3985         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
3986         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
3988 2020-07-07  Bruno Haible  <bruno@clisp.org>
3990         canonicalize: Trim module dependencies.
3991         * lib/hash-triple.h: Group declarations.
3992         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
3993         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
3994         (STREQ): Remove macro.
3995         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
3996         * modules/hash-triple-simple: New file, based on modules/hash-triple.
3997         * modules/hash-triple (Files): Remove lib/hash-triple.h.
3998         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
3999         * modules/canonicalize (Depends-on): Remove hash-triple. Add
4000         hash-triple-simple.
4001         * modules/file-set (Depends-on): Likewise.
4003 2020-07-07  Bruno Haible  <bruno@clisp.org>
4005         Clarify dependencies to double-slash-root.
4006         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
4007         (Depends-on): Add double-slash-root.
4008         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
4009         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
4011 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4013         libgmp: new module
4014         The idea is to let programs simply include <gmp.h>, and
4015         so long as they live within the mini-gmp subset they need
4016         not worry about whether the GMP libraries are installed.
4017         * MODULES.html.sh: Mention it.
4018         * config/srclist.txt: Mention files copied from GMP source.
4019         * config/srclistvars.sh (GMP): New var.
4020         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
4021         * modules/libgmp-tests, tests/test-libgmp.c: New files.
4022         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
4024 2020-07-05  Bruno Haible  <bruno@clisp.org>
4026         mkancesdirs: Trim module dependencies.
4027         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
4028         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
4030 2020-07-05  Bruno Haible  <bruno@clisp.org>
4032         getprogname: Trim module dependencies.
4033         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
4034         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
4035         basename-lgpl.
4037 2020-07-05  Bruno Haible  <bruno@clisp.org>
4039         filenamecat-lgpl: Trim module dependencies.
4040         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
4041         dirname.h.
4042         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
4043         basename-lgpl, filename.
4045 2020-07-05  Bruno Haible  <bruno@clisp.org>
4047         backupfile, backup-rename: Trim module dependencies.
4048         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
4049         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
4050         basename-lgpl.
4051         * modules/backup-rename (Depends-on): Likewise.
4053 2020-07-05  Bruno Haible  <bruno@clisp.org>
4055         argp: Trim module dependencies.
4056         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
4057         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
4059 2020-07-05  Bruno Haible  <bruno@clisp.org>
4061         basename-lgpl: New module.
4062         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
4063         lib/basename-lgpl.c.
4064         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
4065         <stdbool.h>, filename.h.
4066         (last_component): Rename a local variable.
4067         * lib/dirname.h: Include basename-lgpl.h.
4068         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
4069         (last_component, base_len): Remove declarations.
4070         * modules/basename-lgpl: New file.
4071         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
4072         (Depends-on): Add basename-lgpl. Remove double-slash-root.
4073         (Makefile.am): Don't compile basename-lgpl.c.
4074         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
4075         not 'dirname'.
4077 2020-07-05  Bruno Haible  <bruno@clisp.org>
4079         dirname, dirname-lgpl: Simplify.
4080         * m4/dirname.m4: Remove file.
4081         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
4082         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
4083         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
4085 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
4087         tests: avoid shadowing warning
4088         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
4090 2020-07-05  Bruno Haible  <bruno@clisp.org>
4092         supersede: Add tests.
4093         * tests/test-supersede.c: New file.
4094         * tests/test-supersede-open.h: New file.
4095         * tests/test-supersede-fopen.h: New file.
4096         * modules/supersede-tests: New file.
4098         supersede: New module.
4099         * lib/supersede.h: New file.
4100         * lib/supersede.c: New file.
4101         * m4/supersede.m4: New file.
4102         * modules/supersede: New file.
4104 2020-07-05  Bruno Haible  <bruno@clisp.org>
4106         Add some copyright headers.
4107         * lib/dev-ino.h: Add copyright header.
4108         * lib/di-set.h: Likewise.
4109         * lib/fchown-stub.c: Likewise.
4110         * lib/file-set.h: Likewise.
4111         * lib/hash-triple.h: Likewise.
4112         * lib/idcache.h: Likewise.
4113         * lib/ino-map.h: Likewise.
4114         * lib/mkancesdirs.h: Likewise.
4115         * lib/scratch_buffer.h: Likewise.
4116         * lib/se-context.in.h: Likewise.
4117         * lib/stdopen.h: Likewise.
4118         * lib/userspec.h: Likewise.
4120 2020-07-04  Bruno Haible  <bruno@clisp.org>
4122         getrandom: Relicense under LGPLv2+.
4123         Paul Eggert's approval is in
4124         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
4125         * modules/getrandom (License): Change to LGPLv2+.
4127 2020-07-04  Bruno Haible  <bruno@clisp.org>
4129         getumask: Add tests.
4130         * tests/test-getumask.c: New file.
4131         * modules/getumask-tests: New file.
4133         getumask: New module.
4134         * lib/sys_stat.in.h (getumask): New declaration.
4135         * lib/getumask.c: New file.
4136         * m4/getumask.m4: New file.
4137         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
4138         declared.
4139         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
4140         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
4141         HAVE_GETUMASK.
4142         * modules/getumask: New file.
4143         * tests/test-sys_stat-c++.cc (getumask): Check signature.
4144         * doc/glibc-functions/getumask.texi: New file.
4145         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
4147 2020-07-04  Bruno Haible  <bruno@clisp.org>
4149         clean-temp: Add support for temporary files with given mode.
4150         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
4151         * lib/clean-temp.c (struct try_create_file_params): New type.
4152         (try_create_file): New function.
4153         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
4154         gen_tempname.
4156 2020-07-04  Bruno Haible  <bruno@clisp.org>
4158         clean-temp: Document limitations.
4159         * lib/clean-temp.h: Document limitations.
4161 2020-07-04  Bruno Haible  <bruno@clisp.org>
4163         clean-temp: Add support for temporary files with unpredictable names.
4164         * lib/clean-temp.h (gen_register_open_temp): New declaration.
4165         * lib/clean-temp.c: Include tempname.h.
4166         (gen_register_open_temp): New function.
4167         * modules/tempname (configure.ac): Define a module indicator.
4169 2020-07-04  Bruno Haible  <bruno@clisp.org>
4171         clean-temp: Add support for temporary files anywhere in the file system.
4172         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
4173         cleanup_temporary_file): New declarations.
4174         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
4175         variables.
4176         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
4177         (dir_cleanup_list): Renamed from cleanup_list.
4178         (cleanup_action): Process the file_cleanup_list as well.
4179         (do_init_clean_temp): New function.
4180         (clean_temp_once): New variable.
4181         (init_clean_temp): New function.
4182         (create_temp_dir): Invoke it.
4183         (register_temporary_file, unregister_temporary_file,
4184         cleanup_temporary_file): New functions.
4185         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
4186         argument.
4188 2020-07-04  Bruno Haible  <bruno@clisp.org>
4190         clean-temp: Improve comments.
4191         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4192         fwriteerror_temp, close_stream_temp): Clarify intended use.
4193         * lib/clean-temp.c: Likewise.
4195 2020-07-04  Bruno Haible  <bruno@clisp.org>
4197         clean-temp: Make multithread-safe, part 2.
4198         * lib/fatal-signal.h: Include <signal.h>.
4199         (get_fatal_signal_set): New declaration.
4200         * lib/fatal-signal.c (get_fatal_signal_set): New function.
4201         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
4202         (struct closeable_fd): New type.
4203         (fatal_signal_set): New variable.
4204         (init_fatal_signal_set): New function.
4205         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
4206         (cleanup_action): Invoke asyncsafe_close instead of close.
4207         (create_temp_dir): Invoke init_fatal_signal_set.
4208         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
4209         element.
4210         (unregister_fd): Remove function.
4211         (close_temp): Cleanup descriptors list on the fly. Invoke
4212         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
4213         (fclose_variant_temp): New function.
4214         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
4215         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
4217 2020-07-04  Bruno Haible  <bruno@clisp.org>
4219         clean-temp: Make multithread-safe, part 1.
4220         * lib/clean-temp.c: Include glthread/lock.h.
4221         (cleanup_list_lock): New variable.
4222         (register_temp_file, unregister_temp_file, register_temp_subdir,
4223         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
4224         (create_temp_dir): Likewise. Don't free the old array.
4225         (descriptors_lock): New variable.
4226         (register_fd, unregister_fd): Use it.
4227         * modules/clean-temp (Depends-on): Add lock.
4229 2020-07-04  Bruno Haible  <bruno@clisp.org>
4231         fatal-signal: Make multithread-safe.
4232         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4233         (do_init_fatal_signal_set): New function, extracted from
4234         init_fatal_signal_set.
4235         (fatal_signal_set_once): New variable.
4236         (init_fatal_signal_set): Use gl_once.
4238 2020-07-03  Bruno Haible  <bruno@clisp.org>
4240         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
4241         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
4242         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
4243         <bcrypt.h>.
4245 2020-07-03  Bruno Haible  <bruno@clisp.org>
4247         dfa tests: Follow common file naming conventions.
4248         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
4249         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
4250         * tests/test-dfa-invalid-char-class.sh: Renamed from
4251         tests/dfa-invalid-char-class.sh. Update.
4252         * modules/dfa-tests (Files, Makefile.am): Update.
4254 2020-07-03  Bruno Haible  <bruno@clisp.org>
4256         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
4257         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
4258         the GCC extended asm syntax also for the Sun Studio 12 compilers.
4260 2020-07-03  Bruno Haible  <bruno@clisp.org>
4262         asyncsafe-spin: Reduce code duplication.
4263         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
4264         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
4265         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
4267 2020-07-03  Bruno Haible  <bruno@clisp.org>
4269         lchmod: Simplify after 2020-02-22 change.
4270         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
4272 2020-07-03  Bruno Haible  <bruno@clisp.org>
4274         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
4275         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
4277 2020-07-03  Bruno Haible  <bruno@clisp.org>
4279         dfa: Make sure the compiler does not barf on 'inline'.
4280         * modules/dfa (configure.ac): Require AC_C_INLINE.
4282 2020-07-03  Bruno Haible  <bruno@clisp.org>
4284         bitset: Make sure the compiler does not barf on 'inline'.
4285         * modules/bitset (configure.ac): New section.
4287 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4289         manywarnings: improve port to GCC 10.1
4290         * build-aux/gcc-warning.spec: Also list warnings that are default
4291         or are enabled by already-given flags.  This lets us speed up
4292         checking for attributes, and makes the generated compilation
4293         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
4294         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
4295         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
4296         to shell variables that may have long values.
4297         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
4298         consequences of other flags, to speed up checking and
4299         shorten commands.
4301         tests: pacify gcc -fanalyzer on zerosize_ptr
4302         * tests/test-memcasecmp.c (main):
4303         * tests/test-memchr.c (main):
4304         * tests/test-memchr2.c (main):
4305         * tests/test-memcmp.c (main):
4306         * tests/test-memmem.c (main):
4307         * tests/test-memrchr.c (main):
4308         * tests/unistr/test-chr.h (main):
4309         * tests/unistr/test-cmp.h (test_cmp):
4310         Check whether zerosize_ptr returns NULL before using it.
4311         This pacifies GCC 10.1’s new fanalyzer option, and matches
4312         other uses of zerosize_ptr.
4314 2020-07-01  Bruno Haible  <bruno@clisp.org>
4316         asyncsafe-spin: Add tests.
4317         * tests/test-asyncsafe-spin1.c: New file.
4318         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
4319         tests/test-pthread-spin.c.
4320         * modules/asyncsafe-spin-tests: New file.
4322 2020-07-01  Bruno Haible  <bruno@clisp.org>
4324         asyncsafe-spin: New module.
4325         * lib/asyncsafe-spin.h: New file.
4326         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
4327         * modules/asyncsafe-spin: New file.
4329 2020-07-01  Bruno Haible  <bruno@clisp.org>
4331         windows-spin: Fix race condition on multiprocessor systems.
4332         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
4334 2020-07-01  Bruno Haible  <bruno@clisp.org>
4336         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
4337         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4338         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
4339         an implementation based on other GCC built-ins.
4341 2020-07-01  Bruno Haible  <bruno@clisp.org>
4343         pthread-spin: Optimize fallback for GCC versions >= 4.7.
4344         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4345         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
4346         lock byte.
4348 2020-07-01  Bruno Haible  <bruno@clisp.org>
4350         pthread-spin: Add error checking.
4351         * lib/pthread-spin.c: Include <stdbool.h>.
4352         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
4353         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
4354         the unlocks.
4355         * modules/pthread-spin (Depends-on): Add stdbool.
4357 2020-07-01  Bruno Haible  <bruno@clisp.org>
4359         pthread-spin: Add tests.
4360         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
4361         * modules/pthread-spin-tests: New file.
4363 2020-07-01  Bruno Haible  <bruno@clisp.org>
4365         tests: Reduce code duplication.
4366         * tests/atomic-int-posix.h: New file, extracted from
4367         tests/test-pthread-mutex.c.
4368         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
4369         * tests/test-pthread-rwlock.c: Likewise.
4370         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
4371         * modules/pthread-rwlock-tests (Files): Likewise.
4373 2020-07-01  Bruno Haible  <bruno@clisp.org>
4375         tests: Refactor.
4376         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
4377         * tests/test-mtx.c: Include it. Remove the corresponding code.
4378         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
4380 2020-07-01  Bruno Haible  <bruno@clisp.org>
4382         tests: Refactor.
4383         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
4384         * tests/test-lock.c: Include it. Remove the corresponding code.
4385         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
4387 2020-06-29  Bruno Haible  <bruno@clisp.org>
4389         sys_socket: Don't define socklen_t if it is already defined on mingw.
4390         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
4391         <https://savannah.gnu.org/bugs/?57725>,
4392         by Rahul Das <bokul_4u@yahoo.com> in
4393         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
4394         and by Eli Zaretskii <eliz@gnu.org> in
4395         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
4396         * lib/sys_socket.in.h (socklen_t): Remove definition.
4398 2020-06-29  Bruno Haible  <bruno@clisp.org>
4400         alloca-opt: Fix warning on mingw.
4401         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
4402         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
4403         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
4404         whether alloca is defined.
4406 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
4408         getrandom: do not depend on ‘open’ on mingw
4409         Similarly for at-internal, getloadavg.  These modules do not call
4410         the ‘open’ function when they are compiled on mingw.  On mingw,
4411         this avoids having to compile open.c when building Emacs, which
4412         does its own thing with ‘open’.
4413         * modules/at-internal, modules/getloadavg, modules/getrandom:
4414         (Depends-on): Don’t depend on ‘open’ on mingw.
4415         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
4416         * modules/getloadavg (Depends-on):
4417         Depend on intprops, open, stdbool, stdlib only if compiling
4418         getloadavg.c.
4420 2020-06-28  Bruno Haible  <bruno@clisp.org>
4422         doc: Add a note about sigprocmask vs. pthread_sigmask.
4423         * doc/posix-functions/sigprocmask.texi: Add note.
4425 2020-06-28  Bruno Haible  <bruno@clisp.org>
4427         getrandom: Fix compilation errors on older versions of mingw.
4428         Reported by Eli Zaretskii <eliz@gnu.org> in
4429         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
4430         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
4431         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
4432         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
4433         BCryptGenRandom ourselves.
4435 2020-06-28  Bruno Haible  <bruno@clisp.org>
4437         clean-temp: Fix wrong errno in error message.
4438         * lib/clean-temp.c (create_temp_dir): Save errno around
4439         unblock_fatal_signals call.
4441 2020-06-27  Bruno Haible  <bruno@clisp.org>
4443         fatal-signal: Make multithread-safe.
4444         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
4446 2020-06-27  Bruno Haible  <bruno@clisp.org>
4448         clean-temp: Don't force deletion of temporary files on native Windows.
4449         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
4450         argument.
4451         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
4452         * NEWS: Mention the change.
4453         * lib/javacomp.c (write_temp_file): Update.
4455 2020-06-27  Bruno Haible  <bruno@clisp.org>
4457         fatal-signal: Make multithread-safe.
4458         * lib/fatal-signal.c: Include glthread/lock.h.
4459         (at_fatal_signal_lock): New variable.
4460         (at_fatal_signal): Use it.
4461         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
4462         (block_fatal_signals, unblock_fatal_signals): Use them.
4463         * modules/fatal-signal (Depends-on): Add lock.
4465 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
4467         getloadavg: don’t depend on fopen-gnu
4468         This is for Emacs, which does not need fopen-gnu for anything else,
4469         and which would need it only on a NetBSD platform where getloadavg
4470         does not work (does that even happen?).
4471         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
4472         * modules/getloadavg (Depends-on): Remove fopen-gnu.
4474         * tests/test-getloadavg.c (main): Fix typo.
4476 2020-06-27  Bruno Haible  <bruno@clisp.org>
4478         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
4479         * modules/tempname (Link): New section.
4480         * modules/mkdtemp (Link): Likewise.
4481         * modules/clean-temp (Link): Likewise.
4482         * modules/mkstemp (Link): Likewise.
4483         * modules/stdlib-safer (Link): Likewise.
4484         * modules/mkstemps (Link): Likewise.
4485         * modules/mkostemp (Link): Likewise.
4486         * modules/mkostemps (Link): Likewise.
4487         * modules/tmpfile (Link): Likewise.
4488         * modules/tmpfile-safer (Link): Likewise.
4489         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
4490         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
4491         $(LIB_GETRANDOM).
4492         * NEWS: Mention the changes.
4494 2020-06-27  Bruno Haible  <bruno@clisp.org>
4496         fopen-gnu: Simplify code.
4497         * lib/fopen.c: Include <stdbool.h>.
4498         (rpl_fopen): Use a single variable open_flags instead of
4499         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
4500         * modules/fopen (Depends-on): Add stdbool.
4502 2020-06-26  Bruno Haible  <bruno@clisp.org>
4504         canonicalize: Improve documentation.
4505         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
4506         return convention.
4508 2020-06-26  Bruno Haible  <bruno@clisp.org>
4510         xgetcwd: Improve documentation.
4511         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
4513 2020-06-26  Bruno Haible  <bruno@clisp.org>
4515         getcwd: Improve documentation.
4516         * lib/getcwd.c (__getcwd): Document the failure return convention.
4518 2020-06-26  Bruno Haible  <bruno@clisp.org>
4520         fchdir: Improve documentation.
4521         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
4522         convention.
4524 2020-06-26  Bruno Haible  <bruno@clisp.org>
4526         filenamecat-lgpl: Set errno upon failure.
4527         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
4528         return convention.
4529         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
4531 2020-06-26  Bruno Haible  <bruno@clisp.org>
4533         areadlink-with-size: Set errno upon failure.
4534         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
4535         fails.
4536         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
4538 2020-06-26  Bruno Haible  <bruno@clisp.org>
4540         copy-file: Shrink dependencies.
4541         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
4542         qcopy-acl.
4544 2020-06-26  Bruno Haible  <bruno@clisp.org>
4546         doc: Mention declaration fixes implemented by some modules.
4547         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
4548         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
4549         declaration appear in <unistd.h>.
4550         * doc/posix-functions/dup.texi: Likewise.
4551         * doc/posix-functions/dup2.texi: Likewise.
4552         * doc/posix-functions/gethostname.texi: Likewise.
4553         * doc/posix-functions/isatty.texi: Likewise.
4554         * doc/posix-functions/lseek.texi: Likewise.
4555         * doc/posix-functions/unlink.texi: Likewise.
4556         * doc/posix-functions/read.texi: Mention the module 'read'.
4557         * doc/posix-functions/write.texi: Mention the effects of the module
4558         'write'.
4560 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
4562         c-dtoastr, c-ldtoastr: new modules
4563         These modules provide the same functionality as the modules
4564         dtoastr and ldtoastr except for the formatting taking place in the
4565         C locale.
4566         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
4567         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
4568         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
4569         defined.  Use c_snprintf and c_strtod/c_strtold instead of
4570         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
4571         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
4572         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
4573         modules/c-ldtoastr-tests: New files.
4574         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
4575         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
4577 2020-06-21  Bruno Haible  <bruno@clisp.org>
4579         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
4580         * lib/tzset.c: Include <stdlib.h>, <string.h>.
4582 2020-06-16  Bruno Haible  <bruno@clisp.org>
4584         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
4585         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
4587 2020-06-16  Bruno Haible  <bruno@clisp.org>
4589         thread, thrd: Avoid a compiler warning.
4590         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
4592 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
4594         windows-thread: Avoid a compiler warning.
4595         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
4596         void.
4597         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
4599 2020-06-15  Bruno Haible  <bruno@clisp.org>
4601         unictype/joininggroup-name: Fix warning on 64-bit mingw.
4602         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
4603         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
4604         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
4605         first.
4607 2020-06-06  Bruno Haible  <bruno@clisp.org>
4609         calloc-gnu tests: Avoid a test failure with clang.
4610         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
4611         'volatile', to defeat compiler optimizations.
4613 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4615         getloadavg: fix double-increment bug
4616         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
4617         Linux without glibc, Android, Cygwin.  This fixes a bug I
4618         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
4619         Problem and fix reported by Semen Verchenko in:
4620         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
4622         tempname: use getrandom, not getentropy
4623         This removes a dependency, as getentropy depends on getrandom.
4624         * lib/tempname.c: Include sys/random.h instead of unistd.h.
4625         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
4626         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
4628 2020-06-01  Bruno Haible  <bruno@clisp.org>
4630         doc: New chapter 'Multithreading'.
4631         * doc/multithread.texi: New file.
4632         * doc/gnulib.texi: Include it.
4634 2020-06-01  Bruno Haible  <bruno@clisp.org>
4636         doc: Move 'Running self-tests under valgrind' section.
4637         * doc/gnulib.texi (Build Infrastructure Modules): Include
4638         valgrind-tests.texi here...
4639         (Miscellaneous Notes): ... not here.
4641 2020-06-01  Bruno Haible  <bruno@clisp.org>
4643         doc: Move 'Visual Studio Compatibility' section.
4644         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
4645         here...
4646         (Build Infrastructure Modules): ... not here.
4648 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4650         doc: improve randomness discussion
4651         Inspired by comments from Jeffrey Walton in:
4652         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
4653         * doc/glibc-functions/getentropy.texi (getentropy):
4654         * doc/glibc-functions/getrandom.texi (getrandom):
4655         Improve discussion of problems with "random" data,
4656         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
4658 2020-06-01  Bruno Haible  <bruno@clisp.org>
4660         doc: Fix Texinfo syntax error.
4661         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
4663 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
4665         doc: Change '.' to '@.' where appropriate.
4666         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
4667         * doc/glibc-functions/fstatfs.texi: Likewise.
4668         * doc/glibc-functions/fts_children.texi: Likewise.
4669         * doc/glibc-functions/fts_read.texi: Likewise.
4670         * doc/glibc-functions/getdirentries.texi: Likewise.
4671         * doc/glibc-functions/mkostemp.texi: Likewise.
4672         * doc/glibc-functions/mkostemps.texi: Likewise.
4673         * doc/glibc-functions/mkstemps.texi: Likewise.
4674         * doc/glibc-functions/preadv.texi: Likewise.
4675         * doc/glibc-functions/pwritev.texi: Likewise.
4676         * doc/glibc-functions/sendfile.texi: Likewise.
4677         * doc/glibc-functions/statfs.texi: Likewise.
4678         * doc/gnulib-intro.texi: Likewise.
4679         * doc/gnulib-tool.texi: Likewise.
4680         * doc/intprops.texi: Likewise.
4681         * doc/lib-symbol-visibility.texi: Likewise.
4682         * doc/licenses-texi.texi: Likewise.
4683         * doc/pastposix-functions/bcmp.texi: Likewise.
4684         * doc/pastposix-functions/bcopy.texi: Likewise.
4685         * doc/pastposix-functions/bzero.texi: Likewise.
4686         * doc/pastposix-functions/ecvt.texi: Likewise.
4687         * doc/pastposix-functions/fcvt.texi: Likewise.
4688         * doc/pastposix-functions/ftime.texi: Likewise.
4689         * doc/pastposix-functions/gcvt.texi: Likewise.
4690         * doc/pastposix-functions/getwd.texi: Likewise.
4691         * doc/pastposix-functions/index.texi: Likewise.
4692         * doc/pastposix-functions/mktemp.texi: Likewise.
4693         * doc/pastposix-functions/rindex.texi: Likewise.
4694         * doc/pastposix-functions/wcswcs.texi: Likewise.
4695         * doc/posix-functions/aio_cancel.texi: Likewise.
4696         * doc/posix-functions/aio_error.texi: Likewise.
4697         * doc/posix-functions/aio_fsync.texi: Likewise.
4698         * doc/posix-functions/aio_read.texi: Likewise.
4699         * doc/posix-functions/aio_return.texi: Likewise.
4700         * doc/posix-functions/aio_suspend.texi: Likewise.
4701         * doc/posix-functions/aio_write.texi: Likewise.
4702         * doc/posix-functions/creat.texi: Likewise.
4703         * doc/posix-functions/ctime.texi: Likewise.
4704         * doc/posix-functions/daylight.texi: Likewise.
4705         * doc/posix-functions/fgetpos.texi: Likewise.
4706         * doc/posix-functions/fopen.texi: Likewise.
4707         * doc/posix-functions/freopen.texi: Likewise.
4708         * doc/posix-functions/fseeko.texi: Likewise.
4709         * doc/posix-functions/fsetpos.texi: Likewise.
4710         * doc/posix-functions/fstatat.texi: Likewise.
4711         * doc/posix-functions/fstatvfs.texi: Likewise.
4712         * doc/posix-functions/ftello.texi: Likewise.
4713         * doc/posix-functions/ftruncate.texi: Likewise.
4714         * doc/posix-functions/getrlimit.texi: Likewise.
4715         * doc/posix-functions/lio_listio.texi: Likewise.
4716         * doc/posix-functions/localtime.texi: Likewise.
4717         * doc/posix-functions/lseek.texi: Likewise.
4718         * doc/posix-functions/mkstemp.texi: Likewise.
4719         * doc/posix-functions/mktime.texi: Likewise.
4720         * doc/posix-functions/open.texi: Likewise.
4721         * doc/posix-functions/openat.texi: Likewise.
4722         * doc/posix-functions/opendir.texi: Likewise.
4723         * doc/posix-functions/pread.texi: Likewise.
4724         * doc/posix-functions/pwrite.texi: Likewise.
4725         * doc/posix-functions/readdir.texi: Likewise.
4726         * doc/posix-functions/readdir_r.texi: Likewise.
4727         * doc/posix-functions/scandir.texi: Likewise.
4728         * doc/posix-functions/seekdir.texi: Likewise.
4729         * doc/posix-functions/setrlimit.texi: Likewise.
4730         * doc/posix-functions/statvfs.texi: Likewise.
4731         * doc/posix-functions/strftime.texi: Likewise.
4732         * doc/posix-functions/telldir.texi: Likewise.
4733         * doc/posix-functions/timezone.texi: Likewise.
4734         * doc/posix-functions/tmpfile.texi: Likewise.
4735         * doc/posix-functions/truncate.texi: Likewise.
4736         * doc/posix-functions/tzname.texi: Likewise.
4737         * doc/posix-functions/wcsftime.texi: Likewise.
4738         * doc/windows-sockets.texi: Likewise.
4740 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4742         getrandom-tests: do not assume GRND_RANDOM yields short read
4743         * tests/test-getrandom.c (main): Omit assertion that
4744         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
4745         when b’s size is 100000.  This assertion fails with Linux kernel
4746         5.6.13, as that kernel ignores the GRND_RANDOM flag.
4747         The separate blocking pool is going away in the Linux kernel, and
4748         they’ve added a flag GRND_INSECURE instead; see:
4749         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
4750         The assertion was iffy anyway; what’s to prevent a kernel from
4751         lazily filling a large buffer with random bytes?
4753         read-file-test: pacify --enable-gcc-warnings
4754         * tests/test-read-file.c (test_read_file): Now static.
4756         tempname: merge from glibc and coreutils
4757         Also, merge in Gnulib’s more-recent methods of making it easier
4758         to share between Gnulib and glibc, and fix a few randomness
4759         glitches.
4760         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
4761         (__set_errno): Remove; libc-config.h does that for us.
4762         Do not include <sys/time.h>.
4763         (__secure_getenv) [_LIBC]: New macro.
4764         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
4765         (RANDOM_BITS): Rewrite.
4766         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
4767         (random_value): New typedef.
4768         (try_file, try_dir, try_nocreate): Move up.
4769         (gen_tempname_len, try_tempname_len): New functions.
4770         (gen_tempname_len): Use a constant array rather than a switch.
4771         (try_tempname_len): Don’t assume string length fits in int.
4772         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
4773         has enough entropy (it’s a bit short).
4774         (__gen_tempname): Rewrite in terms of gen_tempname_len.
4775         (__try_tempname): Rewrite in terms of try_tempname_len.
4776         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
4777         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
4778         Add getentropy, libc-config.
4780 2020-05-31  Bruno Haible  <bruno@clisp.org>
4782         getrandom, getentropy: Mention the crypto/gc-random module.
4783         Suggested by Simon Josefsson in
4784         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
4785         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
4786         crypto/gc-random module.
4787         * doc/glibc-functions/getentropy.texi: Likewise.
4789 2020-05-31  Bruno Haible  <bruno@clisp.org>
4791         getentropy: Enhance tests.
4792         * tests/test-getentropy.c (main): Add one more test.
4793         * tests/test-unistd-c++.cc: Check the signature of getentropy.
4795 2020-05-31  Bruno Haible  <bruno@clisp.org>
4797         getentropy: Work around a macOS and Solaris problem.
4798         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
4799         'getentropy' module.
4800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4801         UNISTD_H_HAVE_SYS_RANDOM_H.
4802         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
4803         UNISTD_H_HAVE_SYS_RANDOM_H.
4804         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
4805         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
4806         problem. List more platforms.
4808 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4810         fnmatch: merge from glibc
4811         Also, merge in Gnulib’s more-recent methods of making it easier
4812         to share between Gnulib and glibc.
4813         * lib/fnmatch.c: Reorder includes to match glibc better.
4814         Include libc-config.h instead of config.h.
4815         Include alloca.h only if _LIBC || HAVE_ALLOCA.
4816         Do not include "../locale/elem-hash.h" if _LIBC.
4817         Define macros for btowc, etc. if _LIBC.  All uses simplified.
4818         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
4819         Include intprops.h, since glibc has it now.
4820         (SIZE_MAX): Remove; use (size_t) -1 instead.
4821         Omit the "Comment out all this code" ifdef, since Gnulib
4822         has never really needed it.
4823         (STREQ): Remove; no longer used.
4824         (__libc_use_alloca, alloca, alloca_account): Define as
4825         needed if !_LIBC.
4826         (ISWCTYPE): Remove; all uses replaced by iswctype.
4827         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
4828         (internal_function): Remove.  All uses removed.
4829         (STRUCT): New macro.
4830         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
4831         (WMEMCMP): New macro.
4832         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
4833         and <locale/weightwc.h>.
4834         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
4835         __builtin_expect.  Check for integer overflow more
4836         systematically.  Account for alloca storage better when
4837         recursive.  Use strnlen instead of strlen for efficiency.
4838         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
4839         (struct STRUCT): New type.
4840         (FCT, EXT): New ENDS and ALLOCA_USED args.
4841         All callers changed.
4842         (FCT): Prefer __glibc_unlikely to __builtin_expect.
4843         Simplify by assuming WIDE_CHAR_SUPPORT.
4844         Copy _LIBC code from glibc without worrying Gnulib compatibility.
4845         Cast cold to UCHAR to avoid signedness warning.
4846         (END): Check for invalid pattern.
4847         (EXT): Improve alloca/malloc checking (taken from glibc),
4848         and improve it some more by using intprops.h and checking
4849         for integer overflow and using bool for booleans.
4850         * lib/libc-config.h (compat_symbol): New macro.
4851         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
4852         acceptable to non-GCC when a trailing semicolon is added.
4853         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
4854         libc-config, strnlen.  Remove alloca.
4856 2020-05-31  Bruno Haible  <bruno@clisp.org>
4858         getrandom: Doc and test tweaks.
4859         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
4860         it sets errno when failing.
4861         * tests/test-getrandom.c (main): Disable the high-quality check on those
4862         platforms on which it fails.
4863         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
4864         Cygwin to the list of platforms that don't have the function. Add a note
4865         about the quality of the result.
4866         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
4867         declaration; this is fixed by module 'getrandom'.
4869 2020-05-31  Bruno Haible  <bruno@clisp.org>
4871         getrandom: Add support for native Windows.
4872         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
4873         <wincrypt.h>.
4874         (CRYPT_VERIFY_CONTEXT): New macro.
4875         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
4876         'A'.
4877         (GetProcAddress): New macro.
4878         (BCryptGenRandomFuncType): New type.
4879         (BCryptGenRandomFunc, initialized): New variables.
4880         (initialize): New function.
4881         (getrandom): On native Windows, use <bcrypt.h> API when available, and
4882         <wincrypt.h> API as fallback.
4883         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
4884         * modules/getrandom (Link): New section.
4885         * modules/getentropy (Link): Likewise.
4886         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
4887         $(LIB_GETRANDOM).
4888         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
4889         $(LIB_GETRANDOM).
4890         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
4891         against $(LIB_GETRANDOM).
4892         * doc/glibc-functions/getrandom.texi: Mention the native Windows
4893         support.
4895 2020-05-31  Bruno Haible  <bruno@clisp.org>
4897         getrandom: Simplify the determination of the random number devices.
4898         Suggested by Paul Eggert in
4899         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
4900         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
4901         macros.
4902         * modules/getrandom (Depends-on): Remove crypto/gc-random.
4904 2020-05-31  Bruno Haible  <bruno@clisp.org>
4906         crypto/gc-random: Fix list of crypto devices for Solaris.
4907         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
4909 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
4911         list: fix GCC warnings
4912         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
4913         (gl_tree_next_node, gl_tree_node_nx_set_value)
4914         (gl_tree_previous_node, gl_tree_next_node):
4915         Mark unused arguments.
4916         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
4917         * lib/gl_anylinked_list2.h (gl_linked_node_value)
4918         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
4920         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
4921         the same variable name in nested scopes.
4923 2020-05-31  Bruno Haible  <bruno@clisp.org>
4925         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
4926         Reported by Akim Demaille in
4927         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
4928         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
4929         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
4930         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
4931         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
4932         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
4934 2020-05-30  Bruno Haible  <bruno@clisp.org>
4936         wmemchr: Relicense under LGPLv2+.
4937         * modules/wmemchr (License): Set to LGPLv2+.
4939 2020-05-30  Bruno Haible  <bruno@clisp.org>
4941         wmempcpy: New module.
4942         Reported by Paul Eggert in
4943         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
4944         * lib/wchar.in.h (wmempcpy): New declaration.
4945         * lib/wmempcpy.c: New file.
4946         * m4/wmempcpy.m4: New file.
4947         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
4948         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
4949         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
4950         HAVE_WMEMPCPY.
4951         * modules/wmempcpy: New file.
4952         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
4953         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
4954         * modules/mempcpy (Description): Fix typo.
4956 2020-05-30  Bruno Haible  <bruno@clisp.org>
4958         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
4959         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
4961 2020-05-30  Bruno Haible  <bruno@clisp.org>
4963         sys_random: Work around macOS bug.
4964         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
4965         <stdlib.h> before <sys/random.h>.
4966         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
4967         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
4968         first.
4969         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
4971 2020-05-30  Bruno Haible  <bruno@clisp.org>
4973         getrandom: Override incompatible system function on Solaris 11.
4974         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
4975         * lib/getrandom.c (getrandom): When the system has getrandom, just
4976         invoke it.
4977         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
4978         system's getrandom function's prototype is not the expected one.
4979         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
4980         REPLACE_GETRANDOM.
4981         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
4982         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
4983         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
4984         EAGAIN.
4985         * doc/glibc-functions/getrandom.texi: Mention the new module and the
4986         Solaris problem.
4988 2020-05-30  Bruno Haible  <bruno@clisp.org>
4990         sys_random: Add C++ tests.
4991         * tests/test-sys_random-c++.cc: New file.
4992         * modules/sys_random-c++-tests: New file.
4993         * modules/sys_random-tests (Depends-on): Depend on it.
4995         sys_random: Add tests.
4996         * tests/test-sys_random.c: New file.
4997         * modules/sys_random-tests: New file.
4999         sys_random: New module.
5000         * lib/sys_random.in.h: Use the common idioms for overridable header
5001         files.
5002         * m4/sys_random_h.m4: New file.
5003         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
5004         * modules/sys_random: New file.
5005         * modules/getrandom (Files): Remove lib/sys_random.in.h.
5006         (Depends-on): Add sys_random.
5007         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
5008         gl_UNISTD_MODULE_INDICATOR.
5009         (Makefile.am): Don't generate sys/random.h here.
5010         * doc/glibc-headers/sys_random.texi: New file.
5011         * doc/gnulib.texi: Include it.
5013 2020-05-30  Bruno Haible  <bruno@clisp.org>
5015         unistd: Remove conflicting declaration of getrandom().
5016         * lib/unistd.in.h (getrandom): Remove declaration.
5017         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
5018         declared.
5019         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
5020         HAVE_GETRANDOM.
5021         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
5022         HAVE_GETRANDOM.
5024 2020-05-30  Bruno Haible  <bruno@clisp.org>
5026         getrandom: Add tests.
5027         * tests/test-getrandom.c: New file.
5028         * modules/getrandom-tests: New file.
5030 2020-05-30  Bruno Haible  <bruno@clisp.org>
5032         crypto/gc-random: Fix link error on MSVC.
5033         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
5034         * modules/crypto/gc-random (Link): New section.
5035         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
5036         $(LIB_GC_RANDOM).
5038 2020-05-30  Bruno Haible  <bruno@clisp.org>
5040         Don't assume that UNICODE is not defined.
5041         Many Windows API functions are defined differently (redirecting to a
5042         function with suffix 'W') if the application defines the macro UNICODE
5043         than by default (redirecting to a function with suffix 'A').
5044         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
5045         variant with suffix 'A'.
5046         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
5047         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
5048         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
5049         * lib/getlogin.c (GetUserName): Likewise.
5050         * lib/getlogin_r.c (GetUserName): Likewise.
5051         * lib/gettimeofday.c (LoadLibrary): Likewise.
5052         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
5053         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
5054         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
5055         * lib/mountlist.c (GetDriveType): Likewise.
5056         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
5057         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
5058         Likewise.
5059         * lib/physmem.c (GetModuleHandle): Likewise.
5060         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5061         PeekMessage, DispatchMessage): Likewise.
5062         * lib/progreloc.c (GetModuleFileName): Likewise.
5063         * lib/putenv.c (SetEnvironmentVariable): Likewise.
5064         * lib/read.c (GetNamedPipeHandleState): Likewise.
5065         * lib/readdir.c (FindNextFile): Likewise.
5066         * lib/relocatable.c (GetModuleFileName): Likewise.
5067         * lib/rename.c (MoveFileEx): Likewise.
5068         * lib/rewinddir.c (FindFirstFile): Likewise.
5069         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5070         PeekMessage, DispatchMessage): Likewise.
5071         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
5072         * lib/socket.c (WSASocket): Likewise.
5073         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
5074         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
5075         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
5076         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
5077         * lib/tmpdir.c (GetTempPath): Likewise.
5078         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
5079         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
5080         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
5081         * lib/windows-cond.c (CreateEvent): Likewise.
5082         * lib/windows-rwlock.c (CreateEvent): Likewise.
5083         * lib/windows-timedmutex.c (CreateEvent): Likewise.
5084         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
5085         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
5086         * lib/write.c (GetNamedPipeHandleState): Likewise.
5088 2020-05-30  Bruno Haible  <bruno@clisp.org>
5090         physmem: Fix compilation errors on MSVC.
5091         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
5092         * modules/physmem (Depends-on): Add unistd.
5094 2020-05-29  Bruno Haible  <bruno@clisp.org>
5096         gnulib-tool: Fix link errors with a particular set of modules on mingw.
5097         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
5098         LDADD a second time, after the second occurrence of libtests.a.
5099         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
5101 2020-05-29  Bruno Haible  <bruno@clisp.org>
5103         fnmatch: Rely on more gnulib modules.
5104         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
5105         wmempcpy, mempcpy.
5106         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
5107         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
5108         HAVE_MEMPCPY are all 1.
5109         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
5110         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
5112 2020-05-29  Bruno Haible  <bruno@clisp.org>
5114         Avoid dynamic lookup of Windows API functions when possible.
5115         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
5116         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
5117         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
5118         (use_win32_p): Define differently.
5119         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
5120         CreateHardLinkFunc, initialized, initialize): Don't define in a build
5121         for Windows XP or higher.
5123 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5125         read-file: disable buffering if RF_SENSITIVE is set
5126         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
5127         Suggested by Glenn Strauss.
5128         (fread_file): Suggest calling setvbuf before calling this
5129         function.  Suggested by Bruno Haible.
5131 2020-05-29  Bruno Haible  <bruno@clisp.org>
5133         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
5134         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
5135         program.
5136         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
5137         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
5138         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
5139         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
5141 2020-05-29  Bruno Haible  <bruno@clisp.org>
5143         Fix compilation error on native Windows (regression from 2020-05-28).
5144         Reported by Daiki Ueno.
5145         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
5146         macro when not using dynamic loading.
5147         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
5148         QueryFullProcessImageNameFunc): Likewise.
5149         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
5150         GetFinalPathNameByHandleFunc): Likewise.
5152 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5154         fopen-gnu-tests: fix "\x" escape usage
5155         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
5157 2020-05-28  Bruno Haible  <bruno@clisp.org>
5159         Avoid dynamic loading of Windows API functions when possible.
5160         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5161         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
5162         * lib/gettimeofday.c (GetProcAddress,
5163         GetSystemTimePreciseAsFileTimeFuncType,
5164         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
5165         define in a build for Windows 8 or higher.
5166         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
5167         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
5168         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
5169         in a build for Windows Vista or higher.
5170         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
5171         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
5172         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
5174 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5176         explicit_bzero-tests: improve -Wmissing-declarations pacification
5177         * tests/test-explicit_bzero.c: Now noinline.
5178         Suggested by Bruno Haible in:
5179         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
5181 2020-05-28  Bruno Haible  <bruno@clisp.org>
5183         Fix build errors due to read-file changes (regression from 2020-05-27).
5184         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
5185         invocation.
5186         * tests/test-sameacls.c (main): Likewise.
5187         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
5188         read_binary_file.
5189         * tests/test-pipe-filter-ii1.c (main): Likewise.
5191 2020-05-28  Bruno Haible  <bruno@clisp.org>
5193         fts: Make more robust in multithreaded applications.
5194         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
5195         * modules/fts (Depends-on): Add 'open'.
5197 2020-05-28  Bruno Haible  <bruno@clisp.org>
5199         relocatable-prog: Make more robust in multithreaded applications.
5200         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
5201         relocatable-prog-wrapper.
5202         (find_executable): Pass an O_CLOEXEC flag to open().
5203         * modules/relocatable-prog (Depends-on): Add 'open'.
5205 2020-05-28  Bruno Haible  <bruno@clisp.org>
5207         getloadavg: Make more robust in multithreaded applications.
5208         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
5209         Simplify use of O_CLOEXEC.
5210         * modules/getloadavg (Depends-on): Add 'open'.
5212 2020-05-28  Bruno Haible  <bruno@clisp.org>
5214         vma-iter: Make more robust in multithreaded applications.
5215         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
5216         open().
5217         * modules/vma-iter (Depends-on): Add 'open'.
5219 2020-05-28  Bruno Haible  <bruno@clisp.org>
5221         truncate: Make more robust in multithreaded applications.
5222         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
5224 2020-05-28  Bruno Haible  <bruno@clisp.org>
5226         pagealign_alloc: Make more robust in multithreaded applications.
5227         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
5228         open().
5229         * modules/pagealign_alloc (Depends-on): Add 'open'.
5231 2020-05-28  Bruno Haible  <bruno@clisp.org>
5233         openat: Make more robust in multithreaded applications.
5234         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
5236 2020-05-28  Bruno Haible  <bruno@clisp.org>
5238         at-internal: Make more robust in multithreaded applications.
5239         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
5240         open().
5242 2020-05-28  Bruno Haible  <bruno@clisp.org>
5244         mountlist: Make more robust in multithreaded applications.
5245         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
5246         open().
5247         * modules/mountlist (Depends-on): Add 'open'.
5249 2020-05-28  Bruno Haible  <bruno@clisp.org>
5251         login_tty: Make more robust in multithreaded applications.
5252         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
5253         * modules/login_tty (Depends-on): Add 'open'.
5255 2020-05-28  Bruno Haible  <bruno@clisp.org>
5257         javacomp: Make more robust in multithreaded applications.
5258         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
5259         open().
5260         * modules/javacomp (Depends-on): Add 'open'.
5262 2020-05-28  Bruno Haible  <bruno@clisp.org>
5264         getprogname: Make more robust in multithreaded applications.
5265         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
5266         * modules/getprogname (Depends-on): Add 'open'.
5268 2020-05-28  Bruno Haible  <bruno@clisp.org>
5270         get_progname_of: Make more robust in multithreaded applications.
5271         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
5272         open().
5273         * modules/get_progname_of (Depends-on): Add 'open'.
5275 2020-05-28  Bruno Haible  <bruno@clisp.org>
5277         get_ppid_of: Make more robust in multithreaded applications.
5278         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
5279         * modules/get_ppid_of (Depends-on): Add 'open'.
5281 2020-05-28  Bruno Haible  <bruno@clisp.org>
5283         get-rusage-as: Make more robust in multithreaded applications.
5284         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
5285         flag to open().
5286         * modules/get-rusage-as (Depends-on): Add 'open'.
5288 2020-05-28  Bruno Haible  <bruno@clisp.org>
5290         crypto/gc: Make more robust in multithreaded applications.
5291         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
5292         * modules/crypto/gc (Depends-on): Add 'open'.
5294 2020-05-28  Bruno Haible  <bruno@clisp.org>
5296         copy-file: Make more robust in multithreaded applications.
5297         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
5298         open().
5300 2020-05-28  Bruno Haible  <bruno@clisp.org>
5302         chown: Make more robust in multithreaded applications.
5303         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
5305 2020-05-28  Bruno Haible  <bruno@clisp.org>
5307         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
5308         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
5310 2020-05-28  Daiki Ueno  <ueno@gnu.org>
5312         fopen-gnu: make 'b' flag can be used with 'e' on Windows
5313         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
5314         specified on Windows.
5315         * tests/test-fopen-gnu.c (DATA): New define.
5316         (main): Add test for reading binary files with an 'e' flag.
5318 2020-05-27  Bruno Haible  <bruno@clisp.org>
5320         Don't assume that UNICODE is not defined.
5321         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
5322         differently if the application defines the macro UNICODE.
5323         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5324         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
5325         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
5326         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
5327         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
5329 2020-05-27  Bruno Haible  <bruno@clisp.org>
5331         Improve pattern for defining _WIN32_WINNT.
5332         Newer versions of the Windows API may not only add, but also remove API
5333         functions. Therefore, when the user is e.g. building for Windows 10, we
5334         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
5335         use of APIs that were present in Windows 8 but removed in Windows 10.
5336         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
5337         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
5338         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
5339         * lib/sethostname.c (_WIN32_WINNT): Likewise.
5340         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
5342 2020-05-27  Bruno Haible  <bruno@clisp.org>
5344         javacomp: Make more robust in multithreaded applications.
5345         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
5346         * modules/javacomp (Depends-on): Add fopen-gnu.
5348 2020-05-27  Bruno Haible  <bruno@clisp.org>
5350         mountlist: Make more robust in multithreaded applications.
5351         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
5352         to fopen.
5353         * modules/mountlist (Depends-on): Add fopen-gnu.
5355 2020-05-27  Bruno Haible  <bruno@clisp.org>
5357         sethostname: Make more robust in multithreaded applications.
5358         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
5359         * modules/sethostname (Depends-on): Add fopen-gnu.
5361 2020-05-27  Bruno Haible  <bruno@clisp.org>
5363         readutmp: Make more robust in multithreaded applications.
5364         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
5365         * modules/readutmp (Depends-on): Add fopen-gnu.
5367 2020-05-27  Bruno Haible  <bruno@clisp.org>
5369         getpass: Make more robust in multithreaded applications.
5370         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
5371         * modules/getpass (Depends-on): Add fopen-gnu.
5373 2020-05-27  Bruno Haible  <bruno@clisp.org>
5375         getloadavg: Make more robust in multithreaded applications.
5376         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
5377         * modules/getloadavg (Depends-on): Add fopen-gnu.
5379 2020-05-27  Bruno Haible  <bruno@clisp.org>
5381         exclude: Make more robust in multithreaded applications.
5382         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
5383         * modules/exclude (Depends-on): Add fopen-gnu.
5385 2020-05-27  Bruno Haible  <bruno@clisp.org>
5387         bitset: Make more robust in multithreaded applications.
5388         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
5389         'e' flag to fopen.
5390         * modules/bitset (Depends-on): Add fopen-gnu.
5392 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5394         read-file: add RF_SENSITIVE flag
5395         * lib/read-file.h (RF_SENSITIVE): New define.
5396         * lib/read-file.c (fread_file, read_file): Take into account of
5397         RF_SENSITIVE flag.
5398         * modules/read-file (Depends-on): Add explicit_bzero.
5399         This adds an alternative behavior of those functions to explicitly
5400         clear the internal memory block when it becomes unused.  This is
5401         useful for reading sensitive information from a file.
5403 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5405         read-file: add flags to modify reading behavior
5406         * lib/read-file.h (RF_BINARY): New define.
5407         (fread_file, read_file): Take FLAGS argument.
5408         (read_binary_file): Remove.
5409         * lib/read-file.c (internal_read_file): Merge into ...
5410         (read_file): ... here.
5411         * modules/read-file-tests (Files): Add "tests/macros.h".
5412         * tests/test-read-file.c (main): Refactor using ASSERT macro.
5413         * NEWS: Mention this change.
5415 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
5417         doc/gnulib-intro.texi: add missing "to" in sentence
5418         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
5419         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
5420         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
5422 2020-05-26  Bruno Haible  <bruno@clisp.org>
5424         count-one-bits: Fix MSVC specific code.
5425         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5426         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
5427         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
5428         using GCC.
5429         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
5430         (__popcnt64): In 32-bit mode, define as an inline function.
5431         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
5433 2020-05-26  Bruno Haible  <bruno@clisp.org>
5435         argz: Avoid name clashes through argz.h.
5436         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5437         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
5438         * lib/argz.h: Don't use __ prefixed identifiers.
5439         (const): Remove definition.
5440         (argz_next): Remove inline definitions.
5442 2020-05-26  Daiki Ueno  <ueno@gnu.org>
5444         read-file: make use of fopen-gnu
5445         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
5446         (read_binary_file): Likewise.
5447         * modules/read-file (Depends-on): Add fopen-gnu.
5449 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5451         getentropy, getrandom: new modules
5452         * MODULES.html.sh (func_all_modules):
5453         * lib/unistd.in.h (getentropy, getrandom):
5454         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
5455         * modules/unistd (unistd.h):
5456         Add support for getentropy, getrandom.
5457         * doc/glibc-functions/getentropy.texi (getentropy):
5458         * doc/glibc-functions/getrandom.texi (getrandom):
5459         These are now fixed on some platforms.
5460         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
5461         * m4/getentropy.m4, m4/getrandom.m4:
5462         * modules/getentropy, modules/getentropy-tests:
5463         * modules/getrandom, modules/getrandom-tests:
5464         * tests/test-getentropy.c, tests/test-getrandom.c:
5465         New files.
5467 2020-05-25  Bruno Haible  <bruno@clisp.org>
5469         Add missing C99 dependencies.
5470         Reported by Paul Smith <psmith@gnu.org> in
5471         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
5472         * modules/assert (Depends-on): Add c99.
5473         * modules/filenamecat-lgpl (Depends-on): Likewise.
5474         * modules/libc-config (Depends-on): Likewise.
5475         * modules/mktime (Depends-on): Likewise.
5476         * modules/random_r (Depends-on): Likewise.
5477         * modules/regex (Depends-on): Likewise.
5478         * modules/scratch_buffer (Depends-on): Likewise.
5479         * modules/timespec-add (Depends-on): Likewise.
5480         * modules/timespec-sub (Depends-on): Likewise.
5481         * modules/verify (Depends-on): Likewise.
5483 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5485         explicit_bzero-tests: pacify -Wmissing-declarations
5486         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
5487         Now static.
5489 2020-05-24  Bruno Haible  <bruno@clisp.org>
5491         fopen-gnu: Add tests.
5492         * tests/test-fopen-gnu.c: New file.
5493         * modules/fopen-gnu-tests: New file.
5495         fopen-gnu: New module.
5496         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
5497         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
5498         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
5499         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
5500         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
5501         * modules/fopen-gnu: New file.
5502         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
5504 2020-05-24  Bruno Haible  <bruno@clisp.org>
5506         open, openat: Really support O_CLOEXEC.
5507         * lib/open.c (open): When have_cloexec is still undecided, do pass a
5508         O_CLOEXEC flag to orig_open.
5509         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
5510         pass a O_CLOEXEC flag to orig_openat.
5511         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
5512         * modules/open-tests (Depends-on): Add fcntl.
5513         * modules/openat-tests (Depends-on): Likewise.
5514         * modules/fcntl-safer-tests (Depends-on): Likewise.
5516 2020-05-24  Bruno Haible  <bruno@clisp.org>
5518         fopen: Fix the trailing slash workaround.
5519         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
5520         write access. Pass the right flags to open().
5521         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
5523 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5525         assure: new macro ‘affirm’
5526         * lib/assure.h: Include verify.h.
5527         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
5528         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
5529         and commentary by Bruno Haible in:
5530         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
5531         * modules/assure (Depends-on:): Add verify.
5533 2020-05-23  Bruno Haible  <bruno@clisp.org>
5535         calloc-gnu: Make test work in non-flat address spaces.
5536         Uses code by Paul Eggert.
5537         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
5538         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
5540 2020-05-23  Bruno Haible  <bruno@clisp.org>
5542         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
5543         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
5544         AC_RUN_IFELSE invocations.
5546 2020-05-23  Bruno Haible  <bruno@clisp.org>
5548         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
5549         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
5550         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
5551         don't have it.
5552         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5553         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
5554         don't have it.
5555         * lib/isnanf-nolibm.h (__has_builtin): New macro.
5556         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
5557         it.
5558         * lib/isnanl-nolibm.h (__has_builtin): New macro.
5559         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
5560         it.
5561         * lib/math.in.h (__has_builtin): New macro.
5562         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
5563         it.
5564         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
5565         it.
5566         (isnan): Don't use the builtins on clang versions that don't have
5567         __builtin_isnanf and __builtin_isnanl.
5569 2020-05-23  Bruno Haible  <bruno@clisp.org>
5571         calloc-gnu: Avoid wrong configure results with clang.
5572         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
5573         'volatile', to defeat compiler optimizations.
5575 2020-05-23  Bruno Haible  <bruno@clisp.org>
5577         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
5578         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
5579         'long double' values by reference, with values taken from a statically
5580         allocated array.
5582 2020-05-23  Bruno Haible  <bruno@clisp.org>
5584         findprog-in: Ignore directories.
5585         Reported by Frederick Eaton via Dmitry Goncharov in
5586         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
5587         * lib/findprog-in.c (find_in_given_path): When the file found is a
5588         directory, set errno to EACCES and, during a PATH search, continue
5589         searching.
5590         * modules/findprog-in (Depends-on): Add sys_stat, stat.
5592 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5594         verify: document ‘assume’ better
5595         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
5597 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
5599         gendocs: Clarify licenses for templates.
5600         * doc/gendocs_template: Add a GNU All-Permissive license notice
5601         and bump Parent-Version.
5602         * doc/gendocs_template_min: Add a GNU All-Permissive license
5603         notice and copy the explanatory comment about the license notice
5604         at the bottom from gendocs_template.
5606 2020-05-21  Bruno Haible  <bruno@clisp.org>
5608         group-member: Relicense under LGPLv2+.
5609         Jim Meyering's approval is in
5610         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
5611         Paul Eggert's approval is in
5612         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
5613         Eric Blake's approval is in
5614         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
5615         * modules/group-member (License): Change to LGPLv2+.
5617 2020-05-21  Bruno Haible  <bruno@clisp.org>
5619         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
5620         Reported by Tim Rühsen in
5621         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5622         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
5624 2020-05-21  Bruno Haible  <bruno@clisp.org>
5626         regex: Avoid wrong configure results with "clang -fsanitize=leak".
5627         Reported by Tim Rühsen in
5628         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5629         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
5630         before returning with status 0.
5632 2020-05-21  Bruno Haible  <bruno@clisp.org>
5634         glob: Avoid wrong configure results with "clang -fsanitize=leak".
5635         Reported by Tim Rühsen in
5636         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5637         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
5639 2020-05-21  Bruno Haible  <bruno@clisp.org>
5641         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
5642         Reported by Tim Rühsen in
5643         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5644         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
5645         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
5646         respectively.
5648 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
5650         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
5651         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
5653 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5655         ftoastr: fix ifndef typo
5656         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
5658 2020-05-19  Bruno Haible  <bruno@clisp.org>
5660         havelib: Tweak documentation.
5661         * doc/havelib.texi (Searching for Libraries): Fix typo.
5663 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5665         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
5666         This was needed earlier because modules had to import the main script,
5667         but that is no longer true.  Rename the script so that it is
5668         consistent with all other scripts in gnulib and uses hyphens.
5669         * build-aux/vcs_to_changelog.py: Rename to...
5670         * build-aux/vcs-to-changelog.py: ... this.
5671         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
5672         * modules/vcs-to-changelog: Likewise.
5674 2020-05-17  Bruno Haible  <bruno@clisp.org>
5676         Clarify intended usage of the license file modules.
5677         Reported by Asher Gordon <AsDaGo@posteo.net> in
5678         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
5679         * doc/licenses-texi.texi (License Texinfo sources): Mention the
5680         GNU AGPL. Explain the intended usage of the modules.
5681         * modules/fdl (Notice): Discourage use as a module.
5682         * modules/fdl-1.3 (Notice): Likewise.
5684 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
5686         hash: add hash_xinsert
5687         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
5689 2020-05-16  Bruno Haible  <bruno@clisp.org>
5691         findprog-lgpl: Fix link error (existing since 2008-09-02).
5692         * modules/findprog-lgpl (Makefile.am): Arrange to compile
5693         findprog-lgpl.c, not findprog.c.
5694         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
5695         XNMALLOC.
5697 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
5699         c-stack: pacify -Wunused-result when DEBUG
5700         Problem reported by Marc Nieper-Wißkirchen in:
5701         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
5702         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
5703         Explicitly ignore write failures.
5705 2020-05-13  Jim Meyering  <meyering@fb.com>
5707         announce-gen: improve a comment
5708         * build-aux/announce-gen: Improve comment.
5710 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
5712         xalloc: pacify -Wanalyzer-possible-null-argument
5713         Problem reported for GCC 10.1.0 by Bruno Haible in:
5714         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
5715         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
5716         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
5717         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
5719 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5721         careadlinkat: fix GCC 10 workaround
5722         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
5723         Massage the code so that it’s closer to what it was before
5724         the GCC 10.1.0 workaround was introduced.  This fixes
5725         a loop when !buffer and the bug workaround is in effect.
5726         Remove unnecessary casts.  Defend in a different way
5727         against (buffer && !buffer_size), by adding at least 1
5728         to buf_size each time through the loop.
5730 2020-05-10  Bruno Haible  <bruno@clisp.org>
5732         doc: Mark HP-UX as unsupported.
5733         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
5735 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5737         careadlinkat: limit GCC workaround
5738         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
5739         10.1.0 and later, since the workaround is pretty bad and the GCC
5740         bug should get fixed.
5742 2020-05-10  Bruno Haible  <bruno@clisp.org>
5744         havelib: Enhance documentation.
5745         * doc/havelib.texi (Searching for Libraries): Mention the bad
5746         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
5748 2020-05-10  Bruno Haible  <bruno@clisp.org>
5750         attribute: Clarify list of attributes.
5751         * lib/attribute.h: Reorder the list of attributes, and group them by
5752         purpose.
5754 2020-05-10  Bruno Haible  <bruno@clisp.org>
5756         string: Fix compilation error in C++ mode.
5757         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
5758         _GL_WARN_ON_USE.
5759         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
5760         instead of _GL_WARN_ON_USE.
5762 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
5764         announce-gen: add support for dist-lzip
5765         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
5767 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
5769         manywarnings: port to GCC 10.1
5770         * build-aux/gcc-warning.spec:
5771         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
5772         Add GCC 10.1.0 warnings.
5774         careadlinkat: pacify -Wreturn-local-addr
5775         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
5776         Pacify gcc 10’s -Wreturn-local-addr option.
5777         Simplify some of the later code.
5779 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
5781         attribute: remove ATTRIBUTE_DEPRECATED
5782         * lib/attribute.h: Improve recently-added comments, mostly
5783         by shortening them (use active voice, etc.).
5784         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
5785         Problem reported by Bruno Haible in:
5786         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
5788 2020-05-09  Bruno Haible  <bruno@clisp.org>
5790         attribute: Add comments.
5791         * lib/attribute.h: Document each macro.
5793 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
5795         bitset: use the attribute module
5796         * modules/bitset: Depend on 'attribute'.
5797         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
5798         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
5799         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
5800         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
5802 2020-05-09  Bruno Haible  <bruno@clisp.org>
5804         c-stack: Fix warning when DEBUG is enabled.
5805         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
5806         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
5807         * lib/c-stack.c: Include <stdio.h>.
5809 2020-05-09  Bruno Haible  <bruno@clisp.org>
5811         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
5812         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
5813         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5814         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5815         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5816         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5817         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5818         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5819         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5820         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
5821         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5822         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5823         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5825 2020-05-09  Bruno Haible  <bruno@clisp.org>
5827         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
5828         Reported by Akim Demaille in
5829         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
5830         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
5831         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
5832         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
5834 2020-05-09  Bruno Haible  <bruno@clisp.org>
5836         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
5837         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
5838         that usually comes from m4/gnulib-common.m4.
5839         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5841 2020-05-09  Bruno Haible  <bruno@clisp.org>
5843         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
5844         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
5845         that usually comes from m4/gnulib-common.m4.
5846         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5847         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5848         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5850 2020-05-09  Bruno Haible  <bruno@clisp.org>
5852         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
5853         * lib/uchar.in.h (char16_t): Define as macro if
5854         GNULIB_OVERRIDES_CHAR16_T.
5855         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
5856         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
5857         (gl_UCHAR_H): Invoke them.
5858         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
5859         GNULIB_OVERRIDES_CHAR32_T.
5860         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
5861         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
5862         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
5863         GNULIB_OVERRIDES_CHAR32_T.
5865 2020-05-09  Bruno Haible  <bruno@clisp.org>
5867         Macro tweaks.
5868         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
5869         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
5871 2020-05-08  Bruno Haible  <bruno@clisp.org>
5873         c32rtomb: Avoid compilation failure on Haiku.
5874         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
5875         inline definitions.
5876         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
5878 2020-05-08  Bruno Haible  <bruno@clisp.org>
5880         mbrtoc32: Avoid compilation failure on Haiku.
5881         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
5882         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
5883         AC_CHECK_FUNCS_ONCE.
5884         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
5886 2020-05-08  Bruno Haible  <bruno@clisp.org>
5888         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
5889         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
5891 2020-05-08  Bruno Haible  <bruno@clisp.org>
5893         list: Update documentation.
5894         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
5895         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
5896         * doc/containers.texi (Container data types): Document the new list
5897         operations and their complexity.
5899 2020-05-08  Bruno Haible  <bruno@clisp.org>
5901         ignore-value tests: Use module 'attribute'.
5902         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
5903         * tests/test-ignore-value.c: Include attribute.h.
5904         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
5905         * modules/ignore-value-tests (Depends-on): Add attribute.
5907 2020-05-08  Bruno Haible  <bruno@clisp.org>
5909         uniname/uniname: Use module 'attribute'.
5910         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
5911         * lib/uniname/uninames.h: Regenerated.
5912         * lib/uniname/uniname.c: Include attribute.h.
5913         * modules/uniname/uniname (Depends-on): Add attribute.
5915 2020-05-08  Bruno Haible  <bruno@clisp.org>
5917         c32rtomb: Use module 'attribute'.
5918         * lib/c32rtomb.c: Include attribute.h.
5919         (FALLTHROUGH): Remove macro.
5920         * modules/c32rtomb (Depends-on): Add attribute.
5922 2020-05-08  Bruno Haible  <bruno@clisp.org>
5924         xsize: Use module 'attribute'.
5925         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
5926         * modules/xsize (Depends-on): Add attribute.
5928 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5930         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
5932         * lib/attribute.h: Minor style fixes.
5934         Fix version-etc glitch on OpenIndiana
5935         Problem reported by Mats Erik Andersson in:
5936         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
5937         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
5938         that now clashes with gnulib-common.h.  All uses changed.
5940 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
5942         attribute: new module
5943         This simplifies use of GCC and C2X attributes like ‘deprecated’.
5944         * MODULES.html.sh: Add attribute.
5945         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
5946         * doc/gnulib.texi (Particular Modules): Add Attributes.
5947         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
5948         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
5949         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
5950         * lib/vasnprintf.c:
5951         Include attribute.h, and let it define FALLTHROUGH.
5952         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
5953         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
5954         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
5955         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
5956         This is a copy since Gawk doesn’t use Gnulib.
5957         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
5958         is incompatible with gl_COMMON_BODY’s.  All uses changed.
5959         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
5960         Keep the existing FALLTHROUGH definition since Glibc might use it,
5961         and it does no harm to Gnulib’s FALLTHROUGH.
5962         * lib/fts_.h, lib/inttostr.h:
5963         (__GNUC_PREREQ): Remove; no longer needed.
5964         (__attribute_warn_unused_result__): Remove.  All uses
5965         replaced by _GL_ATTRIBUTE_NODISCARD.
5966         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
5967         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
5968         __attribute__ ((__warn_unused_result__)), for forward
5969         compatibility to C2X.
5970         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
5971         _GL_ATTRIBUTE_NODISCARD.
5972         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
5973         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
5974         replaced by gl_COMMON_BODY’s implementation, which has a
5975         slightly different signature.
5976         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
5977         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
5978         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
5979         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
5980         No doubt all uses should be replaced, at some point.
5981         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
5982         (_Noreturn): Use it.
5983         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
5984         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
5985         (_GL_ATTRIBUTE_COLD)
5986         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
5987         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
5988         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
5989         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
5990         (_GL_ATTRIBUTE_MAYBE_UNUSED)
5991         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
5992         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
5993         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
5994         (_GL_ATTRIBUTE_RETURNS_NONNULL)
5995         (_GL_ATTRIBUTE_SENTINEL): New macros.
5996         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
5997         * modules/fnmatch, modules/freopen-safer, modules/fts:
5998         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
5999         * modules/quotearg, modules/savewd:
6000         * modules/unistdio/u16-u16-vasnprintf:
6001         * modules/unistdio/u16-vasnprintf:
6002         * modules/unistdio/u32-u32-vasnprintf:
6003         * modules/unistdio/u32-vasnprintf:
6004         * modules/unistdio/u8-u8-vasnprintf:
6005         * modules/unistdio/u8-vasnprintf:
6006         * modules/unistdio/ulc-vasnprintf:
6007         * modules/unistr/u8-uctomb, modules/vasnprintf:
6008         (Depends-on:): Add attribute module.
6010 2020-05-03  Bruno Haible  <bruno@clisp.org>
6012         bison: Fix today's commit.
6013         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
6015 2020-05-03  Bruno Haible  <bruno@clisp.org>
6017         list-c++: Add get_first, get_last, set_first, set_last operations.
6018         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
6019         set_first, set_last.
6020         * lib/gl_list.h: Tweak comments.
6022 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
6024         bison: rely on bison's %require to check a version requirement
6025         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
6026         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
6027         enough of not.
6028         So far it is the only know Yacc tool that supports '%require'.
6029         Other yaccs will actually even choke on seeing the -o option after the
6030         input file name.
6031         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
6033 2020-05-02  Bruno Haible  <bruno@clisp.org>
6035         list: Add get_first, get_last, set_first, set_last operations.
6036         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
6037         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
6038         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
6040 2020-05-02  Bruno Haible  <bruno@clisp.org>
6042         list: Remove redundant code for remove_first and remove_last operations.
6043         * lib/gl_list.h (struct gl_list_implementation): Remove fields
6044         remove_first, remove_last.
6045         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
6046         * lib/gl_array_list.c: Revert last change.
6047         * lib/gl_carray_list.c: Likewise.
6048         * lib/gl_anylinked_list2.h: Likewise.
6049         * lib/gl_linked_list.c: Likewise.
6050         * lib/gl_linkedhash_list.c: Likewise.
6051         * lib/gl_anytree_list2.h: Likewise.
6052         * lib/gl_avltree_list.c: Likewise.
6053         * lib/gl_avltreehash_list.c: Likewise.
6054         * lib/gl_rbtree_list.c: Likewise.
6055         * lib/gl_rbtreehash_list.c: Likewise.
6056         * lib/gl_sublist.c: Likewise.
6058 2020-05-02  Bruno Haible  <bruno@clisp.org>
6060         bison-i18n: Add support for cross-compilation.
6061         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
6062         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
6063         via Akim Demaille <akim@lrde.epita.fr>.
6064         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
6065         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
6066         Don't use bison's --print-localedir option when cross-compiling.
6067         Also, fix an error message and a comment.
6069 2020-05-01  Bruno Haible  <bruno@clisp.org>
6071         list: Add remove_first and remove_last operations.
6072         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6073         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
6074         * lib/gl_list.h (struct gl_list_implementation): Add fields
6075         remove_first, remove_last.
6076         (gl_list_remove_first, gl_list_remove_last): New functions.
6077         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
6078         functions, based on gl_array_remove_at.
6079         (gl_array_list_implementation): Implement the new operations.
6080         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
6081         New functions, based on gl_carray_remove_at.
6082         (gl_carray_list_implementation): Implement the new operations.
6083         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
6084         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
6085         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
6086         new operations.
6087         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
6088         Likewise.
6089         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
6090         New functions, based on gl_tree_remove_at.
6091         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
6092         new operations.
6093         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6094         Likewise.
6095         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
6096         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
6097         Likewise.
6098         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
6099         New functions, based on gl_sublist_remove_at.
6100         (gl_sublist_list_implementation): Implement the new operations.
6101         * lib/gl_list.hh (class gl_List): Add methods remove_first,
6102         remove_last.
6103         * tests/test-array_list.c (main): Test also gl_list_remove_first and
6104         gl_list_remove_last.
6105         * tests/test-avltree_list.c (main): Likewise.
6106         * tests/test-avltreehash_list.c (main): Likewise.
6107         * tests/test-carray_list.c (main): Likewise.
6108         * tests/test-linked_list.c (main): Likewise.
6109         * tests/test-linkedhash_list.c (main): Likewise.
6110         * tests/test-rbtree_list.c (main): Likewise.
6111         * tests/test-rbtreehash_list.c (main): Likewise.
6113 2020-05-01  Bruno Haible  <bruno@clisp.org>
6115         parse-datetime: Fix a build failure with an older bison version.
6116         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
6117         parse-datetime.tab.c if a suitable version of bison was not found.
6119 2020-05-01  Bruno Haible  <bruno@clisp.org>
6121         bison: New module.
6122         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
6123         m4/parse-datetime.m4.
6124         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
6125         * modules/bison: New file.
6126         * modules/parse-datetime (Files): Remove m4/bison.m4.
6127         (Depends-on): Add bison.
6129 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
6131         Update users.txt.
6132         * users.txt: Add poke.
6134 2020-04-28  Bruno Haible  <bruno@clisp.org>
6136         posix_spawn_file_actions_addfchdir tests: Enhance test.
6137         * tests/test-posix_spawn5.c: Include findprog.h.
6138         (test): New function, extracted from main.
6139         (main): Invoke it. Also, invoke it with a program name such as
6140         "bin/pwd".
6141         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
6142         findprog.
6144 2020-04-28  Bruno Haible  <bruno@clisp.org>
6146         posix_spawn_file_actions_addchdir tests: Enhance test.
6147         * tests/test-posix_spawn4.c: Include findprog.h.
6148         (test): New function, extracted from main.
6149         (main): Invoke it. Also, invoke it with a program name such as
6150         "bin/pwd".
6151         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
6152         findprog.
6154 2020-04-28  Bruno Haible  <bruno@clisp.org>
6156         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
6157         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
6158         access elements of the wrong union member.
6160 2020-04-27  Bruno Haible  <bruno@clisp.org>
6162         getdate: Remove deprecated module.
6163         * modules/getdate: Remove file.
6164         * doc/getdate.texi: Remove file.
6165         * lib/getdate.h: Remove file.
6166         * NEWS: Mention the removal.
6168 2020-04-27  Bruno Haible  <bruno@clisp.org>
6170         realloc: Remove deprecated module.
6171         * modules/realloc: Remove file.
6172         * NEWS: Mention the removal.
6174 2020-04-27  Bruno Haible  <bruno@clisp.org>
6176         calloc: Remove deprecated module.
6177         * modules/calloc: Remove file.
6178         * NEWS: Mention the removal.
6180 2020-04-27  Bruno Haible  <bruno@clisp.org>
6182         malloc: Remove deprecated module.
6183         * modules/malloc: Remove file.
6184         * NEWS: Mention the removal.
6186 2020-04-27  Bruno Haible  <bruno@clisp.org>
6188         fnmatch-posix: Remove deprecated module.
6189         * modules/fnmatch-posix: Remove file.
6190         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
6191         * NEWS: Mention the removal.
6193 2020-04-27  Bruno Haible  <bruno@clisp.org>
6195         pipe: Remove deprecated module.
6196         * modules/pipe: Remove file.
6197         * lib/pipe.h: Remove file.
6198         * NEWS: Mention the removal.
6200 2020-04-27  Bruno Haible  <bruno@clisp.org>
6202         getopt: Remove deprecated module.
6203         * modules/getopt: Remove file.
6204         * NEWS: Mention the removal.
6206 2020-04-27  Bruno Haible  <bruno@clisp.org>
6208         remove-dest-slash: Remove deprecated module.
6209         * modules/rename-dest-slash: Remove file.
6210         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
6211         Update.
6212         * NEWS: Mention the removal.
6214 2020-04-27  Bruno Haible  <bruno@clisp.org>
6216         unictype/bidicategory-*: Remove deprecated modules.
6217         * modules/unictype/bidicategory-all: Remove file.
6218         * modules/unictype/bidicategory-byname: Remove file.
6219         * modules/unictype/bidicategory-name: Remove file.
6220         * modules/unictype/bidicategory-of: Remove file.
6221         * modules/unictype/bidicategory-test: Remove file.
6222         * MODULES.html.sh (Unicode string functions): Update.
6223         * NEWS: Mention the removals.
6225 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6227         Tune fts for FTS_LOGICAL+FTS_NOSTAT
6228         From a suggestion by Askar Safin in:
6229         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
6230         * lib/fts.c (fts_build): If file types are known, optimize
6231         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
6232         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
6233         non-directories.
6235 2020-04-19  Bruno Haible  <bruno@clisp.org>
6237         vasnprintf: Add support for printing wide characters using escapes.
6238         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
6239         (wctomb_fallback): New function.
6240         (local_wctomb): New function.
6241         (local_wcrtomb): New function or macro.
6242         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
6243         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
6244         %lc.
6246 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6248         fts: remove NOSTAT_LEAF_OPTIMIZATION
6249         It caused ‘find’ and ‘du’ to dump core, and it was useful
6250         only for obsolescent Linux filesystems anyway.  Problem reported in:
6251         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
6252         Quite possibly there is still a serious underlying fts bug with
6253         tight-loop-check and mutating file systems, but if so this patch
6254         should cause the bug to be triggered less often.
6255         * lib/fts.c (enum leaf_optimization): Remove
6256         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
6257         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
6258         (leaf_optimization): Remove special cases for ReiserFS and XFS.
6259         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
6260         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
6261         Remove.  All uses removed.
6263 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6265         explicit_bzero: Improve code style.
6266         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
6268 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6270         explicit_bzero: On native Windows, use SecureZeroMemory().
6271         * lib/explicit_bzero.c: Include <windows.h>.
6272         (explicit_bzero): On native Windows, use SecureZeroMemory.
6274 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6276         explicit_bzero: Use memset_s() when available.
6277         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
6278         (explicit_bzero): Use memset_s when available.
6279         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
6281 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6283         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
6284         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
6285         free() that overwrite the memory with canaries.
6287 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
6289         bootstrap: recommend git submodule update --init
6290         Reported by Bruno Haible.
6291         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
6292         * build-aux/bootstrap: recommand "git submodule update --init"
6293         rather than "git submodule init".
6295 2020-04-12  Bruno Haible  <bruno@clisp.org>
6297         explicit_bzero: Add tests.
6298         * tests/test-explicit_bzero.c: New file.
6299         * modules/explicit_bzero-tests: New file.
6301 2020-04-11  Bruno Haible  <bruno@clisp.org>
6303         explicit_bzero: Relicense under LGPLv2+.
6304         Approved by Paul Eggert.
6305         * modules/explicit_bzero (License): Change to LGPLv2+.
6307 2020-04-10  Bruno Haible  <bruno@clisp.org>
6309         findprog, relocatable-prog: Ignore directories during PATH search.
6310         Reported by Frederick Eaton via Dmitry Goncharov in
6311         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6313         * lib/findprog.c (find_in_path): When the file found in a PATH element
6314         is a directory, continue searching.
6315         * modules/findprog (Depends-on): Add sys_stat, stat.
6316         * modules/findprog-lgpl (Depends-on): Likewise.
6318         * lib/progreloc.c (maybe_executable): When the file found in a PATH
6319         element is a directory, continue searching.
6320         * lib/relocwrapper.c: Update comments.
6321         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
6322         (configure.ac-early): New section.
6324 2020-04-10  Bruno Haible  <bruno@clisp.org>
6326         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
6327         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6328         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
6329         * MODULES.html.sh: In a git-less tarball, use the date of the first
6330         ChangeLog entry.
6332 2020-04-04  Bruno Haible  <bruno@clisp.org>
6334         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
6335         * m4/gettext.m4: Fix comments regarding the gettext library.
6336         * m4/intl-thread-locale.m4: Likewise.
6337         * m4/intlmacosx.m4: Likewise.
6338         * m4/lcmessage.m4: Likewise.
6339         * m4/nls.m4: Likewise.
6340         * m4/po.m4: Likewise.
6341         * m4/progtest.m4: Likewise.
6343 2020-04-04  Jim Meyering  <meyering@fb.com>
6345         maint: remove a stray inter-word space in a 6x-repeated comment
6346         Induce the changes by running this:
6347           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
6348         * build-aux/announce-gen: Change "by  perl" to "by perl".
6349         * build-aux/gitlog-to-changelog: Likewise.
6350         * build-aux/prefix-gnulib-mk: Likewise.
6351         * build-aux/update-copyright: Likewise.
6352         * build-aux/useless-if-before-free: Likewise.
6353         * tests/test-update-copyright.sh: Likewise.
6355 2020-03-28  Bruno Haible  <bruno@clisp.org>
6357         Use module 'filename' instead of module 'dosname'.
6359         * lib/at-func.c: Include filename.h instead of dosname.h.
6360         * lib/unlinkat.c: Likewise.
6361         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
6362         * modules/areadlinkat-with-size (Depends-on): Likewise.
6363         * modules/faccessat (Depends-on): Likewise.
6364         * modules/fchmodat (Depends-on): Likewise.
6365         * modules/fchownat (Depends-on): Likewise.
6366         * modules/fstatat (Depends-on): Likewise.
6367         * modules/mkdirat (Depends-on): Likewise.
6368         * modules/mkfifoat (Depends-on): Likewise.
6369         * modules/readlinkat (Depends-on): Likewise.
6370         * modules/selinux-at (Depends-on): Likewise.
6371         * modules/symlinkat (Depends-on): Likewise.
6372         * modules/unlinkat (Depends-on): Likewise.
6373         * modules/utimensat (Depends-on): Likewise.
6375         * lib/at-func2.c: Include filename.h instead of dosname.h.
6376         * modules/linkat (Depends-on): Add filename. Remove dosname.
6377         * modules/renameatu (Depends-on): Likewise.
6379         * lib/canonicalize.c: Include filename.h instead of dosname.h.
6380         * lib/canonicalize-lgpl.c: Likewise.
6381         * modules/canonicalize (Depends-on): Add filename.
6382         * modules/canonicalize-lgpl (Depends-on): Likewise.
6384         * lib/dirname.h: Include filename.h instead of dosname.h.
6385         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
6387         * lib/fchdir.c: Include filename.h instead of dosname.h.
6388         * modules/fchdir (Depends-on): Add filename. Remove dosname.
6390         * lib/openat.c: Include filename.h instead of dosname.h.
6391         * modules/openat (Depends-on): Add filename. Remove dosname.
6393         * lib/rmdir.c: Include filename.h instead of dosname.h.
6394         * modules/rmdir (Depends-on): Add filename. Remove dosname.
6396         * lib/savewd.c: Include filename.h instead of dosname.h.
6397         * modules/savewd (Depends-on): Add filename. Remove dosname.
6399         * lib/unlink.c: Include filename.h instead of dosname.h.
6400         * modules/unlink (Depends-on): Add filename. Remove dosname.
6402         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
6403         * lib/relocwrapper.c: Update comments.
6405         * modules/lstat (Depends-on): Remove dosname.
6407 2020-03-28  Bruno Haible  <bruno@clisp.org>
6409         dosname: Redirect to 'filename'.
6410         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6411         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
6412         * lib/dosname.h: Remove all definitions. Just include filename.h.
6413         * modules/dosname (Status, Notice): Mark as deprecated.
6414         (Depends-on): Add 'filename'.
6416 2020-03-28  Bruno Haible  <bruno@clisp.org>
6418         dosname: Change IS_RELATIVE_FILE_NAME.
6419         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
6420         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
6421         * NEWS: Mention the change.
6423 2020-03-28  Bruno Haible  <bruno@clisp.org>
6425         filename: Copy some definitions from module 'dosname'.
6426         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
6427         (HAS_DEVICE): Document macro.
6428         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
6429         (IS_ABSOLUTE_FILE_NAME): Consider
6430         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
6431         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
6432         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
6433         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
6434         IS_PATH_WITH_DIR.
6435         (DllMain): Update.
6436         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
6437         IS_PATH_WITH_DIR.
6438         (find_executable): Update.
6439         * NEWS: Document the deprecations.
6441 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6443         getopt-posix: port __GETOPT_PREFIX to macOS
6444         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
6445         Define to work around a problem with asm on macOS (Bug#40205).
6447 2020-03-22  Bruno Haible  <bruno@clisp.org>
6449         MODULES.html.sh: Add support for reproducible builds.
6450         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6451         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
6452         * MODULES.html.sh: Print the date of the last gnulib commit, not the
6453         current date.
6455 2020-03-22  Bruno Haible  <bruno@clisp.org>
6457         Several modules: Depend on stat.
6458         * modules/acl-permissions (Depends-on): Add stat.
6459         * modules/canonicalize (Depends-on): Likewise.
6460         * modules/file-has-acl (Depends-on): Likewise.
6461         * modules/fstat (Depends-on): Likewise.
6462         * modules/fstatat (Depends-on): Likewise.
6463         * modules/glob (Depends-on): Likewise.
6464         * modules/javacomp (Depends-on): Likewise.
6465         * modules/linkat (Depends-on): Likewise.
6466         * modules/mkdir (Depends-on): Likewise.
6467         * modules/pt_chown (Depends-on): Likewise.
6468         * modules/ptsname_r (Depends-on): Likewise.
6469         * modules/readlinkat (Depends-on): Likewise.
6470         * modules/rename (Depends-on): Likewise.
6471         * modules/renameatu (Depends-on): Likewise.
6472         * modules/tmpdir (Depends-on): Likewise.
6473         * modules/utimens (Depends-on): Likewise.
6474         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
6475         * modules/same (Depends-on): Remove stat.
6477 2020-03-22  Bruno Haible  <bruno@clisp.org>
6479         acl-permissions: Improve autoconf macro.
6480         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
6481         more reliably.
6483 2020-03-22  Bruno Haible  <bruno@clisp.org>
6485         file-has-acl: Fix module description.
6486         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
6487         (Depends-on): Depend on acl-permissions unconditionally.
6489 2020-03-21  Bruno Haible  <bruno@clisp.org>
6491         unlink: Ensure errno also on native Windows.
6492         * modules/unlink (Depends-on): Add malloc-posix.
6494 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6496         unlink: fix malloc errno typo
6497         Problem reported by Tim Rühsen in:
6498         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
6499         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
6501 2020-03-16  Bruno Haible  <bruno@clisp.org>
6503         *printf-posix: Fix m4 error (regression from 2020-03-08).
6504         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
6505         brackets in AC_COMPILE_IFELSE invocation.
6507 2020-03-08  Bruno Haible  <bruno@clisp.org>
6509         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
6510         * modules/crypto/af_alg (Depends-on): Add fstat.
6511         * modules/renameatu (Depends-on): Likewise.
6512         * modules/same (Depends-on): Likewise.
6513         * modules/term-style-control (Depends-on): Likewise.
6515 2020-03-08  Bruno Haible  <bruno@clisp.org>
6517         *printf-posix: Document why it's overridden on some glibc systems.
6518         Reported by Adrian Bunk <bunk@stusta.de> in
6519         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
6520         * doc/posix-functions/*printf.texi: Document the problem with the %n
6521         directive on some glibc systems.
6522         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
6523         the cross-compilation guesses accordingly.
6525 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6527         open, openat: port to (O_RDWR | O_RDONLY) != 0
6528         Potential portability problem reported by Dan Gohman in:
6529         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
6530         * lib/open.c (open):
6531         * lib/openat.c (rpl_openat):
6532         Don’t assume O_RDONLY is disjoint from O_RDWR.
6534 2020-03-07  Bruno Haible  <bruno@clisp.org>
6536         openat: Fix theoretically possible issue on GNU/Hurd.
6537         Reported by Dan Gohman <sunfish@mozilla.com> in
6538         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
6539         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
6540         ignore the bits that are also set in O_RDONLY.
6542 2020-02-24  Bruno Haible  <bruno@clisp.org>
6544         getloadavg: Don't use /usr/local when cross-compiling on AIX.
6545         Reported by Jens Rehsack <sno@netbsd.org> in
6546         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
6547         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
6548         cross-compiling.
6550 2020-02-24  Bruno Haible  <bruno@clisp.org>
6552         fcntl: Add witness of gnulib override.
6553         Reported by Jens Rehsack <sno@netbsd.org> in
6554         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
6555         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
6556         macros.
6558 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
6560         Update users.txt.
6561         * users.txt: Add datamash, time.
6563 2020-02-23  Bruno Haible  <bruno@clisp.org>
6565         uni*/base: Use 'restrict'.
6566         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
6567         from lib/regex.h.
6568         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
6569         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
6570         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
6571         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
6572         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
6573         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
6574         '_UC_RESTRICT'.
6575         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
6576         u32_conv_to_encoding): Use '_UC_RESTRICT'.
6577         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
6578         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
6579         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
6580         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
6581         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
6582         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
6583         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
6584         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
6585         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
6586         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
6587         '_UC_RESTRICT'.
6588         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
6589         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
6590         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
6591         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
6592         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
6593         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
6594         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
6595         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
6597 2020-02-23  Bruno Haible  <bruno@clisp.org>
6599         glob, spawn: Use improved '_Restrict_' definition.
6600         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
6601         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
6603 2020-02-23  Bruno Haible  <bruno@clisp.org>
6605         crypto/gc: Use 'restrict'.
6606         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
6607         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
6609         crypto/hmac-*: Use 'restrict'.
6610         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
6611         'restrict'.
6612         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
6613         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
6614         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
6615         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
6617         crypto/sm3: Use 'restrict'.
6618         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
6619         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
6621         crypto/*-buffer: Use 'restrict'.
6622         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
6623         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
6625         crypto/sha512-buffer: Use 'restrict'.
6626         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
6627         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
6628         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
6630         crypto/sha256-buffer: Use 'restrict'.
6631         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
6632         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
6633         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
6635         crypto/sha1-buffer: Use 'restrict'.
6636         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
6637         'restrict'.
6638         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
6640         crypto/md5-buffer: Use 'restrict'.
6641         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
6642         'restrict'.
6643         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
6645         crypto/md4: Use 'restrict'.
6646         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
6647         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
6649         crypto/md2: Use 'restrict'.
6650         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
6651         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
6653         crypto/rijndael: Use 'restrict'.
6654         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
6655         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
6656         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
6658         crypto/arctwo: Use 'restrict'.
6659         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
6660         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
6662         crypto/arcfour: Use 'restrict'.
6663         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
6664         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
6666         careadlinkat: Use 'restrict'.
6667         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
6668         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
6669         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
6671         regex-quote: Use 'restrict'.
6672         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
6673         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
6675         system-quote: Use 'restrict'.
6676         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
6677         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
6679         sh-quote: Use 'restrict'.
6680         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
6681         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
6683         quotearg: Use 'restrict'.
6684         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
6685         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
6687         parse-datetime: Use 'restrict'.
6688         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
6689         'restrict'.
6690         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
6692         nstrftime: Use 'restrict'.
6693         * lib/strftime.h (nstrftime): Use 'restrict'.
6694         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
6696         mbstok_r: Use 'restrict'.
6697         * lib/string.in.h (mbstok_r): Use 'restrict'.
6699         xmemcoll: Use 'restrict'.
6700         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
6701         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
6703         memcoll: Use 'restrict'.
6704         * lib/memcoll.h (memcoll): Use 'restrict'.
6705         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
6707         vasnprintf: Use 'restrict'.
6708         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
6709         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
6711         c-vasnprintf: Use 'restrict'.
6712         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
6713         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
6715         c-vsnprintf: Use 'restrict'.
6716         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
6717         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
6719         c-snprintf: Use 'restrict'.
6720         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
6721         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
6723         astrxfrm: Use 'restrict'.
6724         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
6725         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
6727         amemxfrm: Use 'restrict'.
6728         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
6729         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
6731 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
6733         fchmodat, lchmod: simplify
6734         It appears that we may have overengineered lchmod and fchmodat,
6735         in that the code was prepared for some hypothetical platforms but
6736         was so complicated that it was hard to understand.  I attempted to
6737         improve the situation by simplifying the code when this
6738         simplification should not hurt on real platforms; we can re-add
6739         complexity later to port to platforms I didn’t know about.
6740         * lib/fchmodat.c (fchmodat):
6741         * lib/lchmod.c (lchmod):
6742         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
6743         around the /proc code that needs it.
6744         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
6745         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
6746         Do not include <config.h> twice.
6747         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
6748         lchmod on any known hosts.
6749         (lchmod): Do not defer to fchmodat, so that the lchmod module
6750         need not depend on the fchmodat module (which is a circular
6751         dependency).  Do not use openat, since ‘open’ suffices.
6752         Coalesce calls to lchmod/chmod.
6753         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
6754         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
6755         * modules/lchmod (Depends-on, configure.ac):
6756         * modules/sys_stat (Depends-on):
6757         Do not worry about replacing lchmod, since that shouldn’t happen.
6758         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
6759         Do not worry about whether lchmod works on non-symlinks,
6760         since every known lchmod works on non-symlinks.
6761         * modules/lchmod (Depends-on):
6762         Remove circular dependency on fchmodat.
6764 2020-02-22  Bruno Haible  <bruno@clisp.org>
6766         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
6767         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
6768         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
6770 2020-02-22  Bruno Haible  <bruno@clisp.org>
6772         Use 'restrict' in all POSIX function declarations.
6773         * lib/iconv.in.h (iconv): Use 'restrict'.
6774         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
6775         * lib/monetary.in.h (strfmon_l): Likewise.
6776         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
6777         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
6778         pthread_mutex_timedlock, pthread_rwlock_init,
6779         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
6780         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
6781         * lib/search.in.h (tdelete): Likewise.
6782         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
6783         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
6784         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
6785         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
6786         Likewise.
6787         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
6788         strtoull): Likewise.
6789         * lib/string.in.h (strncat): Likewise.
6790         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
6791         recvfrom): Likewise.
6792         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
6793         * lib/time.in.h (strftime): Likewise.
6794         * lib/unistd.in.h (readlink, readlinkat): Likewise.
6795         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
6796         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
6797         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
6798         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
6799         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
6800         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
6801         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6802         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6803         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6804         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6807         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6808         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
6810         other *_h.m4 files.
6811         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
6813 2020-02-22  Bruno Haible  <bruno@clisp.org>
6815         Update NEWS.
6816         * NEWS: Mention the last change.
6818 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
6820         chmodat, chownat: new modules
6821         These are split from fchmodat, fchownat.  GNU Emacs needs the
6822         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
6823         lchmodat.  Split the latter two into a new module chmodat.
6824         Similarly for fchownat.  This the same basic idea for why statat
6825         was split from fstatat on 2013-01-23.
6826         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
6827         Rename from FCHMODAT_INLINE.  All uses changed.
6828         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
6829         Rename from FCHOWNAT_INLINE.  All uses changed.
6830         * lib/openat.h:
6831         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
6832         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
6833         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
6834         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
6835         (configure.ac): Remove fchmodat module indicator.
6836         (Makefile.am): Omit chmodat.c.
6837         (Maintainer): Add self.
6838         * modules/fchownat: Similarly, but for chown.
6839         * tests/test-fchownat.c (BASE): Don't define if already defined.
6840         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
6842 2020-02-22  Bruno Haible  <bruno@clisp.org>
6844         users.txt: Add groff.
6845         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
6846         * users.txt: Add groff.
6848 2020-02-22  Bruno Haible  <bruno@clisp.org>
6850         gnulib-tool: Ensure copied files are writable.
6851         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
6852         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
6853         * gnulib-tool (func_ensure_writable): New function.
6854         (func_ln_s, func_hardlink, func_lookup_file, func_import,
6855         func_create_testdir, copy-file): Invoke it after copying a file.
6857 2020-02-22  Bruno Haible  <bruno@clisp.org>
6859         users.txt: Update.
6860         * users.txt: Update URLs to projects that have moved or switched to git.
6861         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
6862         over the summary view. Add gawk.
6864 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
6866         largefile: remove _DARWIN_USE_64_BIT_INODE
6867         It’s not needed in currently-supported macOS versions, and was
6868         problematic anyway in MacOS X 10.5 which was the only version that
6869         could use it.  Problem reported by Peter Eisentraut in:
6870         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
6871         * m4/largefile.m4 (AC_SYS_LARGEFILE):
6872         Don’t define _DARWIN_USE_64_BIT_INODE.
6873         This syncs with Autoconf master.
6875         Add ‘extern "C"’ to count-one-bits.h etc.
6876         This ports these .h files to C++.
6877         Problem reported by Simon Marchi in:
6878         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
6879         * lib/count-leading-zeros.h, lib/count-one-bits.h:
6880         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
6882 2020-02-19  Bruno Haible  <bruno@clisp.org>
6884         uninorm/decompose-internal: Avoid "no previous prototype" warning.
6885         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6886         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
6887         * lib/array-mergesort.h: Accept an optional macro definition
6888         STATIC_FROMTO.
6889         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
6891 2020-02-16  Bruno Haible  <bruno@clisp.org>
6893         fchmodat: Make more future-proof.
6894         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
6895         NEED_FCHMODAT_NONSYMLINK_FIX.
6896         (gl_PREREQ_FCHMODAT): New macro.
6897         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
6898         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
6899         without lchmod function.
6900         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
6902 2020-02-16  Bruno Haible  <bruno@clisp.org>
6904         lchmod: Make more future-proof.
6905         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
6906         (gl_PREREQ_LCHMOD): New macro.
6907         * lib/lchmod.c (orig_lchmod): New function.
6908         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
6909         Return EOPNOTSUPP only on Linux and on platforms without lchmod
6910         function.
6911         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
6913         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
6914         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
6916 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6918         xnanosleep: prefer pause, and get remaining time
6919         Problem reported by Vladimir Panteleev in:
6920         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
6921         * lib/xnanosleep.c: Include intprops.h, unistd.h.
6922         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
6923         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
6924         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
6925         * modules/xnanosleep (Depends-on): Add intprops, unistd.
6927 2020-02-16  Bruno Haible  <bruno@clisp.org>
6929         lchmod: Improve cross-compilation guess.
6930         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
6931         cross-compiling, guess depending on the platform.
6933 2020-02-16  Bruno Haible  <bruno@clisp.org>
6935         fstrcmp: Add API to clean up resources.
6936         Reported by Akim Demaille <akim@lrde.epita.fr> in
6937         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
6938         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
6939         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
6941 2020-02-14  Bruno Haible  <bruno@clisp.org>
6943         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
6944         Reported by Christian Biesinger in
6945         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
6946         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
6947         corresponding module is not enabled.
6948         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
6949         prototype if the corresponding module is not enabled.
6951 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
6953         fchmodat, lchmod: port to buggy Linux filesystems
6954         Problem reported by Florian Weimer in:
6955         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
6956         * lib/fchmodat.c (fchmodat):
6957         * lib/lchmod.c (lchmod):
6958         Don’t assume that chmod on the O_PATH-opened fd will do
6959         the right thing on a symbolic link.
6960         * lib/fchmodat.c (fchmodat):
6961         Don’t attempt to special-case
6962         any flag value other than AT_SYMLINK_NOFOLLOW.
6964 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
6966         lchmod: pacify Coverity CID 1491216
6967         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
6968         not complain about unreachable code at the ‘struct stat st;’
6969         declaration.
6971 2020-02-10  Bruno Haible  <bruno@clisp.org>
6973         copysignf: Fix link error on HP-UX with cc.
6974         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
6975         HP-UX, set COPYSIGNF_LIBM to -lm.
6977 2020-02-10  Bruno Haible  <bruno@clisp.org>
6979         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
6980         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
6981         with $(LIB_SEMAPHORE).
6982         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
6983         with $(LIB_SEMAPHORE).
6985 2020-02-10  Bruno Haible  <bruno@clisp.org>
6987         ptsname_r-tests: Avoid unused function warning.
6988         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
6990 2020-02-08  Bruno Haible  <bruno@clisp.org>
6992         lchmod: Add tests.
6993         * tests/test-lchmod.c: New file.
6994         * modules/lchmod-tests: New file.
6996 2020-02-08  Bruno Haible  <bruno@clisp.org>
6998         lchmod: Ensure declaration on HP-UX.
6999         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
7000         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
7002 2020-02-08  Bruno Haible  <bruno@clisp.org>
7004         fchmodat: Strengthen tests.
7005         * tests/test-fchmodat.c (BASE): New macro.
7006         (main): Use it, to avoid conflicts with other unit tests. Verify that
7007         fchmodat changed the file permission bits.
7009 2020-02-08  Bruno Haible  <bruno@clisp.org>
7011         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
7012         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
7013         '#undef __need_system_sys_stat_h'.
7015 2020-02-08  Bruno Haible  <bruno@clisp.org>
7017         fchmodat: Improve cross-compilation guesses.
7018         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
7019         cross-compiling, guess depending on the platform.
7020         * doc/posix-functions/fchmodat.texi: Clarify.
7022 2020-02-08  Bruno Haible  <bruno@clisp.org>
7024         Fix compilation errors in a testdir created with --with-c++-tests.
7025         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
7026         since it does not work any more with g++ >= 4.4.
7028 2020-02-08  Bruno Haible  <bruno@clisp.org>
7030         doc: Update for glibc 2.31.
7031         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
7032         * doc/gnulib.texi: Include it.
7033         * doc/pastposix-functions/h_errno.texi: Update.
7034         * doc/posix-functions/*.texi: Likewise.
7036 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
7038         mountlist: consider smb3 file systems as remote
7039         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
7040         "smb3" as remote.
7042 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7044         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
7045         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
7046         they act like chmod on non-symlinks.
7047         * NEWS:
7048         * doc/glibc-functions/lchmod.texi (lchmod):
7049         * doc/posix-functions/fchmodat.texi (fchmodat):
7050         Mention this.
7051         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
7052         config.h, and undef it after including sys/stat.h the first time.
7053         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
7054         sys/stat.h a second time after defining orig_fchmodat.
7055         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
7056         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
7057         * lib/lchmod.c: New file.
7058         * lib/sys_stat.in.h (fchmodat, lchmod):
7059         Support replacing these functions.
7060         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
7061         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
7062         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
7063         Test that lchmod works on non-symlinks.
7064         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
7065         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
7066         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
7067         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
7068         * modules/lchmod (Files): Add lib/lchmod.c.
7069         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
7070         (configure.ac): Compile lchmod.c if needed.
7071         (lib_SOURCES): Add lchmod.c.
7072         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
7073         and REPLACE_LCHMOD.
7074         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
7075         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
7077 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
7079         mountlist: Consider AFS filesystems as remote
7080         df --local relies on the ME_REMOTE macro to determine if a given
7081         mount entry should be considered "local".  There is special logic
7082         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
7083         kernel's kafs module or AuriStorFS is treated as a local mount.
7084         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
7085         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
7087 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7089         Port _Noreturn to older Clang
7090         Problem reported by Jeffery Walton in:
7091         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
7092         * lib/_Noreturn.h (_Noreturn):
7093         * m4/gnulib-common.m4 (gl_COMMON_BODY):
7094         Assume _Noreturn works in Clang 3.5 and later.
7095         It is documented to work in Clang 3.5:
7096         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
7097         and is not documented in Clang 3.4:
7098         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
7099         Apple sets __clang_version__ to a different value, so use
7100         __apple_build_version__ there.  See:
7101         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
7103 2020-02-04  Pádraig Brady  <P@draigBrady.com>
7105         test-canonicalize: avoid unused function warning
7106         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
7107         with the same guard as that used to protect usage of the null_ptr
7108         function, so that one doesn't get a -Wunused warning.
7109         * tests/test-canonicalize-lgpl.c: Likewise.
7111 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7113         libc-config: port to Apple’s Clang variant
7114         * lib/libc-config.h (__glibc_clang_prereq):
7115         Port to Apple’s Clang variant, which uses a different
7116         numbering scheme for __clang_major__.
7118 2020-02-02  Bruno Haible  <bruno@clisp.org>
7120         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
7121         * doc/containers.texi: Document these new modules.
7123 2020-02-02  Bruno Haible  <bruno@clisp.org>
7125         omap-c++: Add tests.
7126         * tests/test-omap-c++.cc: New file.
7127         * modules/omap-c++-tests: New file.
7129         omap-c++: New module.
7130         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
7131         * modules/omap-c++: New file.
7133 2020-02-02  Bruno Haible  <bruno@clisp.org>
7135         map-c++: Add tests.
7136         * tests/test-map-c++.cc: New file.
7137         * modules/map-c++-tests: New file.
7139         map-c++: New module.
7140         * lib/gl_map.hh: New file, based on lib/gl_map.h.
7141         * modules/map-c++: New file.
7143 2020-02-02  Bruno Haible  <bruno@clisp.org>
7145         oset-c++: Add tests.
7146         * tests/test-oset-c++.cc: New file.
7147         * modules/oset-c++-tests: New file.
7149         oset-c++: New module.
7150         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
7151         * modules/oset-c++: New file.
7153 2020-02-02  Bruno Haible  <bruno@clisp.org>
7155         set-c++: Add tests.
7156         * tests/test-set-c++.cc: New file.
7157         * modules/set-c++-tests: New file.
7159         set-c++: New module.
7160         * lib/gl_set.hh: New file, based on lib/gl_set.h.
7161         * modules/set-c++: New file.
7163 2020-02-02  Bruno Haible  <bruno@clisp.org>
7165         list-c++: Add tests.
7166         * tests/test-list-c++.cc: New file.
7167         * modules/list-c++-tests: New file.
7169         list-c++: New module.
7170         * lib/gl_list.hh: New file, based on lib/gl_list.h.
7171         * modules/list-c++: New file.
7173 2020-02-02  Bruno Haible  <bruno@clisp.org>
7175         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
7176         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
7177         '_Noreturn'.
7178         * lib/sigpipe-die.h (sigpipe_die): Likewise.
7180 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7182         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
7183         On x86_64 with glibc-2.30, gcc 9.2 is giving:
7184           error: argument 2 value '18446744073709551615'
7185           exceeds maximum object size 9223372036854775807
7186           [-Werror=alloc-size-larger-than=]
7187         The details of this restriction are discussed at:
7188         https://stackoverflow.com/q/42574890/4421
7189         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
7191 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7193         sysctl.h: avoid including on glibc
7194         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
7195         * lib/physmem.c: Likewise.
7197 2020-02-02  Bruno Haible  <bruno@clisp.org>
7199         list, set, oset, map, omap: Avoid imperative voice in documentation.
7200         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
7201         in the specification of functions.
7202         * lib/gl_set.h: Likewise.
7203         * lib/gl_oset.h: Likewise.
7204         * lib/gl_map.h: Likewise.
7205         * lib/gl_omap.h: Likewise.
7206         * lib/gl_*.h: Likewise.
7208 2020-02-01  Bruno Haible  <bruno@clisp.org>
7210         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
7211         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
7212         does.
7214 2020-01-29  Bruno Haible  <bruno@clisp.org>
7216         array-map, hash-map, linkedhash-map: Fix module description.
7217         * modules/array-map (Description): Fix description.
7218         * modules/hash-map (Description): Likewise.
7219         * modules/linkedhash-map (Description): Likewise.
7221 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7223         dfa: do not depend on isblank
7224         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
7225         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
7226         * modules/dfa (Depends-on): Remove isblank.
7227         * modules/isblank: Add a module indicator, for lib/dfa.c.
7229         dfa: do not assume 64-bit int
7230         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
7231         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
7232         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
7233         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
7234         Fall back to 32-bit words.
7235         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
7236         of 4 64-bit args.  All uses changed.
7238 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7240         regex: remove limits-h dependency
7241         * modules/regex (Depends-on): Remove limits-h, since the
7242         code no longer depends on ULONG_WIDTH already being defined.
7244         regex: port to non-GCC pre-IEC-60559
7245         Problem reported by Arnold Robbins in:
7246         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
7247         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
7249 2020-01-25  Bruno Haible  <bruno@clisp.org>
7251         c32isxdigit: Add tests.
7252         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
7253         * tests/test-c32isxdigit.sh: New file.
7254         * modules/c32isxdigit-tests: New file.
7256         c32isxdigit: New module.
7257         * lib/c32isxdigit.c: New file.
7258         * modules/c32isxdigit: New file.
7259         * doc/posix-functions/iswxdigit.texi: Mention the new module.
7261 2020-01-25  Bruno Haible  <bruno@clisp.org>
7263         c32isupper: Add tests.
7264         * tests/test-c32isupper.c: New file.
7265         * tests/test-c32isupper.sh: New file.
7266         * modules/c32isupper-tests: New file.
7268         c32isupper: New module.
7269         * lib/c32isupper.c: New file.
7270         * modules/c32isupper: New file.
7271         * doc/posix-functions/iswupper.texi: Mention the new module.
7273 2020-01-25  Bruno Haible  <bruno@clisp.org>
7275         c32isspace: Add tests.
7276         * tests/test-c32isspace.c: New file.
7277         * tests/test-c32isspace.sh: New file.
7278         * modules/c32isspace-tests: New file.
7280         c32isspace: New module.
7281         * lib/c32isspace.c: New file.
7282         * modules/c32isspace: New file.
7283         * doc/posix-functions/iswspace.texi: Mention the new module.
7285 2020-01-25  Bruno Haible  <bruno@clisp.org>
7287         c32ispunct: Add tests.
7288         * tests/test-c32ispunct.c: New file.
7289         * tests/test-c32ispunct.sh: New file.
7290         * modules/c32ispunct-tests: New file.
7292         c32ispunct: New module.
7293         * lib/c32ispunct.c: New file.
7294         * modules/c32ispunct: New file.
7295         * doc/posix-functions/iswpunct.texi: Mention the new module.
7297 2020-01-25  Bruno Haible  <bruno@clisp.org>
7299         c32isprint: Add tests.
7300         * tests/test-c32isprint.c: New file.
7301         * tests/test-c32isprint.sh: New file.
7302         * modules/c32isprint-tests: New file.
7304         c32isprint: New module.
7305         * lib/c32isprint.c: New file.
7306         * modules/c32isprint: New file.
7307         * doc/posix-functions/iswprint.texi: Mention the new module.
7309 2020-01-25  Bruno Haible  <bruno@clisp.org>
7311         c32islower: Add tests.
7312         * tests/test-c32islower.c: New file.
7313         * tests/test-c32islower.sh: New file.
7314         * modules/c32islower-tests: New file.
7316         c32islower: New module.
7317         * lib/c32islower.c: New file.
7318         * modules/c32islower: New file.
7319         * doc/posix-functions/iswlower.texi: Mention the new module.
7321 2020-01-25  Bruno Haible  <bruno@clisp.org>
7323         c32isgraph: Add tests.
7324         * tests/test-c32isgraph.c: New file.
7325         * tests/test-c32isgraph.sh: New file.
7326         * modules/c32isgraph-tests: New file.
7328         c32isgraph: New module.
7329         * lib/c32isgraph.c: New file.
7330         * modules/c32isgraph: New file.
7331         * doc/posix-functions/iswgraph.texi: Mention the new module.
7333 2020-01-25  Bruno Haible  <bruno@clisp.org>
7335         c32isdigit: Add tests.
7336         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
7337         * tests/test-c32isdigit.sh: New file.
7338         * modules/c32isdigit-tests: New file.
7340         c32isdigit: New module.
7341         * lib/c32isdigit.c: New file.
7342         * modules/c32isdigit: New file.
7343         * doc/posix-functions/iswdigit.texi: Mention the new module.
7345 2020-01-25  Bruno Haible  <bruno@clisp.org>
7347         c32iscntrl: Add tests.
7348         * tests/test-c32iscntrl.c: New file.
7349         * tests/test-c32iscntrl.sh: New file.
7350         * modules/c32iscntrl-tests: New file.
7352         c32iscntrl: New module.
7353         * lib/c32iscntrl.c: New file.
7354         * modules/c32iscntrl: New file.
7355         * doc/posix-functions/iswcntrl.texi: Mention the new module.
7357 2020-01-25  Bruno Haible  <bruno@clisp.org>
7359         c32isblank: Add tests.
7360         * tests/test-c32isblank.c: New file.
7361         * tests/test-c32isblank.sh: New file.
7362         * modules/c32isblank-tests: New file.
7364         c32isblank: New module.
7365         * lib/c32isblank.c: New file.
7366         * modules/c32isblank: New file.
7367         * doc/posix-functions/iswblank.texi: Mention the new module.
7369 2020-01-25  Bruno Haible  <bruno@clisp.org>
7371         c32isalpha: Add tests.
7372         * tests/test-c32isalpha.c: New file.
7373         * tests/test-c32isalpha.sh: New file.
7374         * modules/c32isalpha-tests: New file.
7376         c32isalpha: New module.
7377         * lib/c32isalpha.c: New file.
7378         * modules/c32isalpha: New file.
7379         * doc/posix-functions/iswalpha.texi: Mention the new module.
7381 2020-01-25  Bruno Haible  <bruno@clisp.org>
7383         c32isalnum: Add tests.
7384         * tests/test-c32isalnum.c: New file.
7385         * tests/test-c32isalnum.sh: New file.
7386         * modules/c32isalnum-tests: New file.
7388         c32isalnum: New module.
7389         * lib/c32isalnum.c: New file.
7390         * lib/c32is-impl.h: New file.
7391         * modules/c32isalnum: New file.
7392         * doc/posix-functions/iswalnum.texi: Mention the new module.
7394 2020-01-25  Bruno Haible  <bruno@clisp.org>
7396         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
7397         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
7398         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
7399         c32isupper, c32isxdigit): New declarations.
7400         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
7401         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7402         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7403         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7404         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7405         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
7406         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7407         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7408         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7409         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7410         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
7411         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
7412         c32ispunct, c32isspace, c32isupper, c32isxdigit.
7414 2020-01-25  Bruno Haible  <bruno@clisp.org>
7416         mbchar, wctype: Use the corrected iswxdigit function.
7417         * modules/mbchar (Depends-on): Add iswxdigit.
7418         * modules/wctype (Depends-on): Likewise.
7420         iswxdigit: Add tests.
7421         * tests/test-iswxdigit.c: New file.
7422         * tests/test-iswxdigit.sh: New file.
7423         * modules/iswxdigit-tests: New file.
7425         iswxdigit: New module.
7426         * m4/iswxdigit.m4: New file.
7427         * lib/wctype.in.h (iswxdigit): Potentially override.
7428         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
7429         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
7430         * lib/iswxdigit.c: New file.
7431         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
7432         REPLACE_ISWXDIGIT.
7433         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
7434         REPLACE_ISWXDIGIT.
7435         * modules/iswxdigit: New file.
7436         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
7438 2020-01-25  Bruno Haible  <bruno@clisp.org>
7440         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
7441         Reported by John Donoghue <john.david.donoghue@gmail.com> in
7442         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
7443         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
7444         off_t on mingw, invoke _lseeki64 instead of lseek.
7446 2020-01-25  Bruno Haible  <bruno@clisp.org>
7448         iswdigit tests: Avoid test failure on Cygwin.
7449         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
7450         byte sequence, return 0.
7452         iswdigit: Fix test failure on native Windows.
7453         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
7455         mbchar, wctype: Use the corrected iswdigit function.
7456         * modules/mbchar (Depends-on): Add iswdigit.
7457         * modules/wctype (Depends-on): Likewise.
7459         iswdigit: Add tests.
7460         * tests/test-iswdigit.c: New file.
7461         * tests/test-iswdigit.sh: New file.
7462         * modules/iswdigit-tests: New file.
7464         iswdigit: New module.
7465         * m4/iswdigit.m4: New file.
7466         * lib/wctype.in.h (iswdigit): Potentially override.
7467         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
7468         * lib/iswdigit.c: New file.
7469         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
7470         REPLACE_ISWDIGIT.
7471         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
7472         REPLACE_ISWDIGIT.
7473         * modules/iswdigit: New file.
7474         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
7476 2020-01-25  Bruno Haible  <bruno@clisp.org>
7478         hard-locale tests: Make it easy to reuse the musl test.
7479         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
7480         * modules/hard-locale-tests (Files): Add it.
7481         (configure.ac): Invoke gl_MUSL_LIBC.
7483 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7485         regex: port to Gawk on nonstandard platforms
7486         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
7487         This is useful for Gawk, which does not use the Gnulib stdlib-h
7488         module.  Problem reported by Arnold Robbins in:
7489         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
7491 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7493         regex: fix bug with >=16 subexpressions
7494         * lib/regex_internal.h (struct re_backref_cache_entry):
7495         Use bitset_word_t as the type of eps_reachable_subexps_map,
7496         instead of unsigned short int.  This fixes a bug I introduced
7497         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
7498         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
7499         Remove unused member 'unused'.
7501         regex: simplify definition of BITSET_WORD_BITS
7502         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
7503         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
7504         * lib/regex_internal.h (BITSET_WORD_BITS):
7505         * modules/regex (Depends-on): Add limits-h.
7506         Simplify now that we can use ULONG_WIDTH.
7508 2020-01-20  Bruno Haible  <bruno@clisp.org>
7510         mbrtoc32: Add note about FreeBSD 12.
7511         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
7512         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
7513         affected.
7515 2020-01-20  Bruno Haible  <bruno@clisp.org>
7517         unistr/u8-uctomb: Fix warning.
7518         Reported by Andreas Schwab <schwab@suse.de> in
7519         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
7520         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
7521         (u8_uctomb): Add FALLTHROUGH markers.
7523 2020-01-20  Bruno Haible  <bruno@clisp.org>
7525         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
7526         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
7527         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
7528         (glthread_once): Use it.
7530 2020-01-19  Bruno Haible  <bruno@clisp.org>
7532         threadlib: Disable use of weak symbols on FreeBSD 11.
7533         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7534         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
7535         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
7536         against a bug in FreeBSD 11.
7538 2020-01-19  Bruno Haible  <bruno@clisp.org>
7540         iconv_open: Improve z/OS support.
7541         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
7542         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
7543         Remove mapping for EUC-TW.
7545 2020-01-18  Bruno Haible  <bruno@clisp.org>
7547         Rename ~~gnulib.m4 to zzgnulib.m4.
7548         Suggested by Paul Eggert.
7549         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
7550         * gnulib-tool (func_get_filelist): Update.
7551         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
7553 2020-01-18  Bruno Haible  <bruno@clisp.org>
7555         doc: Update license notices.
7556         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
7557         reference to a section or to a "file as part of this distribution".
7559 2020-01-18  Bruno Haible  <bruno@clisp.org>
7561         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
7562         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
7563         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
7564         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
7565         AC_EGREP_CPP.
7567 2020-01-18  Bruno Haible  <bruno@clisp.org>
7569         Ensure Automake does not drop ~~gnulib.m4.
7570         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
7571         * m4/gnulib-common.m4 (gl_COMMON): Require it.
7573 2020-01-18  Bruno Haible  <bruno@clisp.org>
7575         Fix major regression from 2020-01-10.
7576         Reported by Paul Eggert in
7577         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
7578         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
7579         Don't AC_REQUIRE anything.
7580         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
7581         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
7582         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
7583         use ac_compile instead.
7584         (AC_CHECK_DECL): Remove override.
7585         * m4/~~gnulib.m4: New file.
7586         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
7587         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
7589 2020-01-17  Bruno Haible  <bruno@clisp.org>
7590             Paul Eggert  <eggert@cs.ucla.edu>
7592         glob: Fix use-after-free bug.
7593         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7594         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
7595         * lib/glob.c (__glob): Delay freeing dirname until after the use of
7596         end_name.
7598 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7600         vcs-to-changelog: Fix parsing of fndecl without args.
7601         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
7602         for empty arguments.
7604 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7606         vcs-to-changelog: Add documentation.
7607         * doc/vcs-to-changelog.texi: New file.
7608         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
7609         section.
7611 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7613         vcs-to-changelog: Allow loading of custom quirks file.
7614         * build-aux/vcs_to_changelog.py: New commandline option -q.
7616 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7618         vcs-to-changelog: Fix formatting of ChangeLog output.
7619         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
7620         output.
7622 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7624         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
7625         Reported in
7626         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
7627         * build-aux/vcstocl/frontend_c.py: Remove shebang.
7629 2020-01-15  Simon Josefsson  <simon@josefsson.org>
7631         crypto/gc-pbkdf2: New module.
7632         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
7633         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
7634         * lib/gc-pbkdf2.c: New file.
7635         * lib/gc-pbkdf2-sha1.c: Use new interface.
7636         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
7637         * modules/crypto/gc-pbkdf2: New file.
7638         * modules/crypto/gc-pbkdf2-tests: New file.
7639         * tests/test-gc-pbkdf2.c: New file.
7641 2020-01-12  Bruno Haible  <bruno@clisp.org>
7643         c32stombs: Add tests.
7644         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
7645         * tests/test-c32stombs-1.sh: New file, based on
7646         tests/test-c32srtombs-1.sh.
7647         * tests/test-c32stombs-2.sh: New file, based on
7648         tests/test-c32srtombs-2.sh.
7649         * tests/test-c32stombs-3.sh: New file, based on
7650         tests/test-c32srtombs-3.sh.
7651         * tests/test-c32stombs-4.sh: New file, based on
7652         tests/test-c32srtombs-4.sh.
7653         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
7655         c32stombs: New module.
7656         * lib/uchar.in.h (c32stombs): New declaration.
7657         * lib/c32stombs.c: New file.
7658         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
7659         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
7660         * modules/c32stombs: New file.
7661         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
7662         * doc/posix-functions/wcstombs.texi: Mention the new module.
7664 2020-01-11  Jim Meyering  <meyering@fb.com>
7666         perl: require the "warnings" module
7667         * m4/perl.m4: Also "use warnings", so we reject the perl found
7668         on at least one IRIX 6.5 system. Reported by Bruno Haible in
7669         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
7671 2020-01-10  Bruno Haible  <bruno@clisp.org>
7673         Fix major regression from 2020-01-04.
7674         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
7675         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
7676         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
7677         AC_DEFUN_ONCE.
7678         (AC_CHECK_DECL): Invoke, not require, it.
7680 2020-01-10  Bruno Haible  <bruno@clisp.org>
7682         c32snrtombs: Add tests.
7683         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
7684         * tests/test-c32snrtombs-1.sh: New file, based on
7685         tests/test-wcsnrtombs1.sh.
7686         * tests/test-c32snrtombs-2.sh: New file, based on
7687         tests/test-wcsnrtombs2.sh.
7688         * tests/test-c32snrtombs-3.sh: New file, based on
7689         tests/test-wcsnrtombs3.sh.
7690         * tests/test-c32snrtombs-4.sh: New file, based on
7691         tests/test-wcsnrtombs4.sh.
7692         * modules/c32snrtombs-tests: New file, based on
7693         modules/wcsnrtombs-tests.
7695         c32snrtombs: New module.
7696         * lib/uchar.in.h (c32snrtombs): New declaration.
7697         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
7698         INTERNAL_STATE, WCRTOMB.
7699         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
7700         * lib/c32snrtombs.c: New file.
7701         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
7702         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
7703         * modules/c32snrtombs: New file.
7704         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
7705         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
7707 2020-01-09  Bruno Haible  <bruno@clisp.org>
7709         c32srtombs: Add tests.
7710         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
7711         * tests/test-c32srtombs-1.sh: New file, based on
7712         tests/test-wcsrtombs1.sh.
7713         * tests/test-c32srtombs-2.sh: New file, based on
7714         tests/test-wcsrtombs2.sh.
7715         * tests/test-c32srtombs-3.sh: New file, based on
7716         tests/test-wcsrtombs3.sh.
7717         * tests/test-c32srtombs-4.sh: New file, based on
7718         tests/test-wcsrtombs4.sh.
7719         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
7721         c32srtombs: New module.
7722         * lib/uchar.in.h (c32srtombs): New declaration.
7723         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
7724         INTERNAL_STATE, WCRTOMB.
7725         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
7726         * lib/c32srtombs.c: New file.
7727         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
7728         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
7729         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
7730         * modules/c32srtombs: New file.
7731         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
7732         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
7734 2020-01-08  Bruno Haible  <bruno@clisp.org>
7736         c32tob: Make consistent with mbrtoc32.
7737         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
7738         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
7739         use c32rtomb, not wctob.
7740         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
7741         (Depends-on): Add c32rtomb.
7742         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
7744 2020-01-08  Bruno Haible  <bruno@clisp.org>
7746         c32rtomb: Add tests.
7747         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
7748         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
7749         * tests/test-c32rtomb-w32.c: New file, based on
7750         tests/test-wcrtomb-w32.c.
7751         * tests/test-c32rtomb-w32-1.sh: New file, based on
7752         tests/test-wcrtomb-w32-1.sh.
7753         * tests/test-c32rtomb-w32-2.sh: New file, based on
7754         tests/test-wcrtomb-w32-2.sh.
7755         * tests/test-c32rtomb-w32-3.sh: New file, based on
7756         tests/test-wcrtomb-w32-3.sh.
7757         * tests/test-c32rtomb-w32-4.sh: New file, based on
7758         tests/test-wcrtomb-w32-4.sh.
7759         * tests/test-c32rtomb-w32-5.sh: New file, based on
7760         tests/test-wcrtomb-w32-5.sh.
7761         * tests/test-c32rtomb-w32-6.sh: New file, based on
7762         tests/test-wcrtomb-w32-6.sh.
7763         * tests/test-c32rtomb-w32-7.sh: New file, based on
7764         tests/test-wcrtomb-w32-7.sh.
7765         * modules/c32rtomb-tests: New file.
7767         c32rtomb: New module.
7768         * lib/uchar.in.h (c32rtomb): New declaration.
7769         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
7770         * m4/c32rtomb.m4: New file.
7771         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
7772         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
7773         REPLACE_C32RTOMB.
7774         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
7775         HAVE_C32RTOMB, REPLACE_C32RTOMB.
7776         * modules/c32rtomb: New file.
7777         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
7778         * doc/posix-functions/c32rtomb.texi: Document the new module.
7779         * doc/posix-functions/wcrtomb.texi: Mention the new module.
7781 2020-01-08  Bruno Haible  <bruno@clisp.org>
7783         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
7784         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
7785         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
7786         but is not working.
7787         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
7788         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
7789         differ, use the system's mbrtoc32, adding workarounds.
7790         * modules/mbrtoc32 (Depends-on): Add hard-locale.
7791         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
7792         Windows problem.
7793         * lib/btoc32.c: Include <stdio.h>, <string.h>.
7794         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
7795         use mbrtoc32, not btowc.
7796         * modules/btoc32 (Depends-on): Add mbrtoc32.
7797         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
7798         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
7799         * modules/mbsrtoc32s (Depends-on): Update conditions.
7800         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
7801         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
7802         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
7803         * modules/mbsnrtoc32s (Depends-on): Update conditions.
7804         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
7806 2020-01-07  Bruno Haible  <bruno@clisp.org>
7808         wcrtomb: Make multithread-safe, except possibly on IRIX.
7809         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
7810         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
7811         WCRTOMB_RETVAL_BUG.
7812         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
7813         wctomb only on IRIX.
7815 2020-01-05  Jim Meyering  <meyering@fb.com>
7817         tests: skip thread-using tests when threading is disabled
7818         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
7819         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
7820         of those, so they are skipped in this case.
7821         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
7822         * tests/test-setlocale_null-mt-all.c (main): Likewise.
7823         * tests/test-setlocale_null-mt-one.c (main): Likewise.
7825 2020-01-05  Bruno Haible  <bruno@clisp.org>
7827         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
7828         Reported by Jim Meyering in
7829         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
7830         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
7831         (GNULIB_defined_ptsname_r): New macro.
7832         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
7833         (main): Disable the NULL argument test if canonicalize_file_name does
7834         not come from gnulib.
7835         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
7836         (main): Disable the NULL argument test if canonicalize_file_name does
7837         not come from gnulib.
7838         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
7839         (test_errors): Disable the NULL argument test if ptsname_r does not come
7840         from gnulib.
7842 2020-01-04  Jim Meyering  <meyering@fb.com>
7844         update-copyright: reenable its always-skipped test
7845         * tests/test-update-copyright.sh: Restore the "-pi" options removed
7846         on 2019-06-15. Without those, an internal preliminary test would
7847         fail, causing this test always to be skipped.
7848         Verify that the test is now run and passes via this:
7849           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
7851 2020-01-05  Bruno Haible  <bruno@clisp.org>
7853         mbstoc32s: Add tests.
7854         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
7855         * tests/test-mbstoc32s-1.sh: New file, based on
7856         tests/test-mbsrtoc32s-1.sh.
7857         * tests/test-mbstoc32s-2.sh: New file, based on
7858         tests/test-mbsrtoc32s-2.sh.
7859         * tests/test-mbstoc32s-3.sh: New file, based on
7860         tests/test-mbsrtoc32s-3.sh.
7861         * tests/test-mbstoc32s-4.sh: New file, based on
7862         tests/test-mbsrtoc32s-4.sh.
7863         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
7865         mbstoc32s: New module.
7866         * lib/uchar.in.h (mbstoc32s): New declaration.
7867         * lib/mbstoc32s.c: New file.
7868         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
7869         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
7870         * modules/mbstoc32s: New file.
7871         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
7872         * doc/posix-functions/mbstowcs.texi: Mention the new module.
7874 2020-01-05  Bruno Haible  <bruno@clisp.org>
7876         Tweak recently added tests.
7877         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
7878         * tests/test-mbsrtoc32s.c: Likewise.
7879         * tests/test-mbsnrtoc32s.c: Likewise.
7881 2020-01-04  Bruno Haible  <bruno@clisp.org>
7883         mbsnrtoc32s: Add tests.
7884         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
7885         * tests/test-mbsnrtoc32s-1.sh: New file, based on
7886         tests/test-mbsnrtowcs1.sh.
7887         * tests/test-mbsnrtoc32s-2.sh: New file, based on
7888         tests/test-mbsnrtowcs2.sh.
7889         * tests/test-mbsnrtoc32s-3.sh: New file, based on
7890         tests/test-mbsnrtowcs3.sh.
7891         * tests/test-mbsnrtoc32s-4.sh: New file, based on
7892         tests/test-mbsnrtowcs4.sh.
7893         * modules/mbsnrtoc32s-tests: New file, based on
7894         modules/mbsnrtowcs-tests.
7896         mbsnrtoc32s: New module.
7897         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
7898         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
7899         INTERNAL_STATE, MBRTOWC.
7900         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
7901         * lib/mbsnrtoc32s.c: New file.
7902         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
7903         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
7904         * modules/mbsnrtoc32s: New file.
7905         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
7906         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
7908 2020-01-04  Bruno Haible  <bruno@clisp.org>
7910         mbsrtoc32s tests: Enhance test.
7911         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
7912         test strings for UTF-8 and GB18030.
7914 2020-01-04  Bruno Haible  <bruno@clisp.org>
7916         mbsrtoc32s: Fix bug.
7917         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
7918         that SMALL_WCHAR_T is defined.
7920 2020-01-04  Bruno Haible  <bruno@clisp.org>
7922         mbsrtoc32s: Add tests.
7923         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
7924         * tests/test-mbsrtoc32s-1.sh: New file, based on
7925         tests/test-mbsrtowcs1.sh.
7926         * tests/test-mbsrtoc32s-2.sh: New file, based on
7927         tests/test-mbsrtowcs2.sh.
7928         * tests/test-mbsrtoc32s-3.sh: New file, based on
7929         tests/test-mbsrtowcs3.sh.
7930         * tests/test-mbsrtoc32s-4.sh: New file, based on
7931         tests/test-mbsrtowcs4.sh.
7932         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
7934         mbsrtoc32s: New module.
7935         * lib/uchar.in.h (mbsrtoc32s): New declaration.
7936         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
7937         INTERNAL_STATE, MBRTOWC.
7938         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
7939         * lib/mbsrtoc32s.c: New file.
7940         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
7941         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
7942         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
7943         * modules/mbsrtoc32s: New file.
7944         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
7945         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
7947 2020-01-04  Bruno Haible  <bruno@clisp.org>
7949         mbrtowc, mbrtoc32: Tighten dependendies.
7950         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
7951         REPLACE_MBSTATE_T is 1.
7952         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
7953         REPLACE_MBSTATE_T is 0.
7954         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
7955         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
7956         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
7957         REPLACE_MBSTATE_T is 0.
7959 2020-01-04  Bruno Haible  <bruno@clisp.org>
7961         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
7962         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
7963         * modules/uchar (Files): Add stdint.m4.
7964         (Makefile.am): Substitute SMALL_WCHAR_T.
7965         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
7967 2020-01-04  Bruno Haible  <bruno@clisp.org>
7969         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
7970         Reported by Martin Storsjö <martin@martin.st> in
7971         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
7972         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
7973         New macros.
7974         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
7976 2020-01-04  Bruno Haible  <bruno@clisp.org>
7978         btoc32: Add tests.
7979         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
7980         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
7981         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
7982         * modules/btoc32-tests: New file, based on modules/btowc-tests.
7984         btoc32: New module.
7985         * lib/uchar.in.h (btoc32): New declaration.
7986         * lib/btoc32.c: New file.
7987         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
7988         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
7989         * modules/btoc32: New file.
7990         * tests/test-uchar-c++.cc: Test the signature of btoc32.
7991         * doc/posix-functions/btowc.texi: Mention the new module.
7993 2020-01-03  Bruno Haible  <bruno@clisp.org>
7995         uchar tests: Avoid compilation error with HP cc.
7996         * tests/test-uchar.c: Disable a test when HP cc is in use.
7998 2020-01-03  Bruno Haible  <bruno@clisp.org>
8000         mbrtoc32: Add tests.
8001         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
8002         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
8003         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
8004         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
8005         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
8006         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
8007         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
8008         * tests/test-mbrtoc32-w32-1.sh: New file, based on
8009         tests/test-mbrtowc-w32-1.sh.
8010         * tests/test-mbrtoc32-w32-2.sh: New file, based on
8011         tests/test-mbrtowc-w32-2.sh.
8012         * tests/test-mbrtoc32-w32-3.sh: New file, based on
8013         tests/test-mbrtowc-w32-3.sh.
8014         * tests/test-mbrtoc32-w32-4.sh: New file, based on
8015         tests/test-mbrtowc-w32-4.sh.
8016         * tests/test-mbrtoc32-w32-5.sh: New file, based on
8017         tests/test-mbrtowc-w32-5.sh.
8018         * tests/test-mbrtoc32-w32-6.sh: New file, based on
8019         tests/test-mbrtowc-w32-6.sh.
8020         * tests/test-mbrtoc32-w32-7.sh: New file, based on
8021         tests/test-mbrtowc-w32-7.sh.
8022         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
8024         mbrtoc32: New module.
8025         * lib/uchar.in.h (mbrtoc32): New declaration.
8026         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
8027         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
8028         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
8029         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
8030         REPLACE_MBRTOC32.
8031         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
8032         HAVE_MBRTOC32, REPLACE_MBRTOC32.
8033         * modules/mbrtoc32: New file, based on modules/mbrtowc.
8034         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
8035         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
8036         $(LIB_MBRTOWC).
8037         * doc/posix-functions/mbrtoc32.texi: Document the new module.
8038         * doc/posix-functions/mbrtowc.texi: Mention the new module.
8040 2020-01-03  Bruno Haible  <bruno@clisp.org>
8042         mbrtowc: Refactor to share code with mbrtoc32.
8043         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
8044         * lib/mbrtowc-impl-utf8.h: Likewise.
8045         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
8046         mbrtowc-impl.h.
8047         * modules/mbrtowc (Files): Add the new files.
8049 2020-01-03  Jim Meyering  <meyering@fb.com>
8051         doc: fix time.texi wording
8052         * doc/posix-headers/time.texi (time.h): Typo.
8054 2020-01-03  Bruno Haible  <bruno@clisp.org>
8056         mbrtowc: Refactor locale charset dispatching.
8057         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
8058         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
8059         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
8060         localcharset.h, streq.h.
8061         (enc_t): Remove type.
8062         (locale_enc): Remove function.
8063         (cached_locale_enc): Remove variable.
8064         (locale_enc_cached): Remove function.
8065         (mbrtowc): Invoke locale_encoding_classification.
8066         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
8067         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
8068         lc-charset-dispatch.c.
8069         (configure.ac): Arrange to compile lc-charset-dispatch.c.
8071 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8073         doc: mention 32-bit time_t issue
8074         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8075         * doc/posix-headers/time.texi (time.h): Mention 2038.
8077 2020-01-03  Bruno Haible  <bruno@clisp.org>
8079         mbrtowc: Ensure the mbtowc_lock is unique.
8080         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
8081         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
8082         lib/setlocale_null.c.
8083         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
8084         glthread/lock.h. Include mbtowc-lock.h.
8085         (mbtowc_lock): Remove declaration.
8086         (mbrtowc): Use mbtowc_with_lock.
8087         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
8088         threads.h. Set LIB_MBRTOWC.
8089         (gl_PREREQ_MBTOWC_LOCK): New macro.
8090         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
8091         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
8092         (Depends-on): Remove lock.
8093         (configure.ac): Arrange to compile mbtowc-lock.c.
8094         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
8095         * modules/acl (Link): Likewise.
8096         * modules/argmatch (Link): Likewise.
8097         * modules/backup-rename (Link): Likewise.
8098         * modules/backupfile (Link): Likewise.
8099         * modules/closein (Link): Likewise.
8100         * modules/closeout (Link): Likewise.
8101         * modules/copy-file (Link): Likewise.
8102         * modules/csharpcomp (Link): Likewise.
8103         * modules/csharpexec (Link): Likewise.
8104         * modules/dfa (Link): Likewise.
8105         * modules/exclude (Link): Likewise.
8106         * modules/fnmatch (Link): Likewise.
8107         * modules/fnmatch-gnu (Link): Likewise.
8108         * modules/fnmatch-posix (Link): Likewise.
8109         * modules/glob (Link): Likewise.
8110         * modules/human (Link): Likewise.
8111         * modules/javacomp (Link): Likewise.
8112         * modules/javaexec (Link): Likewise.
8113         * modules/javaversion (Link): Likewise.
8114         * modules/mbfile (Link): Likewise.
8115         * modules/mbiter (Link): Likewise.
8116         * modules/mbmemcasecmp (Link): Likewise.
8117         * modules/mbmemcasecoll (Link): Likewise.
8118         * modules/mbrlen (Link): Likewise.
8119         * modules/mbscasecmp (Link): Likewise.
8120         * modules/mbscasestr (Link): Likewise.
8121         * modules/mbschr (Link): Likewise.
8122         * modules/mbscspn (Link): Likewise.
8123         * modules/mbsinit (Link): Likewise.
8124         * modules/mbslen (Link): Likewise.
8125         * modules/mbsncasecmp (Link): Likewise.
8126         * modules/mbsnlen (Link): Likewise.
8127         * modules/mbsnrtowcs (Link): Likewise.
8128         * modules/mbspbrk (Link): Likewise.
8129         * modules/mbspcasecmp (Link): Likewise.
8130         * modules/mbsrchr (Link): Likewise.
8131         * modules/mbsrtowcs (Link): Likewise.
8132         * modules/mbssep (Link): Likewise.
8133         * modules/mbsspn (Link): Likewise.
8134         * modules/mbsstr (Link): Likewise.
8135         * modules/mbstok_r (Link): Likewise.
8136         * modules/mbswidth (Link): Likewise.
8137         * modules/mbuiter (Link): Likewise.
8138         * modules/mkdir-p (Link): Likewise.
8139         * modules/propername (Link): Likewise.
8140         * modules/quote (Link): Likewise.
8141         * modules/quotearg (Link): Likewise.
8142         * modules/quotearg-simple (Link): Likewise.
8143         * modules/regex-quote (Link): Likewise.
8144         * modules/rpmatch (Link): Likewise.
8145         * modules/sh-quote (Link): Likewise.
8146         * modules/system-quote (Link): Likewise.
8147         * modules/trim (Link): Likewise.
8148         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8149         * modules/unistdio/ulc-fprintf (Link): Likewise.
8150         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8151         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8152         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8153         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8154         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8155         * modules/xfreopen (Link): Likewise.
8156         * modules/xmemcoll (Link): Likewise.
8157         * modules/yesno (Link): Likewise.
8158         * modules/regex (Link): Add $(LIB_MBRTOWC).
8159         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
8160         instead of $(LIBTHREAD).
8161         * modules/argmatch-tests (Makefile.am): Likewise.
8162         * modules/closein-tests (Makefile.am): Likewise.
8163         * modules/copy-file-tests (Makefile.am): Likewise.
8164         * modules/dfa-tests (Makefile.am): Likewise.
8165         * modules/fnmatch-tests (Makefile.am): Likewise.
8166         * modules/glob-tests (Makefile.am): Likewise.
8167         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8168         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8169         * modules/mbrtowc-tests (Makefile.am): Likewise.
8170         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8171         * modules/mbscasestr-tests (Makefile.am): Likewise.
8172         * modules/mbschr-tests (Makefile.am): Likewise.
8173         * modules/mbscspn-tests (Makefile.am): Likewise.
8174         * modules/mbsinit-tests (Makefile.am): Likewise.
8175         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8176         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8177         * modules/mbspbrk-tests (Makefile.am): Likewise.
8178         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8179         * modules/mbsrchr-tests (Makefile.am): Likewise.
8180         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8181         * modules/mbsspn-tests (Makefile.am): Likewise.
8182         * modules/mbsstr-tests (Makefile.am): Likewise.
8183         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8184         * modules/quotearg-tests (Makefile.am): Likewise.
8185         * modules/readtokens-tests (Makefile.am): Likewise.
8186         * modules/sh-quote-tests (Makefile.am): Likewise.
8187         * modules/system-quote-tests (Makefile.am): Likewise.
8188         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8189         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8190         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8191         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8192         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8193         * modules/yesno-tests (Makefile.am): Likewise.
8194         * modules/exclude-tests (Makefile.am): Link the programs with
8195         $(LIB_MBRTOWC).
8196         * modules/regex-tests (Makefile.am): Likewise.
8197         * modules/regex-quote-tests (Makefile.am): Likewise.
8199 2020-01-03  Bruno Haible  <bruno@clisp.org>
8201         getopt-posix: Fix compilation failure in testdirs.
8202         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
8203         when the gnulib module 'getopt-posix' is enabled.
8204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
8205         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
8206         module indicator.
8207         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
8209 2020-01-03  Bruno Haible  <bruno@clisp.org>
8211         doc: Mention the 64-bit inode number problem.
8212         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
8213         64-bit inode number problem.
8214         * doc/posix-functions/stat.texi: Mention that this module fixes the
8215         64-bit inode number problem.
8216         * doc/posix-functions/lstat.texi: Likewise.
8217         * doc/posix-functions/fstat.texi: Likewise.
8218         * doc/posix-functions/readdir.texi: Add more details.
8219         * doc/posix-functions/readdir_r.texi: Likewise.
8221 2020-01-02  Bruno Haible  <bruno@clisp.org>
8223         wcrtomb: Add more tests.
8224         * tests/test-wcrtomb-w32.c: Include localcharset.h.
8225         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8226         locale_charset() returns the expected value; otherwise, skip the test.
8227         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
8228         * tests/test-wcrtomb-w32-7.sh: Likewise.
8229         * modules/wcrtomb-tests (Files): Add these files.
8230         (Depends-on): Add localcharset.
8231         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
8233 2020-01-02  Bruno Haible  <bruno@clisp.org>
8235         mbrtowc: Add more tests.
8236         * tests/test-mbrtowc-w32.c: Include localcharset.h.
8237         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8238         locale_charset() returns the expected value; otherwise, skip the test.
8239         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
8240         * tests/test-mbrtowc-w32-7.sh: Likewise.
8241         * modules/mbrtowc-tests (Files): Add these files.
8242         (Depends-on): Add localcharset.
8243         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
8245 2020-01-02  Bruno Haible  <bruno@clisp.org>
8247         mbrtowc: Fix test failures on MSVC (regression by previous commit).
8248         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
8249         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
8250         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
8251         MBRTOWC_STORES_INCOMPLETE_BUG.
8252         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
8254 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8256         doc: mention glibc bug 24269
8257         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
8258         Reformat slightly so that it looks nicer in the Grep manual.
8260 2020-01-02  Bruno Haible  <bruno@clisp.org>
8262         mbrtowc: Don't replace mbstate_t on MSVC.
8263         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
8264         a missing mbsinit function on native Windows.
8265         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
8266         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
8267         MSVC bug.
8268         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
8270 2020-01-02  Bruno Haible  <bruno@clisp.org>
8272         setlocale-null: Avoid crashing the MSVC linker.
8273         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
8274         MSVC.
8276 2020-01-02  Bruno Haible  <bruno@clisp.org>
8278         wchar: Make the HP-UX workaround work on HP-UX 11.31.
8279         * modules/wchar (Depends-on): Add inttypes-incomplete.
8280         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
8281         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
8282         of strtoimax.
8284 2020-01-02  Bruno Haible  <bruno@clisp.org>
8286         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
8287         * lib/mbrtowc.c: Include <stdint.h>.
8288         * modules/mbrtowc (Depends-on): Add stdint.
8290 2020-01-01  Pádraig Brady  <P@draigBrady.com>
8292         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
8293         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
8294         which will auto enable use of openssl, only for >= version 3,
8295         which is newly licensed under the Apache Software License.
8297 2020-01-01  Bruno Haible  <bruno@clisp.org>
8299         mbrtowc: Include function name in macro names.
8300         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
8301         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
8302         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
8303         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
8304         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
8305         C_LOCALE_MAYBE_EILSEQ.
8307 2020-01-01  Bruno Haible  <bruno@clisp.org>
8309         c32tob: New module.
8310         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
8311         (c32tob): New declaration.
8312         * lib/c32tob.c: New file.
8313         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
8314         macros.
8315         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
8316         * modules/uchar (Depends-on): Add snippet/c++defs.
8317         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
8318         uchar.h.
8319         * modules/c32tob: New file.
8320         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
8321         defined.
8322         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
8323         c32tob.
8324         * modules/uchar-c++-tests (Files): Add tests/signature.h.
8325         * doc/posix-functions/wctob.texi: Mention the new module.
8327 2020-01-01  Bruno Haible  <bruno@clisp.org>
8329         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
8330         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
8331         $(LIB_SETLOCALE).
8333 2020-01-01  Bruno Haible  <bruno@clisp.org>
8335         hard-locale tests: Fix a conflict with the C++ tests.
8336         * modules/hard-locale-tests (Makefile.am): Build a program named
8337         'current-locale', not 'locale'.
8339 2020-01-01  Bruno Haible  <bruno@clisp.org>
8341         doc: Update documentation about wchar_t.
8342         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
8343         wchar_t type.
8345 2020-01-01  Bruno Haible  <bruno@clisp.org>
8347         mbrtowc tests: Fix typos.
8348         * tests/test-mbrtowc.c (main): Fix typo.
8349         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
8351 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8353         maint: update copyright notices
8354         Before doing the following changes done by hand, I also ran ‘make
8355         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
8356         to do most of the copyright years automatically.  A few upstream
8357         sources are still in 2019 but these should eventually be changed
8358         automatically too.
8359         * build-aux/declared.sh (func_version):
8360         * build-aux/libtool-next-version (func_version):
8361         * build-aux/run-test (func_version):
8362         Update these notices by hand.  Put just the last year
8363         in output of programs, as per GNU coding standards.
8365 2019-12-31  Bruno Haible  <bruno@clisp.org>
8367         uchar: Add C++ tests.
8368         * tests/test-uchar-c++.cc: New file.
8369         * tests/test-uchar-c++2.cc: New file.
8370         * modules/uchar-c++-tests: New file.
8372         uchar: Add tests.
8373         * tests/test-uchar.c: New file.
8374         * modules/uchar-tests: New file.
8376         uchar: New module.
8377         * lib/uchar.in.h: New file.
8378         * m4/uchar.m4: New file.
8379         * modules/uchar: New file.
8380         * doc/posix-headers/uchar.texi: Mention the new module.
8382 2019-12-30  Jim Meyering  <meyering@fb.com>
8384         localeinfo: ->simple would be wrong for LC_ALL=C
8385         That would lead to using unnecessary and expensive code paths in dfa.c.
8386         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
8387         error that would have made grep many times slower in the C locale.
8388         With this change, and a file created like this:
8389           yes 00 | head -10000000 > in
8390         Running grep as follows becomes more than 40 times faster:
8391           LC_ALL=C grep -Fw 0 in
8393 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
8395         doc: document trouble with back-references
8396         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
8398 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8400         doc: use “back-reference” for \1 etc.
8401         * doc/regex.texi: Consistently spell “back-reference” with
8402         a hyphen, since that’s how POSIX does it.
8404 2019-12-26  Jim Meyering  <meyering@fb.com>
8406         test-framework-sh: tighten an internal grep regexp
8407         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
8408         that helps test for a working printf.
8410 2019-12-26  Bruno Haible  <bruno@clisp.org>
8412         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
8413         Reported by Paul Eggert in
8414         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
8415         Simplification by Jim Meyering.
8416         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
8417         octal escape sequence in a UTF-8 locale.
8419 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
8421         mbrtowc: port better to narrow-wchar_t platforms
8422         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
8423         wchar_t is too narrow to represent all the Unicode characters,
8424         consider a byte sequence for an out-of-wchar_t-range character to
8425         be an encoding error.  This fixes grep’s surrogate-pair test
8426         failure on AIX 7.2.
8428 2019-12-24  Bruno Haible  <bruno@clisp.org>
8430         localcharset: Avoid referencing rpl_setlocale on native Windows.
8431         * lib/localcharset.c (setlocale): Undefine.
8433 2019-12-24  Bruno Haible  <bruno@clisp.org>
8435         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
8436         * m4/semaphore.m4: New file.
8437         * modules/lock-tests (Files): Add it.
8438         (configure.ac): Require gl_SEMAPHORE.
8439         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
8441 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
8443         strptime: fix typo in previous patch
8444         Problem and fix reported by Bruno Haible in:
8445         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
8446         * lib/strptime.c (day_of_the_week): Fix paren bug.
8448 2019-12-24  Bruno Haible  <bruno@clisp.org>
8450         setlocale-null: Make it easy to rely on the lock in another library.
8451         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
8452         defined.
8454 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8456         gethrxtime, mktime, nstrftime, strptime: tweak division performance
8457         Performanced analyzed by Bruno Haible in:
8458         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
8459         * config/srclist.txt: Do not sync mktime.c for now.
8460         * lib/mktime.c (shr, ydhms_diff):
8461         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
8462         * lib/strptime.c (day_of_the_week):
8463         * lib/xtime.h (xtime_sec):
8464         Redo with neither ‘%’ nor conditional branches.
8466 2019-12-23  Bruno Haible  <bruno@clisp.org>
8468         setlocale-null: Export the lock function also on non-Windows platforms.
8469         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
8470         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
8471         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
8472         * modules/setlocale-null (configure.ac): Invoke it.
8473         (Files): Add m4/visibility.m4.
8475 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8477         gethrxtime: fix rounding bug with negative args
8478         Problem reported by Bruno Haible in:
8479         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
8480         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
8481         with negative rounding.  Common platforms can compute / and % with
8482         a single instruction, so the simplified code should be shorter and
8483         faster on these platforms anyway.
8485 2019-12-22  Bruno Haible  <bruno@clisp.org>
8487         gethrxtime: remove incorrect overflow detection
8488         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
8489         integer overflow, as it didn’t suffice.  This reverts the xtime.h
8490         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
8491         cannot now see the need for anyway (even in cases where it works),
8492         as the patch is helpful only when the signs of S and NS disagree,
8493         and all callers pass nonnegative values for S and NS.
8495 2019-12-22  Bruno Haible  <bruno@clisp.org>
8497         setlocale-null: Add standalone include file.
8498         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
8499         * lib/locale.in.h: Include setlocale_null.h.
8500         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
8501         setlocale_null): Remove declarations.
8502         * lib/setlocale_null.c: Include setlocale_null.h.
8503         * lib/localename.c: Likewise.
8504         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
8505         (Depends-on): Add snippet/arg-nonnull.
8506         (Include): Allow either "setlocale_null.h" or <locale.h>.
8508 2019-12-22  Bruno Haible  <bruno@clisp.org>
8510         strfmon_l: Fix test failures on FreeBSD and Cygwin.
8511         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
8512         AC_RUN_IFELSE test.
8513         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
8514         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
8515         problem.
8517 2019-12-22  Bruno Haible  <bruno@clisp.org>
8519         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
8520         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
8521         unconditional AC_LIBOBJ.
8522         * modules/selinux-at: Likewise.
8523         * modules/xmemdup0: Likewise.
8524         * modules/xstrtoll: Likewise.
8526 2019-12-22  Bruno Haible  <bruno@clisp.org>
8528         longlong: Mark module obsolete.
8529         * modules/longlong (Status, Notice): New sections.
8531         stdint: Assume that the compiler supports 'long long'.
8532         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
8533         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
8534         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8535         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
8536         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8537         * modules/stdint (Files): Remove longlong.m4.
8538         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
8539         HAVE_UNSIGNED_LONG_LONG_INT.
8541         inttypes-incomplete: Assume that the compiler supports 'long long'.
8542         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
8543         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
8544         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8545         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
8546         HAVE_LONG_LONG_INT to be 1.
8547         * modules/inttypes-incomplete (Makefile.am): Don't substitute
8548         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
8550         malloca: Assume that the compiler supports 'long long'.
8551         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
8552         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
8553         * modules/malloca (Files): Remove longlong.m4.
8554         * modules/relocatable-prog-wrapper (Files): Likewise.
8556         atoll: Assume that the compiler supports 'long long'.
8557         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
8558         * modules/atoll (Files): Remove longlong.m4.
8560         strtoll: Assume that the compiler supports 'long long'.
8561         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
8562         * modules/strtoll (Files): Remove longlong.m4.
8564         strtoull: Assume that the compiler supports 'long long'.
8565         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
8566         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8567         * modules/strtoull (Files): Remove longlong.m4.
8569         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
8570         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
8571         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8572         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
8573         AC_TYPE_LONG_LONG_INT.
8574         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
8575         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8576         * modules/strtoimax (Files): Remove longlong.m4.
8577         * modules/strtoumax (Files): Likewise.
8579         xstrtoll: Assume that the compiler supports 'long long'.
8580         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
8581         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
8583         vasnprintf: Assume that the compiler supports 'long long'.
8584         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
8585         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
8586         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8587         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
8588         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
8589         require AC_TYPE_LONG_LONG_INT.
8590         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
8591         gl_PREREQ_VASNPRINTF): Likewise.
8592         * modules/vasnprintf (Files): Remove longlong.m4.
8593         * modules/c-vasnprintf (Files): Likewise.
8594         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8595         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8596         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8597         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8598         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8599         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8600         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8602         gethrxtime: Assume that the compiler supports 'long long'.
8603         * lib/xtime.h (xtime_t): Define to 'long long int' always.
8604         (XTIME_PRECISION): Define to 1000000000 always.
8605         (xtime_make, xtime_sec): Optimize accordingly.
8606         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
8607         * modules/gethrxtime (Files): Remove longlong.m4.
8609         integer_length*: Assume that the compiler supports 'long long'.
8610         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
8611         * modules/integer_length (Files): Remove longlong.m4.
8612         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8613         * modules/integer_length_l (Files): Remove longlong.m4.
8614         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8615         * modules/integer_length_ll (Files): Remove longlong.m4.
8616         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8618         count-one-bits: Assume that the compiler supports 'long long'.
8619         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
8620         * m4/count-one-bits.m4: Remove file.
8621         * modules/count-one-bits (Files): Remove it.
8622         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
8623         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
8624         unconditionally.
8626         count-trailing-zeros: Assume that the compiler supports 'long long'.
8627         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
8628         unconditionally.
8629         * m4/count-trailing-zeros.m4: Remove file.
8630         * modules/count-trailing-zeros (Files): Remove it.
8631         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
8632         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
8633         unconditionally.
8635         count-leading-zeros: Assume that the compiler supports 'long long'.
8636         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
8637         unconditionally.
8638         * m4/count-leading-zeros.m4: Remove file.
8639         * modules/count-leading-zeros (Files): Remove it.
8640         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
8641         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
8642         unconditionally.
8644 2019-12-22  Bruno Haible  <bruno@clisp.org>
8646         localcharset: Update support for OpenBSD.
8647         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
8649 2019-12-21  Bruno Haible  <bruno@clisp.org>
8651         pthread_sigmask: Avoid test failure on NetBSD 8.0.
8652         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
8653         NetBSD.
8654         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
8656 2019-12-21  Bruno Haible  <bruno@clisp.org>
8658         threadlib: Improve code structure.
8659         * m4/threadlib.m4: Reorder macros. Add comments.
8661 2019-12-21  Bruno Haible  <bruno@clisp.org>
8663         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
8664         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
8665         here from m4/threads.m4).
8666         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
8667         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
8668         (gl_STDTHREADLIB): New macro.
8669         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
8670         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
8672 2019-12-21  Bruno Haible  <bruno@clisp.org>
8674         sched_yield: Don't depend on threadlib and yield.
8675         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
8676         LIB_SCHED_YIELD.
8677         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
8678         m4/yield.m4).
8679         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
8680         gl_THREADLIB and gl_YIELD.
8681         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
8682         based on $(LIB_SCHED_YIELD).
8683         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
8684         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
8685         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
8686         (Depends-on): Remove threadlib.
8687         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
8688         * modules/threads-h (Files): Remove m4/yield.m4.
8689         * modules/pthread-cond-tests (Makefile.am): Link the programs against
8690         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
8691         * modules/pthread-mutex-tests (Makefile.am): Likewise.
8692         * modules/pthread-once-tests (Makefile.am): Likewise.
8693         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
8694         * modules/pthread-tss-tests (Makefile.am): Likewise.
8696 2019-12-21  Bruno Haible  <bruno@clisp.org>
8698         threads-h: Don't depend on threadlib.
8699         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
8700         not gl_THREADLIB_EARLY.
8702 2019-12-21  Bruno Haible  <bruno@clisp.org>
8704         nl_langinfo tests: Fix link error (regression from 2019-12-18).
8705         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
8706         with $(LIB_SETLOCALE).
8708 2019-12-21  Bruno Haible  <bruno@clisp.org>
8710         threadlib: Remove unused dependency (left over from 2019-07-06).
8711         * modules/threadlib (Depends-on): Remove havelib.
8713 2019-12-21  Bruno Haible  <bruno@clisp.org>
8715         New convention for multithread-safety tests.
8716         * tests/test-setlocale_null-mt-one.c: Renamed from
8717         tests/test-setlocale_null-one.c.
8718         * tests/test-setlocale_null-mt-all.c: Renamed from
8719         tests/test-setlocale_null-all.c.
8720         * modules/setlocale-null-tests (Files, Makefile.am): Update.
8722 2019-12-21  Bruno Haible  <bruno@clisp.org>
8724         quotearg tests: Fix conflict with hard-locale tests.
8725         * tests/testlocale: Renamed from tests/locale.
8726         * modules/quotearg-tests (Files): Update.
8727         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
8729 2019-12-21  Bruno Haible  <bruno@clisp.org>
8731         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
8732         Reported by Daniel Richard G. in
8733         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
8734         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
8735         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
8736         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
8737         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
8738         alternative to PTHREAD_RWLOCK_INITIALIZER.
8739         * lib/glthread/lock.c: Likewise.
8741 2019-12-21  Bruno Haible  <bruno@clisp.org>
8743         memcmp tests: Work around the clang bug.
8744         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
8745         the clang optimization.
8747 2019-12-20  Bruno Haible  <bruno@clisp.org>
8749         localcharset: Add support for z/OS encoding names.
8750         * lib/localcharset.h: Mention which encodings are used as locale
8751         encodings on z/OS.
8753 2019-12-20  Bruno Haible  <bruno@clisp.org>
8755         iconv_open: Add support for z/OS encoding names.
8756         Reported by Daniel Richard G. in
8757         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
8758         * lib/iconv_open-zos.gperf: New file.
8759         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
8760         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
8761         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
8762         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
8763         * doc/posix-functions/iconv_open.texi: Mention z/OS.
8765 2019-12-20  Bruno Haible  <bruno@clisp.org>
8767         doc: Document the problem of the per-thread locale functions on z/OS.
8768         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
8769         * doc/posix-functions/newlocale.texi: Likewise.
8770         * doc/posix-functions/duplocale.texi: Likewise.
8771         * doc/posix-functions/freelocale.texi: Likewise.
8773 2019-12-20  Bruno Haible  <bruno@clisp.org>
8775         localename, gettext: Fix host_os value for z/OS.
8776         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
8777         cross-configuration code.
8779 2019-12-19  Jim Meyering  <meyering@fb.com>
8781         nstrftime: avoid a shadowing warning
8782         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
8783         to avoid shadowing an "i" declared hundreds of lines above.
8785 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8787         dfa: struct dfamust now uses flexible array
8788         * lib/dfa.c: Include flexmember.h.
8789         (dfamust, dfamustfree): Adjust to struct dfamust change.
8790         This saves a call to malloc+free.
8791         * lib/dfa.h (struct dfamust): Make the final member a
8792         flexible array member.
8793         * modules/dfa (Depends-on): Add flexmember.
8795         dfa: fast->small for array elements
8796         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
8797         since this type is used in arrays.  This change is more for
8798         documentation than for any practical effect, since the two types
8799         are the same on all known platforms.
8801 2019-12-19  Bruno Haible  <bruno@clisp.org>
8803         iconv tests: Test canonicalized, not system-dependent, encoding names.
8804         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
8805         * modules/iconv-tests (Depends-on): Add iconv_open.
8807 2019-12-18  Bruno Haible  <bruno@clisp.org>
8809         localename: Fix test failure on AIX 7.2.
8810         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
8811         locales on AIX.
8812         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
8813         locales on AIX.
8815 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8817         Improve port of AC_C_RESTRICT to Oracle C++
8818         Problem reported by Christian Biesinger in:
8819         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
8820         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
8821         Oracle Developer Studio C++ 12.5 or later.
8823 2019-12-18  Bruno Haible  <bruno@clisp.org>
8825         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
8826         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
8828 2019-12-18  Bruno Haible  <bruno@clisp.org>
8830         localename: Ensure multithread-safety in future changes.
8831         * lib/localename.c (setlocale): Reference the system's setlocale().
8832         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
8833         (gl_locale_name_posix): Likewise.
8834         * modules/localename (Depends-on): Add setlocale-null.
8836 2019-12-18  Bruno Haible  <bruno@clisp.org>
8838         setlocale-null: Make API more useful.
8839         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
8840         callers changed.
8841         (setlocale_null): New declaration.
8842         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
8843         extracted from setlocale_null_unlocked.
8844         (setlocale_null_unlocked): Invoke it.
8845         (setlocale_null_r): Renamed from setlocale_null.
8846         (setlocale_null): New function, extracted from setlocale_mtsafe in
8847         setlocale.c.
8848         * lib/setlocale.c: Don't include <errno.h>.
8849         (setlocale_mtsafe): Invoke setlocale_null.
8850         * lib/setlocale-lock.c: Update comments.
8851         * doc/posix-functions/setlocale.texi: Mention both functions.
8853 2019-12-18  Bruno Haible  <bruno@clisp.org>
8855         localename: Optimize code for native Windows.
8856         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
8857         category (not allowed here).
8859 2019-12-18  Bruno Haible  <bruno@clisp.org>
8861         setlocale: Make calls with NULL argument multithread-safe.
8862         * lib/setlocale.c: Include <errno.h>.
8863         (setlocale_mtsafe): New function.
8864         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
8865         (setlocale_improved): Renamed from rpl_setlocale.
8866         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
8867         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
8868         LIB_SETLOCALE.
8869         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
8870         (Link): New section.
8871         * tests/locale.c: Undefine setlocale.
8872         * tests/test-setlocale_null-one.c: Likewise.
8873         * tests/test-setlocale_null-all.c: Likewise.
8874         * modules/setlocale-tests (Makefile.am): Link the test programs with
8875         $(LIB_SETLOCALE).
8876         * modules/astrxfrm-tests (Makefile.am): Likewise.
8877         * modules/btowc-tests (Makefile.am): Likewise.
8878         * modules/c-ctype-tests (Makefile.am): Likewise.
8879         * modules/c-snprintf-tests (Makefile.am): Likewise.
8880         * modules/c-strcase-tests (Makefile.am): Likewise.
8881         * modules/c-vasprintf-tests (Makefile.am): Likewise.
8882         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
8883         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
8884         * modules/dfa-tests (Makefile.am): Likewise.
8885         * modules/duplocale-tests (Makefile.am): Likewise.
8886         * modules/hard-locale-tests (Makefile.am): Likewise.
8887         * modules/localcharset-tests (Makefile.am): Likewise.
8888         * modules/localename-tests (Makefile.am): Likewise.
8889         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8890         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8891         * modules/mbrtowc-tests (Makefile.am): Likewise.
8892         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8893         * modules/mbscasestr-tests (Makefile.am): Likewise.
8894         * modules/mbschr-tests (Makefile.am): Likewise.
8895         * modules/mbscspn-tests (Makefile.am): Likewise.
8896         * modules/mbsinit-tests (Makefile.am): Likewise.
8897         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8898         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8899         * modules/mbspbrk-tests (Makefile.am): Likewise.
8900         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8901         * modules/mbsrchr-tests (Makefile.am): Likewise.
8902         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8903         * modules/mbsspn-tests (Makefile.am): Likewise.
8904         * modules/mbsstr-tests (Makefile.am): Likewise.
8905         * modules/nl_langinfo-tests (Makefile.am): Likewise.
8906         * modules/quotearg-tests (Makefile.am): Likewise.
8907         * modules/regex-tests (Makefile.am): Likewise.
8908         * modules/strfmon_l-tests (Makefile.am): Likewise.
8909         * modules/strtod-tests (Makefile.am): Likewise.
8910         * modules/strtold-tests (Makefile.am): Likewise.
8911         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
8912         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
8913         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
8914         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
8915         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
8916         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
8917         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
8918         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8919         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
8920         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
8921         * modules/wcrtomb-tests (Makefile.am): Likewise.
8922         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
8923         * modules/wcsrtombs-tests (Makefile.am): Likewise.
8924         * modules/wcwidth-tests (Makefile.am): Likewise.
8925         * doc/posix-functions/setlocale.texi: Mention that the multithread-
8926         safety fix is also available in module 'setlocale'.
8928 2019-12-18  Bruno Haible  <bruno@clisp.org>
8930         hard-locale: Make multithread-safe.
8931         * lib/hard-locale.h (hard_locale): Move documentation to here.
8932         * lib/hard-locale.c: Don't include <stdlib.h>.
8933         (GLIBC_VERSION): Remove macro.
8934         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
8935         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
8936         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
8937         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
8938         (Link): New section.
8939         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
8940         $(LIB_HARD_LOCALE).
8942 2019-12-18  Bruno Haible  <bruno@clisp.org>
8944         hard-locale: Avoid test failure on Haiku.
8945         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
8947 2019-12-18  Bruno Haible  <bruno@clisp.org>
8949         setlocale-null: Handle NULL result from setlocale.
8950         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
8951         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
8952         from setlocale or _wsetlocale.
8954 2019-12-18  Bruno Haible  <bruno@clisp.org>
8956         hard-locale: Add test.
8957         * tests/test-hard-locale.c: New file.
8958         * tests/locale.c: New file.
8959         * modules/hard-locale-tests: New file.
8961 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8963         dfa: do not match invalid UTF-8
8964         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
8965         from 5 to 9 tokens; this is needed due to the changes to
8966         add_utf8_anychar.
8967         (charclass_index): 2nd arg is now pointer-to-const.
8968         (add_utf8_anychar): Match only valid UTF-8 byte sequences
8969         instead of allowing overlong encodings or surrogate halves.
8971         dfa: simplify charclass by assuming C99
8972         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
8973         (charclass_word): Now always uint_fast64_t.
8974         (CHARCLASS_PAIR): Remove.
8975         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
8977         fts: tune via calloc
8978         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
8980         dfa: tune via xzalloc
8981         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
8983 2019-12-17  Bruno Haible  <bruno@clisp.org>
8985         localcharset: Fix multithread-safety bug on Windows and OS/2.
8986         * lib/localcharset.h (locale_charset): Clarify when the result becomes
8987         invalid.
8988         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
8989         assemble the result.
8991 2019-12-17  Bruno Haible  <bruno@clisp.org>
8993         localcharset: Optimize code for native Windows.
8994         * lib/localcharset.c (locale_charset): Don't bother calling
8995         setlocale (LC_ALL, NULL) since we're not interested in its result.
8997 2019-12-17  Bruno Haible  <bruno@clisp.org>
8999         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
9000         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
9001         setlocale.
9002         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
9003         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
9004         * modules/nl_langinfo (Depends-on): Add setlocale-null.
9006 2019-12-17  Bruno Haible  <bruno@clisp.org>
9008         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
9009         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
9010         stack-allocated buffer to assemble each result and different static
9011         buffers to return it.
9012         * tests/test-nl_langinfo-mt.c: New file.
9013         * modules/nl_langinfo-tests (Files): Add it.
9014         (Depends-on): Add thread, nanosleep.
9015         (Makefile.am): Build test-nl_langinfo-mt test.
9017 2019-12-17  Bruno Haible  <bruno@clisp.org>
9019         langinfo: Document more details.
9020         * doc/posix-headers/langinfo.texi: List platform details.
9021         * doc/posix-functions/nl_langinfo.texi: Likewise.
9023 2019-12-17  Bruno Haible  <bruno@clisp.org>
9025         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
9026         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
9027         and Martin Storsjö <martin@martin.st>
9028         in <https://savannah.gnu.org/bugs/?57406>.
9029         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
9030         mingw.
9032 2019-12-17  Bruno Haible  <bruno@clisp.org>
9034         glob: Avoid warning on mingw.
9035         Reported by Christian Biesinger <cbiesinger@google.com> in
9036         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
9037         * lib/glob.c (__stat64): Undefine first.
9039 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9041         xalloc: tune xzalloc for fresh allocations
9042         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
9043         because when the memory is freshly allocated from the OS via sbrk
9044         or mmap, calloc can avoid doing the memset.
9046         dfa: new function dfacopysyntax
9047         * lib/dfa.c (struct dfa): Move syntax member later so
9048         that dfacopysyntax can easily clear earlier members.
9049         (dfacopysyntax): New function, used by Gawk.
9051 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9053         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
9054         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
9055         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
9056         if not already defined.
9058         dfa: remove one dependency on MB_CUR_MAX
9059         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
9061         dfa: remove struct lexer_state.cur_mb_len
9062         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
9063         as it’s not needed and the code is simpler without it.
9064         All uses removed.
9066 2019-12-16  Bruno Haible  <bruno@clisp.org>
9068         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
9069         Reported by Arnold Robbins <arnold@skeeve.com>.
9070         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
9071         copied from lib/glthread/lock.h.
9072         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
9073         (setlocale_null_with_lock): If pthread_in_use() is false, use
9074         setlocale_null_unlocked directly.
9075         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
9076         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
9077         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
9078         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
9079         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
9080         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
9082 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9084         dfa: make dfasyntax thread-safe
9085         Problem reported by Bruno Haible in:
9086         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
9087         * lib/dfa.c: Do not include locale.h.
9088         (struct dfa): Remove simple_locale member.
9089         All uses replaced by localeinfo.simple.
9090         (using_simple_locale): Remove; now present (with some
9091         changes) in localeinfo.c.
9092         (dfasyntax): No need to initialize removed member.
9094         localeinfo: record whether locale is simple
9095         * lib/localeinfo.c (using_simple_locale): New function,
9096         copied here from lib/dfa.c but with a change: it uses
9097         strcoll for its heuristic, instead of using setlocale.
9098         This lets it be thread-safe.
9099         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
9101 2019-12-15  Bruno Haible  <bruno@clisp.org>
9103         duplocale: Fix multithread-safety bug on AIX.
9104         * lib/duplocale.c: Don't include <stdlib.h>.
9105         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
9106         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9107         Set LIB_DUPLOCALE.
9108         * modules/duplocale (Depends-on): Add setlocale-null.
9109         (Link): New section.
9110         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
9111         $(LIB_DUPLOCALE).
9113 2019-12-15  Bruno Haible  <bruno@clisp.org>
9115         setlocale-null: Add tests.
9116         * tests/test-setlocale_null.c: New file.
9117         * tests/test-setlocale_null-one.c: New file.
9118         * tests/test-setlocale_null-all.c: New file.
9119         * modules/setlocale-null-tests: New file.
9121         setlocale-null: New module.
9122         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
9123         setlocale_null): New declarations.
9124         * lib/setlocale_null.c: New file.
9125         * lib/setlocale-lock.c: New file.
9126         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
9127         * m4/setlocale_null.m4: New file.
9128         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
9129         GNULIB_SETLOCALE_NULL.
9130         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
9131         * modules/setlocale-null: New file.
9132         * doc/posix-functions/setlocale.texi: Mention the new module.
9134 2019-12-15  Bruno Haible  <bruno@clisp.org>
9136         lock tests: Skip test when no multithreading is enabled.
9137         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
9139 2019-12-14  Bruno Haible  <bruno@clisp.org>
9141         locale, duplocale, localename: Fix last patch.
9142         Reported by Daniel Richard G. in
9143         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
9144         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
9145         Don't define if locale_t does not exist.
9147 2019-12-13  Bruno Haible  <bruno@clisp.org>
9149         locale, duplocale, localename: Fix errors if locale_t does not exist.
9150         Reported by Daniel Richard G. in
9151         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
9152         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
9153         macros.
9154         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
9155         HAVE_NEWLOCALE.
9156         * tests/test-localename.c: Likewise.
9157         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
9158         HAVE_DUPLOCALE.
9159         * tests/test-locale-c++.cc: Likewise.
9161 2019-12-13  Bruno Haible  <bruno@clisp.org>
9163         wcstok: Fix test failure on HP-UX.
9164         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
9165         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
9167 2019-12-12  Bruno Haible  <bruno@clisp.org>
9169         strtod, strtold tests: Avoid test failure on AIX 7.2.
9170         * tests/test-strtod1.c (main): Allow implementations in which ',' and
9171         '.' both are radix characters.
9172         * tests/test-strtold1.c (main): Likewise.
9174 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9176         dfa: prefer ptrdiff_t for API, too
9177         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
9178         but do this only for internal use for now.
9179         * NEWS: Mention the API change.
9180         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
9181         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
9182         values known to be nonnegative.
9183         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
9184         Prefer idx_t or ptrdiff_t to size_t for API.
9185         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
9186         Prefer ptrdiff_t to size_t for API.
9188         stdalign: port to xlclang 16.01
9189         Problem reportd by Bruno Haible in:
9190         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
9191         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
9192         ((__aligned__ (...))) with xlclang, as a top-level
9193         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
9194         xlclang version 16.01.0000.0001; the alignment directive is ignored.
9196 2019-12-12  Bruno Haible  <bruno@clisp.org>
9198         duplocale: Fix test failure on AIX 7.2 with xlclang.
9199         * lib/duplocale.c: Include <stdlib.h>.
9200         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
9201         value.
9203 2019-12-12  Bruno Haible  <bruno@clisp.org>
9205         stddef: Document the AIX xlc issue.
9206         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
9208 2019-12-12  Bruno Haible  <bruno@clisp.org>
9210         duplocale: Don't attempt to override if locale_t does not exist.
9211         Reported by Daniel Richard G. in
9212         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
9213         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
9214         HAVE_DUPLOCALE to 0.
9216 2019-12-12  Bruno Haible  <bruno@clisp.org>
9218         wcwidth: Avoid test failure on AIX 7.2.
9219         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
9220         negative.
9221         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
9223 2019-12-12  Bruno Haible  <bruno@clisp.org>
9225         ilogbl: Work around Cygwin bug.
9226         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
9227         correct.
9228         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
9230 2019-12-12  Bruno Haible  <bruno@clisp.org>
9232         strtold: Work around Cygwin bug.
9233         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
9234         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
9235         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
9236         STRTOLD_HAS_UNDERFLOW_BUG is defined.
9237         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
9239 2019-12-12  Bruno Haible  <bruno@clisp.org>
9241         strtold: Fix autoconf test.
9242         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
9244 2019-12-11  Bruno Haible  <bruno@clisp.org>
9246         fsync tests: Skip test that is known to fail.
9247         * doc/posix-functions/fsync.texi: Update list of platforms.
9248         * tests/test-fsync.c (main): Skip test with read-only file descriptors
9249         that is known to fail on AIX and Cygwin.
9251 2019-12-11  Bruno Haible  <bruno@clisp.org>
9253         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
9254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
9255         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
9256         HAVE_GETADDRINFO as a C macro.
9257         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
9258         declare as replacement functions.
9259         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
9260         define as no-op overrides.
9261         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
9262         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
9263         * modules/getaddrinfo (Depends-on, configure.ac): Test
9264         REPLACE_GETADDRINFO.
9265         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
9266         problem.
9267         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
9268         convention problems.
9270 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9272         dfa: prefer signed integers for internals
9273         Signed integers can be checked more easily for integer overflow.
9274         * lib/dfa.c (position, struct lexer_state, struct parser_state)
9275         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
9276         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
9277         (nsubtoks, copytoks, closure, alloc_position_set, delete)
9278         (replace, state_index, epsclosure, charclass_context)
9279         (state_separate_contexts, merge_nfa_state, dfaoptimize)
9280         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
9281         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
9282         (comsubs, inboth, allocmust):
9283         Prefer a signed to an unsigned integer when calculating indexes,
9284         unless the integer is part of the external API (a bigger deal,
9285         and to be done later).
9287         dfa: fix index overflow
9288         * lib/dfa.c (compare): Avoid integer overflow when analyzing
9289         very large regular expressions.
9291         dfa: update commentary for previous change
9292         * NEWS: Mention the change.
9293         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
9295 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9297         dfa: separate parse and compile phase
9298         ‘dfamust’ must be called after parsing and before tokens are
9299         reordered, but both are executed in the compilation phase.
9300         Token reordering was introduced in Gnulib commit
9301         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
9302         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
9303         * lib/dfa.c (dfaparse): Change it to global function.
9304         (dfacomp): If first argument is NULL, skip parse.
9305         * lib/dfa.h: (dfaparse): Add a prototype.
9307 2019-12-11  Bruno Haible  <bruno@clisp.org>
9309         unistd tests: Fix link error on MSVC.
9310         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
9311         $(LIB_GETLOGIN).
9313 2019-12-11  Bruno Haible  <bruno@clisp.org>
9315         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
9316         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
9317         and POSIX substitutes are supported in C++ mode.
9318         * NEWS: Likewise.
9320 2019-12-11  Bruno Haible  <bruno@clisp.org>
9322         stddef: Fix compilation error in C++ mode on MSVC.
9323         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
9324         instead, include <cstddef>.
9326 2019-12-11  Bruno Haible  <bruno@clisp.org>
9328         unistd: Fix compilation error in C++ mode on MSVC.
9329         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
9330         does not have <unistd.h>.
9332 2019-12-11  Bruno Haible  <bruno@clisp.org>
9334         locale: Fix compilation error in C++ mode on MSVC.
9335         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
9336         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
9337         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
9338         int_n_sep_by_space): Define as macros on MSVC.
9340 2019-12-11  Bruno Haible  <bruno@clisp.org>
9342         wchar: Fix compilation error in C++ mode on MSVC.
9343         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
9345 2019-12-11  Bruno Haible  <bruno@clisp.org>
9347         pthread-thread: Fix compilation error in C++ mode on MSVC.
9348         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
9349         _GL_CXXALIAS_RPL invocation.
9351 2019-12-08  Bruno Haible  <bruno@clisp.org>
9353         Fix compilation errors in C++ mode on Haiku.
9354         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
9355         non-glibc systems.
9356         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
9357         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9358         posix_spawnattr_setschedparam): Likewise.
9359         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
9360         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9361         * lib/unistd.in.h (usleep): Likewise.
9363 2019-12-08  Bruno Haible  <bruno@clisp.org>
9365         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
9366         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
9367         * modules/fseeko (configure.ac-early): Require it instead of
9368         AC_FUNC_FSEEKO.
9369         * modules/ftello (configure.ac-early): Likewise.
9370         * modules/fflush (configure.ac-early): Likewise.
9372 2019-12-08  Bruno Haible  <bruno@clisp.org>
9374         Fix compilation error in C++ mode on HP-UX 11.
9375         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
9376         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
9378 2019-12-08  Bruno Haible  <bruno@clisp.org>
9380         Fix compilation errors on HP-UX 11/ia64.
9381         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
9382         _GL_FUNCDECL_SYS.
9384 2019-12-08  Bruno Haible  <bruno@clisp.org>
9386         Fix compilation error in C++ mode on OpenBSD.
9387         * lib/signal.in.h (signal): Declare on OpenBSD.
9389 2019-12-08  Bruno Haible  <bruno@clisp.org>
9391         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
9392         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
9393         instead of #error.
9395 2019-12-08  Bruno Haible  <bruno@clisp.org>
9397         Fix compilation errors in C++ mode on FreeBSD.
9398         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
9399         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
9400         * lib/threads.in.h (thrd_exit): Likewise.
9401         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
9403 2019-12-08  Bruno Haible  <bruno@clisp.org>
9405         Fix compilation errors in C++ mode on macOS and FreeBSD.
9406         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
9407         or FreeBSD with clang, use the approach without C preprocessor macro.
9409 2019-12-07  Bruno Haible  <bruno@clisp.org>
9411         Fix compilation errors in C++ mode on AIX with xlclang++.
9412         Reported by Christian Biesinger <cbiesinger@google.com> in
9413         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9414         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
9416 2019-12-07  Bruno Haible  <bruno@clisp.org>
9418         Document compilation error in C++ mode on NetBSD 8.0.
9419         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
9421 2019-12-07  Bruno Haible  <bruno@clisp.org>
9423         Fix compilation errors in C++ mode on Solaris 10.
9424         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
9425         to non-empty on Solaris with a non-GCC compiler.
9426         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
9428 2019-12-07  Bruno Haible  <bruno@clisp.org>
9430         Reword NEWS entry.
9431         * NEWS: Reword the latest NEWS entry.
9433 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
9435         Move xstrtol_fatal to a new xstrtol-error module.
9436         * lib/xstrtol.h: Stop including <getopt.h>.
9437         (xstrtol_fatal): Move ...
9438         * lib/xstrtol-error.h: ... here.  New file.
9439         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
9440         * tests/test-xstrtol.c: Likewise.
9441         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
9442         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
9443         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
9444         * modules/xstrtol-error: New file.
9445         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
9446         * MODULES.html.sh: Add xstrtol-error.
9447         * NEWS: Document the change.
9449 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9451         nstrftime: better width support for %N, %z
9452         * lib/nstrftime.c (width_add, width_add1, width_cpy):
9453         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
9454         a new WIDTH parameter.
9455         (add, add1, cpy): Use these macros.
9456         (width_add): Do not treat digits == 0 as a special case,
9457         do not pad if padding is ‘-’, and do not use a negative width.
9458         (__strftime_internal): Redo formatting of nanoseconds and numeric
9459         timezones to avoid buffer misuse in unusual cases, and so that
9460         widths make more sense.  Add support for widths greater than 9 to
9461         the %N format; they are zero filled on the right.
9462         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
9464 2019-12-05  Bruno Haible  <bruno@clisp.org>
9466         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
9467         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
9468         set REPLACE_ISFINITE to 1.
9469         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
9470         REPLACE_ISINF to 1.
9471         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
9472         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
9473         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9474         * lib/threads.in.h (call_once): Likewise.
9475         * lib/iconv.in.h (iconv): Likewise.
9477 2019-12-05  Bruno Haible  <bruno@clisp.org>
9479         wchar: Add more C++ tests.
9480         Reported by Christian Biesinger <cbiesinger@google.com> in
9481         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9482         * tests/test-wchar-c++3.cc: New file.
9483         * modules/wchar-c++-tests (Files): Add it.
9484         (Makefile.am): Compile it.
9486 2019-12-05  Bruno Haible  <bruno@clisp.org>
9488         Add more C++ tests.
9490         assert-h: Add C++ tests.
9491         * tests/test-assert-h-c++.cc: New file.
9492         * tests/test-assert-h-c++2.cc: New file.
9493         * modules/assert-h-c++-tests: New file.
9494         * modules/assert-h-tests: New file.
9496         ctype: Add C++ tests.
9497         * tests/test-ctype-c++.cc: New file.
9498         * tests/test-ctype-c++2.cc: New file.
9499         * modules/ctype-c++-tests: New file.
9500         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
9502         errno: Add C++ tests.
9503         * tests/test-errno-c++.cc: New file.
9504         * tests/test-errno-c++2.cc: New file.
9505         * modules/errno-c++-tests: New file.
9506         * modules/errno-tests (Depends-on): Add errno-c++-tests.
9508         float: Add C++ tests.
9509         * tests/test-float-c++.cc: New file.
9510         * tests/test-float-c++2.cc: New file.
9511         * modules/float-c++-tests: New file.
9512         * modules/float-tests (Depends-on): Add float-c++-tests.
9514         inttypes: Add more C++ tests.
9515         * tests/test-inttypes-c++2.cc: New file.
9516         * modules/inttypes-c++-tests (Files): Add it.
9517         (Makefile.am): Compile it.
9519         limits-h: Add C++ tests.
9520         * tests/test-limits-h-c++.cc: New file.
9521         * tests/test-limits-h-c++2.cc: New file.
9522         * modules/limits-h-c++-tests: New file.
9523         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
9525         stdarg: Add C++ tests.
9526         * tests/test-stdarg-c++.cc: New file.
9527         * tests/test-stdarg-c++2.cc: New file.
9528         * modules/stdarg-c++-tests: New file.
9529         * modules/stdarg-tests: New file.
9531         stdbool: Add C++ tests.
9532         * tests/test-stdbool-c++.cc: New file.
9533         * tests/test-stdbool-c++2.cc: New file.
9534         * modules/stdbool-c++-tests: New file.
9535         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
9537         stddef: Add C++ tests.
9538         * tests/test-stddef-c++.cc: New file.
9539         * tests/test-stddef-c++2.cc: New file.
9540         * modules/stddef-c++-tests: New file.
9541         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
9543         stdint: Add C++ tests.
9544         * tests/test-stdint-c++.cc: New file.
9545         * tests/test-stdint-c++2.cc: New file.
9546         * modules/stdint-c++-tests: New file.
9547         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
9549         wchar: Add more C++ tests.
9550         * tests/test-wchar-c++2.cc: New file.
9551         * modules/wchar-c++-tests (Files): Add it.
9552         (Makefile.am): Compile it.
9554         wctype-h: Add more C++ tests.
9555         * tests/test-wctype-h-c++2.cc: New file.
9556         * modules/wctype-h-c++-tests (Files): Add it.
9557         (Makefile.am): Compile it.
9559 2019-12-04  Bruno Haible  <bruno@clisp.org>
9561         Fix compilation errors in C++ mode with xlclang++ on AIX.
9562         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
9563         C++ mode on AIX.
9564         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
9565         without C preprocessor macro.
9566         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
9567         _GL_CXXALIAS_SYS.
9568         * lib/threads.in.h (thrd_exit): Likewise.
9570 2019-12-04  Bruno Haible  <bruno@clisp.org>
9572         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
9573         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
9574         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
9576 2019-12-04  Bruno Haible  <bruno@clisp.org>
9578         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
9579         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
9580         _GL_CXXALIASWARN invocation on non-glibc systems.
9581         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
9582         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
9583         iswctype, towlower, towupper): Likewise.
9585 2019-12-03  Bruno Haible  <bruno@clisp.org>
9587         Avoid hassles caused by [[noreturn]] in C++.
9588         Reported by Christian Biesinger <cbiesinger@google.com> in
9589         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
9590         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
9591         * lib/_Noreturn.h: Likewise.
9593 2019-12-02  Bruno Haible  <bruno@clisp.org>
9595         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
9596         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
9597         LIBMULTITHREAD.
9598         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
9599         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
9600         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
9601         gl_THREADLIB.
9602         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
9604 2019-12-02  Bruno Haible  <bruno@clisp.org>
9606         Fix some more link errors with --enable-threads=isoc.
9607         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
9608         * modules/pthread-rwlock (Depends-on): Likewise.
9610 2019-12-02  Bruno Haible  <bruno@clisp.org>
9612         Fix link errors with --enable-threads=posix on AIX.
9613         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
9614         program with $(LIBTHREAD).
9615         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
9616         program with $(LIBTHREAD).
9618 2019-12-02  Bruno Haible  <bruno@clisp.org>
9620         Fix link errors with --enable-threads=posix on AIX.
9621         * modules/mbrtowc (Link): New section.
9622         * modules/acl (Link): Likewise.
9623         * modules/argmatch (Link): Likewise.
9624         * modules/backup-rename (Link): Likewise.
9625         * modules/backupfile (Link): Likewise.
9626         * modules/closein (Link): Likewise.
9627         * modules/closeout (Link): Likewise.
9628         * modules/copy-file (Link): Likewise.
9629         * modules/csharpcomp (Link): Likewise.
9630         * modules/csharpexec (Link): Likewise.
9631         * modules/dfa (Link): Likewise.
9632         * modules/exclude (Link): Likewise.
9633         * modules/fnmatch (Link): Likewise.
9634         * modules/fnmatch-gnu (Link): Likewise.
9635         * modules/fnmatch-posix (Link): Likewise.
9636         * modules/glob (Link): Likewise.
9637         * modules/human (Link): Likewise.
9638         * modules/javacomp (Link): Likewise.
9639         * modules/javaexec (Link): Likewise.
9640         * modules/javaversion (Link): Likewise.
9641         * modules/mbfile (Link): Likewise.
9642         * modules/mbiter (Link): Likewise.
9643         * modules/mbmemcasecmp (Link): Likewise.
9644         * modules/mbmemcasecoll (Link): Likewise.
9645         * modules/mbrlen (Link): Likewise.
9646         * modules/mbscasecmp (Link): Likewise.
9647         * modules/mbscasestr (Link): Likewise.
9648         * modules/mbschr (Link): Likewise.
9649         * modules/mbscspn (Link): Likewise.
9650         * modules/mbsinit (Link): Likewise.
9651         * modules/mbslen (Link): Likewise.
9652         * modules/mbsncasecmp (Link): Likewise.
9653         * modules/mbsnlen (Link): Likewise.
9654         * modules/mbsnrtowcs (Link): Likewise.
9655         * modules/mbspbrk (Link): Likewise.
9656         * modules/mbspcasecmp (Link): Likewise.
9657         * modules/mbsrchr (Link): Likewise.
9658         * modules/mbsrtowcs (Link): Likewise.
9659         * modules/mbssep (Link): Likewise.
9660         * modules/mbsspn (Link): Likewise.
9661         * modules/mbsstr (Link): Likewise.
9662         * modules/mbstok_r (Link): Likewise.
9663         * modules/mbswidth (Link): Likewise.
9664         * modules/mbuiter (Link): Likewise.
9665         * modules/mkdir-p (Link): Likewise.
9666         * modules/propername (Link): Likewise.
9667         * modules/quote (Link): Likewise.
9668         * modules/quotearg (Link): Likewise.
9669         * modules/quotearg-simple (Link): Likewise.
9670         * modules/regex-quote (Link): Likewise.
9671         * modules/rpmatch (Link): Likewise.
9672         * modules/sh-quote (Link): Likewise.
9673         * modules/system-quote (Link): Likewise.
9674         * modules/trim (Link): Likewise.
9675         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9676         * modules/unistdio/ulc-fprintf (Link): Likewise.
9677         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9678         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9679         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9680         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9681         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9682         * modules/xfreopen (Link): Likewise.
9683         * modules/xmemcoll (Link): Likewise.
9684         * modules/yesno (Link): Likewise.
9685         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
9686         * modules/argmatch-tests (Makefile.am): Likewise.
9687         * modules/closein-tests (Makefile.am): Likewise.
9688         * modules/copy-file-tests (Makefile.am): Likewise.
9689         * modules/dfa-tests (Makefile.am): Likewise.
9690         * modules/fnmatch-tests (Makefile.am): Likewise.
9691         * modules/glob-tests (Makefile.am): Likewise.
9692         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9693         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9694         * modules/mbrtowc-tests (Makefile.am): Likewise.
9695         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9696         * modules/mbscasestr-tests (Makefile.am): Likewise.
9697         * modules/mbschr-tests (Makefile.am): Likewise.
9698         * modules/mbscspn-tests (Makefile.am): Likewise.
9699         * modules/mbsinit-tests (Makefile.am): Likewise.
9700         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9701         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9702         * modules/mbspbrk-tests (Makefile.am): Likewise.
9703         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9704         * modules/mbsrchr-tests (Makefile.am): Likewise.
9705         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9706         * modules/mbsspn-tests (Makefile.am): Likewise.
9707         * modules/mbsstr-tests (Makefile.am): Likewise.
9708         * modules/quotearg-tests (Makefile.am): Likewise.
9709         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9710         * modules/readtokens-tests (Makefile.am): Likewise.
9711         * modules/regex-quote-tests (Makefile.am): Likewise.
9712         * modules/sh-quote-tests (Makefile.am): Likewise.
9713         * modules/system-quote-tests (Makefile.am): Likewise.
9714         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9715         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9716         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9717         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9718         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9719         * modules/yesno-tests (Makefile.am): Likewise.
9721 2019-12-02  Bruno Haible  <bruno@clisp.org>
9723         Simplify link sections.
9724         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
9725         * modules/lock (Link): Likewise.
9726         * modules/cond (Link): Likewise.
9727         * modules/tls (Link): Likewise.
9728         * modules/yield (Link): Likewise.
9729         * modules/regex (Link): Likewise.
9730         * modules/localename (Link): Likewise.
9731         * modules/unicase/locale-language (Link): Likewise.
9732         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
9734 2019-12-02  Bruno Haible  <bruno@clisp.org>
9736         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
9737         * tests/test-thread_self.c (main): Disable test on AIX.
9739 2019-12-01  Bruno Haible  <bruno@clisp.org>
9741         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
9742         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
9743         gl_THREADLIB_EARLY_BODY.
9744         (gl_THREADLIB_EARLY_BODY): Invoke it.
9745         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
9746         (gl_THREADLIB_BODY): Invoke it.
9747         (gl_PTHREADLIB): New macro.
9748         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
9749         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
9750         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
9751         * modules/pthread-h (Files): Add threadlib.m4.
9752         (Depends-on): Remove threadlib.
9753         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
9754         and _THREAD_SAFE here.
9755         (Link): Use LIBPTHREAD, not LIBTHREAD.
9756         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
9757         LIBMULTITHREAD.
9758         * modules/pthread-once (Link): Likewise.
9759         * modules/pthread-mutex (Link): Likewise.
9760         * modules/pthread-rwlock (Link): Likewise.
9761         * modules/pthread-cond (Link): Likewise.
9762         * modules/pthread-tss (Link): Likewise.
9763         * modules/pthread-spin (Link): Likewise.
9764         * modules/pthread (Link): Likewise.
9765         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
9766         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
9767         * modules/pthread-once-tests (test_pthread_once1_LDADD,
9768         test_pthread_once2_LDADD): Likewise.
9769         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
9770         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
9771         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
9772         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
9774 2019-12-01  Bruno Haible  <bruno@clisp.org>
9776         cond: State linking requirements.
9777         * modules/cond (Link): New section.
9779 2019-12-01  Bruno Haible  <bruno@clisp.org>
9781         threadlib: Remove unnecessary file (left over from 2019-07-06).
9782         * modules/threadlib (Files): Remove config.rpath.
9784 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
9786         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
9787         Reported by Dagobert Michelsen <dam@opencsw.org> in
9788         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
9789         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
9790         list of strings instead of one string.
9791         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
9792         * pygnulib/GLImport.py (execute): Likewise.
9794 2019-11-27  Bruno Haible  <bruno@clisp.org>
9796         openpty, forkpty: Fix build error on Solaris 11.4.
9797         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
9798         also in <termios.h>.
9799         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
9800         of the function also in <termios.h>.
9801         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
9802         * doc/glibc-functions/forkpty.texi: Likewise.
9804 2019-11-27  Bruno Haible  <bruno@clisp.org>
9806         New options --enable-threads=isoc and --enable-threads=isoc+posix.
9807         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
9808         --enable-threads=isoc and --enable-threads=isoc+posix.
9809         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
9810         When both the ISO C and the POSIX threads API are available, choose
9811         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
9812         --enable-threads=isoc+posix was specified. When only the ISO C threads
9813         API is available and --enable-threads=iso was specified, choose
9814         USE_ISOC_THREADS.
9815         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
9816         USE_ISOC_AND_POSIX_THREADS.
9817         * lib/glthread/lock.c: Likewise.
9818         * lib/glthread/cond.h: Likewise.
9819         * lib/glthread/cond.c: Likewise.
9820         * lib/glthread/tls.h: Likewise.
9821         * lib/glthread/tls.c: Likewise.
9822         * lib/glthread/yield.h: Likewise.
9823         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
9824         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
9825         * lib/glthread/thread.c: Likewise.
9826         * lib/glthread/threadlib.c: Likewise.
9827         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
9828         USE_ISOC_AND_POSIX_THREADS.
9829         * tests/test-cond.c: Consider USE_ISOC_THREADS and
9830         USE_ISOC_AND_POSIX_THREADS.
9831         * tests/test-tls.c: Likewise.
9832         * tests/test-thread_create.c (main): Likewise.
9833         * tests/test-pthread-cond.c: Likewise.
9834         * tests/test-pthread-mutex.c: Likewise.
9835         * tests/test-pthread-once2.c: Likewise.
9836         * tests/test-pthread-rwlock.c: Likewise.
9837         * tests/test-pthread-tss.c: Likewise.
9838         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
9839         USE_POSIX_THREADS.
9841 2019-11-24  Bruno Haible  <bruno@clisp.org>
9843         mbrtowc: Modernize autoconf test.
9844         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
9845         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
9846         try a UTF-8 locale.
9847         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
9849 2019-11-24  Bruno Haible  <bruno@clisp.org>
9851         Fix errors in C++ mode on mingw.
9852         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
9853         instead of _GL_CXXALIAS_SYS.
9854         * lib/signal.in.h (pthread_sigmask): Likewise.
9855         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
9856         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9857         Likewise.
9858         * lib/wchar.in.h (btowc): Likewise.
9860 2019-11-24  Bruno Haible  <bruno@clisp.org>
9862         sys_time: Fix errors in C++ mode on mingw.
9863         * lib/sys_time.in.h (timeval): Restore the redirection
9864         '#define timeval rpl_timeval', for when the symbol timeval is being used
9865         outside the 'gnulib' namespace.
9866         * lib/sys_select.in.h (select): In C++, write 'timeval', not
9867         'struct timeval'.
9869 2019-11-24  Bruno Haible  <bruno@clisp.org>
9871         iswctype: Fix errors in C++ mode on mingw.
9872         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
9873         is 1.
9874         * lib/iswctype.c (iswctype): Add another implementation, for the
9875         GNULIB_defined_wint_t case.
9876         * modules/iswctype (configure.ac): Compile iswctype.c also if
9877         GNULIB_OVERRIDES_WINT_T is 1.
9879 2019-11-24  Bruno Haible  <bruno@clisp.org>
9881         windows-timedmutex: Fix errors in C++ mode on mingw.
9882         * lib/windows-timedmutex.h: Add closing brace.
9884 2019-11-24  Bruno Haible  <bruno@clisp.org>
9886         Fix errors in C++ mode on Cygwin.
9887         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
9888         _GL_CXXALIAS_SYS.
9890 2019-11-24  Bruno Haible  <bruno@clisp.org>
9892         time_r: Fix for mingw (regression from 2019-11-16).
9893         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
9894         AC_LINK_IFELSE test only if the function does not appear to exist.
9896 2019-11-24  Bruno Haible  <bruno@clisp.org>
9898         wcstok: Add tests.
9899         * tests/test-wcstok.c: New file.
9900         * modules/wcstok-tests: New file.
9902 2019-11-24  Bruno Haible  <bruno@clisp.org>
9904         wcstok: Work around wrong signature on native Windows.
9905         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
9906         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
9907         REPLACE_WCSTOK.
9908         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
9909         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
9910         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
9911         * doc/posix-functions/wcstok.texi: Mention the problem.
9913 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
9915         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
9916         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
9917         remove workaround for GCC bug 91450 as the bug should be fixed
9918         there too.
9920 2019-11-21  Bruno Haible  <bruno@clisp.org>
9922         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
9923         Reported by Christian Biesinger <cbiesinger@google.com> in
9924         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
9925         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
9926         non-glibc systems.
9927         * lib/locale.in.h (localeconv, setlocale): Likewise.
9928         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
9929         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
9930         rint, round, trunc): Likewise.
9931         * lib/monetary.in.h (strfmon_l): Likewise.
9932         * lib/pthread.in.h (pthread_mutexattr_getrobust,
9933         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
9934         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
9935         pthread_spin_destroy): Likewise.
9936         * lib/signal.in.h (raise, signal): Likewise.
9937         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
9938         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
9939         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
9940         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
9941         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
9942         Likewise.
9943         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
9944         Likewise.
9945         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
9946         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
9947         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
9948         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
9949         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
9950         wcsftime): Likewise.
9951         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
9953 2019-11-21  Bruno Haible  <bruno@clisp.org>
9955         Fix various errors in _GL_CXXALIAS_SYS invocations.
9956         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
9957         _GL_CXXALIAS_SYS.
9958         * lib/pthread.in.h (pthread_mutexattr_gettype,
9959         pthread_mutexattr_getrobust): Likewise.
9960         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
9961         * lib/sys_socket.in.h (recv, send): Likewise.
9962         * lib/unistd.in.h (getdtablesize): Likewise.
9963         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
9964         'struct timeval'.
9966 2019-11-21  Bruno Haible  <bruno@clisp.org>
9968         math tests: Update after 2019-08-28 change.
9969         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
9970         return type of 'bool', not 'int'.
9972 2019-11-21  Bruno Haible  <bruno@clisp.org>
9974         pthread-spin: Fix errors in C++ mode.
9975         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
9976         functions as nonexistent when <pthread.h> exists but does not define
9977         the pthread_spinlock_t type.
9979 2019-11-21  Bruno Haible  <bruno@clisp.org>
9981         pthread-mutex: Fix errors in C++ mode.
9982         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
9983         pthread_mutexattr_getrobust exists. If not, define
9984         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
9985         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
9986         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
9987         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
9988         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
9989         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
9990         definition.
9992 2019-11-19  Bruno Haible  <bruno@clisp.org>
9994         threads-h tests: Fix typo.
9995         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
9997 2019-11-19  Bruno Haible  <bruno@clisp.org>
9999         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
10000         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
10001         to 'const pthread_attr_t *'.
10002         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
10003         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
10005 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10007         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
10008         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
10009         work around GCC bug 91450 as the bug should be fixed there.
10011 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10013         glob: get closer to glibc glob.c
10014         Omit differences from glibc when the differences don’t matter.
10015         * lib/glob.c [_LIBC]: Include shlib-compat.h.
10016         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
10017         (glob_lstat): New function.
10018         (glob_in_dir): Use it.
10019         (GLOB_ATTRIBUTE): Define to empty if not already defined.
10020         Use changed.
10022 2019-11-18  Bruno Haible  <bruno@clisp.org>
10024         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
10025         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
10026         UINTPTR_MAX): Consider _WIN64.
10027         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
10028         a pointer.
10030 2019-11-18  Bruno Haible  <bruno@clisp.org>
10032         stdint: Fix value of WINT_MAX when we override wint_t.
10033         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
10034         when GNULIB_OVERRIDES_WINT_T is 1.
10036 2019-11-18  Bruno Haible  <bruno@clisp.org>
10038         vcs-to-changelog: New module.
10039         * modules/vcs-to-changelog: New file.
10040         * MODULES.html.sh (func_all_modules): Add it.
10042 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10044         vcs-to-changelog: New script to generate ChangeLog-like output.
10045         Discussion:
10046         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
10047         * build-aux/vcs_to_changelog.py: New file.
10048         * build-aux/vcstocl/frontend_c.py: New file.
10049         * build-aux/vcstocl/misc_util.py: New file.
10050         * build-aux/vcstocl/vcs_git.py: New file.
10052 2019-11-18  Bruno Haible  <bruno@clisp.org>
10054         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
10055         Reported by Keith Marshall <keith@users.osdn.me> in
10056         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
10057         and <https://osdn.net/projects/mingw/ticket/39677>.
10058         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
10059         already been defined by mingw's <crtdefs.h>.
10061 2019-11-18  Bruno Haible  <bruno@clisp.org>
10063         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
10064         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
10065         conditionally enabled.
10067 2019-11-18  Bruno Haible  <bruno@clisp.org>
10069         gc: Mirror libgcrypt.m4 from libgcrypt.
10070         * config/srclistvars.sh (LIBGCRYPT): New variable.
10071         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
10073 2019-11-17  Bruno Haible  <bruno@clisp.org>
10075         locale, localename: Improve z/OS support.
10076         Reported by Daniel Richard G. in
10077         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
10078         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
10079         gl_LOCALE_H.
10080         (gl_LOCALE_H): Require it.
10081         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
10082         defined, don't even check for newlocale, duplocale, freelocale.
10083         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
10084         locale_t is not defined.
10086 2019-11-17  Bruno Haible  <bruno@clisp.org>
10088         havelib: Make libdirstems processing more flexible.
10089         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
10090         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
10091         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
10092         patch from 2017-02-19).
10093         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
10094         libdirs, even when the first one exists as a directory.
10096 2019-11-17  Bruno Haible  <bruno@clisp.org>
10098         havelib: Match the bitness when searching for libraries.
10099         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
10100         acl_is_expected_elfclass.
10101         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
10102         file exists, in ELF, also test whether it has the ELF class that
10103         corresponds to the host's bitness.
10105 2019-11-17  Bruno Haible  <bruno@clisp.org>
10107         host-cpu-c-abi: Add support for unknown CPUs.
10108         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
10109         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
10110         32-bit or 64-bit.
10112 2019-11-17  Bruno Haible  <bruno@clisp.org>
10114         havelib: Remove redundant code.
10115         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
10116         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
10118 2019-11-17  Bruno Haible  <bruno@clisp.org>
10120         havelib: Fix a bug in dependency processing.
10121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
10122         of .la files, don't overwrite the value of additional_libdir for the
10123         next rounds.
10125 2019-11-16  Bruno Haible  <bruno@clisp.org>
10127         wctype-h: When overriding wint_t, override also the related functions.
10128         Reported by Christian Biesinger <cbiesinger@google.com> in
10129         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
10130         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
10131         REPLACE_ISWCNTRL to 1.
10132         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
10133         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
10134         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
10135         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
10136         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
10137         on mingw.
10138         * doc/posix-headers/wctype.texi: Likewise.
10140 2019-11-16  Bruno Haible  <bruno@clisp.org>
10142         time_r: Fix for mingw.
10143         Reported by Christian Biesinger <cbiesinger@google.com> in
10144         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
10145         * lib/time.in.h: On mingw, include <unistd.h>.
10146         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
10147         <time.h>. Test for localtime_r in a way that works when it is defined
10148         as an inline function.
10150 2019-11-13  Bruno Haible  <bruno@clisp.org>
10152         havelib: Revert last change.
10153         * build-aux/config.rpath: Revert last change. We can add msys2 support
10154         when it has been added to libtool.m4 upstream.
10156 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10158         config: add msys support
10159         Requested by Arnold Robbins in:
10160         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
10161         He also requested a change to config.guess, which I’ll forward
10162         upstream.
10163         * build-aux/ar-lib (func_file_conv):
10164         * build-aux/compile (func_file_conv):
10165         * build-aux/config.rpath (wl, with_gnu_ld)
10166         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
10167         Treat msys like cygwin.
10169 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10171         regex: now back in sync with glibc
10172         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
10173         regexec.c got merged into glibc and are now copies again.
10175 2019-10-27  Bruno Haible  <bruno@clisp.org>
10177         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
10178         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
10179         statement.
10180         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
10181         32-bit CPUs.
10183 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10185         timespec-add, timespec-sub: simplify
10186         * lib/timespec-add.c (timespec_add):
10187         * lib/timespec-sub.c (timespec_sub):
10188         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
10189         work on unsigned integers.
10191 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10193         nstrftime: speed up integer overflow checking
10194         * lib/nstrftime.c: Include intprops.h.
10195         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
10196         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
10197         instead of doing it by hand.
10198         * modules/nstrftime (Depends-on): Add intprops.
10200         Port better to GCC under macOS
10201         Work around macOS header that has ‘#define __has_builtin(x) 0’
10202         when compiled by GCC.  Apple really, really doesn’t want you to
10203         use GCC, apparently.  Rroblem reported by Akim Demaille in:
10204         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
10205         The fix is to not trust __has_builtin when being compiled by
10206         recent-enough GCC.
10207         * lib/intprops.h (__has_builtin)
10208         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
10209         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
10210         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
10211         Remove.  All uses removed.
10212         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
10213         directly, if defined and if not newer GCC.
10214         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
10215         New macro, that use __has_builtin directly, if defined and if
10216         not newer GCC.
10217         (assume): Use them.
10219 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
10221         maintainer-makefile: update rule for argmatch.
10222         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
10224 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
10226         bitset: let freeing functions accept NULL.
10227         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
10228         given NULL.
10229         * lib/bitset.h: Document that.
10230         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
10232 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
10234         inttypes: use more-robust test for int range
10235         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
10236         Problem reported by Dagobert Michelsen in:
10237         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
10238         * lib/inttypes.in.h: Rely only on limits.h when checking
10239         int range.
10241 2019-10-15  Bruno Haible  <bruno@clisp.org>
10243         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
10244         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
10245         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
10246         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
10247         term_ostream_set_hyperlink): New functions.
10248         (term_styled_ostream_get_hyperlink_ref,
10249         term_styled_ostream_get_hyperlink_id,
10250         term_styled_ostream_set_hyperlink): New function aliases.
10252 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10254         update-copyright: use en dashes in .texi ranges
10255         * build-aux/update-copyright: Match year ranges like "1998--2019",
10256         which are used in the Autoconf manual.  Also, update ranges in
10257         .tex, .texi, and .texinfo files to use en dashes instead of
10258         hyphens.
10260 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10262         * config/srclist.txt: Remove posix/regex_internal.c for now.
10264 2019-10-13  Bruno Haible  <bruno@clisp.org>
10266         git-version-gen: Allow 'snapshot' as .tarball-version contents.
10267         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
10268         contents to the empty string.
10270 2019-10-12  Bruno Haible  <bruno@clisp.org>
10272         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
10273         * tests/test-intprops.c (main): Disable two more tests when using
10274         HP-UX cc.
10276 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10278         Simplify and regularize regex use of ‘assert’
10279         Also, tell GCC about the asserts even when compiling without
10280         debugging, to give it further optimization opportunities.
10281         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
10282         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
10283         (parse_expression, parse_bracket_exp):
10284         * lib/regex_internal.c (build_wcs_buffer)
10285         (build_wcs_upper_buffer, re_string_reconstruct)
10286         (re_string_context_at):
10287         * lib/regexec.c (re_search_stub, re_copy_regs)
10288         (re_search_internal, prune_impossible_nodes, check_matching)
10289         (check_halt_state_context, set_regs, sift_states_backward)
10290         (build_sifted_states, transit_state_mb, transit_state_bkref)
10291         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
10292         (match_ctx_add_subtop):
10293         Use it instead of plain ‘assert’.
10295 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10297         regex: omit debug assignment when not debugging
10298         * lib/regexec.c (re_search_internal) [!DEBUG]:
10299         Remove unnecessary assignment.
10301         regex: tell compiler there’s at most 256 arcs out
10302         Partly this is to help the reader (and maybe help GCC);
10303         partly this is to pacify Coverity.
10304         * lib/regex_internal.h: Include verify.h.
10305         * lib/regexec.c (group_nodes_into_DFAstates):
10306         Tell the compiler that ndests cannot exceed SBC_MAX.
10307         * modules/regex (Depends-on): Add ‘verify’.
10309         regex: simplify by assuming C99
10310         * config/srclist.txt: Comment out regex_internal.h and regexec.c
10311         temporarily.
10312         * lib/regex_internal.h (lock_define, re_match_context_t):
10313         Simplify by assuming C99 macros and const.
10314         * lib/regexec.c (re_search_internal): Simplify by assuming C99
10315         initializers.  Remove unnecessary assignment, as mctx is now
10316         safely initialized earlier.
10318         regex: avoid copying of uninitialized storage
10319         * config/srclist.txt: Comment out regcomp.c temporarily.
10320         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
10321         Initialize even when not checking for lint, as the behavior is
10322         arguably undefined otherwise and Coverity warns about it.
10324 2019-10-06  Bruno Haible  <bruno@clisp.org>
10326         access tests: Fix test failure when run as root.
10327         * tests/test-access.c: Include root-uid.h.
10328         (geteuid): Define fallback.
10329         (main): Don't expect that writing to a read-only file would fail when
10330         running as root. Also, remove the created files at the end.
10331         * modules/access-tests (Depends-on): Add root-uid.
10332         (configure.ac): Test whether geteuid exists.
10334 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
10336         users.txt: add GNU nano
10337         Nano has been making use of gnulib since March 2017, version 2.8.0.
10339 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10341         bootstrap: simplify debugging of wget failures
10342         Problem reported by Tim Rühsen in:
10343         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
10344         * build-aux/bootstrap (po_download_command_format):
10345         Invoke wget with -nv instead of -q, to make debugging easier.
10347 2019-09-29  Bruno Haible  <bruno@clisp.org>
10349         avltree-list: Fix compilation warning (introduced on 2014-09-16).
10350         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
10351         'const' attribute.
10353 2019-09-29  Bruno Haible  <bruno@clisp.org>
10355         fbufmode: Fix compilation error on glibc >= 2.28 systems.
10356         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
10358 2019-09-28  Bruno Haible  <bruno@clisp.org>
10360         Update comments that refer to POSIX.
10361         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
10362         sentence about trailing slashes.
10363         * lib/fflush.c: Clarify the reasoning.
10364         * tests/test-fflush2.c: Cite the relevant sentence.
10366 2019-09-28  Bruno Haible  <bruno@clisp.org>
10368         access: Document limitations on Windows.
10369         Suggested by Zaretskii <eliz@gnu.org>.
10370         * doc/posix-functions/access.texi: Mention two limitations on Windows.
10372 2019-09-28  Bruno Haible  <bruno@clisp.org>
10374         findprog-in: Fix comment.
10375         Reported by Eli Zaretskii <eliz@gnu.org>.
10376         * lib/findprog.h (find_in_given_path): Extend description of EACCES
10377         condition.
10378         * lib/stat.c (rpl_stat): Fix typo in comment.
10379         * lib/utime.c (_gl_utimens_windows): Likewise.
10381 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10383         Update URLs and associated text
10384         (Thanks to Bruno Haible for proofreading this patch.)
10385         Prefer https: to http: in URLs where either will do, for the usual
10386         security reasons.  I also updated broken and/or moved URLs
10387         discovered during the process. In a few places I had to resort to
10388         archive.org, since I didn't find the originals elsewhere.
10390 2019-09-15  Paul Smith  <psmith@gnu.org>
10391             Bruno Haible  <bruno@clisp.org>
10393         findprog-in: Set errno when the search fails.
10394         * lib/findprog-in.c: Include <errno.h>.
10395         (find_in_given_path): Set errno before returning NULL.
10396         * lib/findprog.h (find_in_given_path): Update comment accordingly.
10397         Define the term "slash".
10399 2019-09-15  Bruno Haible  <bruno@clisp.org>
10401         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
10402         * modules/findprog (Depends-on): Add access.
10403         * modules/findprog-lgpl (Depends-on): Likewise.
10404         * modules/findprog-in (Depends-on): Likewise.
10406 2019-09-15  Bruno Haible  <bruno@clisp.org>
10408         access: Add tests.
10409         * tests/test-access.c: New file.
10410         * modules/access-tests: New file.
10412         access: New module.
10413         * lib/unistd.in.h (access): New declaration.
10414         * lib/access.c: New file.
10415         * m4/access.m4: New file.
10416         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
10417         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
10418         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
10419         REPLACE_ACCESS.
10420         * modules/access: New file.
10421         * tests/test-unistd-c++.cc (access): Check signature.
10422         * doc/posix-functions/access.texi: Mention the new module.
10424 2019-09-15  Bruno Haible  <bruno@clisp.org>
10426         fcntl-h: Fix compilation error of creat.c on MSVC.
10427         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
10428         defined.
10430 2019-09-15  Bruno Haible  <bruno@clisp.org>
10432         creat: Add tests.
10433         * tests/test-creat.c: New file, based on tests/test-open.h.
10434         * modules/creat-tests: New file.
10436         creat: New module.
10437         * lib/fcntl.in.h (creat): New declaration.
10438         * lib/creat.c: New file, based on lib/open.c.
10439         * m4/creat.m4: New file.
10440         * m4/open-slash.m4: New file, extracted from m4/open.m4.
10441         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
10442         Invoke gl_OPEN_TRAILING_SLASH_BUG.
10443         * modules/open (Files): Add m4/open-slash.m4.
10444         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
10445         REPLACE_CREAT.
10446         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
10447         * modules/creat: New file.
10448         * tests/test-fcntl-h-c++.cc (creat): Check signature.
10449         * doc/posix-functions/creat.texi: Mention the new module.
10451 2019-09-15  Bruno Haible  <bruno@clisp.org>
10453         open tests: Enhance test.
10454         * tests/test-open.h (test_open): Test the creation of an executable
10455         regular file. Also improve initial cleanup.
10457 2019-09-15  Bruno Haible  <bruno@clisp.org>
10459         intprops tests: Avoid build failure with HP-UX cc.
10460         * tests/test-intprops.c: Disable a check that makes HP cc choke with
10461         "error 4018: Macro param too large after substitution - use -H option.".
10463 2019-09-14  Bruno Haible  <bruno@clisp.org>
10465         Make autoconf tests work with -Werror=implicit-function-declaration.
10466         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
10467         towupper() declaration.
10468         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
10469         declaration.
10471 2019-09-14  Bruno Haible  <bruno@clisp.org>
10473         findprog-in: Better mimic the system on native Windows.
10474         Reported by Paul Smith <psmith@gnu.org>.
10475         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
10476         non-empty suffixes when the file name already contains a '.'.
10478 2019-09-10  Bruno Haible  <bruno@clisp.org>
10480         wctob: Fix autoconf test.
10481         Based on patch by Florian Weimer <fweimer@redhat.com>.
10482         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
10484 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
10486         xhash: provide hash_xinitialize.
10487         Suggested by Egor Pugin <egor.pugin@gmail.com>
10488         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
10489         * modules/xhash, lib/xhash.c: New.
10490         * lib/hash.h (hash_xinitialize): New.
10492 2019-09-09  Bruno Haible  <bruno@clisp.org>
10494         findprog-in: Make exec optimization optional.
10495         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
10496         (find_in_given_path): Add optimize_for_exec parameter.
10497         * lib/findprog-in.c (find_in_given_path): Likewise.
10499 2019-09-08  Bruno Haible  <bruno@clisp.org>
10501         Add option to assume the best, not the worst, when cross-compiling.
10502         Suggested by Jonas Termansen <sortie@maxsi.org>.
10503         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
10504         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
10505         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
10506         lt_cv_sys_argz_works.
10507         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
10508         ac_cv_func_calloc_0_nonnull.
10509         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
10510         --enable-cross-guesses for gl_cv_func_realpath_works.
10511         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
10512         gl_cv_func_cbrtl_ieee.
10513         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
10514         gl_cv_func_ceil_ieee.
10515         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
10516         gl_cv_func_ceilf_ieee.
10517         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
10518         gl_cv_func_ceill_ieee.
10519         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
10520         ac_cv_func_chown_works.
10521         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
10522         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
10523         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
10524         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
10525         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
10526         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
10527         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
10528         gl_cv_func_expl_works.
10529         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
10530         gl_cv_func_expm1_ieee.
10531         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
10532         gl_cv_func_expm1l_works.
10533         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
10534         gl_cv_func_open_directory_works.
10535         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
10536         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
10537         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
10538         gl_cv_func_fchownat_empty_filename_works.
10539         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
10540         gl_cv_func_fdopendir_works.
10541         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
10542         gl_cv_func_floor_ieee.
10543         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
10544         gl_cv_func_floorf_ieee.
10545         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
10546         gl_cv_func_fma_works.
10547         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
10548         gl_cv_func_fmaf_works.
10549         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
10550         gl_cv_func_fmal_works.
10551         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
10552         gl_cv_func_fmod_ieee.
10553         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
10554         gl_cv_func_fmodf_ieee.
10555         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
10556         gl_cv_func_fmodl_ieee.
10557         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
10558         gl_cv_func_fpurge_works.
10559         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
10560         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
10561         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
10562         gl_cv_func_getcwd_null.
10563         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
10564         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
10565         gl_cv_func_working_getdelim.
10566         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
10567         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
10568         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
10569         gl_cv_func_getgroups_works.
10570         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
10571         am_cv_func_working_getline.
10572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
10573         for gl_cv_func_getopt_gnu.
10574         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
10575         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
10576         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
10577         gl_cv_func_hypot_ieee.
10578         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
10579         gl_cv_func_hypotf_ieee.
10580         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
10581         gl_cv_func_hypotl_ieee.
10582         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
10583         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
10584         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
10585         gl_cv_func_link_works.
10586         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
10587         gl_cv_func_linkat_slash.
10588         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
10589         gl_cv_func_log_ieee.
10590         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
10591         gl_cv_func_logf_ieee.
10592         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
10593         gl_cv_func_logl_works.
10594         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
10595         gl_cv_func_log10_ieee.
10596         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
10597         gl_cv_func_log10f_ieee.
10598         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
10599         gl_cv_func_log10l_works.
10600         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
10601         gl_cv_func_log1p_ieee.
10602         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
10603         gl_cv_func_log1pf_ieee.
10604         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
10605         gl_cv_func_log1pl_ieee.
10606         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
10607         gl_cv_func_log2_ieee.
10608         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
10609         gl_cv_func_log2f_ieee.
10610         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
10611         --enable-cross-guesses for
10612         gl_cv_func_lstat_dereferences_slashed_symlink.
10613         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
10614         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
10615         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
10616         gl_cv_C_locale_sans_EILSEQ.
10617         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
10618         gl_cv_func_memchr_works.
10619         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
10620         gl_cv_func_memmem_works_always.
10621         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
10622         gl_cv_func_memmem_works_fast.
10623         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
10624         gl_cv_func_mkdir_trailing_slash_works,
10625         gl_cv_func_mkdir_trailing_dot_works.
10626         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
10627         gl_cv_func_mkfifo_works.
10628         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
10629         gl_cv_func_mknod_works.
10630         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
10631         gl_cv_func_working_mkstemp.
10632         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
10633         gl_cv_func_working_mktime.
10634         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
10635         gl_cv_func_modf_ieee.
10636         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
10637         gl_cv_func_modff_ieee.
10638         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
10639         gl_cv_func_modfl_ieee.
10640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
10641         gl_cv_func_nanosleep.
10642         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
10643         gl_cv_func_perror_works.
10644         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
10645         gl_cv_func_printf_sizes_c99.
10646         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
10647         gl_cv_func_printf_infinite.
10648         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
10649         gl_cv_func_printf_infinite_long_double.
10650         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
10651         gl_cv_func_printf_directive_a.
10652         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
10653         gl_cv_func_printf_directive_f.
10654         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
10655         gl_cv_func_printf_flag_zero.
10656         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
10657         gl_cv_func_printf_enomem.
10658         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
10659         gl_cv_func_snprintf_truncation_c99.
10660         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
10661         gl_cv_func_snprintf_retval_c99.
10662         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
10663         gl_cv_func_snprintf_directive_n.
10664         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
10665         gl_cv_func_vsnprintf_zerosize_c99.
10666         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
10667         gl_cv_func_pselect_detects_ebadf.
10668         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
10669         Obey --enable-cross-guesses for
10670         gl_cv_pthread_rwlock_rdlock_prefer_writer.
10671         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
10672         gl_cv_func_ptsname_sets_errno.
10673         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
10674         gl_cv_func_svid_putenv.
10675         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
10676         gl_cv_func_readlink_works.
10677         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
10678         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
10679         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
10680         gl_cv_func_re_compile_pattern_working.
10681         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
10682         gl_cv_func_remainder_ieee.
10683         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
10684         gl_cv_func_remainderf_ieee.
10685         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
10686         gl_cv_func_remainderl_ieee.
10687         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
10688         gl_cv_func_rintl_works.
10689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
10690         gl_cv_func_rmdir_works.
10691         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
10692         gl_cv_func_round_ieee.
10693         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
10694         gl_cv_func_roundf_ieee.
10695         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
10696         gl_cv_func_roundl_ieee.
10697         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
10698         gl_cv_func_select_detects_ebadf.
10699         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
10700         gl_cv_func_setenv_works.
10701         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
10702         gl_cv_func_unsetenv_works.
10703         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
10704         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
10705         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
10706         gl_cv_func_sleep_works.
10707         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
10708         gl_cv_func_stat_file_slash.
10709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
10710         gl_cv_func_stpncpy.
10711         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
10712         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
10713         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
10714         gl_cv_func_strcasestr_linear.
10715         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
10716         gl_cv_func_working_strerror.
10717         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
10718         gl_cv_func_strerror_0_works.
10719         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
10720         --enable-cross-guesses for gl_cv_func_strerror_r_works.
10721         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
10722         gl_cv_func_strstr_works_always.
10723         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
10724         gl_cv_func_strstr_linear.
10725         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
10726         gl_cv_func_strtod_works.
10727         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
10728         gl_cv_func_strtold_works.
10729         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
10730         gl_cv_func_symlink_works.
10731         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
10732         gl_cv_func_symlinkat_works.
10733         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
10734         gl_cv_func_trunc_ieee.
10735         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
10736         gl_cv_func_truncf_ieee.
10737         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
10738         gl_cv_func_truncl_ieee.
10739         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
10740         gl_cv_func_tzset_clobber.
10741         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
10742         gl_cv_func_ungetc_works.
10743         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
10744         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
10745         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
10746         gl_cv_func_usleep_works.
10747         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
10748         gl_cv_func_futimesat_works.
10749         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
10750         gl_cv_func_working_utimes.
10751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
10752         gl_cv_func_wcwidth_works.
10753         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
10754         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
10755         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
10756         links for testing. Obey --enable-cross-guesses for
10757         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
10758         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
10760 2019-09-08  Bruno Haible  <bruno@clisp.org>
10762         Clarify that cross-compilation guesses are guesses.
10763         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
10764         cross-compiling.
10766 2019-09-08  Bruno Haible  <bruno@clisp.org>
10768         chown: Fix configure output (regression from 2019-03-23).
10769         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
10770         gl_cv_func_chown_follows_symlink variable.
10772 2019-09-08  Bruno Haible  <bruno@clisp.org>
10774         findprog-in: New module.
10775         Suggested by Paul Smith <psmith@gnu.org>.
10776         * lib/findprog.h (find_in_given_path): New declaration.
10777         * lib/findprog-in.c: New file, based on lib/findprog.c.
10778         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
10779         * modules/findprog-in: New file.
10781 2019-09-08  Bruno Haible  <bruno@clisp.org>
10783         findprog: Remove unused dependency.
10784         * modules/findprog (Depends-on): Remove strdup.
10786 2019-09-08  Bruno Haible  <bruno@clisp.org>
10788         findprog: Remove test that is obsolete since 2006-04-24.
10789         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
10791 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
10793         bitset: style changes
10794         * lib/bitset/vector.c (vbitset_resize): Factor computation.
10795         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
10796         xzalloc to xcalloc.
10797         Suggested by Paul Eggert.
10799 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
10801         bitset: check memory allocation
10802         Reported by 江 祖铭 (Zu-Ming Jiang).
10803         With help from Paul Eggert.
10804         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
10805         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
10806         instead of realloc.
10807         When shrinking, accept failures.
10808         * lib/bitset/vector.c (vbitset_resize): Likewise.
10810 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
10812         scratch_buffer: sync from glibc
10813         * config/srclist.txt: Add the scratch_buffer source
10814         code from glibc, since these should be in sync.
10815         Autoupdate.
10817 2019-09-07  Bruno Haible  <bruno@clisp.org>
10819         doc: Update for glibc 2.30.
10820         * doc/glibc-functions/gettid.texi: New file.
10821         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
10822         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
10823         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
10824         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
10825         * doc/glibc-functions/sem_clockwait.texi: New file.
10826         * doc/glibc-functions/tgkill.texi: New file.
10827         * doc/glibc-functions/twalk_r.texi: New file.
10828         * doc/gnulib.texi: Include them.
10829         (Glibc semaphore.h): New section.
10830         * doc/pastposix-functions/h_errno.texi: Update.
10831         * doc/posix-functions/*.texi: Likewise.
10833 2019-09-06  Bruno Haible  <bruno@clisp.org>
10835         symlink tests: Avoid test failure on Linux with Lustre file system.
10836         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
10837         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
10838         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
10840 2019-09-01  Bruno Haible  <bruno@clisp.org>
10842         gitsub.sh: Add support for shallow-cloning of subdirectories.
10843         * top/gitsub.sh (func_usage): Document allowed git options with
10844         'git pull'.
10845         (func_pull): Accept GIT_OPTIONS argument.
10846         (pull): Parse git options before complaining about too many arguments.
10847         Pass the git options to func_pull.
10849 2019-08-29  Bruno Haible  <bruno@clisp.org>
10851         lock: Fix cross-compilation guesses.
10852         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
10853         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
10854         platforms.
10856 2019-08-28  Bruno Haible  <bruno@clisp.org>
10858         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
10859         Reported by Martin Storsjö <martin@martin.st> in
10860         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
10861         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
10862         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
10863         files from GCC 6 or newer, use an override through '#define', because
10864         the inline definitions in the platform's <cmath> cannot be overridden
10865         in another way.
10867 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
10869         Revert macOS INT_MULTIPLY_WRAPV patch
10870         Problem reported by Bruno Haible in:
10871         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
10872         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
10873         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
10874         Go back to working around the Clang bug on macOS.
10876 2019-08-27  Bruno Haible  <bruno@clisp.org>
10878         libtool-next-version: Fix error output.
10879         * build-aux/libtool-next-version (func_fatal_error): Fix the program
10880         name.
10882 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
10884         Speed up INT_MULTIPLY_WRAPV on macOS
10885         Assume that __builtin_mul_overflow works OK with Clang on macOS.
10886         Mattias Engdegård says it’s safe to assume the relevant library
10887         is always available there.
10888         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
10889         New temporary internal macro.
10890         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
10891         No need to work around the Clang bug on macOS.
10893 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10895         intprops.h, verify.h: port better to clang
10896         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
10897         with Clang.  Problem reported privately by Mattias Engdegård.
10898         Also, insulate intprops.h and verify.h better against each other’s
10899         definitions of __has_builtin on non-Clang hosts.
10900         * lib/intprops.h (__has_builtin): Define a temporary substitute
10901         if __has_builtin is not already defined.
10902         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
10903         New temporary internal macros.
10904         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
10905         Now two separate macros, replacing the old
10906         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
10907         __builtin_mul_overflow is like the rest.  All uses changed.
10908         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
10909         Adjust to above changes.
10910         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
10911         longer relevant.  All uses changed.
10912         * lib/verify.h (__has_builtin): Treat like intprops.h,
10913         so that the two .h files do not collide with each other.
10914         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
10915         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
10917 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10919         intprops: say why not Clang __builtin_add_overflow
10920         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
10921         Mention Clang in comment, responding to a query from
10922         Mattias Engdegård.
10924 2019-08-24  Bruno Haible  <bruno@clisp.org>
10926         doc: Document most of the files outside of modules.
10927         * doc/gnulib.texi (Build Infrastructure Files,
10928         Release Management Files): New chapters.
10930 2019-08-24  Bruno Haible  <bruno@clisp.org>
10932         bootstrap: Keep in sync with the 'gettext' module.
10933         Reported by Assaf Gordon in
10934         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
10935         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
10936         * build-aux/po/remove-potcdate.sin: Likewise.
10938 2019-08-24  Bruno Haible  <bruno@clisp.org>
10940         crypto/gc-sha512: Add tests.
10941         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
10942         * modules/crypto/gc-sha512-tests: New file.
10944         crypto/gc-sha256: Add tests.
10945         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
10946         * modules/crypto/gc-sha256-tests: New file.
10948         crypto/gc-sha256, crypto/gc-sha512: New modules.
10949         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
10950         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
10951         (MAX_DIGEST_SIZE): Set to 64.
10952         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
10953         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
10954         (gc_sha256, gc_sha512): New functions.
10955         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
10956         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
10957         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
10959 2019-08-24  Bruno Haible  <bruno@clisp.org>
10961         crypto/gc-sha1 tests: Improve output when the test fails.
10962         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
10963         output.
10965 2019-08-24  Bruno Haible  <bruno@clisp.org>
10967         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
10968         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
10969         LIBGCRYPT_HAS_MD_SM3.
10970         * lib/gc-libgcrypt.c: Include sm3.h.
10971         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
10972         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
10973         implementation if libgcrypt does not support SM3.
10975 2019-08-24  Bruno Haible  <bruno@clisp.org>
10977         crypto/gc-md2: Optimize and clarify code.
10978         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
10979         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
10980         is not needed.
10982 2019-08-24  Bruno Haible  <bruno@clisp.org>
10984         crypto/gc-md2: Add comment.
10985         * lib/gc-libgcrypt.c: Add comment.
10987 2019-08-24  Bruno Haible  <bruno@clisp.org>
10989         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
10990         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
10991         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
10992         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
10993         variable.
10995 2019-08-24  Bruno Haible  <bruno@clisp.org>
10997         crypto/gc: Fix link error with --with-libgcrypt.
10998         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
10999         AC_LIB_HAVE_LINKFLAGS invocation.
11001 2019-08-24  Bruno Haible  <bruno@clisp.org>
11003         crypto/gc: Access the module indicators correctly.
11004         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
11005         * lib/gc-libgcrypt.c: Likewise.
11007 2019-08-24  Bruno Haible  <bruno@clisp.org>
11009         crypto/gc: Fix configuration with --with-libgcrypt.
11010         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
11011         * modules/crypto/gc (Files): Add it.
11012         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
11014 2019-08-24  Bruno Haible  <bruno@clisp.org>
11016         Remove unused file.
11017         * m4/stat-macros.m4: Remove file.
11019 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11021         New strip-trailing-space option for srclist-update
11022         * config/srclist-update (fixfile): Support new option.
11023         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
11024         Use it.
11026 2019-08-20  Eric Blake  <eblake@redhat.com>
11028         accept4: Support SOCK_NONBLOCK, if defined
11029         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
11031         accept4: Fix compilation when native accept4() exists.
11032         Reported by Richard W.M. Jones <rjones@redhat.com> in
11033         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
11034         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
11036 2019-08-18  Bruno Haible  <bruno@clisp.org>
11038         Defeat -flto GCC optimization in math autoconf tests.
11039         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
11040         at <https://savannah.gnu.org/bugs/?56109>.
11041         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
11042         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
11043         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11044         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11045         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11046         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
11047         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11048         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11049         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11050         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11051         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11052         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11054 2019-08-17  Bruno Haible  <bruno@clisp.org>
11056         windows-spin: Implement declared functions.
11057         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
11058         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
11059         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
11060         name.
11062 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11064         intprops: port to Oracle Developer Studio 12.6
11065         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
11066         typos that were in a section not compiled by GCC.
11068 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11070         intprops: support uchar, ushort _WRAPV dests
11071         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
11072         when __builtin_add_overflow etc. and _Generic are not used.
11073         (_GL_INT_OP_WRAPV): Use it to support destinations that
11074         are unsigned char or unsigned short, even in compilers
11075         that lack __typeof__ and are not C11-compatible.
11077         intprops: pacify picky GCC
11078         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
11079         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
11080         possibly-incorrect result.
11081         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
11082         about (A) used as a boolean, when A is an expression like 3 * 4.
11084         intprops: support unsigned *_WRAPV results
11085         Add support for unsigned, unsigned long, and unsigned long long
11086         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
11087         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
11088         bug with unsigned inputs reported by Eli Zaretskii in:
11089         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
11090         * config/srclist.txt: Break the glibc connection for intprops.h
11091         temporarily, while more testing is done in Gnulib-using apps.
11092         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11093         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
11094         Support unsigned results no narrower than unsigned int.  Report
11095         overflow correctly if some arguments are unsigned.
11096         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
11097         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
11098         the right thing with narrow args.
11099         (_GL_INT_OP_CALC1): Remove.  All callers removed.
11100         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
11101         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
11102         * tests/test-intprops.c: Check for bugs and test new behavior.
11104 2019-08-14  Bruno Haible  <bruno@clisp.org>
11106         get_progname_of: New module.
11107         * lib/get_progname_of.h: New file.
11108         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
11109         * lib/getprogname.c (getprogname): Tweak coding style.
11110         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
11111         * modules/get_progname_of: New file.
11113 2019-08-14  Bruno Haible  <bruno@clisp.org>
11115         get_ppid_of: New module.
11116         * lib/get_ppid_of.h: New file.
11117         * lib/get_ppid_of.c: New file.
11118         * modules/get_ppid_of: New file.
11120 2019-08-13  Bruno Haible  <bruno@clisp.org>
11122         libtextstyle-optional tests: Support the NO_COLOR environment variable.
11123         * tests/test-libtextstyle.c (main): Do not emit styling when the
11124         environment variable NO_COLOR is set.
11126 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11128         verify: improve diagnostic quality in recent GCC
11129         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
11130         useful line number containing the top-level caller of the macro.
11131         So, bring back the older way of issuing a diagnostic containing
11132         the top-level call’s arg, so that it is easier to diagnose
11133         ‘verify’ failures with recent GCC.
11134         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
11135         Bring back DIAGNOSTIC arg.  All callers changed.
11136         (verify): Just use _GL_VERIFY.
11138 2019-08-11  Bruno Haible  <bruno@clisp.org>
11140         localcharset: Add more aliases for OS/2.
11141         Based on patch by KO Myung-Hun <komh78@gmail.com> in
11142         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
11143         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
11145 2019-08-10  Eric Blake  <eblake@redhat.com>
11147         configmake: Update advice on usage.
11148         * modules/configmake (Include): No longer necessary to include
11149         last, since configmake.h itself worries about collision avoidance.
11151 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
11153         parse-datetime: fix 'T' military timezone handling
11154         * lib/parse-datetime.y (zone):
11155         follow-up to the previous commit: the 'T' case is handled outside the
11156         conversion table (used as either military timezone UTC-7 or ISO8601
11157         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
11158         timezone letters.
11160 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11162         parse-datetime: fix military timezone letters
11163         Problem and trivial fix reported by Neil Hoggarth in:
11164         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
11165         * lib/parse-datetime.y (military_table):
11166         Do it the right way, not the RFC 822 way.
11168 2019-08-08  Eric Blake  <eblake@redhat.com>
11170         configmake: Avoid namespace pollution issue on mingw.
11171         * modules/configmake (Makefile.am): If the project uses
11172         <winsock2.h>, include that header before defining DATADIR.
11174 2019-07-28  Bruno Haible  <bruno@clisp.org>
11176         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
11177         * tests/test-mbrtowc.c (main): Fix expected value of wc.
11179 2019-07-24  Bruno Haible  <bruno@clisp.org>
11181         pthread-h: Fix definitions of types and macros on mingw.
11182         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
11183         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
11184         not in use.
11185         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
11186         'pthread-once' is not in use.
11187         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
11188         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
11189         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
11190         in use.
11191         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
11192         Define also when module 'pthread-rwlock' is not in use.
11193         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
11194         also when module 'pthread-cond' is not in use.
11195         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
11196         'pthread-tss' is not in use.
11197         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
11198         use.
11200 2019-07-24  Simon Josefsson  <simon@josefsson.org>
11202         crypto/gc: Cope with libgcrypt without SM3.
11203         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
11205 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11207         backupfile: fix resource leak on memory failure
11208         Problem found by Coverity (CID 1484214).
11209         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
11211 2019-07-22  Bruno Haible  <bruno@clisp.org>
11213         Avoid missing-declarations warning in various tests.
11214         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
11215         test6, test_optional, test7, test8, test9, test10, test11, test12,
11216         test13, test14, test15, test_fun): Declare static.
11217         * tests/test-cnd.c (test_cnd_wait): Likewise.
11218         * tests/test-cond.c (test_cond): Likewise.
11220 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
11222         pthread tests: Avoid missing-declarations warning.
11223         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
11225 2019-07-19  Bruno Haible  <bruno@clisp.org>
11227         parse-datetime: Avoid warnings from bison versions >= 3.3.
11228         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
11229         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
11231 2019-07-19  Bruno Haible  <bruno@clisp.org>
11233         parse-datetime: Require Bison 2.4 or newer.
11234         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
11235         Code taken from gettext's intl.m4.
11236         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
11237         of YACC.
11239 2019-07-19  Bruno Haible  <bruno@clisp.org>
11241         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
11242         * lib/areadlink-with-size.c: Include <string.h>.
11243         * lib/areadlinkat-with-size.c: Likewise.
11244         * lib/xgethostname.c: Likewise.
11245         * lib/xgetdomainname.c: Likewise.
11247 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
11249         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
11250         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
11251         "%pure-parser".  The former is available since Bison 2.3b (2008),
11252         while the latter is marked as obsolete since version 3.4 (May 2019).
11254 2019-07-16  Bruno Haible  <bruno@clisp.org>
11256         update-copyright: Make it work again (regression from 2019-06-15).
11257         Reported by Brian C. Lane <bcl@redhat.com>.
11258         * build-aux/update-copyright: Add back the -0777, -p, -i options.
11260 2019-07-14  Bruno Haible  <bruno@clisp.org>
11262         doc: Update info about <pthread.h>.
11263         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
11264         of 'pthread'.
11266 2019-07-14  Bruno Haible  <bruno@clisp.org>
11268         pthread_sigmask tests: Use new multithread modules.
11269         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
11270         glthread/thread.h.
11271         (main_thread, killer_thread): Change type to pthread_t.
11272         (main): Update accordingly.
11273         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
11274         thread.
11276 2019-07-14  Bruno Haible  <bruno@clisp.org>
11278         pthread-tss: Add tests.
11279         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
11280         tests/test-tss.c.
11281         * modules/pthread-tss-tests: New file.
11283 2019-07-14  Bruno Haible  <bruno@clisp.org>
11285         pthread-cond: Add tests.
11286         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
11287         tests/test-cnd.c.
11288         * modules/pthread-cond-tests: New file.
11290 2019-07-14  Bruno Haible  <bruno@clisp.org>
11292         pthread-rwlock: Add tests.
11293         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
11294         * modules/pthread-rwlock-tests: New file.
11296 2019-07-14  Bruno Haible  <bruno@clisp.org>
11298         pthread-mutex: Add tests.
11299         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
11300         tests/test-mtx.c.
11301         * modules/pthread-mutex-tests: New file.
11303 2019-07-14  Bruno Haible  <bruno@clisp.org>
11305         pthread-once: Add tests.
11306         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
11307         tests/test-call_once.c.
11308         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
11309         tests/test-mtx.c.
11310         * modules/pthread-once-tests: New file.
11312 2019-07-14  Bruno Haible  <bruno@clisp.org>
11314         pthread-thread: Add tests.
11315         * tests/test-pthread-thread.c: New file, based on
11316         tests/test-thread_create.c and tests/test-thrd_create.c.
11317         * modules/pthread-thread-tests: New file.
11319 2019-07-14  Bruno Haible  <bruno@clisp.org>
11321         pthread: Turn into a convenience module.
11322         * lib/pthread.in.h: Remove declarations for extern inline functions.
11323         * lib/pthread.c: Remove file.
11324         * modules/pthread (Files): Remove it.
11325         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
11326         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
11327         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
11328         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
11329         GNULIB_PTHREAD.
11330         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
11332 2019-07-14  Bruno Haible  <bruno@clisp.org>
11334         pthread-spin: New module.
11335         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
11336         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
11337         inline definitions.
11338         * lib/pthread-spin.c: New file.
11339         * m4/pthread-spin.m4: New file.
11340         * modules/pthread-spin: New file.
11341         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
11342         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
11343         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
11344         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
11345         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
11347 2019-07-14  Bruno Haible  <bruno@clisp.org>
11349         pthread-tss: New module.
11350         * lib/pthread-tss.c: New file.
11351         * m4/pthread-tss.m4: New file.
11352         * modules/pthread-tss: New file.
11353         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
11354         * doc/posix-functions/pthread_setspecific.texi: Likewise.
11355         * doc/posix-functions/pthread_getspecific.texi: Likewise.
11356         * doc/posix-functions/pthread_key_delete.texi: Likewise.
11358 2019-07-14  Bruno Haible  <bruno@clisp.org>
11360         pthread-cond: New module.
11361         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
11362         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
11363         * lib/pthread-cond.c: New file.
11364         * m4/pthread-cond.m4: New file.
11365         * modules/pthread-cond: New file.
11366         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
11367         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
11368         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
11369         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
11370         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
11371         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
11372         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
11373         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
11375 2019-07-14  Bruno Haible  <bruno@clisp.org>
11377         pthread-rwlock: New module.
11378         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
11379         * m4/pthread-rwlock.m4: New file.
11380         * modules/pthread-rwlock: New file.
11381         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
11382         and the Android problem.
11383         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
11384         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
11385         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
11386         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
11387         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
11388         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
11389         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
11390         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
11391         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
11392         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
11394 2019-07-14  Bruno Haible  <bruno@clisp.org>
11396         pthread-mutex: New module.
11397         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
11398         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
11399         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
11400         pthread_mutex_unlock): Remove inline definitions.
11401         * lib/pthread-mutex.c: New file.
11402         * m4/pthread-mutex.m4: New file.
11403         * modules/pthread-mutex: New file.
11404         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
11405         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
11406         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
11407         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
11408         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11409         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11410         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
11411         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
11412         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
11413         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
11414         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
11415         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
11417 2019-07-14  Bruno Haible  <bruno@clisp.org>
11419         pthread-once: New module.
11420         * lib/pthread-once.c: New file.
11421         * m4/pthread-once.m4: New file.
11422         * modules/pthread-once: New file.
11423         * doc/posix-functions/pthread_once.texi: Mention the new module.
11425 2019-07-14  Bruno Haible  <bruno@clisp.org>
11427         pthread-thread: New module.
11428         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
11429         inline definitions.
11430         * lib/pthread-thread.c: New file.
11431         * m4/pthread-thread.m4: New file.
11432         * modules/pthread-thread: New file.
11433         * doc/posix-functions/pthread_create.texi: Mention the new module.
11434         * doc/posix-functions/pthread_attr_init.texi: Likewise.
11435         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
11436         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
11437         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
11438         * doc/posix-functions/pthread_self.texi: Likewise.
11439         * doc/posix-functions/pthread_equal.texi: Likewise.
11440         * doc/posix-functions/pthread_detach.texi: Likewise.
11441         * doc/posix-functions/pthread_join.texi: Likewise.
11442         * doc/posix-functions/pthread_exit.texi: Likewise.
11444 2019-07-14  Bruno Haible  <bruno@clisp.org>
11446         pthread-h: Prepare for adding new modules.
11447         * lib/pthread.in.h: Define the types and macros for each of the
11448         facilities separately.
11449         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
11450         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11451         HAVE_PTHREAD_PROCESS_SHARED.
11452         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
11453         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11454         HAVE_PTHREAD_PROCESS_SHARED.
11455         * modules/pthread-h (Makefile.am): Substitute
11456         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
11457         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
11459 2019-07-14  Bruno Haible  <bruno@clisp.org>
11461         pthread-h: Add declarations of essential pthread functions.
11462         * lib/pthread.in.h: Include snippets.
11463         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
11464         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
11465         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
11466         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
11467         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
11468         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
11469         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
11470         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
11471         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
11472         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
11473         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
11474         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
11475         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
11476         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
11477         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
11478         pthread_key_create, pthread_setspecific, pthread_getspecific,
11479         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
11480         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
11481         declarations.
11482         (pthread_mutex_timedlock): Move declaration.
11483         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
11484         declared.
11485         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
11486         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
11487         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
11488         HAVE_* and REPLACE_* variables for the new functions.
11489         * modules/pthread-h (Depends-on): Add snippet/c++defs,
11490         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
11491         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
11492         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
11493         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
11494         variables for the new functions. Split the sed script, to avoid the
11495         limit of 99 commands of HP-UX sed.
11496         * tests/test-pthread-c++.cc: Check the signature of the new functions.
11498 2019-07-14  Bruno Haible  <bruno@clisp.org>
11500         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
11501         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
11502         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
11503         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
11504         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
11505         * modules/pthread-h (Depends-on): Add threadlib.
11506         (Link): Change to $(LIBTHREAD).
11507         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
11508         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
11510 2019-07-14  Bruno Haible  <bruno@clisp.org>
11512         pthread-h: Add C++ tests.
11513         * tests/test-pthread-c++.cc: New file.
11514         * modules/pthread-h-c++-tests: New file.
11516 2019-07-14  Bruno Haible  <bruno@clisp.org>
11518         pthread-h: Add tests.
11519         * tests/test-pthread.c: New file.
11520         * modules/pthread-h-tests: New file.
11522 2019-07-14  Bruno Haible  <bruno@clisp.org>
11524         pthread-h: New module.
11525         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
11526         is 1.
11527         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
11528         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
11529         <pthread.h> pollutes the namespace; instead, prepare for generating a
11530         pthread.h always. Substitute HAVE_PTHREAD_H here.
11531         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
11532         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
11533         * modules/pthread-h: New file, based on modules/pthread.
11534         * modules/pthread: Rely on 'pthread-h'.
11535         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
11536         Update.
11537         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
11538         pthread.
11540 2019-07-14  Bruno Haible  <bruno@clisp.org>
11542         sched_yield: New module.
11543         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
11544         (sched_yield): New declaration.
11545         * lib/sched_yield.c: New file.
11546         * m4/sched_yield.m4: New file.
11547         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
11548         provide a replacement sched.h always. Test whether sched_yield is
11549         declared.
11550         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
11551         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
11552         (Makefile.am): Provide a replacement sched.h always. Substitute
11553         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
11554         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
11555         * modules/sched_yield: New file.
11556         * doc/posix-functions/sched_yield.texi: Mention the new module.
11558 2019-07-14  Bruno Haible  <bruno@clisp.org>
11560         windows-spin: New module.
11561         * lib/windows-spin.h: New file.
11562         * lib/windows-spin.c: New file.
11563         * modules/windows-spin: New file.
11565 2019-07-14  Bruno Haible  <bruno@clisp.org>
11567         windows-timedrwlock: New module.
11568         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
11569         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
11570         windows-cond.c.
11571         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
11572         redefinition conflict with windows-timedrwlock.h.
11573         * modules/windows-timedrwlock: New file.
11575 2019-07-14  Bruno Haible  <bruno@clisp.org>
11577         windows-rwlock: New module.
11578         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
11579         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
11580         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
11581         windows-initguard.h.
11582         (gl_rwlock_t): Define using glwthread_rwlock_t.
11583         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
11584         (glthread_rwlock_init): Define using glwthread_rwlock_init.
11585         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
11586         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
11587         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
11588         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
11589         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
11590         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
11591         glthread_rwlock_destroy_func): Remove declarations.
11592         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
11593         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
11594         gl_waitqueue_notify_all, glthread_rwlock_init_func,
11595         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
11596         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
11597         functions.
11598         * modules/windows-rwlock: New file.
11599         * modules/lock (Depends-on): Add windows-rwlock.
11601 2019-07-14  Bruno Haible  <bruno@clisp.org>
11603         windows-thread: Add support for creating a thread in detached state.
11604         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
11605         (glwthread_thread_create): Add attr argument.
11606         * lib/windows-thread.c (glwthread_thread_create): Likewise.
11607         * lib/glthread/thread.h (glthread_create): Update.
11608         * lib/thrd.c (thrd_create): Update.
11610 2019-07-14  Bruno Haible  <bruno@clisp.org>
11612         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
11613         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
11614         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
11615         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
11616         * lib/windows-mutex.h: Update.
11617         * lib/windows-recmutex.h: Likewise.
11618         * lib/windows-timedmutex.h: Likewise.
11619         * lib/windows-timedrecmutex.h: Likewise.
11620         * lib/windows-cond.h: Likewise.
11621         * lib/glthread/lock.h: Likewise.
11622         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
11623         lib/windows-spinlock.h.
11624         * modules/windows-recmutex (Files): Likewise.
11625         * modules/windows-timedmutex (Files): Likewise.
11626         * modules/windows-timedrecmutex (Files): Likewise.
11627         * modules/windows-cond (Files): Likewise.
11628         * modules/threads-h (Files): Likewise.
11630 2019-07-14  Bruno Haible  <bruno@clisp.org>
11632         doc: Fix info about pthread API in HP-UX.
11633         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
11635 2019-07-14  Bruno Haible  <bruno@clisp.org>
11637         threads-h: Fix generation of threads.h.
11638         * modules/threads-h (Makefile.am): Insert the required header file
11639         snippets.
11641 2019-07-09  Bruno Haible  <bruno@clisp.org>
11643         striconveh test: Fix a compilation failure when iconv is not available.
11644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11645         * tests/test-striconveh.c (main): Move iconv_close invocations inside
11646         HAVE_ICONV.
11648 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
11650         argmatch: adjust columns for help2man.
11651         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
11652         requires column 20 or more, return 20.
11654 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11656         areadlink-with-size: avoid realloc when size==0
11657         * lib/areadlink-with-size.c (areadlink_with_size):
11658         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
11659         Reallocate at the end to the actual size, to avoid memory waste,
11660         as suggested by Bruno Haible.  But when the guessed size is zero -
11661         useful when the size is unknown - do the initial small readlink
11662         into the stack, to avoid that realloc in the usual case.
11664 2019-07-06  Pádraig Brady  <P@draigBrady.com>
11666         areadlink-with-size: guess a buffer size with 0 size
11667         The size is usually taken from st_size, which can be zero,
11668         resulting in inefficient operation.
11669         Instead let zero select an initial memory allocation
11670         of 128 bytes, which most symlinks fit within.
11671         * lib/areadlink-with-size.c (areadlink_with_size):
11672         Start with a 128 byte buffer, for SIZE == 0.
11673         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
11675 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
11677         Replace manually crafted hex regexes with [:xdigit:]
11678         * build-aux/gitlog-to-changelog (parse_amend_file)
11679         (git_dir_option):
11680         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
11681         This patch is backported from Emacs (Bug#36167).
11683 2019-07-06  Bruno Haible  <bruno@clisp.org>
11685         error: Fix documentation.
11686         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
11687         module provides.
11688         * doc/glibc-functions/error_message_count.texi: Likewise.
11689         * doc/glibc-functions/error_one_per_line.texi: Likewise.
11690         * doc/glibc-functions/error_print_progname.texi: Likewise.
11692 2019-07-06  Bruno Haible  <bruno@clisp.org>
11694         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
11695         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
11696         and older is unsupported.
11697         * doc/**/*.texi: Update.
11699 2019-07-06  Bruno Haible  <bruno@clisp.org>
11701         doc: Remove documentation of Linux libc5 as a supported platform.
11702         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
11703         to Linux libc5.
11704         * doc/posix-functions/iswalpha.texi: Likewise.
11705         * doc/posix-functions/iswblank.texi: Likewise.
11706         * doc/posix-functions/iswcntrl.texi: Likewise.
11707         * doc/posix-functions/iswdigit.texi: Likewise.
11708         * doc/posix-functions/iswgraph.texi: Likewise.
11709         * doc/posix-functions/iswlower.texi: Likewise.
11710         * doc/posix-functions/iswprint.texi: Likewise.
11711         * doc/posix-functions/iswpunct.texi: Likewise.
11712         * doc/posix-functions/iswspace.texi: Likewise.
11713         * doc/posix-functions/iswupper.texi: Likewise.
11714         * doc/posix-functions/iswxdigit.texi: Likewise.
11715         * doc/posix-functions/snprintf.texi: Likewise.
11716         * doc/posix-functions/vsnprintf.texi: Likewise.
11718 2019-07-06  Bruno Haible  <bruno@clisp.org>
11720         doc: Remove documentation of Tandem/NSK as a supported platform.
11721         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
11722         Tandem/NSK.
11723         * doc/**/*.texi: Update.
11725 2019-07-06  Bruno Haible  <bruno@clisp.org>
11727         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
11728         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
11729         and older is unsupported.
11730         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
11731         Mac OS X 10.4 and older.
11732         * doc/posix-functions/asinl.texi: Likewise.
11733         * doc/posix-functions/atanl.texi: Likewise.
11734         * doc/posix-functions/cosl.texi: Likewise.
11735         * doc/posix-functions/expl.texi: Likewise.
11736         * doc/posix-functions/frexpl.texi: Likewise.
11737         * doc/posix-functions/gettimeofday.texi: Likewise.
11738         * doc/posix-functions/logl.texi: Likewise.
11739         * doc/posix-functions/mkstemp.texi: Likewise.
11740         * doc/posix-functions/sinl.texi: Likewise.
11741         * doc/posix-functions/sqrtl.texi: Likewise.
11742         * doc/posix-functions/tanl.texi: Likewise.
11743         * doc/posix-functions/wcswidth.texi: Likewise.
11744         * doc/**/*.texi: Update.
11746 2019-07-06  Bruno Haible  <bruno@clisp.org>
11748         doc: Remove documentation of AIX 4 as a supported platform.
11749         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
11750         unsupported.
11751         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
11752         workarounds.
11753         * doc/posix-functions/strnlen.texi: Likewise.
11754         * doc/posix-headers/inttypes.texi: Likewise.
11755         * doc/**/*.texi: Update.
11757 2019-07-06  Bruno Haible  <bruno@clisp.org>
11759         doc: Remove documentation of HP-UX 10 as a supported platform.
11760         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
11761         unsupported.
11762         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
11763         workarounds.
11764         * doc/posix-functions/gmtime_r.texi: Likewise.
11765         * doc/posix-functions/localtime_r.texi: Likewise.
11766         * doc/posix-functions/mkstemp.texi: Likewise.
11767         * doc/**/*.texi: Update.
11769 2019-07-06  Bruno Haible  <bruno@clisp.org>
11771         doc: Remove documentation of Interix 3.5 as a supported platform.
11772         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
11773         unsupported.
11774         * doc/posix-functions/select.texi: Don't mention Interix specific
11775         workarounds.
11776         * doc/posix-headers/signal.texi: Likewise.
11777         * doc/**/*.texi: Update.
11779 2019-07-06  Bruno Haible  <bruno@clisp.org>
11781         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
11782         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
11783         unsupported.
11784         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
11785         workarounds.
11786         * doc/posix-functions/nl_langinfo.texi: Likewise.
11787         * doc/posix-functions/remainder.texi: Likewise.
11788         * doc/posix-functions/towlower.texi: Likewise.
11789         * doc/posix-functions/towupper.texi: Likewise.
11790         * doc/posix-functions/vsnprintf.texi: Likewise.
11791         * doc/posix-functions/wcscat.texi: Likewise.
11792         * doc/posix-functions/wcschr.texi: Likewise.
11793         * doc/posix-functions/wcscmp.texi: Likewise.
11794         * doc/posix-functions/wcscpy.texi: Likewise.
11795         * doc/posix-functions/wcscspn.texi: Likewise.
11796         * doc/posix-functions/wcslen.texi: Likewise.
11797         * doc/posix-functions/wcsncat.texi: Likewise.
11798         * doc/posix-functions/wcsncmp.texi: Likewise.
11799         * doc/posix-functions/wcsncpy.texi: Likewise.
11800         * doc/posix-functions/wcspbrk.texi: Likewise.
11801         * doc/posix-functions/wcsrchr.texi: Likewise.
11802         * doc/posix-functions/wcsspn.texi: Likewise.
11803         * doc/posix-headers/langinfo.texi: Likewise.
11804         * doc/posix-headers/signal.texi: Likewise.
11805         * doc/posix-headers/wchar.texi: Likewise.
11806         * doc/posix-headers/wctype.texi: Likewise.
11807         * doc/**/*.texi: Update.
11809 2019-07-05  Bruno Haible  <bruno@clisp.org>
11811         doc: Remove documentation of OSF/1 as supported platform.
11812         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
11813         unsupported.
11814         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
11815         workarounds.
11816         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
11817         * doc/glibc-functions/ptsname_r.texi: Likewise.
11818         * doc/posix-functions/ceil.texi: Likewise.
11819         * doc/posix-functions/ceilf.texi: Likewise.
11820         * doc/posix-functions/ceill.texi: Likewise.
11821         * doc/posix-functions/fchdir.texi: Likewise.
11822         * doc/posix-functions/floor.texi: Likewise.
11823         * doc/posix-functions/floorf.texi: Likewise.
11824         * doc/posix-functions/fmod.texi: Likewise.
11825         * doc/posix-functions/fmodf.texi: Likewise.
11826         * doc/posix-functions/fmodl.texi: Likewise.
11827         * doc/posix-functions/log.texi: Likewise.
11828         * doc/posix-functions/logf.texi: Likewise.
11829         * doc/posix-functions/logl.texi: Likewise.
11830         * doc/posix-functions/log10.texi: Likewise.
11831         * doc/posix-functions/log10f.texi: Likewise.
11832         * doc/posix-functions/log10l.texi: Likewise.
11833         * doc/posix-functions/log2.texi: Likewise.
11834         * doc/posix-functions/log2f.texi: Likewise.
11835         * doc/posix-functions/log2l.texi: Likewise.
11836         * doc/posix-functions/mbrtowc.texi: Likewise.
11837         * doc/posix-functions/recv.texi: Likewise.
11838         * doc/posix-functions/recvfrom.texi: Likewise.
11839         * doc/posix-functions/remainder.texi: Likewise.
11840         * doc/posix-functions/remainderf.texi: Likewise.
11841         * doc/posix-functions/remainderl.texi: Likewise.
11842         * doc/posix-functions/round.texi: Likewise.
11843         * doc/posix-functions/roundf.texi: Likewise.
11844         * doc/posix-functions/roundl.texi: Likewise.
11845         * doc/posix-functions/send.texi: Likewise.
11846         * doc/posix-functions/sendto.texi: Likewise.
11847         * doc/posix-functions/setenv.texi: Likewise.
11848         * doc/posix-functions/snprintf.texi: Likewise.
11849         * doc/posix-functions/tcgetsid.texi: Likewise.
11850         * doc/posix-functions/trunc.texi: Likewise.
11851         * doc/posix-functions/truncf.texi: Likewise.
11852         * doc/posix-functions/truncl.texi: Likewise.
11853         * doc/posix-functions/ttyname_r.texi: Likewise.
11854         * doc/posix-functions/unsetenv.texi: Likewise.
11855         * doc/posix-functions/wcsrtombs.texi: Likewise.
11856         * doc/posix-headers/sys_select.texi: Likewise.
11857         * doc/posix-headers/wchar.texi: Likewise.
11858         * doc/posix-headers/wctype.texi: Likewise.
11859         * doc/**/*.texi: Update.
11861 2019-07-05  Bruno Haible  <bruno@clisp.org>
11863         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
11864         * doc/**/*.texi: Update.
11866 2019-07-05  Bruno Haible  <bruno@clisp.org>
11868         doc: Remove documentation of Solaris 8 and older as supported platforms.
11869         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
11870         unsupported.
11871         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
11872         workarounds.
11873         * doc/posix-functions/memcmp.texi: Likewise.
11874         * doc/posix-functions/rename.texi: Likewise.
11875         * doc/posix-functions/tzset.texi: Likewise.
11876         * doc/posix-headers/wctype.texi: Likewise.
11877         * doc/**/*.texi: Update.
11879 2019-07-05  Bruno Haible  <bruno@clisp.org>
11881         doc: Remove documentation of Interix 3.5 as a supported platform.
11882         * doc/**/*.texi: Update.
11884 2019-07-05  Bruno Haible  <bruno@clisp.org>
11886         doc: Remove documentation of BeOS as a supported platform.
11887         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
11888         unsupported.
11889         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
11890         * doc/posix-functions/getdelim.texi: Likewise.
11891         * doc/**/*.texi: Update.
11893 2019-07-05  Bruno Haible  <bruno@clisp.org>
11895         thread, lock, cond, tls: Remove support for Pth threads.
11896         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
11897         --enable-threads=pth any more.
11898         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
11899         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
11900         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
11901         threads and ISO C11 threads.
11902         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
11903         * lib/glthread/lock.h: Likewise.
11904         * lib/glthread/lock.c: Likewise.
11905         * lib/glthread/cond.h: Likewise.
11906         * lib/glthread/cond.c: Likewise.
11907         * lib/glthread/tls.h: Likewise.
11908         * lib/glthread/tls.c: Likewise.
11909         * lib/glthread/yield.h: Likewise.
11910         * lib/regex_internal.h: Likewise.
11911         * tests/test-thread_create.c: Likewise.
11912         * tests/test-lock.c: Likewise.
11913         * tests/test-cond.c: Likewise.
11914         * tests/test-tls.c: Likewise.
11915         * tests/test-rwlock1.c: Don't include glthread/yield.h.
11916         (main): Sleep without calling gl_thread_yield.
11918 2019-07-05  Bruno Haible  <bruno@clisp.org>
11920         thread, lock, cond, tls: Remove support for old Solaris threads.
11921         Solaris >= 2.5.1 has POSIX threads.
11922         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
11923         --enable-threads=solaris any more.
11924         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
11925         * lib/glthread/thread.c: Update comment.
11926         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
11927         * lib/glthread/lock.h: Likewise.
11928         * lib/glthread/lock.c: Likewise.
11929         * lib/glthread/cond.h: Likewise.
11930         * lib/glthread/cond.c: Likewise.
11931         * lib/glthread/tls.h: Likewise.
11932         * lib/glthread/tls.c: Likewise.
11933         * lib/glthread/yield.h: Likewise.
11934         * lib/regex_internal.h: Likewise.
11935         * tests/test-thread_create.c: Likewise.
11936         * tests/test-lock.c: Likewise.
11937         * tests/test-cond.c: Likewise.
11938         * tests/test-tls.c: Likewise.
11940 2019-07-05  Bruno Haible  <bruno@clisp.org>
11942         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
11943         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
11944         needed size is equal to the allocated size.
11945         * lib/getcwd.c (__getcwd): Likewise.
11947 2019-07-05  Bruno Haible  <bruno@clisp.org>
11949         xgetdomainname: Don't return an excessive memory allocation.
11950         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
11951         before returning it.
11953 2019-07-05  Bruno Haible  <bruno@clisp.org>
11955         xgethostname: Don't return an excessive memory allocation.
11956         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
11957         returning it.
11959 2019-07-05  Bruno Haible  <bruno@clisp.org>
11961         areadlinkat-with-size: Don't return an excessive memory allocation.
11962         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
11963         before returning it.
11965 2019-07-05  Bruno Haible  <bruno@clisp.org>
11967         areadlink-with-size: Don't return an excessive memory allocation.
11968         Reported by Andreas Dilger <adilger@whamcloud.com>.
11969         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
11970         before returning it.
11972 2019-07-03  Bruno Haible  <bruno@clisp.org>
11974         renameatu: Fix test failure on MSVC.
11975         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
11976         empty string.
11978 2019-07-03  Bruno Haible  <bruno@clisp.org>
11980         mbrtowc: Fix invalid use of mbtowc() on MSVC.
11981         * lib/mbrtowc.c: Include glthread/lock.h.
11982         (mbtowc_lock): New variable.
11983         (mbrtowc): Treat UTF-8 encoding without locking. For the other
11984         encodings, explicitly reset the internal state of mbtowc, and protect
11985         this through a lock.
11986         * modules/mbrtowc (Depends-on): Add lock.
11988 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
11990         argmatch: don't define _ in the header.
11991         Reported by Jim Meyering.
11992         * lib/argmatch.h (N_, _): Don't define.
11993         Use gettext instead.
11994         * lib/argmatch.h (_): Define.
11995         * tests/test-argmatch.c (N_): Define.
11997 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11999         verify: document ‘assume’ better
12000         * lib/verify.h: Reword doc (Bug#36370).
12002 2019-07-02  Bruno Haible  <bruno@clisp.org>
12004         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
12005         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
12006         "CPutf8".
12007         * lib/nl_langinfo.c (ctype_codeset): Likewise.
12009 2019-07-02  Bruno Haible  <bruno@clisp.org>
12011         getcwd: Fix crash when invoked with size = 0 on MSVC.
12012         * lib/getcwd.c: Include msvc-inval.h.
12013         (getcwd_nothrow): New function/macro.
12014         (getcwd_system): New macro.
12015         (__getcwd): Use it instead of getcwd.
12016         * modules/getcwd (Depends-on): Add msvc-inval.
12017         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
12019 2019-07-02  Bruno Haible  <bruno@clisp.org>
12021         nonblocking-pipe tests: Fix test failure on MSVC.
12022         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
12023         native Windows.
12025 2019-07-02  Bruno Haible  <bruno@clisp.org>
12027         usleep: Implement with millisecond resolution on native Windows.
12028         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
12029         * doc/pastposix-functions/usleep.texi: Update accordingly.
12031 2019-07-02  Bruno Haible  <bruno@clisp.org>
12033         lstat tests: Fix test failure on MSVC.
12034         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
12035         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12037 2019-07-02  Bruno Haible  <bruno@clisp.org>
12039         stat tests: Fix test failure on MSVC.
12040         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
12041         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12043 2019-07-02  Bruno Haible  <bruno@clisp.org>
12045         getaddrinfo tests: Fix test failure on MSVC.
12046         * tests/test-getaddrinfo.c: Include sockets.h.
12047         (main): Invoke gl_sockets_startup.
12048         * modules/getaddrinfo-tests (Depends-on): Add sockets.
12050 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
12052         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
12053         * lib/poll.c: Call Windows native select() with Windows native timeval.
12055 2019-06-30  Bruno Haible  <bruno@clisp.org>
12057         argmatch: Fix compilation errors.
12058         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
12059         * tests/test-argmatch.c (main): Update after last-minute function names
12060         change.
12062 2019-06-30  Bruno Haible  <bruno@clisp.org>
12064         Include <stdlib.h> when needed.
12065         * lib/cnd.c: Include <stdlib.h>, needed for abort().
12066         * lib/fcntl.c: Likewise.
12067         * lib/mbscasestr.c: Likewise.
12068         * lib/mbssep.c: Likewise.
12069         * lib/mbsstr.c: Likewise.
12070         * lib/openat.c: Include <stdlib.h>, needed for free().
12071         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
12072         abort().
12074 2019-06-30  Bruno Haible  <bruno@clisp.org>
12076         Include <stdlib.h> when needed.
12077         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
12078         * lib/faccessat.c: Likewise.
12079         * lib/fchmodat.c: Likewise.
12080         * lib/fchownat.c: Likewise.
12081         * lib/fstatat.c: Likewise.
12082         * lib/mkfifoat.c: Likewise.
12083         * lib/mknodat.c: Likewise.
12084         * lib/readlinkat.c: Likewise.
12085         * lib/symlinkat.c: Likewise.
12086         * lib/utimensat.c: Likewise.
12087         * lib/mkdirat.c: Likewise. Include also the specification header.
12089 2019-06-30  Bruno Haible  <bruno@clisp.org>
12091         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
12092         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
12093         from gl_PREREQ_SYS_H_SOCKET.
12094         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
12095         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
12096         gl_PREREQ_SYS_H_WS2TCPIP.
12097         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
12098         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
12099         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
12101 2019-06-30  Bruno Haible  <bruno@clisp.org>
12103         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
12104         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
12105         REPLACE_INET_NTOP to 1 always.
12106         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
12107         REPLACE_INET_PTON to 1 always.
12109 2019-06-30  Bruno Haible  <bruno@clisp.org>
12111         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
12112         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
12113         not REPLACE_INET_NTOP.
12115 2019-06-30  Bruno Haible  <bruno@clisp.org>
12117         poll: Add comment.
12118         * lib/poll.c: Add comment about WSAPoll.
12120 2019-06-30  Bruno Haible  <bruno@clisp.org>
12122         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
12123         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
12124         * lib/poll.in.h: Include <winsock2.h>.
12125         (POLL*, pollfd): Override on native Windows.
12126         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12127         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
12128         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12130 2019-06-28  Bruno Haible  <bruno@clisp.org>
12132         accept4: Fix compilation error on OpenIndiana.
12133         Reported by Michal Nowak <mnowak@startmail.com>
12134         via Mark H Weaver <mhw@netris.org>.
12135         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
12136         whether it exists as a function.
12138 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
12140         strverscmp: sync from glibc
12141         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
12142         comments, include libc-config.h, define __strverscmp to be
12143         strverscmp, and don’t assume types line uint8_t and int8_t that
12144         that C99 doesn’t guarantee.
12145         [!_LIBC]: Include libc-config.h; define __strverscmp.
12146         Include stdint.h.
12147         (__strverscmp): Assume C99.  Use uint_least8_t
12148         and int_least8_t instead of unsigned char and signed char.
12149         * modules/strverscmp (Depends-on): Add libc-config, stdint.
12151 2019-06-25  Bruno Haible  <bruno@clisp.org>
12153         tss tests: Add tests for destructors and races.
12154         * tests/test-tss.c (worker_thread): Fix typo in debug message.
12155         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
12156         functions.
12157         (main): Invoke them.
12158         * modules/tls-tests (Depends-on): Add mtx.
12160 2019-06-25  Bruno Haible  <bruno@clisp.org>
12162         tls tests: Add tests for destructors and races.
12163         * tests/test-tls.c: Include glthread/lock.h.
12164         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
12165         functions.
12166         (main): Invoke them.
12167         * modules/tls-tests (Depends-on): Add lock.
12169 2019-06-25  Bruno Haible  <bruno@clisp.org>
12171         windows-tls: Implement TLS key destructors for native Windows.
12172         * lib/windows-tls.h (glwthread_tls_process_destructors): New
12173         declaration.
12174         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
12175         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
12176         (dtor_table_init_once, dtor_table_lock: New variables.
12177         (struct dtor): New type.
12178         (dtor_table, dtors_count, dtors_used, dtors_allocated,
12179         dtor_processing_threads): New variables.
12180         (dtor_table_initialize, dtor_table_ensure_initialized,
12181         dtor_table_shrink_used, glwthread_tls_process_destructors): New
12182         functions.
12183         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
12184         handle non-NULL destructors.
12185         * modules/windows-tls (Depends-on): Add windows-once.
12186         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
12187         Use the functions declared in windows-tls.h.
12188         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
12189         GLWTHREAD_DESTRUCTOR_ITERATIONS.
12190         * lib/windows-thread.c: Include windows-tls.h.
12191         (wrapper_func, glwthread_thread_exit): Invoke
12192         glwthread_tls_process_destructors.
12193         * modules/windows-thread (Depends-on): Add windows-tls.
12195 2019-06-25  Bruno Haible  <bruno@clisp.org>
12197         threadlib: Avoid autoconf warning "was expanded before it was required".
12198         * modules/threadlib (configure.ac): Require gl_THREADLIB.
12200 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
12202         argmatch: remove duplicate const qualifier
12203         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
12205 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12207         unistd: stddef.h and sys/types.h namespace cleanup
12208         * lib/unistd.in.h [__GLIBC__]:
12209         Do not include stddef.h or sys/types.h.
12210         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
12211         supposed to declare off_t and ssize_t.  Problem found when looking
12212         at why @GNULIB_PWRITE@ was different from the newly-added
12213         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
12215 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12217         maintainer-makefile: restore portability to non-GNU awks
12218         Reported by Tim Rühsen.
12219         * top/maint.mk (AWK): New variable.  Use it.
12220         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
12222 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12224         Document setvbuf _IOLBF problem
12225         * doc/posix-functions/setvbuf.texi (setvbuf):
12226         Document MS-Windows portability problem with _IOLBF.
12228         Document lseek SEEK_DATA/SEEK_HOLE
12229         * doc/posix-functions/lseek.texi (lseek):
12230         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
12232 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12234         argmatch: put all the docs member last.
12235         Reported by Bruno Haible.
12236         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
12237         member before the docs done.
12238         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
12240 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
12242         argmatch: add support to generate the usage message.
12243         * lib/argmatch.c: Move some #includes and gettext support to...
12244         * lib/argmatch.h: here.
12245         (ARGMATCH_DEFINE_GROUP): New macro.
12246         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
12247         (argmatch_backup_group): New.
12248         (CHECK): New.
12249         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
12250         argmatch_backup_argument and argmatch_backup_usage.
12251         * modules/argmatch: We depend on c99.
12252         * doc/argmatch.texi (Recognizing Option Arguments): New.
12253         * doc/gnulib.texi: Use it.
12255 2019-06-21  Bruno Haible  <bruno@clisp.org>
12257         thrd: Add comment.
12258         * lib/thrd.c (pthread_main_func): Add comment.
12260 2019-06-21  Bruno Haible  <bruno@clisp.org>
12262         threads-h: Define 'thread_local' if and only if it actually works.
12263         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
12264         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
12265         Oracle Solaris Studio C. Compile a simple program, to see whether
12266         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
12267         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
12268         * lib/threads.in.h (thread_local): Undefine if it does not work.
12269         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
12270         (Link): Mention LIBTHREADLOCAL.
12271         * tests/test-threads.c: Don't check that thread_local is defined.
12272         * tests/test-thread_local.c: New file.
12273         * modules/threads-h-tests (Files): Add it and macros.h.
12274         (Depends-on): Add thrd and stdint.
12275         (configure.ac): Test whether 'alarm' is declared.
12276         (Makefile.am): Arrange to build and link test-thread_local.
12277         * doc/posix-headers/threads.texi: Mention the platforms that don't
12278         support 'thread_local'.
12280 2019-06-20  Bruno Haible  <bruno@clisp.org>
12282         threads-h: Simplify link dependencies.
12283         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
12284         Don't set LTLIBSTDTHREAD.
12285         * modules/thrd (Link): Simplify accordingly.
12286         * modules/mtx (Link): Likewise.
12287         * modules/cnd (Link): Likewise.
12288         * modules/tss (Link): Likewise.
12289         * modules/threads (Link): Likewise.
12291 2019-06-20  Bruno Haible  <bruno@clisp.org>
12293         threads-h: Fix link error on FreeBSD 11.
12294         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
12295         also with -lpthread.
12297 2019-06-20  Bruno Haible  <bruno@clisp.org>
12299         threadlib: Fix typo (regression from today).
12300         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
12302 2019-06-20  Bruno Haible  <bruno@clisp.org>
12304         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
12305         * lib/windows-thread.c: Include <errno.h>.
12306         * lib/windows-tls.c: Likewise.
12308 2019-06-20  Bruno Haible  <bruno@clisp.org>
12310         tss tests: Small improvement.
12311         * tests/test-tss.c (test_tss): Pass a different id to each thread.
12313 2019-06-20  Bruno Haible  <bruno@clisp.org>
12315         threads: New module.
12316         * modules/threads: New file.
12318 2019-06-20  Bruno Haible  <bruno@clisp.org>
12320         tss: Add tests.
12321         * tests/test-tss.c: New file, based on tests/test-tls.c.
12322         * modules/tss-tests: New file.
12324 2019-06-20  Bruno Haible  <bruno@clisp.org>
12326         cnd: Add tests.
12327         * tests/test-cnd.c: New file, based on tests/test-cond.c.
12328         * modules/cnd-tests: New file.
12330 2019-06-20  Bruno Haible  <bruno@clisp.org>
12332         mtx: Add tests.
12333         * tests/test-mtx.c: New file, based on tests/test-lock.c.
12334         * tests/test-call_once.c: New file, based on tests/test-once.c.
12335         * modules/mtx-tests: New file.
12337 2019-06-20  Bruno Haible  <bruno@clisp.org>
12339         thrd: Add tests.
12340         * tests/test-thrd_create.c: New file, based on
12341         tests/test-thread_create.c.
12342         * tests/test-thrd_current.c: New file, based on
12343         tests/test-thread_self.c.
12344         * modules/thrd-tests: New file.
12346 2019-06-20  Bruno Haible  <bruno@clisp.org>
12348         tss: New module.
12349         * lib/tss.c: New file.
12350         * modules/tss: New file.
12351         * doc/posix-functions/tss_create.texi: Mention the new module.
12352         * doc/posix-functions/tss_set.texi: Likewise.
12353         * doc/posix-functions/tss_get.texi: Likewise.
12354         * doc/posix-functions/tss_delete.texi: Likewise.
12356 2019-06-20  Bruno Haible  <bruno@clisp.org>
12358         cnd: New module.
12359         * lib/cnd.c: New file.
12360         * modules/cnd: New file.
12361         * doc/posix-functions/cnd_init.texi: Mention the new module.
12362         * doc/posix-functions/cnd_wait.texi: Likewise.
12363         * doc/posix-functions/cnd_timedwait.texi: Likewise.
12364         * doc/posix-functions/cnd_signal.texi: Likewise.
12365         * doc/posix-functions/cnd_broadcast.texi: Likewise.
12366         * doc/posix-functions/cnd_destroy.texi: Likewise.
12368 2019-06-20  Bruno Haible  <bruno@clisp.org>
12370         mtx: New module.
12371         * lib/mtx.c: New file.
12372         * modules/mtx: New file.
12373         * doc/posix-functions/call_once.texi: Mention the new module.
12374         * doc/posix-functions/mtx_init.texi: Likewise.
12375         * doc/posix-functions/mtx_lock.texi: Likewise.
12376         * doc/posix-functions/mtx_trylock.texi: Likewise.
12377         * doc/posix-functions/mtx_timedlock.texi: Likewise.
12378         * doc/posix-functions/mtx_unlock.texi: Likewise.
12379         * doc/posix-functions/mtx_destroy.texi: Likewise.
12381 2019-06-20  Bruno Haible  <bruno@clisp.org>
12383         thrd: New module.
12384         * lib/thrd.c: New file.
12385         * m4/thrd.m4: New file.
12386         * modules/thrd: New file.
12387         * doc/posix-functions/thrd_current.texi: Mention the new module.
12388         * doc/posix-functions/thrd_detach.texi: Likewise.
12389         * doc/posix-functions/thrd_equal.texi: Likewise.
12390         * doc/posix-functions/thrd_exit.texi: Likewise.
12391         * doc/posix-functions/thrd_sleep.texi: Likewise.
12392         * doc/posix-functions/thrd_yield.texi: Likewise.
12393         * doc/posix-functions/thrd_create.texi: Mention the new module and the
12394         AIX bug.
12395         * doc/posix-functions/thrd_join.texi: Mention the new module and the
12396         AIX and Solaris bugs.
12398 2019-06-20  Bruno Haible  <bruno@clisp.org>
12400         threads-h: Add tests.
12401         * tests/test-threads.c: New file.
12402         * modules/threads-h-tests: New file.
12403         * tests/test-threads-c++.cc: New file.
12404         * modules/threads-h-c++-tests: New file.
12406 2019-06-20  Bruno Haible  <bruno@clisp.org>
12408         threads-h: New module.
12409         * lib/threads.in.h: New file.
12410         * m4/threads.m4: New file.
12411         * m4/yield.m4 (gl_YIELD): Update comment.
12412         * modules/threads-h: New file.
12413         * modules/yields (configure.ac): Use AC_REQUIRE.
12414         * doc/posix-headers/threads.texi: Mention the new module and the AIX
12415         bugs.
12417 2019-06-20  Bruno Haible  <bruno@clisp.org>
12419         windows-thread: New module.
12420         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
12421         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
12422         * lib/glthread/thread.h: Include windows-thread.h.
12423         (gl_thread_t): Define using glwthread_thread_t.
12424         (glthread_create): Define using glwthread_thread_create.
12425         (glthread_join): Define using glwthread_thread_join.
12426         (gl_thread_self): Define using glwthread_thread_self.
12427         (gl_thread_exit): Define using glwthread_thread_exit.
12428         (glthread_create_func, glthread_join_func, gl_thread_self_func,
12429         gl_thread_exit_func): Remove declarations.
12430         * lib/glthread/thread.c (self_key): Remove variable.
12431         (do_init_self_key, init_self_key): Remove functions.
12432         (struct gl_thread_struct): Remove type.
12433         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
12434         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
12435         functions.
12436         * modules/windows-thread: New file.
12437         * modules/thread (Depends-on): Add windows-thread.
12439 2019-06-20  Bruno Haible  <bruno@clisp.org>
12441         windows-tls: New module.
12442         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
12443         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
12444         * lib/glthread/tls.h: Include windows-tls.h.
12445         (gl_tls_key_t): Define using glwthread_tls_key_t.
12446         * modules/windows-tls: New file.
12447         * modules/tls (Depends-on): Add windows-tls.
12449 2019-06-20  Bruno Haible  <bruno@clisp.org>
12451         windows-cond: New module.
12452         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
12453         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
12454         * lib/glthread/cond.h: Include windows-cond.h.
12455         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
12456         (gl_cond_t): Define using glwthread_cond_t.
12457         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
12458         (glthread_cond_init): Define using glwthread_cond_init.
12459         (glthread_cond_wait): Define using glwthread_cond_wait.
12460         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
12461         (glthread_cond_signal): Define using glwthread_cond_signal.
12462         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
12463         (glthread_cond_destroy): Define using glwthread_cond_destroy.
12464         (glthread_cond_init_func, glthread_cond_wait_func,
12465         glthread_cond_timedwait_func, glthread_cond_signal_func,
12466         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12467         declarations.
12468         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
12469         types.
12470         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
12471         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
12472         glthread_cond_init_func, glthread_cond_wait_func,
12473         glthread_cond_timedwait_func, glthread_cond_signal_func,
12474         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12475         functions.
12476         * modules/windows-cond: New file.
12477         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
12479 2019-06-20  Bruno Haible  <bruno@clisp.org>
12481         windows-timedrecmutex: New module.
12482         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
12483         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
12484         * modules/windows-timedrecmutex: New file.
12486 2019-06-20  Bruno Haible  <bruno@clisp.org>
12488         windows-timedmutex: New module.
12489         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
12490         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
12491         * modules/windows-timedmutex: New file.
12493 2019-06-20  Bruno Haible  <bruno@clisp.org>
12495         windows-recmutex: New module.
12496         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
12497         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
12498         * lib/glthread/lock.h: Include windows-recmutex.h.
12499         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
12500         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
12501         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
12502         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
12503         (glthread_recursive_lock_unlock): Define using
12504         glwthread_recmutex_unlock.
12505         (glthread_recursive_lock_destroy): Define using
12506         glwthread_recmutex_destroy.
12507         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
12508         glthread_recursive_lock_unlock_func,
12509         glthread_recursive_lock_destroy_func): Remove declarations.
12510         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
12511         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
12512         glthread_recursive_lock_destroy_func): Remove functions.
12513         * modules/windows-recmutex: New file.
12514         * modules/lock (Depends-on): Add windows-recmutex.
12516 2019-06-20  Bruno Haible  <bruno@clisp.org>
12518         windows-mutex: New module.
12519         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
12520         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
12521         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
12522         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
12523         (gl_spinlock_t): Remove type.
12524         (gl_lock_t): Define using glwthread_mutex_t.
12525         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
12526         (glthread_lock_init): Define using glwthread_mutex_init.
12527         (glthread_lock_lock): Define using glwthread_mutex_lock.
12528         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
12529         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
12530         (glthread_lock_init_func, glthread_lock_lock_func,
12531         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12532         declarations.
12533         Use glwthread_spinlock_t instead of gl_spinlock_t.
12534         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
12535         GLWTHREAD_SPINLOCK_INIT.
12536         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
12537         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12538         functions.
12539         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
12540         gl_spinlock_t.
12541         * modules/windows-mutex: New file.
12542         * modules/lock (Depends-on): Add windows-mutex.
12544 2019-06-20  Bruno Haible  <bruno@clisp.org>
12546         windows-once: New module.
12547         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
12548         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
12549         * lib/glthread/lock.h: Include windows-once.h.
12550         (gl_once_t): Define using glwthread_once_t.
12551         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
12552         (glthread_once): Define using glwthread_once.
12553         (glthread_once_func): Remove declaration.
12554         * lib/glthread/lock.c (glthread_once_func): Remove function.
12555         * modules/windows-once: New file.
12556         * modules/lock (Depends-on): Add windows-once.
12558 2019-06-20  Bruno Haible  <bruno@clisp.org>
12560         lock, cond: Avoid possible counter wraparound on Windows.
12561         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
12562         field of the guard unchanged if it was already positive.
12563         (glthread_rwlock_rdlock_func): Likewise.
12564         (glthread_rwlock_wrlock_func): Likewise.
12565         (glthread_recursive_lock_lock_func): Likewise.
12566         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
12567         (glthread_cond_timedwait_func): Likewise.
12569 2019-06-20  Bruno Haible  <bruno@clisp.org>
12571         cond: Make glthread_cond_timedwait more reliable on Windows.
12572         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
12573         condition variable before looking at the current time.
12575 2019-06-20  Bruno Haible  <bruno@clisp.org>
12577         pthread_mutex_timedlock: New module.
12578         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
12579         new declaration.
12580         * lib/pthread_mutex_timedlock.c: New file.
12581         * m4/pthread_mutex_timedlock.m4: New file.
12582         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
12583         whether pthread_mutex_timedlock is declared.
12584         (gl_PTHREAD_MODULE_INDICATOR): New macro.
12585         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
12586         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
12587         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
12588         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
12589         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
12590         * modules/pthread_mutex_timedlock: New file.
12591         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
12592         module.
12594 2019-06-20  Bruno Haible  <bruno@clisp.org>
12596         thread, lock, cond, tls: Recognize C11 multithreaded applications.
12597         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
12598         * lib/glthread/thread.h (c11_threads_in_use): New macro.
12599         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12600         * lib/glthread/lock.h (c11_threads_in_use): New macro.
12601         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12602         * lib/glthread/cond.h (c11_threads_in_use): New macro.
12603         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12604         * lib/glthread/tls.h (c11_threads_in_use): New macro.
12605         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12607 2019-06-20  Bruno Haible  <bruno@clisp.org>
12609         tls tests: Small improvements.
12610         * tests/test-tls.c: Include <stdint.h>.
12611         (worker_thread): Avoid gcc warning on 64-bit mingw.
12612         (test_tls): Pass a different id to each thread.
12613         * modules/tls-tests (Depends-on): Add stdint.
12615 2019-06-20  Bruno Haible  <bruno@clisp.org>
12617         cond tests: Simplify.
12618         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
12620 2019-06-20  Bruno Haible  <bruno@clisp.org>
12622         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
12623         * tests/test-lock.c (test_once): Don't reference fire_signal if
12624         !ENABLE_LOCKING.
12626 2019-06-19  Bruno Haible  <bruno@clisp.org>
12628         nanosleep: Relicense under LGPLv2+.
12629         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
12630         * modules/nanosleep (License): Change to LGPLv2+.
12632 2019-06-19  Bruno Haible  <bruno@clisp.org>
12634         Reorder pieces of header in perl scripts.
12635         The desired order is
12636         - Prologue part 1 (2 lines with #!)
12637         - Program short description
12638         - Copyright and license notice
12639         - Written-by notice
12640         - Program short description (optional)
12641         - Program long description (optional)
12642         - Prologue part 2
12643         - Time stamp
12644         - Code
12645         Reported by Paul Eggert.
12646         * build-aux/announce-gen: Reorder header.
12647         * build-aux/gitlog-to-changelog: Likewise.
12648         * build-aux/useless-if-before-free: Likewise.
12649         * build-aux/prefix-gnulib-mk: Add copyright notice and short
12650         description.
12651         * build-aux/update-copyright: Likewise. Add short description. Bump
12652         time-stamp-line-limit to 200.
12654 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
12656         verify-tests: work around xlc bug
12657         Problem reported by Bruno Haible in:
12658         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
12659         * tests/test-verify.c (item): Move the arithmetic inside the
12660         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
12662 2019-06-16  Bruno Haible  <bruno@clisp.org>
12664         Restore Emacs time-stamp hook applicability.
12665         Reported by Darshit Shah <darnir@gnu.org>.
12666         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
12667         * build-aux/announce-gen: Likewise.
12668         * build-aux/gitlog-to-changelog: Likewise.
12669         * build-aux/prefix-gnulib-mk: Likewise.
12670         * build-aux/update-copyright: Likewise.
12672 2019-06-15  Bruno Haible  <bruno@clisp.org>
12674         Fix scripts to have valid executable format on Alpine Linux.
12675         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12676         Idea by Paul Eggert.
12677         * build-aux/useless-if-before-free: Use a prologue that starts with
12678         '#!/bin/sh'.
12679         * build-aux/announce-gen: Likewise.
12680         * build-aux/gitlog-to-changelog: Likewise.
12681         * build-aux/prefix-gnulib-mk: Likewise.
12682         * build-aux/update-copyright: Likewise.
12683         * tests/test-update-copyright.sh: Update test program accordingly.
12685 2019-06-10  Bruno Haible  <bruno@clisp.org>
12687         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
12688         Reported by Nikita Ermakov <arei@altlinux.org> in
12689         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
12690         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
12691         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
12693 2019-06-10  Bruno Haible  <bruno@clisp.org>
12695         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
12696         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
12697         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
12698         a copy of the path argument.
12699         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
12700         it.
12702 2019-06-10  Bruno Haible  <bruno@clisp.org>
12704         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
12705         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
12706         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
12707         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
12708         a copy of the path argument.
12709         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
12710         it.
12712 2019-06-10  Bruno Haible  <bruno@clisp.org>
12714         posix_spawn_file_actions_addfchdir: Add tests.
12715         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
12716         * tests/test-posix_spawn5.c: New file.
12717         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
12719 2019-06-10  Bruno Haible  <bruno@clisp.org>
12721         posix_spawn_file_actions_addfchdir: New module.
12722         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
12723         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
12724         union member 'fchdir_action'.
12725         * lib/spawn_faction_addfchdir.c: New file.
12726         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
12727         * m4/posix_spawn_faction_addfchdir.m4: New file.
12728         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
12729         'posix_spawn_file_actions_addfchdir' is present and whether
12730         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
12731         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
12732         posix_spawn_file_actions_addfchdir is declared.
12733         (gl_SPAWN_H_DEFAULTS): Initialize
12734         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12735         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12736         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
12737         * modules/spawn (Makefile.am): Substitute
12738         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12739         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12740         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
12741         * modules/posix_spawn_file_actions_addfchdir: New file.
12742         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
12743         signature.
12744         * doc/posix-functions/posix_spawn.texi: Mention the new module.
12745         * doc/posix-functions/posix_spawnp.texi: Likewise.
12746         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
12747         Likewise.
12749 2019-06-10  Bruno Haible  <bruno@clisp.org>
12751         doc: Document existence of posix_spawn_file_actions_addchdir module.
12752         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
12753         the posix_spawn_file_actions_addchdir module.
12755 2019-06-10  Bruno Haible  <bruno@clisp.org>
12757         posix_spawn-internal: Fix module description.
12758         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
12759         from here...
12760         * modules/posix_spawnp (configure.ac): ... and here...
12761         * modules/posix_spawn-internal (configure.ac): ... to here.
12763 2019-06-10  Bruno Haible  <bruno@clisp.org>
12765         doc: Update and improve documentation of glibc functions.
12766         This is a series of commits that
12767         - updates the documentation to the state of glibc 2.29,
12768         - adds references to Linux man pages and glibc documentation,
12769         - marks Linux specific functions as such.
12770         These are the commits:
12771         doc: Update after removal of crypt functions from glibc 2.28.
12772         doc: Remove mention of function vm86 (does not exist on x86_64).
12773         doc: Remove mention of functions that are gone from glibc.
12774         doc: Mention that glibc no longer provides h_errno.
12775         doc: Mention the availability of specific functions in glibc versions.
12776         doc: Mention eaccess.
12777         doc: Add references to Linux man pages.
12778         doc: Add references to glibc documentation.
12779         doc: Mention inotify_* functions.
12780         doc: Mention ppoll.
12781         doc: Mention sched_getcpu.
12782         doc: Mention sync_file_range.
12783         doc: Mention epoll_pwait.
12784         doc: Mention eventfd, eventfd_read, eventfd_write.
12785         doc: Mention signalfd.
12786         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
12787         doc: Mention epoll_create1.
12788         doc: Mention getauxval.
12789         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
12790         doc: Mention nextdown, nextup.
12791         doc: Mention more ISO TS 18661-1 <math.h> functions.
12792         doc: Mention ISO TS 18661-1 <fenv.h> functions.
12793         doc: Mention getrandom, getentropy.
12794         doc: Mention strfromf, strfromd, strfroml.
12795         doc: Mention preadv2, pwritev2.
12796         doc: Mention copy_file_range.
12797         doc: Mention memfd_create.
12798         doc: Mention mlock2.
12799         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
12800         doc: Mention more ISO TS 18661-1 <math.h> functions.
12801         doc: Mention renameat2.
12802         doc: Mention statx.
12803         doc: Mention the ISO C11 multithreading header and functions.
12804         doc: Mention getcpu.
12805         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
12806         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
12807         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
12808         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
12809         doc: Some glibc functions also exist on Solaris 11.
12810         doc: Some glibc functions also exist on Solaris 11.4.
12811         doc: Some glibc functions also exist on FreeBSD.
12812         doc: Some glibc functions also exist on BeOS.
12813         doc: Some glibc functions also exist on Haiku.
12814         doc: Mark functions which exist only on Linux.
12815         doc: Mark functions which exist only on Linux and illumos.
12817 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12819         copy-file: fix typo
12820         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
12822         copy-file-range: simplify into a stub
12823         Based on a comment by Florian Weimer in:
12824         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
12825         It turns out that Emacs (which will use this module) won’t need an
12826         emulation and I suspect other programs won’t either, because these
12827         programs will need to fall back on read+write anyway.  Perhaps I
12828         am wrong and other programs will be able to use an emulation; if
12829         so, this patch can be reverted.
12830         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
12831         Just call it copy_file_range.
12832         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
12833         Check via AC_LINK_IFELSE.
12834         * modules/copy-file-range (Depends-on): Remove modules no longer used.
12836 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
12838         copy-file: prefer copy_file_range
12839         * lib/copy-file.c: Do not include xalloc.h.
12840         (qcopy_file_preserving): Allocate a buffer only if
12841         copy_file_range does not suffice.  If the allocation fails
12842         don't give up; just use a small stack-based buffer.
12843         Prefer copy_file_range if it works.
12844         * modules/copy-file (Depends-on): Add copy-file-range.
12845         Remove xalloc.
12847         copy-file-range: new module
12848         * MODULES.html.sh: Add copy-file-range.
12849         * lib/copy-file-range.c, m4/copy-file-range.m4:
12850         * modules/copy-file-range: New files.
12851         * lib/unistd.in.h (copy_file_range): Declare.
12852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
12853         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
12854         * modules/unistd (unistd.h): Substitute them.
12856 2019-05-28  Bruno Haible  <bruno@clisp.org>
12858         binary-io: Attempted use of O_BINARY on consoles no longer fails.
12859         Reported by KO Myung-Hun <komh78@gmail.com> in
12860         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
12861         * lib/binary-io.h (__gl_setmode_check): Remove function.
12862         (set_binary_mode): Declare as notinline on DJGPP and EMX.
12863         * lib/binary-io.c (__gl_setmode_check): Remove function.
12864         (set_binary_mode): Define here on DJGPP and EMX. Inline
12865         __gl_setmode_check. In case of a tty, don't return an error code.
12867 2019-05-28  James Youngman  <jay@gnu.org>
12869         dirent-safer: Make opendir_safer usable from C++.
12870         * lib/dirent-safer.h: use extern "C".
12872 2019-05-28  James Youngman  <jay@gnu.org>
12874         canonicalize: Make canonicalize_filename_mode usable from C++.
12875         * lib/canonicalize.h: use extern "C".
12877 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
12879         prefix-gnulib-mk: Fix CPPFLAGS migration.
12880         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
12881         _a part of the library name.
12883 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12885         flexmember: update comments again
12886         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
12888         flexmember: update comment
12889         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
12891 2019-05-20  Bruno Haible  <bruno@clisp.org>
12893         setlocale: Improve fallback on macOS.
12894         * lib/setlocale.c (search): Optimize away a redundant strcmp()
12895         invocation.
12896         (locales_with_principal_territory): New array.
12897         (langcmp, get_main_locale_with_same_language): New functions.
12898         (locales_with_principal_language): New array.
12899         (terrcmp, get_main_locale_with_same_territory): New functions.
12900         (rpl_setlocale): When setlocale_single failed, try again with a locale
12901         that is more likely to exist. Don't warn if the environment variable
12902         SETLOCALE_VERBOSE is not set.
12904 2019-05-19  Bruno Haible  <bruno@clisp.org>
12906         localename: Fix default on macOS.
12907         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
12908         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
12909         (gl_locale_name_environ, gl_locale_name_default): Remove code for
12910         HAVE_CFLOCALECOPYCURRENT.
12911         * lib/localename.h (gl_locale_name_default): Update.
12913 2019-05-19  Karl Berry  <karl@freefriends.org>
12915         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
12916         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
12917         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
12919 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
12921         maintainer-makefile: catch uses of $< in non-implicit rules
12922         * top/maint.mk (sc_prohibit_magic_number_exit): New.
12924 2019-05-18  Bruno Haible  <bruno@clisp.org>
12926         threadlib: Provide an easy way to avoid mingw's winpthreads library.
12927         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
12928         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
12929         gl_use_threads accordingly.
12931 2019-05-18  Bruno Haible  <bruno@clisp.org>
12933         pthread_sigmask: Fix compilation error with --enable-threads=windows.
12934         Reported by Tim Rühsen in
12935         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
12936         and Michele Locati in
12937         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
12938         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
12939         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
12940         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
12941         in use and regardless which threads API is chosen.
12943 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
12945         close-stream, closein, closeout: simplify
12946         I noticed this opportunity for simplification while drafting a
12947         new, related module that I haven’t had time to finish yet.
12948         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
12949         * modules/close-stream (Files): Remove m4/close-stream.m4.
12950         (configure.ac): Omit gl_CLOSE_STREAM.
12951         * modules/closein (Files): Remove m4/closein.m4
12952         (configure.ac): Omit gl_CLOSEIN.
12953         * modules/closeout (Files): Remove m4/closeout.m4.
12954         (configure.ac): Omit gl_CLOSEOUT.
12956 2019-05-12  Bruno Haible  <bruno@clisp.org>
12958         libtool-next-version: New program.
12959         * build-aux/libtool-next-version: New file.
12961 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
12962             Bruno Haible  <bruno@clisp.org>
12964         version-etc: Ease translation.
12965         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
12966         URLs and formatting newlines out of translatable string.
12968 2019-05-11  Bruno Haible  <bruno@clisp.org>
12970         gnupload: Explain how to create symlinks.
12971         * build-aux/gnupload (usage): Add an example that creates symlinks.
12973 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12975         fpucw: port to gcc -pedantic
12976         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
12977         Use __extension__ if using ({ ... }).
12979         crypto/af_alg: port to strict C compilers
12980         * lib/af_alg.c: Include af_alg.h regardless, so that the
12981         compilation unit is nonempty.
12983 2019-05-10  Bruno Haible  <bruno@clisp.org>
12985         base64: Avoid false positive warning from Coverity.
12986         Reported by Kamil Dudka <kdudka@redhat.com>.
12987         Idea by Paul Eggert.
12988         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
12989         '& 0x3f' to the array index expressions. This convinces Coverity that
12990         there is no out-of-bounds array reference, regardless of the input.
12992 2019-05-09  Bruno Haible  <bruno@clisp.org>
12994         gettext: Update to gettext 0.20.
12995         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
12996         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
12997         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
12998         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
12999         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
13000         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
13001         (configure.ac): Request infrastructure compatible with gettext 0.20.
13002         * m4/glibc2.m4: Remove file.
13003         * m4/intdiv0.m4: Remove file.
13004         * m4/intl.m4: Remove file.
13005         * m4/intldir.m4: Remove file.
13006         * m4/intmax.m4: Remove file.
13007         * m4/printf-posix.m4: Remove file.
13008         * m4/uintmax_t.m4: Remove file.
13009         * m4/gettext.m4: Update from gettext 0.20.
13010         * m4/po.m4: Likewise.
13012 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13014         verify: remove verify_true
13015         * NEWS: Mention this.
13016         * lib/verify.h (verify_true): Remove.
13017         * tests/test-verify.c (item): Test verify_expr, not verify_true.
13019         Support C2X and C++17 static_assert
13020         C2X and C++17 finally added support for a simple, single-argument
13021         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
13022         doing back in 2005.  Implement static_assert on older platforms.
13023         The only remaining advantage of ‘verify’ is a shorter name.
13024         * doc/posix-headers/assert.texi (assert.h):
13025         * doc/verify.texi (Compile-time Assertions):
13026         Modernize for C2X and C++17.
13027         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
13028         New macros.
13029         (_GL_HAVE__STATIC_ASSERT): Remove.
13030         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
13031         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
13032         string.  All callers changed.
13033         (_GL_VERIFY): Require 3 or more args, of which only the first 2
13034         are used.  All callers changed.
13035         (_Static_assert): Allow either 1 or 2 args, and define if
13036         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
13037         !_GL_HAVE__STATIC_ASSERT.
13038         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
13039         of defining if !_GL_HAVE_STATIC_ASSERT.
13040         (verify_expr, verify): Don’t bother trying to copy the expression
13041         into the diagnostic, since 1-argument static_assert doesn’t.
13042         (verify): Prefer 1-argument _Static_assert if it works.
13043         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
13045 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13047         Fix _GL_HAVE__STATIC_ASSERT typo
13048         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
13049         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
13051 2019-05-05  Bruno Haible  <bruno@clisp.org>
13053         wcwidth: Ensure width 1, not 2, for ambiguous characters.
13054         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
13055         via Akim Demaille <akim.demaille@gmail.com>.
13056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
13057         en_US.UTF-8 locale, since that is more likely to be present than an
13058         fr_FR.UTF-8 locale.
13059         * tests/test-wcwidth.c (main): Check the width of U+2202.
13060         * doc/posix-functions/wcwidth.texi: Mention the issue.
13062 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13064         Port manywarnings to GCC 9
13065         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
13066         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
13067         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
13068         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
13069         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
13070         --help=warnings output.
13071         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
13072         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
13073         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
13075 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13077         Sync lib/mktime-internal.h from glibc
13078         * config/srclist.txt: Add entry for lib/mktime-internal.h.
13079         * lib/mktime-internal.h: Autoupdate.
13081 2019-04-28  Bruno Haible  <bruno@clisp.org>
13083         tls tests: Prevent that the test takes too long.
13084         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
13085         (main): Let the test fail if it takes more than 10 minutes.
13086         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
13088 2019-04-27  Bruno Haible  <bruno@clisp.org>
13090         lock tests: Prevent that the test takes too long.
13091         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
13092         (main): Let the test fail if it takes more than 10 minutes.
13093         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
13095 2019-04-27  Bruno Haible  <bruno@clisp.org>
13097         localename: Fix crash on mingw (regression from 2018-11-23).
13098         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
13099         locale name that is null.
13101 2019-04-27  Bruno Haible  <bruno@clisp.org>
13103         Fix gcc warnings on 64-bit mode mingw.
13104         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
13105         * lib/gl_array_list.c: Likewise.
13106         * lib/gl_array_map.c: Likewise.
13107         * lib/gl_array_set.c: Likewise.
13108         * lib/gl_carray_list.c: Likewise.
13109         * lib/gl_sublist.c: Likewise.
13110         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
13111         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
13112         * lib/gl_hash_map.c (uintptr_t): Likewise.
13113         * lib/gl_hash_set.c (uintptr_t): Likewise.
13114         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
13115         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
13116         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
13117         * lib/iconv.c (uintptr_t): Likewise.
13118         * lib/iconv_close.c (uintptr_t): Likewise.
13119         * tests/test-lock.c: Include <stdint.h>.
13120         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
13121         'long'.
13122         * modules/clean-temp (Depends-on): Add stdint.
13123         * modules/array-list (Depends-on): Likewise.
13124         * modules/array-map (Depends-on): Likewise.
13125         * modules/array-set (Depends-on): Likewise.
13126         * modules/carray-list (Depends-on): Likewise.
13127         * modules/sublist (Depends-on): Likewise.
13128         * modules/lock-tests (Depends-on): Likewise.
13130 2019-04-27  Bruno Haible  <bruno@clisp.org>
13132         error: Tweak indentation.
13133         * lib/error.c: Correct indentation.
13135 2019-04-27  Bruno Haible  <bruno@clisp.org>
13137         term-style-control: Fix gcc warning on mingw.
13138         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
13139         of i.
13141 2019-04-26  Bruno Haible  <bruno@clisp.org>
13143         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
13144         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
13146 2019-04-26  Bruno Haible  <bruno@clisp.org>
13148         relocatable-prog: Fix gcc warning on mingw.
13149         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
13150         on EMX.
13152 2019-04-02  Bruno Haible  <bruno@clisp.org>
13154         gitsub.sh: New file.
13155         * top/gitsub.sh: New file.
13157 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
13159         argmatch: use void* for raw memory pointers
13160         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
13161         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
13162         to "values", keep char* for strings.
13164 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
13166         prefix-gnulib-mk: fix the support for gnulib-po
13167         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
13168         Don't touch HAVE_* variables.
13169         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
13171 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
13173         di-set: allow free with 'ino_map' being NULL.
13174         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
13175         is NULL.  Bug introduced in commit 3703dbbe88dd.
13176         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
13177         as a test.
13179 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
13181         * lib/str-two-way.h: Fix comment typo.
13183 2019-04-13  Bruno Haible  <bruno@clisp.org>
13185         x-to-1: Restore ability to use original calling convention.
13186         * build-aux/x-to-1.in: Add comments. Accept the original form of
13187         HELP2MAN argument as well as the form expected since 2012-12-12.
13189 2019-04-13  Bruno Haible  <bruno@clisp.org>
13191         x-to-1: Avoid failure due to missing perl modules.
13192         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
13193         needs are installed.
13195 2019-04-13  Bruno Haible  <bruno@clisp.org>
13197         openmp-init: New module.
13198         * modules/openmp-init: New file.
13199         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
13200         the changes from 2019-04-09.
13202 2019-04-12  Bruno Haible  <bruno@clisp.org>
13204         signbit: Fix compilation error when gnulib's math.h exists twice.
13205         * lib/math.in.h (GNULIB_defined_signbit): New macro.
13207 2019-04-12  Bruno Haible  <bruno@clisp.org>
13209         openmp: Fix compilation error on platforms without OpenMP.
13210         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
13212 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
13214         mountlist: make parsing /proc/self/mountinfo more robust
13215         Cater for the following issues with mountinfo parsing (the first
13216         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
13217         in <https://bugs.gnu.org/35137>).
13218         1. The fields source, target, mntroot and fstype may contain characters
13219         like '\r'; sscanf(3) fails to read such values with the %s format
13220         specifier because it would stop at such characters.
13221         Example: "mount -t tmpfs tmpfs /foo^Mbar".
13222         The only true separator in that file is the ' ' character.
13223         2. The source field may be an empty string, which happens e.g. with
13224         "mount -t tmpfs '' /target".
13225         3. The fstype field may contain mangled characters as well which need
13226         unescaping.
13227         * lib/mountlist.c (terminate_at_blank): Add utility function.
13228         (read_file_system_list): In the block trying to read the mountinfo file,
13229         avoid using sscanf(3) with %s format; instead, parse the above fields
13230         separated by spaces one by one.
13231         This also handles the case when the source field is an empty string.
13232         Unescape the fstype field.
13234 2019-04-09  Bruno Haible  <bruno@clisp.org>
13236         openmp: Add workaround for 32-bit programs on AIX.
13237         * lib/omp.in.h: New file.
13238         * lib/omp-init.c: New file, based on lib/nproc.c.
13239         * m4/omp_h.m4: New file.
13240         * modules/openmp (Files): Add them.
13241         (Depends-on): Add include_next, c-ctype, setenv.
13242         (configure.ac): Invoke gl_OMP_H.
13243         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
13244         (Include): Mention <omp.h>.
13246 2019-04-09  Bruno Haible  <bruno@clisp.org>
13248         nproc: Fix return value for privileged processes.
13249         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
13250         getpid().
13252 2019-04-07  Bruno Haible  <bruno@clisp.org>
13254         Add copyright notices in several files.
13255         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
13256         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
13257         * lib/libunistring.valgrind: Likewise.
13258         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
13259         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
13260         * lib/memchr.valgrind: Likewise.
13261         * lib/memchr2.valgrind: Likewise.
13262         * lib/rawmemchr.valgrind: Likewise.
13263         * lib/relocatable.valgrind: Likewise.
13264         * lib/strchrnul.valgrind: Likewise.
13266 2019-03-25  Bruno Haible  <bruno@clisp.org>
13268         term-style-control tests: Fix link error.
13269         Reported by Tom G. Christensen in
13270         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
13271         * modules/term-style-control-tests (Makefile.am): Link
13272         test-term-style-control-hello and test-term-style-control-yes against
13273         LIBINTL.
13275 2019-03-24  Bruno Haible  <bruno@clisp.org>
13277         term-style-control: Add tests.
13278         * tests/test-term-style-control-hello.c: New file.
13279         * tests/test-term-style-control-yes.c: New file.
13280         * modules/term-style-control-tests: New file.
13282         term-style-control: New module.
13283         * lib/term-style-control.h: New file, based on libtextstyle's
13284         term-ostream.oo.h and term-ostream.oo.c.
13285         * lib/term-style-control.c: New file, based on libtextstyle's
13286         term-ostream.oo.c.
13287         * modules/term-style-control: New file.
13289 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13291         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
13292         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
13293         C++98 appears to be supported by Clang, but not by GCC nor ICC.
13295 2019-03-23  Bruno Haible  <bruno@clisp.org>
13297         Support cross-compilation to musl libc.
13298         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
13299         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
13300         musl libc.
13301         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13302         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
13303         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13304         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13305         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13306         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
13307         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13308         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
13309         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13310         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13311         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
13312         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
13313         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13314         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13315         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
13316         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
13317         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
13318         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13319         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
13320         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13321         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13322         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13323         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
13324         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13325         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
13326         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
13327         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
13328         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
13329         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
13330         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
13331         * m4/log.m4 (gl_FUNC_LOG): Likewise.
13332         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
13333         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
13334         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
13335         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
13336         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
13337         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
13338         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
13339         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
13340         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
13341         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
13342         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
13343         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
13344         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13345         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
13346         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
13347         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
13348         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
13349         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
13350         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
13351         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
13352         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
13353         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13354         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
13355         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13356         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
13357         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
13358         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
13359         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
13360         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
13361         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13362         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13363         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13364         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
13365         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13366         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13367         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13368         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
13369         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13370         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
13371         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13372         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13373         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13374         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
13375         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
13376         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13377         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13380 2019-03-23  Bruno Haible  <bruno@clisp.org>
13382         posix_spawn_file_actions_*: Document musl libc bugs.
13383         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
13384         the bug.
13385         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
13386         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
13387         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
13388         cross-compiling to a musl system, guess no.
13389         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
13390         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
13392 2019-03-23  Bruno Haible  <bruno@clisp.org>
13394         futimens: Document musl libc bug.
13395         * doc/posix-functions/futimens.texi: Mention the bug.
13396         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
13397         cross-compiling, guess no on glibc and musl systems.
13399 2019-03-23  Bruno Haible  <bruno@clisp.org>
13401         Clarify that cross-compilation guesses are guesses.
13402         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
13403         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
13404         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
13405         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
13406         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
13407         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
13408         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
13409         gl_cv_glob_lists_symlinks.
13410         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
13411         'guessing ' to ac_cv_func_malloc_0_nonnull.
13412         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
13413         'guessing ' to ac_cv_func_realloc_0_nonnull.
13414         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
13415         'guessing ' to gl_cv_func_poll.
13416         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
13417         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
13418         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
13420 2019-03-23  Bruno Haible  <bruno@clisp.org>
13422         strtold: Fix typo.
13423         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
13425 2019-03-23  Bruno Haible  <bruno@clisp.org>
13427         noreturn: In C++ mode with clang, use _Noreturn as fallback.
13428         Reported by Akim Demaille.
13429         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
13430         [[noreturn]] would not work, use _Noreturn instead.
13432 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13434         libtextstyle-optional: Fix compiler warnings.
13435         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
13436         as unused.
13438 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13440         bitset: fix memory leaks
13441         Reported by Bruno Haible.
13442         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
13443         * lib/bitset/vector.c (vbitset_free): New.
13444         (vbitset_vtable): Use it.
13446 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13448         bitset: minor changes
13449         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
13450         * lib/bitset/table.c: Formatting changes.
13451         Remove useless braces.
13452         Prefer using else in cascades of if/else-if with returns.
13453         * lib/bitset/vector.c: Reduce scopes.
13455 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13457         bitset: expose bitset_resize
13458         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
13459         * tests/test-bitset.c (check_attributes): Check bitset_resize.
13460         (main): Use a variable bitset as reference, since fixed does not support resize.
13462 2019-03-19  Bruno Haible  <bruno@clisp.org>
13464         doc: Document the 'stdnoreturn' and 'noreturn' modules.
13465         Reported by Akim Demaille.
13466         * doc/noreturn.texi: New file.
13467         * doc/gnulib.texi: Include it.
13469 2019-03-19  Bruno Haible  <bruno@clisp.org>
13471         doc: Document how to use 'static inline'.
13472         * doc/static-inline.texi: New file.
13473         * doc/gnulib.texi: Include it.
13475 2019-03-19  Bruno Haible  <bruno@clisp.org>
13477         libtextstyle-optional: Add tests.
13478         * tests/test-libtextstyle.c: New file, based on libtextstyle's
13479         adhoc-tests/hello.c.
13480         * tests/test-libtextstyle-default.css: New file, copied from
13481         libtextstyle's adhoc-tests/hello-default.css.
13482         * modules/libtextstyle-optional-tests: New file.
13484         libtextstyle-optional: New module.
13485         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
13486         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
13487         * modules/libtextstyle-optional: New file.
13489 2019-03-19  Bruno Haible  <bruno@clisp.org>
13491         c-stack: Make signal handlers more reliable.
13492         * lib/c-stack.c (progname): New variable.
13493         (die): Use it.
13494         (c_stack_action): Initialize it.
13495         (segv_handler): Save and restore errno.
13497 2019-03-19  Bruno Haible  <bruno@clisp.org>
13499         Help making signal handlers more reliable.
13500         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
13501         _GL_ASYNC_SAFE into config.h.
13502         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
13503         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
13504         argument.
13505         * lib/fatal-signal.c (action_t, uninstall_handlers,
13506         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
13507         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
13508         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
13509         _GL_ASYNC_SAFE.
13510         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
13511         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
13513 2019-03-18  Bruno Haible  <bruno@clisp.org>
13515         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
13516         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
13517         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
13519 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13521         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
13522         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
13523         GCC 4.8.
13525 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
13527         fts: minor simplification
13528         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
13530 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13532         bitset, timevar: Depend on c99.
13533         Reported by Bruno Haible.
13534         * modules/bitset, modules/timevar (Depends-on): Add c99.
13536 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13538         bitset: a bit (...) more tests
13539         * tests/test-bitset.c (check_attributes): Check zero and ones.
13541 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13543         bitset: fix overflows.
13544         Reported by Bruno Haible.
13545         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
13546         * lib/bitset/table.c (tbitset_test): last_bit is the position of
13547         the bit in the array of bitset_word, so be sure to take its modulo
13548         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
13549         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
13551 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
13553         bitset: style changes.
13554         * lib/bitset/table.c: Use NULL, not 0, for pointers.
13555         Formatting changes.
13556         (tbitset_list): Reduce scopes.
13558 2019-03-16  Bruno Haible  <bruno@clisp.org>
13560         fatal-signal: Pass the signal number to the action.
13561         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
13562         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
13563         (fatal_signal_handler): Pass the signal number to the action.
13564         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
13565         signal number as parameter.
13566         (create_temp_dir): Update.
13567         * lib/wait-process.c (cleanup_slaves_action): New function.
13568         (register_slave_subprocess): Update at_fatal_signal invocation.
13569         * NEWS: Mention the change.
13571 2019-03-16  Bruno Haible  <bruno@clisp.org>
13573         fatal-signal: Add function that lists the fatal signals.
13574         * lib/fatal-signal.h (get_fatal_signals): New declaration.
13575         * lib/fatal-signal.c (get_fatal_signals): New function.
13577 2019-03-14  Bruno Haible  <bruno@clisp.org>
13579         isatty: Make it return true in Cygwin consoles on native Windows.
13580         * lib/isatty.c: Include <string.h>.
13581         (GetProcAddress): New macro.
13582         (GetNamedPipeClientProcessIdFuncType): New type.
13583         (GetNamedPipeClientProcessIdFunc): New variable.
13584         (QueryFullProcessImageNameFuncType): New type.
13585         (QueryFullProcessImageNameFunc): New variable.
13586         (initialized): New variable.
13587         (initialize): New function.
13588         (IsCygwinConsoleHandle): New function.
13589         (isatty): Invoke it.
13590         * doc/posix-functions/isatty.texi: Mention the issue.
13592 2019-03-14  Bruno Haible  <bruno@clisp.org>
13594         all: Update URLs to msdn.microsoft.com.
13595         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
13596         was moved to docs.microsoft.com.
13598 2019-03-13  Bruno Haible  <bruno@clisp.org>
13600         gnulib-tool: Clarify the coding style.
13601         Suggested by Pavel Raiskup <praiskup@redhat.com>.
13602         * gnulib-tool: Add comment about coding style.
13604 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
13606         strtod: fix clash with strtold
13607         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
13608         * lib/strtod.c (compute_minus_zero, minus_zero):
13609         Simplify by remving the macro / external variable,
13610         and having just a function.  User changed.  This avoids
13611         the need for an external variable that might clash.
13613 2019-03-10  Bruno Haible  <bruno@clisp.org>
13615         alloca-opt: Fix conflict mingw's new <alloca.h> file.
13616         Reported by Eli Zaretskii <eliz@gnu.org>.
13617         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
13618         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
13619         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
13621 2019-03-10  Bruno Haible  <bruno@clisp.org>
13623         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
13624         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
13625         is in use.
13626         * tests/test-printf-posix2.c: Likewise.
13628 2019-03-10  Bruno Haible  <bruno@clisp.org>
13630         uninorm tests: Free allocated memory.
13631         * tests/uninorm/test-u32-normalize-big.h
13632         (struct normalization_test_file): Remove 'const' from allocated member.
13633         (free_normalization_test_file): New declaration.
13634         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
13635         memory.
13636         (free_normalization_test_file): New function.
13637         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
13638         'struct normalization_test_file' contents.
13639         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
13640         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
13641         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
13643 2019-03-10  Bruno Haible  <bruno@clisp.org>
13645         di-set: Fix memory leak.
13646         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
13647         not free().
13649 2019-03-10  Bruno Haible  <bruno@clisp.org>
13651         tests: Free allocated memory.
13652         Reported by <deltatau@protonmail.com> via Assaf Gordon.
13653         * tests/test-astrxfrm.c (main): Free allocated memory.
13654         * tests/test-bitset.c (compare, check_attributes): Free allocated
13655         bitsets.
13656         * tests/test-filenamecat.c (main): Free allocated memory.
13657         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
13658         * tests/test-freadptr.c (main): Likewise.
13659         * tests/test-freadptr2.c (main): Free allocated memory.
13660         * tests/test-freadseek.c (main): Likewise.
13661         * tests/test-gc-arcfour.c (main): Close allocated context.
13662         * tests/test-gc-arctwo.c (main): Likewise.
13663         * tests/test-gc-des.c (main): Close all allocated contexts.
13664         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
13665         * tests/test-pipe-filter-ii1.c (main): Likewise.
13666         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
13667         allocated file actions.
13668         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
13669         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
13670         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
13671         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
13672         * tests/test-strfmon_l.c (main): Free allocated locales.
13673         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
13674         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
13675         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
13676         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
13677         * tests/unistr/test-chr.h (main): Free input32.
13678         * tests/unistr/test-strchr.h (test_strchr): Likewise.
13680 2019-03-10  Bruno Haible  <bruno@clisp.org>
13682         tests: Prepare for using valgrind.
13683         * tests/*.sh: Invoke all test programs through ${CHECKER}.
13684         * tests/*/*.sh: Likewise.
13685         * tests/test-freadptr.c (main): Update accordingly.
13686         * tests/test-freadseek.c (main): Likewise.
13688 2019-03-09  Bruno Haible  <bruno@clisp.org>
13690         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
13691         * lib/get-rusage-as.c (get_rusage_as): When compiled by
13692         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
13693         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
13694         before exiting.
13696 2019-03-09  Jim Meyering  <meyering@fb.com>
13698         test-userspec.c: don't print NULL
13699         * tests/test-userspec.c (main): A test release of gcc,
13700         9.0.1 20190310, warned that this test would attempt to
13701         print a NULL pointer via a %s printf format.  Fix that
13702         and remove the unnecessary preceding "!diag" conjunct.
13703         Also add a comment.
13705 2019-03-03  Bruno Haible  <bruno@clisp.org>
13707         getloadavg: Write NULL for the null pointer.
13708         Reported by Michal Privoznik <mprivozn@redhat.com>.
13709         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
13711 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
13713         alloca, tsearch-tests: Write NULL for the null pointer.
13714         * lib/alloca.c (i00afunc): Write NULL instead of 0.
13715         * tests/test-tsearch.c (mangle_tree): Likewise.
13717 2019-03-09  Bruno Haible  <bruno@clisp.org>
13719         strfmon_l: Fix -fsanitize=address finding.
13720         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
13721         <string.h>.
13722         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
13723         (directive_t, directives_t): New types.
13724         (fmon_parse): New function.
13725         (rpl_strfmon_l): Don't call va_arg more often than needed for the
13726         format string. Consume 'long double' arguments in places where the
13727         format string indicates so.
13728         * modules/strfmon_l (Depends-on): Add 'stdbool'.
13730 2019-03-09  Bruno Haible  <bruno@clisp.org>
13732         crypto/des: Fix undefined behaviour.
13733         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
13734         shift operations on 'int'.
13736 2019-03-09  Bruno Haible  <bruno@clisp.org>
13738         Fix undefined behaviour.
13739         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
13740         'unsigned int', to avoid shift operations on 'int'.
13741         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
13742         * tests/test-count-leading-zeros.c (main): Use a random number that has
13743         as many bits as TYPE, not only 2*15 or 2*31 bits.
13744         * tests/test-count-trailing-zeros.c (main): Likewise.
13745         * tests/test-count-one-bits.c (main): Likewise.
13746         * tests/test-memmem.c: Don't include "null-ptr.h".
13747         (main): Use zerosize_ptr() instead of null_ptr().
13748         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
13750 2019-03-08  Bruno Haible  <bruno@clisp.org>
13752         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
13753         Reported by Jeffrey Walton <noloader@gmail.com>.
13754         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
13755         invoke memset with a zero size.
13756         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
13757         Likewise.
13758         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
13759         Adjust accordingly.
13761 2019-03-08  Bruno Haible  <bruno@clisp.org>
13763         unistr/*, uniconv/*: Fix undefined behaviour.
13764         Reported by Jeffrey Walton <noloader@gmail.com>.
13765         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
13766         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
13767         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13768         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13770 2019-03-08  Bruno Haible  <bruno@clisp.org>
13772         unistr/u8-cmp: Fix undefined behaviour.
13773         Reported by Jeffrey Walton <noloader@gmail.com>.
13774         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
13776 2019-03-08  Bruno Haible  <bruno@clisp.org>
13778         unictype/numeric: Fix undefined behaviour.
13779         Reported by Jeffrey Walton <noloader@gmail.com>.
13780         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
13781         on shift overflow, caught by "gcc -fsanitize=undefined".
13782         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
13783         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
13784         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
13786 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
13788         git-version-gen: fix --version copyright year
13789         * build-aux/git-version-gen, build-aux/move-if-change (version):
13790         --version output copyright year is now taken from script year,
13791         so that it no longer needs to be updated by hand.
13793 2019-03-04  Bruno Haible  <bruno@clisp.org>
13795         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
13796         This approach supports relocatable installation of shared libraries
13797         which depend on other shared libraries from the same package.
13798         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
13799         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
13800         wrapper around the original LIBTOOL.
13801         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
13802         token '@loader_path' instead of '$ORIGIN'.
13803         * build-aux/libtool-reloc: New file.
13804         * modules/relocatable-prog (Files): Add it.
13805         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
13806         the recent changes. Document the need to set the *_LDFLAGS of libraries.
13807         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
13808         Makefile.am, not in configure.ac.
13810 2019-03-04  Bruno Haible  <bruno@clisp.org>
13812         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
13813         * build-aux/install-reloc: Revert change.
13814         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
13816 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13818         nstrftime: support the ‘+’ flag
13819         * lib/nstrftime.c (add, __strftime_internal):
13820         Add support for the ‘+’ flag introduced in POSIX.1-2017.
13821         (__strftime_internal): New arg ‘width’.  All uses changed.
13822         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
13824 2019-02-24  Bruno Haible  <bruno@clisp.org>
13826         relocatable-prog: Improve verbose output.
13827         * build-aux/install-reloc (func_verbose): Escape characters that would
13828         be interpreted by the shell.
13830 2019-02-24  Bruno Haible  <bruno@clisp.org>
13832         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
13833         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
13834         "sys/stat.h".
13835         * lib/lstat.c: Likewise.
13836         * lib/fstat.c: Likewise.
13837         * lib/fstatat.c: Likewise.
13839 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
13841         long-options: add parse_gnu_standard_options_only
13842         Discussed in https://bugs.gnu.org/33468 .
13844         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
13845         (parse_gnu_standard_options_only): Add function to process
13846         the GNU default options --help and --version and fail for
13847         any other unknown long or short option. See
13848         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
13849         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
13850         * modules/long-options (depends-on): Add stdbool, exitfail.
13851         * top/maint.mk (sc_prohibit_long_options_without_use): Update
13852         syntax-check rule, add new function name.
13854 2019-02-23  Bruno Haible  <bruno@clisp.org>
13856         relocatable-prog: Update documentation.
13857         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
13858         the recent changes.
13860 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13862         nstrftime: tweak arg order
13863         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
13864         All callers changed.  Suggested by TAMUKI Shoichi in:
13865         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
13867 2019-02-23  Bruno Haible  <bruno@clisp.org>
13869         relocatable-prog: Use wrapper-free installation also on Mac OS X.
13870         Reported by Paul Smith <psmith@gnu.org>.
13871         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
13872         (func_relativize): New function, from gnulib-tool.
13873         Handle mode 'macosx' through invocations of 'otool' and
13874         'install_name_tool'.
13875         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
13876         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
13877         'install-reloc' invocation with mode 'macosx'.
13879 2019-02-23  Bruno Haible  <bruno@clisp.org>
13881         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
13882         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
13883         Hurd with glibc >= 2.27.
13885 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
13887         nstrftime: merge glibc strftime changes
13888         This incorporates:
13889         2019-02-11 Fix a few whitespace arrangement inconsistencies
13890         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
13891         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
13892         2019-01-11 strftime: use the "L_" macro with character literals
13893         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
13894         callers changed.  Default width of %Ey is now 2.  This is needed
13895         for proper handling of Japanese dates starting on 2019-05-01.
13897 2019-02-19  Bruno Haible  <bruno@clisp.org>
13899         relocatable-prog: Use $ORIGIN trick on more platforms.
13900         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
13901         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
13902         Solaris >= 10, Haiku. But don't use it on Android.
13903         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
13904         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
13906 2019-02-19  Bruno Haible  <bruno@clisp.org>
13908         progreloc: Speed up executable lookup on various platforms.
13909         * lib/progreloc.c: Include <errno.h>.
13910         (safe_read, full_read): New functions.
13911         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
13912         prefer the information from the /proc file system to a PATH search.
13914 2019-02-19  Bruno Haible  <bruno@clisp.org>
13916         progreloc: Simplify code for Android.
13917         * lib/progreloc.c (executable_fd): Don't define on Android.
13918         (maybe_executable, find_executable): Don't use executable_fd on Android.
13920 2019-02-15  Bruno Haible  <bruno@clisp.org>
13922         gnulib-tool: Support --import with just a few tests, not --with-tests.
13923         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
13924         'inctests' when generating files; use 'inctests' only for computing the
13925         transitive closure.
13927 2019-02-14  Bruno Haible  <bruno@clisp.org>
13929         gnulib-tool: Improve handling of multiple --local-dir options.
13930         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
13931         options work.
13932         * gnulib-tool (func_path_prepend): Remove function.
13933         (func_path_foreach): Make IFS handling more robust.
13934         (local_gnulib_path): Collect --local-dir values using func_path_append,
13935         not func_path_prepend.
13936         (func_determine_path_separator): Make IFS handling more robust.
13937         (func_lookup_file_cb): New function.
13938         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
13939         func_lookup_local_file. Apply the patches in the reverse order of their
13940         origin in $local_gnulib_path.
13941         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
13942         * NEWS: Mention that the first --local-dir option is the one with
13943         highest priority.
13945 2019-02-10  Bruno Haible  <bruno@clisp.org>
13947         libtextstyle: New module.
13948         * m4/libtextstyle.m4: New file.
13949         * modules/libtextstyle: New file.
13951 2019-02-05  Bruno Haible  <bruno@clisp.org>
13953         declared.sh: Fix bug with variables of pointer type.
13954         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
13955         before the symbol to be omitted if the preceding character is a '*'.
13957 2019-02-04  Bruno Haible  <bruno@clisp.org>
13959         Add script for running tests under valgrind.
13960         * build-aux/run-test: New file, from GNU libunistring.
13961         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
13962         as well.
13964 2019-02-04  Bruno Haible  <bruno@clisp.org>
13966         declared.sh: Fix --version output.
13967         * build-aux/declared.sh (func_version): Update package name.
13969 2019-02-03  Bruno Haible  <bruno@clisp.org>
13971         Add script for determining the set of symbols to export from a library.
13972         * build-aux/declared.sh: New file, from GNU libunistring.
13973         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
13974         Mention it.
13976 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13978         vla: add commentary about VLA_ELEMS
13979         * lib/vla.h (VLA_ELEMS): Add commentary,
13980         some inspired by Bruno Haible’s proposal in:
13981         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
13983         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
13984         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
13985         assume the C99 signatures for strtod and strtold.  Programs that
13986         require stricter adherence to C99 should also use the strtod and
13987         strtold modules as needed, and we no longer need the
13988         HAVE_C99_STRTOLD macro.
13989         * NEWS: Mention this.
13990         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
13991         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
13992         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
13993         (Files): Remove m4/c-strtod.m4.
13994         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
13995         exists.
13997 2019-02-02  Bruno Haible  <bruno@clisp.org>
13999         fma: Improve code style.
14000         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
14002 2019-02-02  Colin Watson  <cjwatson@debian.org>
14004         *-map tests: Fix compilation error.
14005         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
14006         * tests/test-hash_map.c: Likewise.
14007         * tests/test-linkedhash_map.c: Likewise.
14009 2019-01-31  Bruno Haible  <bruno@clisp.org>
14011         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
14012         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
14013         GNULIB_defined_strtold_function): New macros.
14014         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
14015         (STRTOD): Ignore HAVE_C99_STRTOLD.
14016         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
14017         deemed buggy. But do use it on platforms where uselocale exists and is
14018         usable.
14019         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
14020         deemed buggy. On platforms where uselocale exists and is usable, use
14021         uselocale and strtod/strtold.
14022         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
14023         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
14024         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
14025         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
14026         (Depends-on): Add strtod.
14027         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
14028         (Depends-on): Add strtold.
14030 2019-01-31  Bruno Haible  <bruno@clisp.org>
14032         strtod, strtold: Use the locale's decimal point.
14033         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
14034         (decimal_point_char): New function, copied from lib/vasnprintf.c.
14035         (parse_number): Add a radixchar argument. Use it instead of '.'.
14036         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
14037         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
14038         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
14039         * tests/test-strtod1.c: New file.
14040         * tests/test-strtod1.sh: New file.
14041         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
14042         locale-fr.m4 and its dependencies.
14043         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14044         (Makefile.am): Arrange to compile test-strtod1.c and run
14045         test-strtod1.sh.
14046         * tests/test-strtold1.c: New file.
14047         * tests/test-strtold1.sh: New file.
14048         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
14049         locale-fr.m4 and its dependencies.
14050         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14051         (Makefile.am): Arrange to compile test-strtold1.c and run
14052         test-strtold1.sh.
14054 2019-01-31  Bruno Haible  <bruno@clisp.org>
14056         strtod, strtold tests: Simplify tests.
14057         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
14058         * tests/test-strtold.c (main): Likewise.
14060 2019-01-31  Bruno Haible  <bruno@clisp.org>
14062         strtod, strtold: Avoid unnecessary rounding errors.
14063         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
14064         decimal to DOUBLE conversion.
14066 2019-01-31  Bruno Haible  <bruno@clisp.org>
14068         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
14069         * lib/strtod.c (STRTOD): When there is an extra character after the
14070         exponent marker 'p', reparse the number.
14071         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
14072         * doc/posix-functions/strtold.texi: Likewise.
14074 2019-01-29  Bruno Haible  <bruno@clisp.org>
14076         strtold: Add tests.
14077         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
14078         * modules/strtold-tests: New file.
14080 2019-01-29  Bruno Haible  <bruno@clisp.org>
14082         strtold: New module.
14083         * lib/stdlib.in.h (strtold): New declaration.
14084         * lib/strtold.c: New file.
14085         * lib/strtod.c: Consider USE_LONG_DOUBLE.
14086         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
14087         USE_LDEXP): New macros.
14088         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
14089         USE_LONG_DOUBLE.
14090         (underlying_strtod): Remove function. Replace with some macros.
14091         Re-add the code for a missing underlying function that was removed on
14092         2013-02-19.
14093         * m4/strtold.m4: New file.
14094         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
14095         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
14096         REPLACE_STRTOLD.
14097         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
14098         REPLACE_STRTOLD.
14099         * modules/strtold: New file.
14100         * doc/posix-functions/strtold.texi: Document the new module.
14102 2019-01-29  Bruno Haible  <bruno@clisp.org>
14104         strtod: Fix compilation error on IRIX 6.5.
14105         * modules/strtod (Depends-on): Add 'math'.
14107 2019-01-28  Bruno Haible  <bruno@clisp.org>
14109         Fix build error when building a shared libunistring on Android.
14110         * tests/uninorm/test-nfc.c (n): Don't define on Android.
14111         (main): Add 'volatile', to defeat a GCC optimization that would
14112         eliminate the reference.
14113         * tests/uninorm/test-nfd.c (n): Don't define on Android.
14114         (main): Add 'volatile', to defeat a GCC optimization that would
14115         eliminate the reference.
14116         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
14117         (main): Add 'volatile', to defeat a GCC optimization that would
14118         eliminate the reference.
14119         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
14120         (main): Add 'volatile', to defeat a GCC optimization that would
14121         eliminate the reference.
14123 2019-01-27  Bruno Haible  <bruno@clisp.org>
14125         Avoid build errors due to wrong references between modules.
14126         * lib/uninorm/canonical-decomposition.c: Include
14127         "uninorm/decomposition-table.h", not "decomposition-table.h".
14128         * lib/uninorm/decomposition.c: Likewise.
14129         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
14130         not "decompose-internal.h".
14131         * lib/uninorm/u16-normalize.c: Likewise.
14132         * lib/uninorm/u32-normalize.c: Likewise.
14133         * lib/uninorm/uninorm-filter.c: Likewise.
14134         * lib/uninorm/nfkc.c: Likewise.
14135         * lib/uninorm/nfkd.c: Likewise.
14136         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
14137         "caseprop.h".
14138         * lib/unicase/u8-ct-totitle.c: Likewise.
14139         * lib/unicase/u8-prefix-context.c: Likewise.
14140         * lib/unicase/u8-suffix-context.c: Likewise.
14141         * lib/unicase/u16-casemap.c: Likewise.
14142         * lib/unicase/u16-ct-totitle.c: Likewise.
14143         * lib/unicase/u16-prefix-context.c: Likewise.
14144         * lib/unicase/u16-suffix-context.c: Likewise.
14145         * lib/unicase/u32-casemap.c: Likewise.
14146         * lib/unicase/u32-ct-totitle.c: Likewise.
14147         * lib/unicase/u32-prefix-context.c: Likewise.
14148         * lib/unicase/u32-suffix-context.c: Likewise.
14149         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
14150         "unicasemap.h".
14151         * lib/unicase/u8-toupper.c: Likewise.
14152         * lib/unicase/u8-ct-tolower.c: Likewise.
14153         * lib/unicase/u8-ct-toupper.c: Likewise.
14154         * lib/unicase/u16-tolower.c: Likewise.
14155         * lib/unicase/u16-toupper.c: Likewise.
14156         * lib/unicase/u16-ct-tolower.c: Likewise.
14157         * lib/unicase/u16-ct-toupper.c: Likewise.
14158         * lib/unicase/u32-tolower.c: Likewise.
14159         * lib/unicase/u32-toupper.c: Likewise.
14160         * lib/unicase/u32-ct-tolower.c: Likewise.
14161         * lib/unicase/u32-ct-toupper.c: Likewise.
14162         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
14163         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
14164         * lib/unicase/u16-ct-casefold.c: Likewise.
14165         * lib/unicase/u32-ct-casefold.c: Likewise.
14167 2019-01-27  Bruno Haible  <bruno@clisp.org>
14169         gperf: Fix error when this module is required by some test module.
14170         * modules/gperf (Applicability): Set to 'all'.
14172 2019-01-27  Bruno Haible  <bruno@clisp.org>
14174         tmpfile: Add support for Android.
14175         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
14176         works.
14177         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
14178         Android.
14179         * modules/tmpfile (Depends-on): Add 'stdbool'.
14180         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
14181         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
14183 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
14185         bitsetv: allow free on NULL.
14186         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
14188 2019-01-27  Bruno Haible  <bruno@clisp.org>
14190         test-framework-sh: Improve maintainability.
14191         * tests/init.sh: Clarify what belongs together. Reorder definitions.
14193 2019-01-27  Bruno Haible  <bruno@clisp.org>
14195         tests: Don't assume that /tmp exists.
14196         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
14197         * tests/test-copy-acl-1.sh: Likewise.
14198         * tests/test-file-has-acl-1.sh: Likewise.
14199         * tests/test-copy-file-1.sh: Likewise.
14201 2019-01-27  Bruno Haible  <bruno@clisp.org>
14203         tests: Accommodate a shell that is not in /bin/sh.
14204         * tests/init.sh (setup_): Set srcdir and builddir.
14205         (BOURNE_SHELL): New variable.
14206         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
14207         * modules/file-has-acl-tests (Depends-on): Likewise.
14208         * modules/copy-file-tests (Depends-on): Likewise.
14209         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
14210         scripts through $BOURNE_SHELL.
14211         * tests/test-set-mode-acl-2.sh: Likewise.
14212         * tests/test-copy-acl-1.sh: Likewise.
14213         * tests/test-copy-acl-2.sh: Likewise.
14214         * tests/test-file-has-acl-1.sh: Likewise.
14215         * tests/test-file-has-acl-2.sh: Likewise.
14216         * tests/test-copy-file-1.sh: Likewise.
14217         * tests/test-copy-file-2.sh: Likewise.
14218         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
14219         invoker.
14220         * tests/test-copy-acl.sh (builddir): Likewise.
14221         * tests/test-file-has-acl.sh (builddir): Likewise.
14222         * tests/test-copy-file.sh (builddir): Likewise.
14223         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
14224         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
14225         * tests/test-vc-list-files-git.sh: Likewise.
14227 2019-01-27  Bruno Haible  <bruno@clisp.org>
14229         tests: Fix some "unused variable" warnings.
14230         * tests/test-fts.c (fts_dealloc): Remove unused variable.
14231         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
14232         * tests/test-striconveh.c (main): Move some variable into the
14233         '#if HAVE_ICONV'.
14234         * tests/test-striconveha.c (main): Likewise.
14235         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14236         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14237         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14238         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
14239         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14240         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14241         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14242         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14243         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14244         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
14245         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
14246         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
14247         * tests/test-tsearch.c (main): Move some variable into the
14248         '#if HAVE_INITSTATE'.
14250 2019-01-27  Bruno Haible  <bruno@clisp.org>
14252         unigbrk/uc-grapheme-breaks: Fix build failure.
14253         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
14254         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
14256 2019-01-27  Bruno Haible  <bruno@clisp.org>
14258         mountlist: Merge two .m4 files.
14259         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
14260         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
14261         * m4/ls-mntd-fs.m4: Remove file.
14262         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
14264 2019-01-27  Bruno Haible  <bruno@clisp.org>
14266         tests: Enable Linux specific tests on Android.
14267         * tests/test-flock.c (main): Treat Android like Linux.
14268         * tests/test-openat-safer.c (main): Likewise.
14270 2019-01-27  Bruno Haible  <bruno@clisp.org>
14272         relocatable-prog: Use Linux code on Android.
14273         * lib/progreloc.c: Treat Android like Linux.
14275 2019-01-26  Bruno Haible  <bruno@clisp.org>
14277         getloadavg: Add support for Android.
14278         * lib/getloadavg.c: Treat Android like Linux.
14280 2019-01-26  Bruno Haible  <bruno@clisp.org>
14282         vma-iter: Add support for Android.
14283         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
14284         * lib/vma-iter.c: Treat Android like Linux.
14285         * lib/get-rusage-data.c (get_rusage_data): Likewise.
14287 2019-01-26  Bruno Haible  <bruno@clisp.org>
14289         fts: Optimize on Android.
14290         * lib/fts.c: Treat Android like Linux.
14292 2019-01-26  Bruno Haible  <bruno@clisp.org>
14294         fts: Add support for Android.
14295         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
14296         defined by this module and the ones in libc.
14297         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
14299 2019-01-26  Bruno Haible  <bruno@clisp.org>
14301         mountlist: Use Linux code on Android.
14302         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
14303         (unescape_tab, read_file_system_list): Enable Linux code on Android
14304         as well.
14305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
14306         and endmntent.
14307         * modules/mountlist (Depends-on): Add 'getline'.
14309 2019-01-26  Bruno Haible  <bruno@clisp.org>
14311         localename tests: Fix test failure on Android.
14312         * modules/localename-tests (Depends-on): Add 'setlocale'.
14314 2019-01-26  Bruno Haible  <bruno@clisp.org>
14316         mountlist: Port better to Android.
14317         * lib/mountlist.c (MOUNTED): Redefine on Android.
14318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
14319         Android.
14321 2019-01-26  Bruno Haible  <bruno@clisp.org>
14323         striconveh: Fix use of uninitialized iconv_t.
14324         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
14325         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
14326         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
14328 2019-01-26  Bruno Haible  <bruno@clisp.org>
14330         nonblocking-socket-tests: Fix test failure on Android 4.3.
14331         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
14332         also on Android.
14334 2019-01-26  Bruno Haible  <bruno@clisp.org>
14336         sh-filename: Add support for Android 4.3.
14337         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
14339 2019-01-26  Bruno Haible  <bruno@clisp.org>
14341         ptsname_r: Work around bug on Android 4.3.
14342         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
14343         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
14344         correct.
14345         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
14346         is defined, just fix the return value.
14347         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
14348         The behaviour of musl libc is nothing to be "fixed", since it is
14349         compliant with the next POSIX standard.
14351 2019-01-26  Bruno Haible  <bruno@clisp.org>
14353         ttyname_r: Work around bug on Android 4.3.
14354         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
14355         * lib/ttyname_r.c (ttyname_r): Implement for Android.
14356         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
14357         * doc/posix-functions/ttyname.texi: Likewise.
14359 2019-01-25  Bruno Haible  <bruno@clisp.org>
14361         getprogname: Port to Android 4.3.
14362         * lib/getprogname.c (getprogname): On Android, take only the last
14363         component of __progname.
14365 2019-01-25  Bruno Haible  <bruno@clisp.org>
14367         wcrtomb: Work around bug on Android 4.3.
14368         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
14369         the C locale.
14370         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
14371         which does not have the 'wctomb' function.
14372         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
14373         * tests/test-wcrtomb.c (main): Accept argument '5'.
14374         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
14376 2019-01-25  Bruno Haible  <bruno@clisp.org>
14378         setlocale: Work around bug on Android 4.3.
14379         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
14380         the "C" locale.
14381         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
14382         * doc/posix-functions/setlocale.texi: Mention the Android bug.
14384 2019-01-24  Bruno Haible  <bruno@clisp.org>
14386         memchr: Work around bug on Android <= 5.0.
14387         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
14388         * doc/posix-functions/memchr.texi: Mention the Android bug.
14390 2019-01-24  Bruno Haible  <bruno@clisp.org>
14392         random: Fix compilation error on Android 4.3.
14393         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
14394         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
14395         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
14396         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
14397         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
14399         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14400         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
14401         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14402         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
14403         REPLACE_INITSTATE, REPLACE_SETSTATE.
14404         * doc/posix-functions/random.texi: Correct the description of the
14405         situation on Android.
14406         * doc/posix-functions/srandom.texi: Likewise.
14407         * doc/posix-functions/rand.texi: Likewise.
14408         * doc/posix-functions/srand.texi: Likewise.
14410 2019-01-24  Bruno Haible  <bruno@clisp.org>
14412         mbtowc: Fix compilation error on Android 4.3.
14413         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
14414         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
14415         HAVE_MBTOWC.
14416         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
14417         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
14418         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
14419         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
14420         * doc/posix-functions/mbtowc.texi: Mention the change.
14422 2019-01-24  Bruno Haible  <bruno@clisp.org>
14424         fdatasync: Fix compilation error on Android 4.3.
14425         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
14426         test whether fdatasync() exists.
14428 2019-01-24  Bruno Haible  <bruno@clisp.org>
14430         unlinkat: Fix compilation error on Android 4.3.
14431         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
14432         also on Android.
14433         * doc/posix-functions/unlinkat.texi: Mention the issue.
14435 2019-01-24  Bruno Haible  <bruno@clisp.org>
14437         renameat: Fix compilation error on Android 4.3.
14438         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
14439         * doc/posix-functions/renameat.texi: Mention the issue.
14441 2019-01-24  Bruno Haible  <bruno@clisp.org>
14443         fchownat: Fix compilation error on Android 4.3.
14444         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
14445         use.
14446         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
14447         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
14448         * doc/posix-functions/fchownat.texi: Mention the issue.
14450 2019-01-23  Bruno Haible  <bruno@clisp.org>
14452         gnulib-tool: Support running testdirs on Android.
14453         * build-aux/test-driver.diff: New file.
14454         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
14455         build-aux/test-driver after running automake.
14457 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14459         relocatable-prog: avoid warnings from Automake
14460         * modules/relocatable-prog: Don't declare PHONY dependencies in
14461         Automake conditionals.
14463 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14465         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
14466         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
14468 2019-01-23  Bruno Haible  <bruno@clisp.org>
14470         threadlib: Revert commit from 2018-06-25. We now have a better fix.
14471         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
14472         preceding -Wl,--as-needed option. Don't check whether the linker
14473         supports --as-needed/--no-as-needed and --push-state/--pop-state.
14475 2019-01-23  Bruno Haible  <bruno@clisp.org>
14477         thread: Force linking with -lpthread, even when --as-needed is in use.
14478         Reported by Richard W.M. Jones <rjones@redhat.com> in
14479         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
14480         * lib/glthread/thread.h (pthread_create): Don't declare weak.
14482 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
14483             Bruno Haible  <bruno@clisp.org>
14485         relocatable: avoid compiler warnings (-Wshadow)
14486         * lib/relocatable.c (compute_curr_prefix): Rename local variables
14487         to avoid name collisions with global variables.
14489 2019-01-22  Bruno Haible  <bruno@clisp.org>
14491         vasnprintf: Don't use %n on Android.
14492         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
14493         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
14494         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
14496 2019-01-22  Bruno Haible  <bruno@clisp.org>
14498         *printf: Support cross-compilation to Android.
14499         * m4/printf.m4: Add cross-compilation guesses for Android.
14501 2019-01-21  Bruno Haible  <bruno@clisp.org>
14503         diacrit: Mark deprecated.
14504         * modules/diacrit (Status, Notice): Mark as deprecated.
14505         * NEWS: Mention it.
14507 2019-01-20  Bruno Haible  <bruno@clisp.org>
14509         rintl: Override broken implementation on NetBSD.
14510         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
14511         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
14512         REPLACE_RINTL.
14513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
14514         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
14515         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
14516         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
14518 2019-01-20  Bruno Haible  <bruno@clisp.org>
14520         log10l: Work around inaccurate implementation on NetBSD.
14521         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
14522         * lib/log10l.c: Comment out too simplistic override.
14523         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
14525 2019-01-20  Bruno Haible  <bruno@clisp.org>
14527         logl: Work around inaccurate implementation on NetBSD.
14528         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
14529         * lib/logl.c: Comment out unused code.
14530         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
14532 2019-01-20  Bruno Haible  <bruno@clisp.org>
14534         expm1l: Work around inaccurate implementation on NetBSD.
14535         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
14536         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
14537         REPLACE_EXPM1L.
14538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
14539         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
14540         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
14541         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
14543 2019-01-20  Bruno Haible  <bruno@clisp.org>
14545         expl: Work around inaccurate implementation on NetBSD.
14546         * lib/math.in.h (expl): Test also REPLACE_EXPL.
14547         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
14548         REPLACE_EXPL.
14549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
14550         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
14551         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
14552         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
14554 2019-01-20  Bruno Haible  <bruno@clisp.org>
14556         exp2l: Work around inaccurate implementation on NetBSD.
14557         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
14558         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
14560 2019-01-20  Bruno Haible  <bruno@clisp.org>
14562         floor, floorl: Avoid autoconf warnings.
14563         * modules/floor (configure.ac): Use AC_REQUIRE.
14564         * modules/floorl (configure.ac): Likewise.
14566 2019-01-20  Bruno Haible  <bruno@clisp.org>
14568         Defeat current GCC optimizations in math autoconf tests.
14569         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
14570         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14571         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14572         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14573         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14574         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14575         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14576         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14577         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14578         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14579         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14580         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14581         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14582         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14583         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
14584         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
14585         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
14586         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14587         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14588         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14589         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14590         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14591         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14592         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14593         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14594         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14595         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14596         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14597         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14598         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14599         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14600         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14601         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14602         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14603         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14604         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14605         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14606         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14608 2019-01-19  Pádraig Brady  <P@draigBrady.com>
14610         gettext: support disabling use of VLAs
14611         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
14613 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
14615         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
14616         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
14618 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
14620         fcntl: Fix syntax error (regression from 2018-10-05).
14621         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
14623 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
14625         relocatable: improve documentation.
14626         * doc/relocatable-maint.texi (Supporting Relocation): For
14627         substitutions performed by config.status, we need more variables
14628         (for instance datarootdir defaults to '${prefix}/share' so we need
14629         prefix).
14631 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
14633         backup: update dependencies
14634         * modules/backup-rename (Depends-on): It now depends on opendirat
14635         instead of opendir.  It also uses stdint, and xalloc-oversized.
14636         But no longer dirfd.
14637         * modules/backupfile (Depends-on): Add xalloc-oversized.
14639 2019-01-13  Bruno Haible  <bruno@clisp.org>
14641         getcwd: Fix test failure when building on a Linux 9p file system.
14642         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
14643         EINVAL from mkdir like ENAMETOOLONG.
14644         * tests/test-getcwd.c (test_long_name): Likewise.
14646 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
14648         Fix typos found by codespell.
14649         * lib/*.[hc]: Fix typos in comments.
14650         * pygnulib/*.py: Fix typos in error messages and comments.
14652 2019-01-12  Bruno Haible  <bruno@clisp.org>
14654         doc: Fix documentation about container data types.
14655         Reported by Werner Lemberg <wl@gnu.org>.
14656         * doc/containers.texi (Container data types): Fix typo.
14658 2019-01-10  Bruno Haible  <bruno@clisp.org>
14660         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
14661         Reported by Reuben Thomas <rrt@sc3d.org>.
14662         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
14664 2019-01-06  Bruno Haible  <bruno@clisp.org>
14666         maintainer-makefile: Make the configure.ac section optional.
14667         * top/maint.mk (GREP, SED): Define if not defined.
14669 2019-01-06  Bruno Haible  <bruno@clisp.org>
14671         localename: Assume setlocale function.
14672         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
14673         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
14675 2019-01-06  Bruno Haible  <bruno@clisp.org>
14677         doc: Add documentation about container data types.
14678         * doc/containers.texi: New file.
14679         * doc/gnulib.texi (Particular Modules): Include it.
14681 2019-01-06  Bruno Haible  <bruno@clisp.org>
14683         doc: Update documentation about 'progname' module.
14684         * doc/progname.texi: Rename from doc/error.texi. Change node name and
14685         title. Rewrite.
14686         * doc/gnulib.texi (Particular Modules): Update.
14688 2019-01-06  Bruno Haible  <bruno@clisp.org>
14690         doc: Document the xstdopen and *-safer modules.
14691         * doc/xstdopen.texi: New file.
14692         * doc/gnulib.texi (Particular Modules): Include it.
14694 2019-01-06  Bruno Haible  <bruno@clisp.org>
14696         xstdopen: Add tests.
14697         * tests/test-xstdopen.c: New file.
14698         * tests/test-xstdopen.sh: New file.
14699         * modules/xstdopen-tests: New file.
14701         xstdopen: New module.
14702         * lib/xstdopen.h: New file.
14703         * lib/xstdopen.c: New file.
14704         * modules/xstdopen: New file.
14706 2019-01-06  Bruno Haible  <bruno@clisp.org>
14708         stdopen: Fix compilation error with IRIX cc.
14709         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
14711 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14713         xfreopen need not include stdio--.h
14714         * lib/xfreopen.c: Do not include stdio--.h.
14716         xfreopen need not depend on freopen-safer
14717         * modules/xfreopen (Depends-on):
14718         Depend on freopen, not freopen-safer.
14720         stdopen: modernize and simplify
14721         * lib/stdopen.c: Update copyright date
14722         Do not include sys/types.h; no longer needed these days.
14723         (stdopen): Use C99-style decl in loop.  Return int errno
14724         value, rather than just a bool.  Do not worry about fd mismatches,
14725         since the caller cares only if 0, 1, 2 are occupied.
14726         * lib/stdopen.h: No need to include <stdbool.h>.
14727         * m4/stdopen.m4: Remove.
14728         * modules/stdopen: New file.
14730         stdopen: copy from last use in coreutils
14731         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
14732         New files, taken from their last commit in coreutils
14733         2007-07-23T12:35:58Z!jim@meyering.net
14734         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
14736 2019-01-05  Bruno Haible  <bruno@clisp.org>
14738         argp: Don't pass an invalid argument to dgettext().
14739         Reported by He X <xw897002528@gmail.com>.
14740         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
14741         dgettext().
14743 2019-01-05  Bruno Haible  <bruno@clisp.org>
14745         argp: Don't pass an invalid argument to dgettext().
14746         Reported by He X <xw897002528@gmail.com>.
14747         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
14748         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
14749         dgettext().
14751 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14753         stdioext: port to newer 32-bit Android
14754         Problem reported by Tom Yan in:
14755         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
14756         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
14757         (fp_) [__ANDROID__]: Use it.
14759 2019-01-04  Bruno Haible  <bruno@clisp.org>
14761         lock: Fix link error with --enable-threads=pth.
14762         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
14763         Mark as weak.
14765 2019-01-04  Bruno Haible  <bruno@clisp.org>
14767         Fix link errors in unit tests.
14768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14769         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
14770         * modules/array-map-tests (Makefile.am): Link test-array_map against
14771         libintl.
14772         * modules/array-set-tests (Makefile.am): Link test-array_set against
14773         libintl.
14774         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
14775         libintl.
14776         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
14777         libintl.
14778         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
14779         against libintl.
14780         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
14781         against libintl.
14783 2019-01-04  Bruno Haible  <bruno@clisp.org>
14785         Fix incorrect 'Link' sections.
14786         * modules/regex (Link): Mention the link requirement of module 'lock'.
14787         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
14789 2019-01-04  Bruno Haible  <bruno@clisp.org>
14791         Fix some 'Link' sections.
14792         * modules/c-stack (Link): Add link directive from the 'gettext-h'
14793         dependency.
14794         * modules/getaddrinfo (Link): Likewise.
14796 2019-01-04  Bruno Haible  <bruno@clisp.org>
14798         Remove redundant 'Link' sections.
14799         * modules/canon-host (Link): Remove section.
14800         * modules/timevar (Link): Likewise.
14802 2019-01-04  Bruno Haible  <bruno@clisp.org>
14804         Remove incorrect 'Link' sections.
14805         * modules/acl (Link): Remove section. Use combined 'Link' sections from
14806         the dependencies instead.
14807         * modules/crypto/md5 (Link): Likewise.
14808         * modules/crypto/sha1 (Link): Likewise.
14809         * modules/crypto/sha256 (Link): Likewise.
14810         * modules/crypto/sha512 (Link): Likewise.
14811         * modules/faccessat (Link): Likewise.
14812         * modules/fdutimensat (Link): Likewise.
14813         * modules/iconv_open-utf (Link): Likewise.
14814         * modules/propername (Link): Likewise.
14815         * modules/qacl (Link): Likewise.
14816         * modules/unicodeio (Link): Likewise.
14817         * modules/utimecmp (Link): Likewise.
14818         * modules/utimensat (Link): Likewise.
14819         * modules/xstriconv (Link): Likewise.
14820         * modules/xstriconveh (Link): Likewise.
14822 2019-01-04  Bruno Haible  <bruno@clisp.org>
14824         gnulib-tool: New option --extract-recursive-link-directive.
14825         * gnulib-tool (func_usage): Document the new options
14826         --extract-recursive-dependencies, --extract-recursive-link-directive.
14827         (func_verify_module): Document output variables.
14828         (func_get_dependencies_recursively): New function.
14829         (func_get_link_directive_recursively): New function.
14830         Use them to implement the new options
14831         --extract-recursive-dependencies, --extract-recursive-link-directive.
14832         * doc/gnulib-tool.texi (Link-time requirements): New section.
14834 2019-01-04  Bruno Haible  <bruno@clisp.org>
14836         Clarify meaning of 'Link' section in module description.
14837         * doc/gnulib.texi (Module description): Clarify the meaning of the
14838         'Link' section versus the one of the dependencies.
14839         * NEWS: Mention the change.
14841 2019-01-04  Bruno Haible  <bruno@clisp.org>
14843         pselect: Fix module description.
14844         * modules/pselect (Link): Put one link option per line.
14846 2019-01-04  Bruno Haible  <bruno@clisp.org>
14848         cosl: Fix module description.
14849         * modules/cosl (Link): Fix typo.
14850         * modules/mathl (configure.ac): Likewise.
14852 2019-01-04  Bruno Haible  <bruno@clisp.org>
14854         c-xvasprintf: Fix module dependencies.
14855         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
14857 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
14859         bootstrap: die when some submodules are not initialized
14860         * build-aux/bootstrap: Make sure all submodules are initialized.
14862 2019-01-04  Bruno Haible  <bruno@clisp.org>
14864         bitsetv: Fix module dependencies.
14865         * lib/bitsetv.c: Include xalloc.h.
14866         * modules/bitsetv (Depends-on): Add 'xalloc'.
14868 2019-01-04  Bruno Haible  <bruno@clisp.org>
14870         xmemdup0: Remove redundant code.
14871         * lib/xmemdup0.h (xalloc_die): Remove declaration.
14873 2019-01-04  Bruno Haible  <bruno@clisp.org>
14875         backupfile: Fix module dependencies.
14876         * modules/backupfile (Depends-on): Add 'xalloc'.
14878 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14880         bitset, crypto/gc: fix conflicts with Solaris 11
14881         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
14882         avoid clash with Solaris 11 <sys/bitset.h>.
14883         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
14884         with Solaris 11 <xorg/gc.h>.
14886 2019-01-04  Bruno Haible  <bruno@clisp.org>
14888         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
14889         Reported by Andy Fiddaman <andy@omniosce.org>.
14890         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
14892 2019-01-03  Eric Blake  <eblake@redhat.com>
14894         maintainer-makefile: fix typo in previous patch
14895         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
14896         of Roman's work.
14898 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
14900         maintainer-makefile: prefer $(GREP) over grep
14901         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
14902         defined.
14903         * top/maint.mk: Use it everywhere.
14905         maintainer-makefile: split long argument lines
14906         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
14907         it would be too long for exec limits on BSD.
14909 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14911         mkfifo: bring back HAVE_MKFIFO macro
14912         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
14913         Problem reported by Andrew Janke in:
14914         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
14916 2018-12-21  Bruno Haible  <bruno@clisp.org>
14918         Assume Autoconf >= 2.63.
14919         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
14920         versions < 2.60.
14922 2018-12-21  Bruno Haible  <bruno@clisp.org>
14924         memcmp: Mention the clang bug.
14925         * tests/test-memcmp.c: Add comment about a known test failure.
14926         * doc/posix-functions/memcmp.texi: Mention the clang bug.
14928 2018-12-20  Jim Meyering  <meyering@fb.com>
14930         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
14931         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
14932           echo '123-x'|LC_ALL=C grep -E '.\bx'
14933         The goal is to revert the first, but reverting it requires to restore
14934         the function deleted in the second. I ran this to restore the deleted
14935         function:
14936           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
14937             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
14938             | patch -R -p1
14939         * lib/dfa.c (charclass_context): Restore deleted function.
14940         Reverting the primary commit removes this change:
14941         dfa: Simplify a building state
14942         * lib/dfa.c (build_state): Simplify a building state.
14944 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14946         version-etc: allow zero authors
14947         * lib/version-etc.c (version_etc_arn): If no authors are given,
14948         omit authorship info instead of dumping core.
14950 2018-12-19  Bruno Haible  <bruno@clisp.org>
14952         lchown tests: Be more permissive regarding errno values.
14953         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
14954         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
14955         alternative to ENOSYS.
14956         * modules/lchown-tests (Depends-on): Add 'errno'.
14957         * modules/fchownat-tests (Depends-on): Likewise.
14959 2018-12-18  Bruno Haible  <bruno@clisp.org>
14961         duplocale: Avoid test failure on AIX 7.
14962         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
14963         (configure.ac): Invoke gt_FUNC_USELOCALE.
14964         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
14965         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
14966         works.
14968 2018-12-18  Bruno Haible  <bruno@clisp.org>
14970         localename: Fix test failure on AIX 7.
14971         Reported by Assaf Gordon in
14972         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
14973         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
14974         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
14975         instead of ac_cv_func_uselocale.
14976         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
14977         HAVE_USELOCALE.
14978         * lib/localename-table.h: Likewise.
14979         * lib/localename-table.c: Likewise.
14980         * tests/test-localename.c: Likewise.
14981         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
14983 2018-12-18  Bruno Haible  <bruno@clisp.org>
14985         localename: Update comments regarding Cygwin.
14986         * lib/localename.c: Update comment.
14987         * doc/posix-functions/uselocale.texi: Update platforms list.
14988         * doc/posix-functions/newlocale.texi: Likewise.
14989         * doc/posix-functions/duplocale.texi: Likewise.
14990         * doc/posix-functions/freelocale.texi: Likewise.
14992 2018-12-16  Bruno Haible  <bruno@clisp.org>
14994         c-stack: Fix for Linux/sparc.
14995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
14996         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
14998 2018-12-16  Bruno Haible  <bruno@clisp.org>
15000         localename: Avoid test failure on some glibc systems.
15001         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15002         Unset environment variables that might disturb the first setlocale call,
15003         and verify that this setlocale call succeeds.
15005 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
15007         random: Fix build error on native Windows (regression from 2018-06-21).
15008         * lib/random.c (__srandom, __initstate, __setstate, __random,
15009         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
15010         to the symbols without '__' prefix.
15012 2018-12-16  Bruno Haible  <bruno@clisp.org>
15014         obstack, libc-config: Support HP-UX cc in C99 mode.
15015         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
15016         compiler, even when in C99 mode.
15017         * lib/cdefs.h (__flexarr): Likewise.
15018         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
15020 2018-12-16  Bruno Haible  <bruno@clisp.org>
15022         localename: Fix test failure on OpenBSD >= 6.2.
15023         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
15024         locale system. Define HAVE_FAKE_LOCALES in this case.
15025         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
15026         HAVE_USELOCALE.
15027         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
15028         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
15029         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
15030         platforms list.
15031         * doc/posix-functions/newlocale.texi: Likewise.
15032         * doc/posix-functions/duplocale.texi: Update platforms list.
15033         * doc/posix-functions/freelocale.texi: Likewise.
15035 2018-12-16  Bruno Haible  <bruno@clisp.org>
15037         duplocale tests: Re-enable the test on platforms without <monetary.h>.
15038         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
15039         of the test, on platforms without <monetary.h>.
15041 2018-12-16  Bruno Haible  <bruno@clisp.org>
15043         localename: Update comments.
15044         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
15046 2018-12-15  Jim Meyering  <meyering@fb.com>
15048         regex: fix indentation
15049         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
15051 2018-12-15  Bruno Haible  <bruno@clisp.org>
15053         openat-safer tests: Avoid test failure on NetBSD 8.
15054         * tests/test-openat-safer.c (main): Execute a Linux specific test only
15055         on Linux.
15057 2018-12-15  Jim Meyering  <meyering@fb.com>
15059         regex: work around a bug in glibc-2.27 and prior
15060         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
15061         assertion for /0|()0|\1|0/.
15062         * tests/test-regex.c (main): Add the same test here.
15064 2018-12-15  Bruno Haible  <bruno@clisp.org>
15066         localename: Fix use of uninitialized shell variable.
15067         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
15068         gt_cv_locale_solaris114 always before use. Remove assignment without
15069         effect.
15071 2018-12-15  Bruno Haible  <bruno@clisp.org>
15073         dfa tests: Avoid test failure on Alpine Linux.
15074         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
15075         command found on Alpine Linux.
15077 2018-12-15  Jim Meyering  <meyering@fb.com>
15079         dfa: avoid new warnings from gcc
15080         These would prevent building with -Werror and a Dec snapshot of gcc.
15081         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
15082         Rename each inner instance to "p".
15083         (charclass_context): Remove unused static function.
15085 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15087         mkdir-p: improve diagnostic for FUSE mounts
15088         Problem reported by Niklas Hambüchen in:
15089         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
15090         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
15091         errno to mkdir errno if the stat errno is likely more interesting.
15093 2018-12-14  Bruno Haible  <bruno@clisp.org>
15095         hash-map: Add tests.
15096         * tests/test-hash_map.c: New file.
15097         * modules/hash-map-tests: New file.
15099         linkedhash-map: Add tests.
15100         * tests/test-linkedhash_map.c: New file.
15101         * modules/linkedhash-map-tests: New file.
15103         array-map: Add tests.
15104         * tests/test-array_map.c: New file.
15105         * modules/array-map-tests: New file.
15107         xmap: New module.
15108         * lib/gl_xmap.h: New file.
15109         * lib/gl_xmap.c: New file.
15110         * modules/xmap: New file.
15112         hash-map: New module.
15113         * lib/gl_hash_map.h: New file.
15114         * lib/gl_hash_map.c: New file.
15115         * modules/hash-map: New file.
15117         linkedhash-map: New module.
15118         * lib/gl_linkedhash_map.h: New file.
15119         * lib/gl_linkedhash_map.c: New file.
15120         * lib/gl_anyhash1.h: Update comments.
15121         * lib/gl_anyhash2.h: Likewise.
15122         * modules/linkedhash-map: New file.
15124         array-map: New module.
15125         * lib/gl_array_map.h: New file.
15126         * lib/gl_array_map.c: New file.
15127         * modules/array-map: New file.
15129         map: New module.
15130         * lib/gl_map.h: New file.
15131         * lib/gl_map.c: New file.
15132         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
15133         conflict with gl_map.h.
15134         * modules/map: New file.
15136 2018-12-13  Bruno Haible  <bruno@clisp.org>
15138         select tests: Avoid test failure on Cygwin.
15139         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
15141 2018-12-13  Bruno Haible  <bruno@clisp.org>
15143         localtime-buffer: Avoid endless recursion in localtime and gmtime.
15144         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
15146 2018-12-13  Bruno Haible  <bruno@clisp.org>
15148         localeconv tests: Avoid test failure on Cygwin.
15149         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
15150         'mon_grouping' tests.
15152 2018-12-11  Bruno Haible  <bruno@clisp.org>
15154         omap: Don't dispose the old value when the function returns it.
15155         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
15156         here.
15157         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15158         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15159         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
15160         here.
15162         array-omap, avltree-omap, rbtree-omap: Tweak style.
15163         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
15164         false.
15165         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
15167         rbtree-omap: Add tests.
15168         * tests/test-rbtree_omap.c: New file.
15169         * modules/rbtree-omap-tests: New file.
15171         avltree-omap: Add tests.
15172         * tests/test-avltree_omap.c: New file.
15173         * modules/avltree-omap-tests: New file.
15175         array-omap: Add tests.
15176         * tests/test-array_omap.c: New file.
15177         * modules/array-omap-tests: New file.
15179         xomap: New module.
15180         * lib/gl_xomap.h: New file.
15181         * lib/gl_xomap.c: New file.
15182         * modules/xomap: New file.
15184         rbtree-omap: New module.
15185         * lib/gl_rbtree_omap.h: New file.
15186         * lib/gl_rbtree_omap.c: New file.
15187         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
15188         Parameterize.
15189         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
15190         * modules/rbtree-omap: New file.
15191         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
15192         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
15194         avltree-omap: New module.
15195         * lib/gl_avltree_omap.h: New file.
15196         * lib/gl_avltree_omap.c: New file.
15197         * lib/gl_avltree_ordered.h: Code moved to here from
15198         lib/gl_avltree_oset.c. Parameterize.
15199         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
15200         * lib/gl_anytree_omap.h: New file.
15201         * modules/avltree-omap: New file.
15202         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
15203         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
15205         array-omap: New module.
15206         * lib/gl_array_omap.h: New file.
15207         * lib/gl_array_omap.c: New file.
15208         * modules/array-omap: New file.
15210         omap: New module.
15211         * lib/gl_omap.h: New file.
15212         * lib/gl_omap.c: New file.
15213         * modules/omap: New file.
15215 2018-12-11  Bruno Haible  <bruno@clisp.org>
15217         hash-set, linkedhash-set: Reduce code duplication.
15218         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
15219         lib/gl_anyhash_set1.h.
15220         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
15221         lib/gl_anyhash_set2.h. Parameterize.
15222         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
15223         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
15224         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
15225         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
15226         * lib/gl_rbtreehash_list.c: Likewise.
15227         * lib/gl_linkedhash_list.c: Likewise.
15228         (hash_resize_after_add): Remove function.
15229         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
15230         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
15231         * gl_hash_set.c: Likewise.
15232         * modules/avltreehash-list (Files, Makefile.am): Update file list.
15233         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
15234         * modules/linkedhash-list (Files, Makefile.am): Likewise.
15235         * modules/linkedhash-set (Files, Makefile.am): Likewise.
15236         * modules/hash-set (Files, Makefile.am): Likewise.
15238 2018-12-11  Bruno Haible  <bruno@clisp.org>
15240         array-set: Optimize.
15241         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
15242         outside the loop, not inside the loop.
15244 2018-12-11  Bruno Haible  <bruno@clisp.org>
15246         times: Fix tests.
15247         * tests/test-times.c (doublecmp): Implement a total order.
15249 2018-12-11  Bruno Haible  <bruno@clisp.org>
15251         array-set, linkedhash-set, hash-set: Fix tests.
15252         * tests/test-array_set.c (cmp_objects_in_array): New function.
15253         (check_equals): Use it.
15254         * tests/test-hash_set.c: Likewise.
15255         * tests/test-linkedhash_set.c: Likewise.
15257 2018-12-08  Bruno Haible  <bruno@clisp.org>
15259         Fix comments.
15260         * lib/gl_list.h (gl_list_free): Clarify what it does.
15261         * lib/gl_oset.h (gl_oset_free): Likewise.
15262         * lib/gl_set.h (gl_set_free): Likewise.
15263         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
15264         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
15265         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
15266         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
15268 2018-12-03  Bruno Haible  <bruno@clisp.org>
15270         hash-set: Add tests.
15271         * tests/test-hash_set.c: New file.
15272         * modules/hash-set-tests: New file.
15274         linkedhash-set: Add tests.
15275         * tests/test-linkedhash_set.c: New file.
15276         * modules/linkedhash-set-tests: New file.
15278         array-set: Add tests.
15279         * tests/test-array_set.c: New file.
15280         * modules/array-set-tests: New file.
15282         xset: New module.
15283         * lib/gl_xset.h: New file.
15284         * lib/gl_xset.c: New file.
15285         * modules/xset: New file.
15287         hash-set: New module.
15288         * lib/gl_hash_set.h: New file.
15289         * lib/gl_hash_set.c: New file.
15290         * modules/hash-set: New file.
15292         linkedhash-set: New module.
15293         * lib/gl_linkedhash_set.h: New file.
15294         * lib/gl_linkedhash_set.c: New file.
15295         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
15296         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
15297         * lib/gl_anyhash_primes.h: New file, extracted from
15298         lib/gl_anyhash_list2.h.
15299         * lib/gl_anyhash_list2.h: Include it.
15300         (primes, next_prime): Remove definitions.
15301         * modules/linkedhash-set: New file.
15302         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
15303         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15304         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
15305         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15306         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
15307         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15309         array-set: New module.
15310         * lib/gl_array_set.h: New file.
15311         * lib/gl_array_set.c: New file.
15312         * modules/array-set: New file.
15314         set: New module.
15315         * lib/gl_set.h: New file.
15316         * lib/gl_set.c: New file.
15317         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
15318         gl_set.h.
15319         * modules/set: New file.
15321 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
15323         bison: don't force the Yacc mode
15324         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
15325         errors when Bison features are used in the grammar file.  Some of
15326         these features (such as %expect) were flagged non-yacc recently.  Most
15327         of the time, -y is actually used to please Automake's ylwrap which
15328         expects the output to be y.tab.c.
15329         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
15331 2018-12-01  Bruno Haible  <bruno@clisp.org>
15333         gnupload: Document short options.
15334         * build-aux/gnupload (usage): Document the short options.
15336 2018-11-28  Ben Elliston  <bje@gnu.org>
15338         gnupload: Support option -h as alias of --help.
15339         * build-aux/gnupload: Support -h.
15341 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15343         memrchr: port better to clang
15344         * lib/memrchr.c (__memrchr): Cast to void * instead of to
15345         longword *, to pacify clang -Wcast-align (Bug#33544).
15347 2018-11-29  Eric Blake  <eblake@redhat.com>
15349         docs: mention printf %m considerations
15350         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
15351         is not portable, and is easy enough to work around.
15352         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
15353         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
15354         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
15355         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15356         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15357         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15358         * doc/posix-functions/printf.texi (printf): Likewise.
15359         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15360         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15361         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
15362         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15363         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15364         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15365         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15366         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15367         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15368         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
15369         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15370         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15372 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
15374         bitset: rename ebitset/expandable.* as tbitset/table.*
15375         See
15376         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
15377         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
15378         * lib/bitset/table.h, lib/bitset/table.c: these.
15379         Rename all the ebitset* symbols as tbitset*.
15380         Adjust dependencies.
15382 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15384         bitset: check the operations
15385         * tests/test-bitset.c (bitset_random): New.
15386         Use it.
15387         * lib/bitset/expandable.c (ebitset_not): Fix typo.
15389 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15391         bitset: properly use false/true instead of 0/1 for Booleans
15392         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
15393         0/1, as Booleans.
15395 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15397         bitset: rename BITSET_VARRAY as BITSET_VECTOR
15398         For consistency with the name of the file.
15399         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
15400         * lib/bitset/stats.c, lib/bitset/vector.c
15401         (BITSET_VARRAY): Rename as...
15402         (BITSET_VECTOR): this.
15404 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15406         strerror_r-posix: memmove, not memcpy
15407         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
15408         since the source and destination might overlap in the call
15409         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
15410         Simplify.
15412 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15414         bitsetv: new module
15415         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
15417 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15419         bitset: add tests and doc
15420         First stabs at providing a documentation and test for the bitset
15421         module.
15422         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
15424 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15426         bitset: new module
15427         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
15428         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
15429         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
15430         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
15431         * lib/bitset/vector.h, modules/bitset:
15432         New.
15434 2018-11-23  Bruno Haible  <bruno@clisp.org>
15436         localename: Fix gettext test failures on mingw.
15437         * lib/localename.c (gl_locale_name_posix): Convert the result of
15438         gl_locale_name_environ to XPG syntax.
15440 2018-11-23  Karl Berry  <karl@freefriends.org>
15442         * config/srclistvars.txt,
15443         * config/srclist.txt: remove all gettext references;
15444         the gettext maintainers will sync as needed.
15446 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15448         mktime: add libc-config dependency
15449         I missed this when we synced from glibc.
15450         * modules/mktime (Depends-on): Add libc-config.
15452 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15454         longlong: fix comment typo
15455         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
15457 2018-11-11  Bruno Haible  <bruno@clisp.org>
15459         havelib: Remove the need to include asm-underscore.m4.
15460         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
15461         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
15462         gl_HOST_CPU_C_ABI.
15463         * modules/havelib (Files): Add host-cpu-c-abi.m4.
15464         (Depends-on): Remove host-cpu-c-abi.
15466 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15468         parse-datetime: simplify test for mktime failure
15469         * lib/parse-datetime.y (mktime_ok): Simplify.
15470         Remove args TZ and T; no longer needed.  Callers changed.
15472         posixtm: simplify test for mktime failure
15473         * lib/posixtm.c (posixtime): Simplify.
15475         nstrftime: simplify test for mktime failure
15476         * lib/nstrftime.c (__strftime_internal): Simplify.
15478 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15480         gnulib-common.m4: port _Noreturn to C++
15481         Problem reported by Akim Demaille in:
15482         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
15483         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
15484         Merge adjustments from _Noreturn.h and from glibc into the non-C++
15485         version.
15486         * lib/_Noreturn.h: Match gnulib-common.
15488 2018-10-30  Bruno Haible  <bruno@clisp.org>
15490         gnu-make: Fix for NetBSD 8 'make'.
15491         Reported by Reuben Thomas in
15492         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
15493         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
15494         output, ignoring exit codes.
15496 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
15498         maintainer-makefile: fix syntax-check rule for "same.h"
15499         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
15500         for 'same_nameat', too.
15502 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
15504         havelib: fix nested ‘configure’ chatter
15505         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
15506         AC_CACHE_CHECK calls, which resulted in confusing output like
15507         “checking for the common suffixes of directories in the library
15508         search path... checking for 64-bit host... no lib,lib”.
15510         backupfile: tweak for better code
15511         * lib/backupfile.c: Sort include directives, and remove
15512         unnecessary <limits.h> include.
15513         (FALLTHROUGH): New macro, copied from other modules.
15514         (backupfile_internal): Use it to avoid code duplication.
15515         This lets GCC 8.2.1 generate better code by inlining the
15516         call to check_extension.
15518 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15520         backupfile: new dir_fd args
15521         New module opendirat with code taken from fts.
15522         Use this module to let backupfile use a directory file descriptor.
15523         * NEWS: Document the incompatible change.
15524         * lib/backup-find.c (find_backup_file_name):
15525         * lib/backup-rename.c (backup_file_rename):
15526         New arg DIR_FD.
15527         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
15528         (SIZE_MAX): Remove.
15529         Include opendirat.h rather than dirent--.h.
15530         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
15531         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
15532         (backupfile_internal): New arg DIR_FD.  All callers changed.
15533         * lib/fts.c: Include opendirat.h.
15534         (opendirat): Move to opendirat.c.
15535         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
15536         * modules/backupfile (Depends-on): Remove dirfd, opendir.
15537         Add opendirat.
15538         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
15539         Add opendirat.
15541 2018-10-23  Bruno Haible  <bruno@clisp.org>
15543         localename: Simplify support for per-thread locales on Solaris 11.4.
15544         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
15545         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
15546         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
15547         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
15548         specific code.
15549         * lib/localename-table.h: Update comments.
15550         * lib/localename-table.c: Update comments.
15551         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
15552         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
15553         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
15554         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
15555         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
15556         HAVE_NAMELESS_LOCALES here.
15557         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
15558         m4/intlsolaris.m4.
15559         * modules/gettext (Files): Likewise.
15561 2018-10-22  Bruno Haible  <bruno@clisp.org>
15563         std-gnu11: Support Autoconf versions < 2.64.
15564         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
15565         when _AC_DO_LIMIT does not exist.
15567 2018-10-22  Bruno Haible  <bruno@clisp.org>
15569         Assume Autoconf >= 2.63.
15570         * DEPENDENCIES: Mention the requirement.
15572         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
15573         (func_get_filelist): Don't list m4/onceonly.m4 any more.
15574         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
15575         * m4/onceonly.m4: Remove file.
15577         * m4/openmp.m4: Remove file.
15578         * modules/openmp (Files): Remove m4/openmp.m4.
15580         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
15581         htmldir, dvidir, pdfdir, psdir, localedir.
15582         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
15584         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
15585         Autoconf < 2.60.
15586         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
15587         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
15589         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
15590         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
15591         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
15593         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
15594         exists.
15595         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
15597         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
15598         Autoconf < 2.61.
15600         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
15601         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
15602         Autoconf >= 2.52.
15604         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
15605         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
15606         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
15608 2018-10-22  Bruno Haible  <bruno@clisp.org>
15610         Assume Automake >= 1.11.
15611         * m4/configmake.m4: Update comments.
15612         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
15613         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
15614         of 'eval'.
15615         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
15616         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
15617         requires Automake >= 1.11.
15619 2018-10-22  Bruno Haible  <bruno@clisp.org>
15621         localename: Fix typo in comment.
15622         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
15624 2018-10-22  Bruno Haible  <bruno@clisp.org>
15626         Fix failure of 'gnulib-tool --create-testdir' with all modules.
15627         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
15629 2018-10-21  Bruno Haible  <bruno@clisp.org>
15631         locale: Ease integration with GNU libintl.
15632         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
15633         GNULIB_defined_freelocale): New macros.
15635 2018-10-21  Bruno Haible  <bruno@clisp.org>
15637         localename: Fine-tune support for per-thread locales on Solaris 11.4.
15638         * lib/localename-table.h: New file, extracted from lib/localename.c.
15639         * lib/localename-table.c: Likewise.
15640         * lib/localename.c: Include localename-table.h.
15641         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
15642         locale_hash_function instead of pointer_hash.
15643         * modules/localename (Files): Add lib/localename-table.h,
15644         lib/localename-table.c.
15645         (lib_SOURCES): Add localename-table.c.
15646         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
15647         for Solaris 11.4 locale system only on Solaris. Test for it
15648         independently whether getlocalename_l exists.
15649         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
15650         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
15651         HAVE_NAMELESS_LOCALES.
15652         * modules/gettext (Files): Add m4/intlsolaris.m4.
15654 2018-10-21  Bruno Haible  <bruno@clisp.org>
15656         Small update from gettext.
15657         * m4/intl.m4: Update from gettext:
15658         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
15659         mode on AIX.
15660         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
15661         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
15663 2018-10-16  Bruno Haible  <bruno@clisp.org>
15665         mountlist: Remove support for Cray with UNICOS 9.
15666         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
15667         MOUNTED_LISTMNTENT.
15668         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
15670 2018-10-16  Bruno Haible  <bruno@clisp.org>
15672         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
15673         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
15674         STAT_STATFS2_FS_DATA.
15675         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
15676         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
15677         MOUNTED_GETMNT.
15678         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
15679         * lib/getloadavg.c (decstation): Remove definition and case.
15680         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
15681         * lib/getgroups.c: Likewise.
15682         * doc/posix-functions/getgroups.texi: Likewise.
15683         * lib/time.in.h: Update comments.
15685 2018-10-16  Bruno Haible  <bruno@clisp.org>
15687         getloadavg: Remove support for ConvexOS.
15688         * lib/getloadavg.c: Remove convex case.
15690 2018-10-16  Bruno Haible  <bruno@clisp.org>
15692         getloadavg: Remove support for Sony NEWS.
15693         * lib/getloadavg.c: Remove sony_news case.
15695 2018-10-16  Bruno Haible  <bruno@clisp.org>
15697         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
15698         * lib/fsusage.c: Remove _SEQUENT_ case.
15699         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
15700         * lib/mountlist.c: Don't test for MNTTABNAME.
15701         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
15702         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
15703         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
15704         * lib/stat-size.h: Don't mention the Sequent bug.
15705         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
15707 2018-10-16  Bruno Haible  <bruno@clisp.org>
15709         fsusage: Remove support for AIX 3.
15710         * lib/fsusage.c: Remove code for AIX 3.
15711         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
15713 2018-10-16  Bruno Haible  <bruno@clisp.org>
15715         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
15716         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
15717         * lib/fsusage.c: Remove code for AIX PS/2.
15718         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
15719         * lib/getloadavg.c: Likewise.
15721 2018-10-16  Bruno Haible  <bruno@clisp.org>
15723         getloadavg: Remove support for HP-UX on m68k.
15724         * lib/getloadavg.c: Remove hp9000s300 case.
15726 2018-10-16  Bruno Haible  <bruno@clisp.org>
15728         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
15729         * lib/fsusage.c: Remove DOLPHIN case.
15730         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
15731         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
15733 2018-10-16  Bruno Haible  <bruno@clisp.org>
15735         getloadavg: Remove support for Alliant FX/2800.
15736         * lib/getloadavg.c: Remove alliant case.
15738 2018-10-16  Bruno Haible  <bruno@clisp.org>
15740         getloadavg: Remove support for tek4300.
15741         * lib/getloadavg.c: Remove tek4300 case.
15743 2018-10-16  Bruno Haible  <bruno@clisp.org>
15745         getloadavg: Remove support for Ardent.
15746         * lib/getloadavg.c: Remove ardent case.
15748 2018-10-16  Bruno Haible  <bruno@clisp.org>
15750         mountlist: Remove support for SVR2.
15751         Reported by Andrew Borodin <aborodin@vmail.ru> in
15752         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
15753         * lib/mountlist.c: Remove MOUNTED_FREAD case.
15754         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
15755         MOUNTED_FREAD.
15757 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15759         libc-config: merge from glibc
15760         * lib/cdefs.h (__glibc_has_attribute): New macro.
15762         regex: depend on libc-config
15763         * modules/regex (Depends-on): Add libc-config.
15764         This is needed after the recent autoupdate from glibc.
15766 2018-10-14  Bruno Haible  <bruno@clisp.org>
15768         localename: Add support for per-thread locales on Solaris 11.4.
15769         * lib/locale.in.h (newlocale, freelocale): New declarations.
15770         (duplocale): Declare also when the 'localename' module requests it.
15771         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
15772         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
15773         (struniq): Update.
15774         (struct locale_categories_names, struct locale_hash_node): New types.
15775         (LOCALE_HASH_TABLE_SIZE): New constant.
15776         (locale_hash_table, locale_lock): New variables.
15777         (pointer_hash, get_locale_t_name): New functions.
15778         (newlocale, duplocale, freelocale): New overridden functions.
15779         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
15780         * m4/intlsolaris.m4: New file.
15781         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
15782         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
15783         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
15784         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
15785         declared.
15786         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
15787         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
15788         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
15789         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
15790         * modules/localename (Files): Add intlsolaris.m4.
15791         (Depends-on): Add 'locale'.
15792         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
15793         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
15794         the signatures.
15796 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
15798         timevar: use gethrxtime to get wall clock time
15799         clock_gettime is not portable.  gethrxtime takes the best available
15800         option to get the wall clock time, including clock_gettime (monotonic
15801         clock), and gettime (non monotonic).
15802         Also, using xtime_t instead of float preserves the precision.
15803         Suggested by Bruno Haible.
15804         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
15805         * modules/timevar (Depends-on): We need gethrxtime.
15806         We no longer use times().
15807         (Link): Update.
15808         * lib/timevar.h (timevar_time_def): Use xtime_t.
15809         * lib/timevar.c (set_to_current_time): Use gethrxtime.
15810         (timevar_print): Instead of checking whether the timings themselves
15811         are large enough for the timevar to be printed, check the percentages.
15813 2018-10-14  Bruno Haible  <bruno@clisp.org>
15815         wcsnrtombs: Work around Solaris 11.4 bug.
15816         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
15817         macro.
15818         (gl_FUNC_WCSNRTOMBS): Invoke it.
15819         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
15821 2018-10-14  Bruno Haible  <bruno@clisp.org>
15823         mbsnrtowcs: Work around Solaris 11.4 bug.
15824         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
15825         macro.
15826         (gl_FUNC_MBSNRTOWCS): Invoke it.
15827         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
15829 2018-10-14  Bruno Haible  <bruno@clisp.org>
15831         doc: Update for Solaris 11.4.
15832         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
15833         mention Solaris 11.4.
15834         * m4/printf.m4: Update comments about Solaris.
15835         * m4/log.m4: Likewise.
15836         * m4/log10.m4: Likewise.
15837         * m4/logb.m4: Likewise.
15838         * m4/logbf.m4: Likewise.
15839         * m4/logbl.m4: Likewise.
15840         * m4/rename.m4: Likewise.
15841         * m4/wcrtomb.m4: Likewise.
15842         * m4/hostent.m4: Likewise.
15843         * m4/servent.m4: Likewise.
15845 2018-10-14  Bruno Haible  <bruno@clisp.org>
15847         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
15848         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
15849         pointer.
15850         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
15851         pointer.
15852         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
15853         pointer.
15854         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
15855         pointer.
15856         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
15857         pointer.
15859 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
15861         bootstrap: fix wget command for po files.
15862         * build-aux/bootstrap (po_download_command_format): Fix comment,
15863         and adjust callers.
15865 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
15867         timevar: improve the output format
15868         Suggested by Bruno Haible.
15869         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
15870         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
15871         wall, since its resolution is much higher.
15873 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
15875         timevar: expect that getrusage is available.
15876         Don't keep both times and getrusage as backend: both are guaranteed by
15877         gnulib, a single one suffices.  Using getrusage is open to possibly
15878         tracking other types of resources in the future.
15879         * modules/timevar (Depends-on): Add getrusage.
15880         (configure.ac): Remove gl_TIMEVAR.
15881         (Files): Remove m4/timevar.m4.
15882         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
15883         * lib/timevar.h (timevar_enabled): Clarify documentation.
15884         * lib/timevar.c: Remove all the code about times.
15885         Remove all the CPP guards about getrusage: expect it to be present
15886         (courtesy of gnulib).
15888 2018-10-12  Bruno Haible  <bruno@clisp.org>
15890         mountlist: Improve support for Solaris in 64-bit mode.
15891         Reported by David Wood <David.Wood@deshaw.com> in
15892         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
15893         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
15894         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
15895         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
15897 2018-10-12  Bruno Haible  <bruno@clisp.org>
15899         mountlist: Add support for Minix.
15900         Reported by Assaf Gordon in
15901         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
15902         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
15903         AC_CHECK_FUNCS to check for 'getmntinfo'.
15904         * lib/mountlist.c: Update comments.
15906 2018-10-12  Bruno Haible  <bruno@clisp.org>
15908         Make better use of Autoconf.
15909         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
15910         * m4/manywarnings.m4: Likewise.
15911         * m4/manywarnings-c++.m4: Likewise.
15912         * m4/socklen.m4: Likewise.
15913         * m4/sockpfaf.m4: Likewise.
15914         * m4/stdarg.m4: Likewise.
15915         * m4/visibility.m4: Likewise.
15916         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
15917         indentation.
15918         * m4/ls-mntd-fs.m4: Likewise.
15920 2018-10-11  Bruno Haible  <bruno@clisp.org>
15922         mountlist: Modernize platform lists.
15923         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
15924         platforms, deemphasizing the obsolete ones.
15925         * lib/mountlist.c: Likewise.
15927 2018-10-11  Bruno Haible  <bruno@clisp.org>
15929         getprogname: Add support for 32-bit programs on HP-UX.
15930         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
15931         try the similar functions 32-bit programs on 64-bit HP-UX.
15933 2018-10-11  Bruno Haible  <bruno@clisp.org>
15935         getprogname: Work around program name truncation when possible.
15936         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
15937         possibly use pst_cmd instead.
15939 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15941         fts: cleanup after FTS_NOATIME removal
15942         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
15943         (FTS_STOP): Shrink to minimal values.  We don’t need to
15944         worry about binary compatibility in Gnulib, and the old way
15945         of doing things had a hole in the user options that caused
15946         FTS_OPTIONMASK to not work as desired.
15948 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
15950         fts: remove FTS_NOATIME
15951         This reverts commit da4d6974013c822af1498941e32db774b2031765.
15952         We cannot guarantee that O_NOATIME works: e.g. openat fails
15953         with EPERM if the effective user ID of the caller does not match
15954         the owner of the file and the caller is not privileged.
15955         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
15956         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
15957         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
15958         (FTS_OPTIONMASK): Adjust.
15959         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
15960         (fd_ring_check): Likewise.
15962 2018-10-08  Bruno Haible  <bruno@clisp.org>
15964         csharpcomp*, csharpexec*: Remove support for pnet.
15965         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
15966         HAVE_CSCC.
15967         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
15968         Don't test HAVE_CSCC.
15969         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
15970         (compile_csharp_class): Don't invoke it.
15971         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
15972         HAVE_ILRUN.
15973         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
15974         Don't test HAVE_ILRUN.
15975         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
15976         (execute_csharp_program): Don't invoke it.
15977         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
15978         any more.
15980 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
15982         renameatu: prefer renameat2 to syscall
15983         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
15984         Use renameat2 instead of syscall (Bug#32796).
15985         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
15987 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
15989         bootstrap, gnulib-tool: use https instead of insecure rsync
15990         * build-aux/bootstrap (download_po_files, po_download_command_format):
15991         Don't try using rsync; always use wget over https to fetch PO files.
15992         * gnulib-tool (func_import): Likewise.
15993         * pygnulib/GLImport.py (GLImport.execute): Likewise.
15995 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
15997         bootstrap, gnulib-tool: correct the translations wget command
15998         * build-aux/bootstrap (po_download_command_format2): Restrict
15999         recursion to a single level.
16000         * gnulib-tool (func_import): Likewise.
16001         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16003 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16005         doc: the gnulib snapshots are not maintained
16006         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
16008 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16010         timevar: add to lib_SOURCES
16011         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
16013 2018-10-07  Bruno Haible  <bruno@clisp.org>
16015         dirent: Update documentation.
16016         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
16018 2018-10-05  Bruno Haible  <bruno@clisp.org>
16020         strpbrk: Make it possible to namespace the defined symbol.
16021         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
16023 2018-10-05  Bruno Haible  <bruno@clisp.org>
16025         strcspn: Make it possible to namespace the defined symbol.
16026         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
16028 2018-10-05  Bruno Haible  <bruno@clisp.org>
16030         raise: Make it possible to namespace the defined symbol.
16031         * lib/raise.c (raise): Undefine only after the replacement function has
16032         been defined.
16033         (raise): Renamed from rpl_raise.
16034         (raise_nothrow): Move to the end of the compilation unit.
16036 2018-10-05  Bruno Haible  <bruno@clisp.org>
16038         memcmp: Make it possible to namespace the defined symbol.
16039         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
16041 2018-10-05  Bruno Haible  <bruno@clisp.org>
16043         explicit_bzero: Make it possible to namespace the defined symbol.
16044         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
16045         glibc.
16047 2018-10-05  Bruno Haible  <bruno@clisp.org>
16049         mkdir-p: Depend on 'mkdir'.
16050         * modules/mkdir-p (Depends-on): Add 'mkdir'.
16052 2018-10-05  Bruno Haible  <bruno@clisp.org>
16054         tempname: Depend on 'mkdir'.
16055         Reported by Maarten Bosmans <mkbosmans@gmail.com>
16056         at <https://savannah.gnu.org/bugs/?33379>.
16057         * modules/tempname (Depends-on): Add 'mkdir'.
16059 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
16061         timevar: rely on gnulib modules for time portability.
16062         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
16063         * m4/timevar.m4: Don't check for clock_t and struct tms,
16064         guaranteed by gnulib.
16065         * lib/timevar.h: Use extern "C" protection.
16066         Include <stdio.h> for FILE.
16067         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
16068         they are guaranteed by gnulib.
16069         Remove uses of clock as (now useless) fallback.
16071 2018-10-04  Bruno Haible  <bruno@clisp.org>
16073         sh-filename: New module.
16074         * m4/sh-filename.m4: New file.
16075         * modules/sh-filename: New file.
16076         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
16077         "/bin/sh".
16078         * tests/test-posix_spawn1.c (main): Likewise.
16079         * tests/test-posix_spawn2.c (main): Likewise.
16080         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
16081         is_envjavac_gcj43): Likewise.
16082         * lib/javaexec.c (execute_java_class): Likewise.
16083         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
16084         * modules/posix_spawnp-tests (Depends-on): Likewise.
16085         * modules/javacomp (Depends-on): Likewise.
16086         * modules/javaexec (Depends-on): Likewise.
16088 2018-10-04  Bruno Haible  <bruno@clisp.org>
16090         spawn-pipe tests: Avoid test failure on native Windows.
16091         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
16092         that fd 2 is closed.
16094 2018-10-04  Bruno Haible  <bruno@clisp.org>
16096         fcntl: Make it possible to namespace the defined symbol.
16097         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
16098         been defined.
16099         (fcntl): Renamed from rpl_fcntl.
16100         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
16101         from fcntl.
16102         (klibc_fcntl): Move to the end of the compilation unit.
16104 2018-10-02  Bruno Haible  <bruno@clisp.org>
16106         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
16107         * tests/test-vasnprintf.c (test_function): Change the test added on
16108         2018-09-23 to check only the 18 most significant digits.
16110         vasnprintf tests: Avoid test failure on Cygwin.
16111         * tests/test-vasnprintf.c (test_function): Change the test added on
16112         2018-09-23 to check only the 42 most significant digits.
16114 2018-10-01  Bruno Haible  <bruno@clisp.org>
16116         mkostemp, mkostemps: Update documentation.
16117         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
16118         * doc/glibc-functions/mkostemps.texi: Likewise.
16120 2018-10-01  Tom Tromey  <tom@tromey.com>
16122         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
16123         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
16124         on OS X.
16126 2018-09-30  Pádraig Brady  <P@draigBrady.com>
16128         hmac-*: refactor to remove repetitive code
16129         * lib/hmac.c: A new parameterized single implementation.
16130         * lib/hmac-md5.c: Define parameters and include implementation.
16131         * lib/hmac-sha1.c: Likewise.
16132         * lib/hmac-sha256.c: Likewise.
16133         * lib/hmac-sha512.c: Likewise.
16134         * modules/crypto/hmac-md5: Reference the new implementation file.
16135         * modules/crypto/hmac-sha1: Likewise.
16136         * modules/crypto/hmac-sha256: Likewise.
16137         * modules/crypto/hmac-sha512: Likewise.
16138         * tests/test-hmac-md5.c: Refactor common code to a single function.
16139         * tests/test-hmac-sha1.c: Likewise.
16140         * tests/test-hmac-sha256.c: Likewise.
16141         * tests/test-hmac-sha512.c: Likewise.
16143 2018-09-30  Zhang Qing  <zhangqingl@126.com>
16145         hmac-sha512: fix hash for keys > blocksize (128 bytes)
16146         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
16147         key length to that output by sha512, not the blocksize.
16148         Otherwise uninitialized data from the stack
16149         is used when computing the hash.
16150         * tests/test-hmac-sha512.c: Add a shortened key test case.
16151         Reported at https://github.com/coreutils/gnulib/pull/5
16153 2018-09-30  Bruno Haible  <bruno@clisp.org>
16155         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
16156         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
16157         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
16158         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
16159         'unsigned int' before comparison with an unsigned value.
16161 2018-09-30  Bruno Haible  <bruno@clisp.org>
16163         grantpt: Remove unnecessary dependency.
16164         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
16166 2018-09-30  Bruno Haible  <bruno@clisp.org>
16168         timevar: Small tweaks.
16169         * lib/timevar.h: Fix comments. Add parameter names to function
16170         declarations.
16171         * lib/timevar.c: Include timevar.h immediately after config.h.
16172         * lib/timevar.def: Fix comments.
16173         * modules/timevar (Maintainer): List Akim Demaille.
16175 2018-09-30  Bruno Haible  <bruno@clisp.org>
16177         timevar: Include documentation in gnulib manual.
16178         * doc/timevar.texi: Change node and section name to 'Profiling of
16179         program phases'.
16180         In the code snippets, tweak the #includes and use GNU coding style.
16181         * doc/gnulib.texi: Include timevar.texi.
16183 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
16185         timevar: import from Bison.
16186         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
16187         New files.
16188         * lib/timevar.def: New file.
16189         * doc/timevar.texi: New file.
16191 2018-09-26  Bruno Haible  <bruno@clisp.org>
16193         javacomp-script, javacomp: Add preliminary support for Java 12..17.
16194         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
16195         * lib/javacomp.c (default_target_version): Likewise.
16197 2018-09-26  Bruno Haible  <bruno@clisp.org>
16199         javacomp-script, javacomp: Add support for Java 11.
16200         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
16201         target-version 11.
16202         * lib/javaversion.h: Update comments.
16203         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16204         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16205         TARGET_VERSION_BOUND, target_version_index,
16206         corresponding_classfile_version): Accept source_version 11 and
16207         target_version 11.
16208         * lib/javacomp.h: Update comments accordingly.
16210 2018-09-23  Bruno Haible  <bruno@clisp.org>
16212         vasnprintf: Fix heap memory overrun bug.
16213         Reported by Ben Pfaff <blp@cs.stanford.edu> in
16214         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
16215         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
16216         memory.
16217         * tests/test-vasnprintf.c (test_function): Add another test.
16219 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16221         maint: mktime.c now shared with glibc
16222         * config/srclist.txt: intprops.h, timegm.c and mktime.c
16223         are now the same in Gnulib and glibc.
16225         mktime: fix _LIBC typo
16226         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
16228 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16230         dfa: optimization for state merge
16231         * lib/dfa.c (merge2): New function.
16232         (merge_nfa_state): Use it.
16234 2018-09-18  Jim Meyering  <meyering@fb.com>
16236         dfa: trivial comment fix: s/is/if/
16237         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
16239 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16241         dfa: use more-informative function name
16242         * lib/dfa.c (maybe_disable_superset_dfa):
16243         Rename from dfautf8noss.  Use change.
16245         dfa: tweak allocation performance
16246         * lib/dfa.c (merge_nfa_state, dfaoptimize):
16247         Prefer ptrdiff_t for indexes some more.
16248         Use char for flags, as it’s wide enough.
16249         Allocate queue and flags together, with one malloc call.
16250         No need to use xnmalloc since the multiplication and
16251         addition cannot overflow (it’s already been checked by
16252         earlier allocation).  Prefer memset to open-coding.
16254         dfa: prune states as we go
16255         * lib/dfa.c (prune): Remove.
16256         dfa: reorder enum for efficiency
16257         (merge_nfa_state): Prune as we go instead of at the end.
16258         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
16260         * lib/dfa.c (END): Now -1 again.  Reorder other elements
16261         of the enumeration to make it easier for GCC to generate
16262         efficient code by using fewer comparisons to check for
16263         ranges of values.
16264         (atom): Take advantage of the reordering.
16266 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16268         dfa: optimize alternation in NFA
16269         Even when similar states exist in alternation, the DFA treats them
16270         as separate items, which may complicate the transition in NFA and
16271         cause slowdown.  This change assembles the states into one.  For
16272         example, ab|ac is changed into a(b|c).  This change speeds-up
16273         matching for many branched patterns.  For example, grep speeds up
16274         more than 30× in:
16276           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
16277           time -p env LC_ALL=C grep -vf in in
16279         * lib/dfa.c (prune): New function.
16280         (merge_nfa_state): New function.  It merges similar NFA states.
16281         (dfaoptimize): New function.  It seeks merged and removed nodes.
16282         (dfaanalyze): Call new function.
16283         (dfautf8noss): Change name from dfaoptimize because of addition of new
16284         function.
16285         (dfacomp): Update caller.
16287         dfa: simplify initial state
16288         Simplifying the initial state enables easier optimization of the NFA.
16289         * lib/dfa.c (enum token): Add new element BEG.
16290         (prtok): Adjust due to adding element BEG.
16291         (dfaparse): Put BEG at a head of tokens.
16292         (state_index): Adjust due to adding element BEG.
16293         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
16294         build initial state.
16295         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
16297 2018-09-18  Bruno Haible  <bruno@clisp.org>
16299         file-has-acl: Fix test failure on Cygwin 2.9.
16300         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
16301         * lib/acl-internal.h: Likewise.
16302         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
16303         * lib/acl-internal.c: Update comments regarding Cygwin.
16304         * lib/acl_entries.c: Likewise.
16305         * lib/file-has-acl.c: Likewise.
16306         (file_has_acl): For Cygwin, use a different way to determine whether
16307         the "default" ACL of a directory is nontrivial.
16308         * lib/get-permissions.c: Update comments regarding Cygwin.
16309         * lib/set-permissions.c: Likewise.
16311 2018-09-18  Bruno Haible  <bruno@clisp.org>
16313         stat-time tests: Fix test failure on Cygwin.
16314         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
16316 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16318         doc: OS X 10.11 lacked ns time functions
16319         According to <https://github.com/zeromq/libzmq/issues/2175>,
16320         nanosecond-resolution timestamp functions were introduced
16321         in macOS 10.12, so document the last version (OS X 10.11)
16322         where they were absent.
16324         gettime: nanotime never existed
16325         Problem reported by Bruno Haible in:
16326         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
16327         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
16328         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
16330 2018-09-18  Bruno Haible  <bruno@clisp.org>
16332         doc: Update statement about target platforms.
16333         Reported by Simon Sobisch.
16334         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
16335         restrictions on MSVC versions.
16337 2018-09-18  Bruno Haible  <bruno@clisp.org>
16339         posix_spawn tests: Fix link error on 64-bit Cygwin.
16340         * tests/test-posix_spawn1.c (environ): Remove declaration.
16341         * tests/test-posix_spawn2.c (environ): Likewise.
16342         * tests/test-posix_spawn3.c (environ): Likewise.
16343         * tests/test-posix_spawn4.c (environ): Likewise.
16344         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
16345         * modules/posix_spawnp-tests (Depends-on): Likewise.
16347 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16349         timespec: new function current_timespec
16350         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
16351         and don’t worry about it failing on a CLOCK_REALTIME arg.
16352         POSIX requires it to succeed and I don’t know of any
16353         counterexamples where the fallbacks would work.
16354         (current_timespec): New function, taken from Emacs.  It is more
16355         convenient than gettime, and can help register allocation.
16356         * lib/timespec.h: Include arg-nonnull.h.
16357         (current_timespec): New declaration.
16358         (gettime, settime): Declare args to be nonnull.
16359         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
16361 2018-09-16  Bruno Haible  <bruno@clisp.org>
16363         setlocale: Improve locale handling on macOS 10.12 or newer.
16364         * lib/setlocale.c: Include header files for CoreFoundation. Declare
16365         gl_locale_name_canonicalize.
16366         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
16367         and LC_MESSAGES.
16368         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
16370 2018-09-16  Bruno Haible  <bruno@clisp.org>
16372         Update list of locale names with scripts on macOS.
16373         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
16374         match Mac OS X 10.13 and recent glibc.
16376 2018-09-16  Bruno Haible  <bruno@clisp.org>
16378         gettext: Use newer macOS APIs when possible.
16379         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
16380         CFLocaleCopyPreferredLanguages.
16382 2018-09-16  Bruno Haible  <bruno@clisp.org>
16384         localename: Revisit macOS specific code.
16385         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
16386         Fix comments about Mac OS X versions.
16388 2018-09-15  Bruno Haible  <bruno@clisp.org>
16390         setlocale: Improve support for locales not supported by libc.
16391         Reported by Dapeng Gao <peter@dpgao.cc> at
16392         <https://savannah.gnu.org/bugs/?54479>.
16393         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
16394         (libintl_setlocale): Use a more error-tolerant strategy when the locale
16395         to be set is not supported by libc: Emit warnings instead of failing.
16397 2018-09-15  Bruno Haible  <bruno@clisp.org>
16399         strstr, strcasestr: Add workaround against glibc-2.28 bug.
16400         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
16401         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
16402         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
16403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
16404         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
16405         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
16406         * doc/glibc-functions/strcasestr.texi: Likewise.
16408 2018-09-14  Bruno Haible  <bruno@clisp.org>
16410         doc: Fix bottom of top-level page.
16411         Reported by Akim Demaille <akim.demaille@gmail.com> in
16412         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
16413         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
16414         mode.
16415         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
16416         accordingly.
16418 2018-09-12  Bruno Haible  <bruno@clisp.org>
16420         Add test case from a recent glibc bug.
16421         * tests/test-strstr.c (main): Add test of long needle.
16422         * tests/test-strcasestr.c (main): Likewise.
16423         * tests/test-c-strstr.c (main): Likewise.
16424         * tests/test-c-strcasestr.c (main): Likewise.
16425         * tests/test-memmem.c (main): Likewise.
16427 2018-09-12  Bruno Haible  <bruno@clisp.org>
16429         Apply Eric Blake's improvements from 2011-02-25 to more tests.
16430         * tests/test-c-strstr.c (main): Add the same tests here as well.
16432 2018-09-12  Bruno Haible  <bruno@clisp.org>
16434         Apply Jim Meyering's fix from 2015-01-11 to more tests.
16435         * tests/test-memmem.c (main): Free haystack.
16436         * tests/test-strcasestr.c (main): Likewise.
16437         * tests/test-c-strcasestr.c (main): Likewise.
16439 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
16441         xstrtol: fix missing-TYPE_SIGNED typo
16442         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
16444 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16446         timespec: fix resolution confusion
16447         In normal usage, clock resolution is given in seconds, but the
16448         code was mistakenly using inverse seconds and calling it
16449         “resolution”.  Fix this, partly by renaming two identifiers.
16450         The old names will be kept for a bit, to ease transition.
16451         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
16452         New constants, replacing TIMESPEC_RESOLUTION and
16453         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
16454         All uses changed.
16456 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
16458         mktime: simplify in prep for glibc merge
16459         * lib/mktime.c, lib/timegm.c [_LIBC]:
16460         Include mktime-internal.h (a small file just for glibc)
16461         instead of using a typedef.
16463 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
16465         intprops: minor clarification of code
16466         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
16467         Use _GL_INT_CONVERT rather than reinventing it.
16469 2018-09-07  Bruno Haible  <bruno@clisp.org>
16471         Fix a comment.
16472         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
16474 2018-09-07  Bruno Haible  <bruno@clisp.org>
16476         posix_spawn_file_actions_addchdir: Add tests.
16477         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
16478         * tests/test-posix_spawn4.c: New file.
16479         * modules/posix_spawn_file_actions_addchdir-tests: New file.
16481 2018-09-07  Bruno Haible  <bruno@clisp.org>
16483         posix_spawn_file_actions_addchdir: New module.
16484         Suggested by Eric Blake in
16485         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
16486         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
16487         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
16488         union member 'chdir_action'.
16489         * lib/spawn_faction_addchdir.c: New file.
16490         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
16491         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
16492         HAVE_WORKING_POSIX_SPAWN.
16493         * lib/spawn_faction_adddup2.c: Likewise.
16494         * lib/spawn_faction_addopen.c: Likewise.
16495         * m4/posix_spawn_faction_addchdir.m4: New file.
16496         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
16497         'posix_spawn_file_actions_addchdir' is present and whether
16498         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
16499         instead of HAVE_WORKING_POSIX_SPAWN.
16500         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
16501         posix_spawn_file_actions_addchdir is declared.
16502         (gl_SPAWN_H_DEFAULTS): Initialize
16503         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16504         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16505         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16506         * modules/spawn (Makefile.am): Substitute
16507         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16508         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16509         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16510         * modules/posix_spawn_file_actions_addchdir: New file.
16511         * modules/posix_spawn_file_actions_addclose (Depends-on,
16512         configure.ac): Test also REPLACE_POSIX_SPAWN.
16513         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
16514         configure.ac): Likewise.
16515         * modules/posix_spawn_file_actions_addopen (Depends-on,
16516         configure.ac): Likewise.
16517         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
16518         signature.
16519         * doc/posix-functions/posix_spawn.texi: Mention the new module.
16520         * doc/posix-functions/posix_spawnp.texi: Likewise.
16522 2018-09-06  Bruno Haible  <bruno@clisp.org>
16524         stddef: Override max_align_t on NetBSD 8.0/x86.
16525         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
16526         the value of __alignof__ (max_align_t).
16527         * doc/posix-headers/stddef.texi: Mention the issue.
16529 2018-09-06  Bruno Haible  <bruno@clisp.org>
16531         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
16532         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
16533         system fcntl.
16534         * doc/posix-functions/fcntl.texi: Document the issue.
16536 2018-09-06  Bruno Haible  <bruno@clisp.org>
16538         count-trailing-zeros tests: Rely on limits-h module.
16539         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
16540         definition.
16541         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
16543 2018-09-06  Bruno Haible  <bruno@clisp.org>
16545         count-leading-zeros tests: Rely on limits-h module.
16546         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
16547         definition.
16548         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
16550 2018-09-06  Bruno Haible  <bruno@clisp.org>
16552         count-one-bits tests: Rely on limits-h module.
16553         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
16554         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
16556 2018-09-06  Bruno Haible  <bruno@clisp.org>
16558         xstrtoll: Rely on limits-h module.
16559         * lib/xstrtol.c: Don't include intprops.h.
16560         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
16561         * modules/xstrtol (Depends-on): Remove 'intprops'.
16562         * modules/xstrtoll (Depends-on): Add 'limits-h'.
16564 2018-09-06  Bruno Haible  <bruno@clisp.org>
16566         strtoll, strtoull: Rely on limits-h module.
16567         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
16568         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
16569         * modules/strtoll (Depends-on): Add limits-h.
16570         * modules/strtoull (Depends-on): Likewise.
16572 2018-09-06  Bruno Haible  <bruno@clisp.org>
16574         intprops tests: Fix compilation error with pre-C99 compiler.
16575         * tests/test-intprops.c (verify_stmt): New macro.
16576         (VERIFY, main): Use it.
16578 2018-09-06  Bruno Haible  <bruno@clisp.org>
16580         limits-h: Provide numerical limits macros.
16581         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
16582         IRIX and for GCC.
16583         (WORD_BIT, LONG_BIT): Define.
16584         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
16585         <limits.h> does not define LLONG_MAX or WORD_BIT.
16586         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
16587         TYPE_MAXIMUM): New macros, from intprops.h.
16588         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
16589         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
16590         provides.
16592 2018-09-05  Bruno Haible  <bruno@clisp.org>
16594         fcntl: Don't access nonexistent optional argument.
16595         Reported by Frank Busse <f.busse@imperial.ac.uk> in
16596         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
16597         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
16598         don't consume an argument. For actions that take an 'int' argument,
16599         consume an 'int' argument.
16601 2018-09-05  Eric Blake  <eblake@redhat.com>
16603         doc: mention environ pitfall
16604         * doc/posix-functions/environ.texi (environ): Assigning NULL to
16605         environ is a glibc extension.
16607 2018-09-03  Bruno Haible  <bruno@clisp.org>
16609         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
16610         Reported by Antoine Luong <antoine.luong@c-s.fr> in
16611         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
16612         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
16613         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
16614         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
16616 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16618         mktime: fix unlikely race+overflow bug
16619         Problem reported by Alexandre Oliva in:
16620         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
16621         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
16622         to avoid an unlikely race if the compiler delays a load and
16623         if this cascades into a signed integer overflow.
16625 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16627         mktime, timegm: simplify glibc time64_t
16628         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
16629         Now long int, not time_t, since long int is the longstanding type
16630         for this in glibc and there is no need to change it even if time_t
16631         becomes 64 bits - even int would do, though this would be a change
16632         to the glibc generated code.  When this change is merged into
16633         glibc, it should simplify the time_t vs time64_t situation.
16635         mktime, timegm: simplify merge to glibc
16636         Move code around to make a merge to glibc easier to audit.
16637         This should not change behavior.
16638         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
16639         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
16640         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
16641         simplify later conditionals; default the others to zero.  In uses
16642         of these conditionals, explicitly spell out how _LIBC affects
16643         things, so it’s easier to review from a glibc viewpoint.
16644         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
16645         compartmentalize tzset issues.  Move system-dependent tzsettish
16646         code here from mktime.
16647         (mktime): Move tzsettish code to my_tzset, and move
16648         localtime_offset to within mktime so that it doesn’t
16649         need a separate ifdef.
16651 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
16653         intprops: avoid evaluation of some expressions
16654         This makes EXPR_SIGNED (e) easier to use, as it no longer
16655         evaluates the expression E.  Formerly, E was required to be free
16656         of side effects.
16657         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
16658         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
16659         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
16661 2018-08-23  Bruno Haible  <bruno@clisp.org>
16663         getcwd: Add cross-compilation guesses.
16664         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
16665         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
16666         Based on a patch by Paul Eggert.
16667         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
16668         guesses for all GNU systems.
16670 2018-08-19  Bruno Haible  <bruno@clisp.org>
16672         glob-h: Formalize side effects from other modules.
16673         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
16674         * m4/glob.m4 (gl_GLOB): Invoke it.
16676         fnmatch-h: Formalize side effects from other modules.
16677         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
16678         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
16680         limits-h: Formalize side effects from other modules.
16681         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
16682         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
16684 2018-08-19  Bruno Haible  <bruno@clisp.org>
16686         getpass: Move declaration to <unistd.h>.
16687         * lib/unistd.in.h (getpass): New declaration.
16688         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
16689         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
16690         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
16691         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
16692         On glibc systems, don't set REPLACE_GETPASS to 1.
16693         * modules/getpass (Depends-on): Add 'unistd'.
16694         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
16695         (Include): Specify <unistd.h> instead of "getpass.h".
16696         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
16697         (configure.ac): Sync with the configure.ac section of modules/getpass.
16698         (Include): Specify <unistd.h> instead of "getpass.h".
16699         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
16700         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
16701         REPLACE_GETPASS.
16702         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
16703         REPLACE_GETPASS.
16704         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
16705         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
16706         and musl.
16707         * NEWS: Mention the change.
16709 2018-08-19  Bruno Haible  <bruno@clisp.org>
16711         glob: Fix over-optimization due to attribute __nonnull__.
16712         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
16714 2018-08-19  Bruno Haible  <bruno@clisp.org>
16716         glob: Fix another compilation error when glob.h is not replaced.
16717         Reported by Reuben Thomas <rrt@sc3d.org> in
16718         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
16719         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
16720         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
16722 2018-08-18  Bruno Haible  <bruno@clisp.org>
16724         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
16725         Reported by Reuben Thomas <rrt@sc3d.org> in
16726         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
16727         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
16728         in config.h.
16730 2018-08-18  Bruno Haible  <bruno@clisp.org>
16732         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
16733         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
16734         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
16735         Solution proposed by Eli Zaretskii.
16736         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
16737         * lib/gettimeofday.c (GetProcAddress): Likewise.
16738         * lib/link.c (GetProcAddress): Likewise.
16739         * lib/physmem.c (GetProcAddress): Likewise.
16740         * lib/poll.c (GetProcAddress): Likewise.
16741         * lib/select.c (GetProcAddress): Likewise.
16742         * lib/stat-w32.c (GetProcAddress): Likewise.
16744 2018-08-18  Bruno Haible  <bruno@clisp.org>
16746         glob: Fix another compilation error when glob.h is not replaced.
16747         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
16748         * lib/globfree.c: Include <libc-config.h>.
16750 2018-08-18  Bruno Haible  <bruno@clisp.org>
16752         glob: Fix compilation error when glob.h is not replaced.
16753         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
16754         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
16755         * lib/glob_pattern_p.c: Include <libc-config.h>.
16756         * modules/glob (Depends-on): Add libc-config.
16758 2018-08-18  Bruno Haible  <bruno@clisp.org>
16760         scratch_buffer: Add tests.
16761         * tests/test-scratch-buffer.c: New file.
16762         * modules/scratch_buffer-tests: New file.
16764 2018-08-18  Bruno Haible  <bruno@clisp.org>
16766         scratch_buffer: Fix include file.
16767         Reported by Reuben Thomas <rrt@sc3d.org> in
16768         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
16769         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
16770         double-inclusion guard.
16772 2018-08-18  Bruno Haible  <bruno@clisp.org>
16774         glob-h: Revert Paul Eggert's revert.
16775         * m4/glob_h.m4: Revert to previous state.
16776         * modules/glob-h: Likewise.
16778 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16780         glob-h: always build glob.h
16781         This works around a problem reported by Reuben Thomas in:
16782         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
16783         This workaround always builds glob.h, even on platforms that
16784         do not need it; perhaps this could be improved someday.
16785         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
16786         is always created now.
16787         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
16789 2018-08-13  Bruno Haible  <bruno@clisp.org>
16791         monetary: Simplify m4 code.
16792         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
16793         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
16795 2018-08-13  Bruno Haible  <bruno@clisp.org>
16797         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
16798         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
16799         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
16800         and by Paul J. Lucas <paul@lucasmail.org> in
16801         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
16802         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
16804 2018-08-11  Bruno Haible  <bruno@clisp.org>
16806         setlocale: Trivial simplification.
16807         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
16809 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16811         verify: port 'assume' to traditional tools
16812         * lib/verify.h (assume): Port better to Oracle Studio 12.6
16813         and other tools that use /*NOTREACHED*/ comments.
16815 2018-08-10  Bruno Haible  <bruno@clisp.org>
16817         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
16818         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16819         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
16820         'fnmatch-gnu' is in use.
16822 2018-08-07  Bruno Haible  <bruno@clisp.org>
16824         glob-h: Add tests.
16825         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
16826         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
16827         tests/test-glob-h.c.
16828         * modules/glob-h-tests: New file.
16829         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
16830         conditions.
16831         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
16832         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
16834 2018-08-07  Bruno Haible  <bruno@clisp.org>
16836         glob-h: New module.
16837         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
16838         replacements.
16839         * lib/glob.c: Include <config.h>.
16840         * m4/glob_h.m4: New file.
16841         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
16842         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
16843         REPLACE_GLOB_PATTERN_P as appropriate.
16844         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
16845         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
16846         * modules/glob-h: New file.
16847         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
16848         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
16849         lstat, sys_stat. Change conditions.
16850         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
16851         REPLACE_GLOB_PATTERN_P. Set module indicator.
16852         (Makefile.am): Remove code that is moved to glob-h.
16853         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
16854         * modules/posixcheck (Depends-on): Add glob-h.
16856 2018-08-06  Bruno Haible  <bruno@clisp.org>
16858         Force generation of substitute .h file when C++ support is enabled.
16859         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
16860         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
16861         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
16862         FNMATCH_H to non-empty.
16863         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
16864         ICONV_H to non-empty.
16865         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
16866         MONETARY_H to non-empty.
16867         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
16868         non-empty.
16870 2018-08-06  Bruno Haible  <bruno@clisp.org>
16872         fnmatch-h: Fix test compilation error on mingw (regression from today).
16873         * lib/fnmatch.in.h: Fix conditions.
16875 2018-08-06  Bruno Haible  <bruno@clisp.org>
16877         sys_resource: Relicense under LGPLv2+.
16878         John Malmberg's approval is in
16879         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
16880         * modules/sys_resource (License): Change to LGPLv2+.
16882 2018-08-06  Bruno Haible  <bruno@clisp.org>
16884         fnmatch-h: Add tests.
16885         * tests/test-fnmatch-h.c: New file.
16886         * modules/fnmatch-h-tests: New file.
16887         * tests/test-fnmatch-h-c++.cc: New file.
16888         * modules/fnmatch-h-c++-tests: New file.
16890 2018-08-06  Bruno Haible  <bruno@clisp.org>
16892         fnmatch-h: New module.
16893         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
16894         replacements.
16895         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
16896         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
16897         'posixcheck' warning.
16898         * m4/fnmatch_h.m4: New file.
16899         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
16900         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
16901         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
16902         as appropriate.
16903         * modules/fnmatch-h: New file.
16904         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
16905         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
16906         conditions.
16907         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
16908         indicator.
16909         (Makefile.am): Remove code that is moved to fnmatch-h.
16910         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
16911         REPLACE_FNMATCH.
16912         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
16913         * modules/posixcheck (Depends-on): Add fnmatch-h.
16915 2018-08-06  Bruno Haible  <bruno@clisp.org>
16917         Enable more C++ tests.
16918         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
16919         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
16920         * modules/strings-tests (Depends-on): Add strings-c++-tests.
16921         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
16922         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
16924 2018-08-06  Bruno Haible  <bruno@clisp.org>
16926         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
16927         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
16928         getopt.h.
16929         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
16931 2018-08-05  Bruno Haible  <bruno@clisp.org>
16933         utime-h: Generate header file when module 'posixcheck' is in use.
16934         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
16935         UTIME_H to non-empty.
16937 2018-08-05  Bruno Haible  <bruno@clisp.org>
16939         monetary: Generate header file when module 'posixcheck' is in use.
16940         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
16941         use, set MONETARY_H to non-empty.
16943 2018-08-05  Bruno Haible  <bruno@clisp.org>
16945         iconv-h: Generate header file when module 'posixcheck' is in use.
16946         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
16947         set ICONV_H to non-empty.
16949 2018-08-05  Bruno Haible  <bruno@clisp.org>
16951         Optimize the "checking whether ... is declared without a macro" checks.
16952         Suggested by Paul Eggert in
16953         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
16954         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
16955         Gnulib module 'posixcheck' is not in use.
16957 2018-08-05  Bruno Haible  <bruno@clisp.org>
16959         iconv-h: Enable 'posixcheck' warnings.
16960         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
16961         iconv_open.
16962         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
16964 2018-08-05  Bruno Haible  <bruno@clisp.org>
16966         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
16967         * m4/extern-inline.m4: Add more comments.
16968         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
16969         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
16970         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
16972 2018-08-04  Bruno Haible  <bruno@clisp.org>
16974         New module 'posixcheck'.
16975         * modules/posixcheck: New file.
16976         * m4/posixcheck.m4: New file.
16977         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
16978         (Which modules?): Reference it.
16980 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
16982         dfa: fix memory leak
16983         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
16985 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
16987         ieee754-h: new module
16988         It looks like Emacs can use this for some NaN processing.
16989         Emacs uses it only on double NaNs so it should be safe.
16990         * MODULES.html.sh (func_all_modules): Add ieee754-h.
16991         * config/srclist.txt: Mention ieee754.h in a comment.
16992         * doc/glibc-headers/ieee754.texi (ieee754.h):
16993         Gnulib now has a substitute that should work
16994         except for long double and for non-IEEE platforms.
16995         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
16996         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
16998 2018-07-27  Bruno Haible  <bruno@clisp.org>
17000         iswcntrl: Mention minor problem on macOS.
17001         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
17003 2018-07-26  Colin Watson  <cjwatson@debian.org>
17005         bootstrap, gnulib-tool: fix translations rsync
17006         Previously, we created files such as $pobase/Makefile.in.in and then the
17007         subsequent rsync would immediately delete them.
17008         * build-aux/bootstrap (po_download_command_format): Avoid deleting
17009         non-.po files in target directory when rsyncing translations.
17010         * gnulib-tool (func_import): Likewise.
17011         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17013 2018-07-25  Jim Meyering  <meyering@fb.com>
17015         bootstrap: reinstate definition fo gnulib_mk.
17016         That variable is used at least by cppi.
17017         * build-aux/bootstrap (gnulib_mk): Restore definition.
17018         This reverts the deletion from v0.1-1844-gc66dba9ba.
17020 2018-07-23  Bruno Haible  <bruno@clisp.org>
17022         doc: For module names, use texinfo markup @code{} or @samp{}.
17023         * doc/alloca.texi: Mark gnulib module names with @code.
17024         * doc/alloca-opt.texi: Likewise.
17025         * doc/quote.texi: Likewise.
17026         * doc/posix-functions/freopen.texi: Likewise.
17027         * doc/posix-functions/open.texi: Likewise.
17028         * doc/posix-functions/readlink.texi: Likewise.
17029         * doc/posix-functions/readlinkat.texi: Likewise.
17030         * doc/posix-functions/stdout.texi: Likewise.
17031         * doc/posix-functions/stderr.texi: Likewise.
17032         * doc/posix-functions/unlink.texi: Likewise.
17033         * doc/posix-functions/unlinkat.texi: Likewise.
17034         * doc/posix-functions/utime.texi: Likewise.
17035         * doc/posix-functions/utimensat.texi: Likewise.
17036         * doc/posix-functions/utimes.texi: Likewise.
17037         * doc/posix-headers/stdint.texi: Likewise.
17038         * doc/glibc-functions/futimesat.texi: Likewise.
17039         * doc/glibc-functions/lutimes.texi: Likewise.
17040         * doc/glibc-functions/memmem.texi: Likewise.
17042 2018-07-23  Werner LEMBERG  <wl@gnu.org>
17044         doc: Avoid some overfull lines in the TeX output.
17045         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
17046         @example.
17047         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
17048         newline before the long URL.
17049         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
17050         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
17051         Add line breaks in code snippets.
17053 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
17055         hard-locale: simplify by removing hard-locale.m4
17056         * m4/hard-locale.m4: Remove.
17057         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
17058         (configure.ac): Do not call gl_HARD_LOCALE.
17060         gnulib-tool: limit line length for git send-email
17061         * gnulib-tool (func_import): Break actioncmd log line
17062         into multiple lines.
17064 2018-07-16  Bruno Haible  <bruno@clisp.org>
17066         ffs: Ensure declaration on mingw.
17067         Reported by Daniel P. Berrangé <berrange@redhat.com>
17068         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
17069         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
17070         also declared.
17072 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17074         regex-tests: add dependency
17075         * modules/regex-tests (Depends-on): Add gettext-h.
17076         This is needed given the recent changes to regex,
17077         which no longer depends on gettext-h.
17079 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17081         regex: now in sync with glibc
17082         * config/srclist.txt: Gnulib and glibc regex code
17083         are synchronized again.
17085 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17087         renameatu: rename from renameat2
17088         It's looking like Glibc will add a renameat2 function
17089         that is incompatible with Gnulib renameat2; see:
17090         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
17091         To help avoid future confusion, rename renameat2 to something else.
17092         Use the name 'renameatu', as the Gnulib function is close to the
17093         Glibc function.  Perhaps someday there will also be a renameat2
17094         Gnulib module, which mimicks the future glibc renameat2, but that
17095         can wait as nobody seems to need such a module now.
17096         * NEWS: Mention this.
17097         * lib/renameatu.c: Rename from lib/renameat2.c.
17098         * lib/renameatu.h: Rename from lib/renameat2.h.
17099         * modules/renameatu: Rename from modules/renameat2.
17100         * modules/renameatu-tests: Rename from modules/renameat2-tests.
17101         All uses of "renameat2" in identifiers or file name
17102         changed to "renameatu", except for two instances in
17103         lib/renameatu.c that deal with the Linux kernel's
17104         renameat2 syscall.
17106 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17108         gnulib-tool: minor tweaks for --gnu-make
17109         * gnulib-tool: Do not allow --gnu-make in test modes,
17110         since they all require automake.
17111         (func_emit_lib_Makefile_am): Don’t emit automake comment
17112         if --gnu-make.
17114         regex: work around conditional-dependencies glitch
17115         * modules/regex (Depends-on): Add langinfo.
17116         Without this change, I had problems building an experimental
17117         version of GNU Emacs.  The symptom of the bug was a message
17118         ‘./configure: line 12726: test: =: unary operator expected’.
17119         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
17120         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
17121         was unset.  Although gl_FUNC_NL_LANGINFO has
17122         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
17123         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
17124         --conditional-dependencies sometimes arranges for the
17125         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
17126         code.  Since the regex code includes <langinfo.h> it should be
17127         depending on the langinfo module anyway, and this happens to work
17128         around the bug, so install that as a workaround for now.  To
17129         reproduce the original problem, run the following shell script on
17130         the version of Gnulib just before this patch was installed.
17131                 rm -fr foo
17132                 mkdir foo
17133                 cat >foo/configure.ac <<'EOF'
17134                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
17135                 gl_EARLY
17136                 gl_INIT
17137                 AC_OUTPUT
17138                 EOF
17139                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
17140                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
17141                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
17142                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
17143                 cd foo
17144                 aclocal -I m4
17145                 autoconf
17146                 ./configure --with-included-regex
17148 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17150         wchar: fix bug when checking for ‘inline’
17151         I discovered this when looking into using the regex module
17152         with Emacs.
17153         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
17154         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
17155         conftest1.c and conftest2.c but these files were not created.
17156         As far as I can see, this check never worked and nobody reported
17157         it until now, which is a bit worrisome.
17159 2018-06-30  Jim Meyering  <meyering@fb.com>
17161         bootstrap: s/--option val/--option=val/
17162         * build-aux/bootstrap (gnulib_tool_options): Change the
17163         spelling of "--option val" pairs to "--option=val", for
17164         aesthetics, and also so that this file no longer triggers
17165         a common help2man syntax-check warning when copied into
17166         projects like grep, gzip, etc.
17168 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17170         manywarnings: omit -Wswitch-default
17171         This should make things more consistent, as we already ignore
17172         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
17173         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
17174         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
17175         Add -Wswitch-default.
17176         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
17177         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17178         Remove -Wswitch-default.
17180         regex: revert most trimming
17181         Problems reported by Bruno Haible in:
17182         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
17183         * modules/regex (Depends-on): Add lock, memcmp, memmove,
17184         and wctype back in.  lock because regex users shouldn’t
17185         need to know that regex needs locking, and the rest because
17186         gnulib-tool should ordinarily ignore them anyway.
17188 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17190         regex: trim module dependencies
17191         * modules/regex (Depends-on): Remove gettext-h and lock,
17192         since the regex code should work OK without these modules,
17193         and Emacs uses it that way.  Also remove memcmp, memmove,
17194         and wctype, as these modules are obsolete and should not be
17195         needed any more.
17197 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
17199         regex: glibc does not use intprops.h
17200         Maybe we can talk glibc into using intprops.h someday, but
17201         now doesn’t seem to be a good time.
17202         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
17203         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
17204         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
17206 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
17208         regex: port to recently proposed glibc regex merge
17209         This patch is inspired by Adhemerval Zanella's recent proposal
17210         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
17211         to merge glibc and Gnulib regex.  It aims to simplify the merge on
17212         the glibc side, without keeping Gnulib portable.
17213         * lib/regex.h: Fix a problem with glibc installed-header checking,
17214         as follows:
17215         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
17216         (_Restrict_arr_): Prefer __restrict_arr if defined,
17217         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
17218         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
17219         (build_wcs_upper_buffer, build_upper_buffer)
17220         (re_string_translate_buffer, re_string_context_at):
17221         Move decls here from lib/regex_internal.h, for glibc internal tests.
17222         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
17223         glibc BZ #18496.
17224         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
17225         -Wunused-value.
17226         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
17227         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17228         (bitset_mask): Now static inline, and without any __attribute__
17229         ((unused)) decoration, for glibc internal tests.
17231 2018-06-25  Bruno Haible  <bruno@clisp.org>
17233         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
17234         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
17235         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
17236         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
17237         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
17238         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
17239         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
17240         / -lthread / -lpth does not get optimized away by a preceding
17241         --as-needed option.
17243 2018-06-25  Bruno Haible  <bruno@clisp.org>
17245         Continue to use spaces for indentation, not tabs.
17246         * MODULES.html.sh: Untabify.
17247         * doc/regex.texi: Likewise.
17248         * lib/acl-internal.c: Likewise.
17249         * lib/dfa.c: Likewise.
17250         * lib/exclude.c: Likewise.
17251         * lib/exclude.h: Likewise.
17252         * lib/get-permissions.c: Likewise.
17253         * lib/gettimeofday.c: Likewise.
17254         * lib/parse-datetime.y: Likewise.
17255         * lib/pselect.c: Likewise.
17256         * lib/set-permissions.c: Likewise.
17257         * lib/time.in.h: Likewise.
17258         * m4/canonicalize.m4: Likewise.
17259         * m4/gc.m4: Likewise.
17260         * m4/gnulib-common.m4: Likewise.
17261         * m4/pthread_sigmask.m4: Likewise.
17262         * m4/vararrays.m4: Likewise.
17263         * tests/test-digest.h: Likewise.
17264         * tests/test-fcntl-h.c: Likewise.
17265         * tests/test-timespec.c: Likewise.
17266         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
17268 2018-06-25  Bruno Haible  <bruno@clisp.org>
17270         manywarnings: Don't enable -Wjump-misses-init warnings by default.
17271         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
17272         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
17273         -Wjump-misses-init.
17275 2018-06-25  Jim Meyering  <meyering@fb.com>
17277         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
17278         * lib/acl-internal.h (free_permission_context): Remove that
17279         attribute directive.  Otherwise, it would provoke this from GCC 9:
17280         lib/acl-internal.h:300:3: error: 'const' attribute on function \
17281           returning 'void' [-Werror=attributes]
17283 2018-06-24  Jim Meyering  <meyering@fb.com>
17285         parse-datetime: accommodate gcc-4.8.5
17286         Bruno Haible reported the build failure in
17287         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
17288         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
17289         on declaration of new local.
17291 2018-06-24  Bruno Haible  <bruno@clisp.org>
17293         af_alg: Fail in continuable manner on Linux/powerpc64le.
17294         Reported by Assaf Gordon <assafgordon@gmail.com>
17295         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
17296         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
17297         byte send() as the first round.
17299 2018-06-24  Bruno Haible  <bruno@clisp.org>
17301         af_alg: Fix state of stream after sendfile() succeeds.
17302         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
17303         the stream is correctly positioned afterwards.
17304         * modules/crypto/af_alg (Depends-on): Add fflush.
17305         * tests/test-digest.h (test_digest_on_files): Verify that after the
17306         operation the stream is positioned at end of file.
17308 2018-06-24  Jim Meyering  <meyering@fb.com>
17310         canon-host: take GCC9's advice rather than ignoring warning
17311         Pádraig Brady suggested not to ignore this GCC9 advice.
17312         * lib/canon-host.c: Undo preceding change.
17313         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
17315         parse-datetime.y: avoid spurious GCC 9 warning
17316         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
17317         a function local prior to the first "goto fail".  The prior use would
17318         evoke this:
17319         parse-datetime.y: In function 'parse_datetime2':
17320         parse-datetime.y:1791:19: error: jump skips variable initialization \
17321           [-Werror=jump-misses-init]
17322         parse-datetime.y:2385:2: note: label 'fail' defined here
17323         parse-datetime.y:188:43: note: '({anonymous})' declared here
17324         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
17326         canon-host.c: avoid spurious GCC 9 warning
17327         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
17329         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
17330         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
17331         * m4/manywarnings.m4: Remove them.
17332         Otherwise, building coreutils, I would see this:
17333         cc1: error: deprecated command line option '-Wchkp' [-Werror]
17334         cc1: error: -Wabi won't warn about anything [-Werror=abi]
17335         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
17336           which is also used by default
17337         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
17339 2018-06-24  Bruno Haible  <bruno@clisp.org>
17341         af_alg tests: Add another test.
17342         * tests/test-digest.h (test_digest_on_files): Also check a large file
17343         with a skipped header.
17344         * tests/test-md5.c: Include macros.h.
17345         * tests/test-sha1.c: Likewise.
17346         * tests/test-sha256.c: Likewise.
17347         * tests/test-sha512.c: Likewise.
17348         * modules/crypto/md5-tests (Files): Add tests/macros.h.
17349         * modules/crypto/sha1-tests (Files): Likewise.
17350         * modules/crypto/sha256-tests (Files): Likewise.
17351         * modules/crypto/sha512-tests (Files): Likewise.
17353 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17355         maint: clarify comments about sticky EOF
17356         * lib/af_alg.c: Be more direct that we can't
17357         assume stickiness of EOF for portability reasons.
17358         * lib/md5.c: Clarify that this isn't just a glibc issue.
17359         * lib/sha1.c: Likewise.
17360         * lib/sha256.c: Likewise.
17361         * lib/sha512.c: Likewise.
17363 2018-06-24  Bruno Haible  <bruno@clisp.org>
17365         af_alg: Comment and style improvements.
17366         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
17367         (afalg_buffer, afalg_stream): Improve comments.
17369 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17371         af_alg: disable kernel hash functions by default
17372         All the kernel routines were seen to be significantly slower
17373         with these relatively recent components on an i3-2310M system:
17374           kernel-4.10.6-200.fc25.x86_64
17375           openssl-1.0.2m-1.fc25.x86_64
17376         sha1 was nearly twice as slow in the kernel for example.
17377         Further considerations why this should not be the default, at:
17378         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
17380         * m4/af_alg.m4: Require --with-linux-crypto to enable.
17381         * m4/gl-openssl.m4: Tweak accordingly.
17383 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17385         af_alg: avoid hangs when reading from streams
17386         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
17387         and thus avoid doing a fread() when feof() is set.
17388         * lib/md5.c: Ensure feof() is called before fread().
17389         * lib/sha1.c: Likewise.
17390         * lib/sha256.c: Likewise.
17391         * lib/sha512.c: Likewise.
17393 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17395         af_alg: fix error handling when hash not returned
17396         * lib/af_alg.c (afalg_stream): Handle the case where we've
17397         successfully written data to the kernel in the read/write loop,
17398         but the kernel doesn't respond with the hash.
17400 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17402         libc-config: merge from glibc
17403         * lib/cdefs.h (__inline, __restrict):
17404         Copy from current glibc.  This fixes glibc bug 17721,
17405         which Gnulib had already fixed in a different way.
17406         (__nonnull): Lessen the distance from glibc by using the
17407         glibc definition inside an ‘#ifndef __nonnull’.
17408         (__attribute_nonstring__): New macro, copied from
17409         current glibc.
17410         * lib/libc-config.h (__attribute_nonstring__): New undef.
17411         (__restrict): Remove; workaround no longer needed.
17412         Keep the __inline workaround, though, as it uses HAVE___INLINE to
17413         support more compilers than the glibc __inline can.
17415 2018-06-24  Bruno Haible  <bruno@clisp.org>
17417         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
17418         * lib/mbrtowc.c (enc_t): New enum type.
17419         (locale_enc, locale_enc_cached): New functions.
17420         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
17421         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
17422         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
17423         instead.
17424         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
17425         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
17426         * modules/wcwidth (configure.ac): Invoke it.
17428 2018-06-24  Bruno Haible  <bruno@clisp.org>
17430         wchar-single: Fix test failure in wcwidth tests.
17431         * tests/test-wcwidth.c (main): If the wchar-single module is present,
17432         skip the tests in the C locale.
17434 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17436         crypto: mention --without-linux-crypto in --with-openssl --help
17437         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
17438         routines take precedence in --with-openssl help output.
17440 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17442         wchar-single: a new module to enable optimizations in wchar replacements
17443         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
17444         GNULIB_WCHAR_SINGLE is enabled.
17445         * lib/wcwidth.c (wcwidth): Likewise.
17447 2018-06-23  Bruno Haible  <bruno@clisp.org>
17449         libc-config: Fix conflict with FreeBSD include files.
17450         * lib/cdefs.h (__nonnull): Remove definition.
17451         * lib/libc-config.h (__nonnull): Remove undefinition.
17453 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
17455         random_r: do not crash if state is unaligned
17456         Problem reported by Bruce Korb in:
17457         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
17458         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
17459         with 'cc -O2 -xmemalign=8s'.
17460         * lib/random_r.c: Include string.h, for memcpy.
17461         (get_int32, set_int32): New functions.
17462         (__srandom_r, __initstate_r, __setstate_r, __random_r):
17463         Use them to avoid assumption that state pointer is aligned.
17464         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
17465         * tests/test-random_r.c (test_failed): New function.
17466         (main): Use it, to test for alignment bugs.
17468         random_r: omit unnecessary include
17469         * lib/random_r.c: Do not include limits.h.
17471         random, random_r: merge from glibc
17472         * lib/random.c, lib/random_r.c:
17473         Include libc-config.h if !_LIBC, not config.h unilaterally.
17474         * lib/random.c:
17475         Do not include stdint.h or time.h; not needed.
17476         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
17477         (unsafe_state): Rename from generator.  All uses changed.
17478         Use C99-style initializers.
17479         (__random, __srandom, __initstate, __setstate): Rename from
17480         non-underscored version, but define it to non-underscored version
17481         on Gnulib.  Add a lock.
17482         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
17483         Likewise.
17484         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
17485         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
17486         (__srandom_r): Use int32_t instead of long int where int32_t will do.
17487         (__random_r): Use uint32 to fix glibc bug 17343.
17488         * modules/random, modules/random_r (Depends-on): Add libc-config.
17489         Depend on stdint only if $HAVE_RANDOM = 0.
17491 2018-06-19  Jim Meyering  <meyering@fb.com>
17493         README-release: also run any check-very-expensive tests
17494         * top/README-release: Adjust instructions so they run the
17495         check-very-expensive tests when there is such a target.
17497 2018-06-18  Bruno Haible  <bruno@clisp.org>
17499         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
17500         * m4/pthread_rwlock_rdlock.m4: Add comment.
17501         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
17502         are reader-preferring in glibc.
17503         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
17504         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
17506 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17508         crypto: use byteswap
17509         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
17510         * lib/sm3.c: Include <byteswap.h>.
17511         (SWAP): Use its macros rather than reinventing the wheel.
17512         * modules/crypto/md4, modules/crypto/md5-buffer:
17513         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
17514         * modules/crypto/sha512-buffer, modules/crypto/sm3:
17515         (Depends-on): Add byteswap.
17517 2018-06-17  Pádraig Brady  <P@draigBrady.com>
17519         gendocs.sh: fix support for legacy --texi2html
17520         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
17521         to the default makeinfo invocation.
17522         Reported by Bruce Korb
17524 2018-06-17  Bruno Haible  <bruno@clisp.org>
17526         gettext po infrastructure: Update from current gettext git.
17527         Reported by Akim Demaille <akim@lrde.epita.fr>.
17528         * build-aux/po/Makefile.in.in: Update from current gettext git.
17529         * build-aux/po/remove-potcdate.sin: Likewise.
17530         * config/srclist.txt: Temporarily disable sync for these files.
17532 2018-06-17  Bruno Haible  <bruno@clisp.org>
17534         getloadavg: Return 0 on Windows without Cygwin.
17535         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
17537 2018-06-17  Paul Smith  <psmith@gnu.org>
17539         getloadavg: Allow building on Windows without Cygwin
17540         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
17541         * m4/getloadavg.m4: Check for unistd.h.
17543 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
17545         Port crypto/af_alg to GCC 4.8.4
17546         Problem reported by Peter Simons in:
17547         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
17548         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
17550 2018-05-27  Colin Watson  <cjwatson@debian.org>
17552         bootstrap: document source fetching in --help
17553         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
17555 2018-04-09  Colin Watson  <cjwatson@debian.org>
17557         bootstrap: allow non-submodule control of gnulib
17558         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
17559         bootstrap.conf when fetching gnulib using "git clone" or via
17560         GNULIB_SRCDIR.
17562 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17564         crypto: omit stream ops Emacs doesn’t need
17565         * lib/md5.c (md5_stream):
17566         * lib/sha1.c (sha1_stream):
17567         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
17568         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
17569         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
17570         defined.  Emacs needs this, as it does not use the stream
17571         operations and doesn’t need all the af_alg stuff we’ve recently
17572         added.  Perhaps a similar change is needed to the other crypto
17573         modules, but this patch changes only those needed for Emacs.
17574         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
17575         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
17576         New modules, used by Emacs.
17577         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
17578         * modules/crypto/sha512: Rewrite to depend on the new modules.
17580 2018-05-20  Pádraig Brady  <P@draigBrady.com>
17582         fts: avoid a memory leak edge case
17583         * lib/fts.c (fts_open): Set an appropriate fts_level
17584         so that an immediate fts_close() will free the allocation.
17585         * tests/test-fts.c (fts_dealloc): Add a test case which
17586         will trigger under valgrind or address sanitizer.
17587         Fixes https://bugs.gnu.org/31439
17589 2018-05-20  Bruno Haible  <bruno@clisp.org>
17591         wcwidth tests: Fix link error.
17592         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
17593         $(LIBUNISTRING).
17595 2018-05-20  Bruno Haible  <bruno@clisp.org>
17597         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
17598         * modules/regex (Files): Add m4/glibc21.m4.
17600 2018-05-20  Bruno Haible  <bruno@clisp.org>
17602         localcharset: Optimize.
17603         * lib/localcharset.c (alias_table): Comment out no-op mappings for
17604         platforms where these don't matter. This reduces the table size,
17605         which in turn reduces the lookup time.
17607 2018-05-19  Bruno Haible  <bruno@clisp.org>
17609         localcharset: Map the locale encodings found in newer OSes.
17610         * lib/localcharset.c (alias_table): Add mapping for locale encodings
17611         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
17612         IRIX 6.5, Minix 3.3.
17613         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
17615 2018-05-19  Bruno Haible  <bruno@clisp.org>
17617         localcharset: Move mapping tables into the code. Use a binary search.
17618         * lib/localcharset.h: Document the GNU canonical names for character
17619         encodings here.
17620         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
17621         relocatable.h, configmake.h.
17622         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
17623         macros.
17624         (charset_aliases): Remove variable.
17625         (get_charset_aliases): Remove function.
17626         (struct table_entry): New type.
17627         (alias_table, locale_table): New constants.
17628         (locale_charset): Use the alias_table or locale_table to get the
17629         canonicalized encoding name.
17630         * lib/config.charset: Remove file.
17631         * lib/ref-add.sin: Remove file.
17632         * lib/ref-del.sin: Remove file.
17633         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
17634         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
17635         * modules/localcharset (Notice): Remove.
17636         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
17637         glibc21.m4.
17638         (Depends-on): Remove configmake.
17639         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
17640         (Makefile.am): Simplify.
17641         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
17643 2018-05-19  Bruno Haible  <bruno@clisp.org>
17645         localcharset: Add a manual test.
17646         * tests/test-localcharset.c: New file.
17647         * modules/localcharset-tests: New file.
17649 2018-05-19  Bruno Haible  <bruno@clisp.org>
17651         localcharset: Remove support for obsolete platforms.
17652         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
17653         Mac OS X 10.2. Comment out dubious entry for Solaris.
17655 2018-05-19  Jim Meyering  <meyering@fb.com>
17657         gnupload: adjust comment
17658         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
17659         more likely we'll remove the just-added code in a year or two.
17661 2018-05-19  Bruno Haible  <bruno@clisp.org>
17663         gnupload: Fix "gpg-agent is not available in this session" error.
17664         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
17666 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17668         crypto/af_alg: fix --help
17669         * m4/af_alg.m4: Avoid spurious newline in --help output.
17671 2018-05-13  Bruno Haible  <bruno@clisp.org>
17673         nl_langinfo: Fix compilation error on Android.
17674         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
17675         INT_CURR_SYMBOL, etc. only if these items are defined.
17677 2018-05-13  Bruno Haible  <bruno@clisp.org>
17679         truncate: Fix compilation error on Android.
17680         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
17681         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
17682         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
17683         HAVE_TRUNCATE.
17684         * modules/truncate: Likewise.
17685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
17686         not HAVE_TRUNCATE.
17687         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
17688         HAVE_TRUNCATE.
17689         * doc/posix-functions/truncate.texi: Mention the issue.
17691 2018-05-13  Bruno Haible  <bruno@clisp.org>
17693         pthread: Fix compilation error on Android.
17694         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
17695         recursive inclusion of this file.
17697 2018-05-13  Bruno Haible  <bruno@clisp.org>
17699         posix_spawn: Fix compilation error on Android.
17700         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
17701         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
17702         (posix_spawn_file_actions_t): Consider also the case
17703         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
17705 2018-05-13  Bruno Haible  <bruno@clisp.org>
17707         tsearch: Move from K&R C to ANSI C.
17708         * lib/tsearch.c (tfind): Convert definition to ANSI C.
17710 2018-05-13  Bruno Haible  <bruno@clisp.org>
17712         tsearch: Fix compilation error on Android.
17713         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
17714         is 0.
17715         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
17716         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
17717         GNULIB_defined_tsearch is true.
17718         (twalk): Define only if GNULIB_defined_twalk is true.
17719         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
17720         is 0.
17721         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
17722         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
17723         * modules/search (Makefile.am): Substitute HAVE_TWALK.
17725 2018-05-13  Bruno Haible  <bruno@clisp.org>
17727         imaxdiv: Fix compilation error on Android.
17728         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
17729         is not defined.
17730         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
17731         HAVE_DECL_IMAXDIV, is 0.
17732         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
17733         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
17735 2018-05-13  Bruno Haible  <bruno@clisp.org>
17737         Support selective inclusion mechanism of recent mingw.org header files.
17738         Reported by Eli Zaretskii <eliz@gnu.org>.
17739         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
17740         __need_ssize_t, or __need_time_t is defined, just include the system's
17741         <sys/types.h>.
17742         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
17743         include the system's <locale.h>.
17745 2018-05-13  Bruno Haible  <bruno@clisp.org>
17747         Avoid compilation error due to 'mmap' on Android.
17748         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
17749         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
17750         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
17751         Undefine on Android.
17753 2018-05-13  Bruno Haible  <bruno@clisp.org>
17755         Add cross-compilation guesses for Linux systems without glibc.
17756         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
17757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
17758         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17759         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17760         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
17761         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
17762         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17763         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17764         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
17765         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
17766         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17767         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17768         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17769         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17770         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17771         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17772         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17773         * m4/utimens.m4 (gl_UTIMENS): Likewise.
17775 2018-05-13  Bruno Haible  <bruno@clisp.org>
17777         getpagesize: Fix compilation error on Android.
17778         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
17779         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
17780         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
17781         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
17782         HAVE_GETPAGESIZE accordingly.
17783         * modules/getcwd (Files): Add m4/getpagesize.m4.
17785 2018-05-13  Bruno Haible  <bruno@clisp.org>
17787         tcgetsid: Fix compilation error on Android.
17788         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
17789         AC_CHECK_FUNC.
17791 2018-05-13  Bruno Haible  <bruno@clisp.org>
17793         getpass: Fix configure test for Android.
17794         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
17795         AC_CHECK_FUNC.
17797 2018-05-13  Bruno Haible  <bruno@clisp.org>
17799         ffs: Fix compilation error on Android.
17800         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
17802 2018-05-13  Bruno Haible  <bruno@clisp.org>
17804         mkfifo: Fix compilation error on Android.
17805         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
17806         AC_CHECK_FUNC.
17808 2018-05-13  Bruno Haible  <bruno@clisp.org>
17810         c-strtod: Fix configure test for Android.
17811         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
17812         AC_CHECK_FUNC.
17814 2018-05-13  Bruno Haible  <bruno@clisp.org>
17816         random: Fix compilation error on Android.
17817         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
17818         AC_CHECK_FUNC.
17820 2018-05-13  Bruno Haible  <bruno@clisp.org>
17822         grantpt: Fix compilation error on Android.
17823         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
17824         AC_CHECK_FUNC.
17826 2018-05-13  Bruno Haible  <bruno@clisp.org>
17828         stdioext: Fix compilation errors with newer Android headers.
17829         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
17830         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
17831         fallbacks for Android.
17832         * lib/fpending.c: Update comments.
17833         * lib/fpurge.c: Likewise.
17834         * lib/freadable.h: Likewise.
17835         * lib/freadable.c: Likewise.
17836         * lib/freadahead.c: Likewise.
17837         * lib/freading.h: Likewise.
17838         * lib/freadptr.c: Likewise.
17839         * lib/fseterr.c: Likewise.
17840         * lib/fwritable.h: Likewise.
17841         * lib/fwritable.c: Likewise.
17842         * lib/fwriting.h: Likewise.
17843         * lib/fwriting.c: Likewise.
17845 2018-05-13  Bruno Haible  <bruno@clisp.org>
17847         doc: Add info about Android versions 2.0 to 8.1.
17848         * doc/**/*.texi: Add info about functions in all released versions of
17849         Bionic.
17851 2018-05-12  Bruno Haible  <bruno@clisp.org>
17853         fseeko: On mingw, don't use the hidden function _fseeki64.
17854         Reported by Eli Zaretskii <eliz@gnu.org>.
17855         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
17856         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
17858 2018-05-12  Bruno Haible  <bruno@clisp.org>
17860         glob: Choose 'dirent_type' in a way that works better on mingw.
17861         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
17862         * lib/glob.c (dirent_type): Define as uint_fast32_t.
17864 2018-05-12  Bruno Haible  <bruno@clisp.org>
17866         execute, spawn-pipe: Avoid warning about redefining 'close'.
17867         Reported by Eli Zaretskii <eliz@gnu.org>.
17868         * lib/execute.c: Undefine 'close' before redefining it.
17869         * lib/spawn-pipe.c: Likewise.
17871 2018-05-12  Bruno Haible  <bruno@clisp.org>
17873         nanosleep: Avoid test failure on mingw when it has nanosleep.
17874         Reported by Eli Zaretskii <eliz@gnu.org>.
17875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
17876         If it does not exist, use a simpler test program that does not call
17877         alarm().
17879 2018-05-10  Bruno Haible  <bruno@clisp.org>
17881         lock, cond, thread, tls: Use a different symbol as libpthread witness.
17882         Reported by Devin Hussey <husseydevin@gmail.com>.
17883         Based on a patch by Paul Eggert.
17884         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
17885         as witness of libpthread.
17886         * lib/glthread/cond.h (pthread_in_use): Likewise.
17887         * lib/glthread/thread.h (pthread_in_use): Likewise.
17888         * lib/glthread/tls.h (pthread_in_use): Likewise.
17890 2018-05-10  Bruno Haible  <bruno@clisp.org>
17892         cond tests: Fix compilation error on Solaris.
17893         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
17894         macro.
17896 2018-05-10  Bruno Haible  <bruno@clisp.org>
17898         doc: Add partial info about Android 4.3.
17899         * doc/*-functions/*.texi: Add info about functions that were added
17900         to Bionic between Android 4.3 and Android 9.0.
17902 2018-05-10  Bruno Haible  <bruno@clisp.org>
17904         doc: Add info about Android 9.0.
17905         * doc/**/*.texi: Add info about functions and headers in Bionic from
17906         Android 9.0.
17908 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
17910         af_alg: fix my typo in afalg_buffer
17911         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
17912         (afalg_stream): Simplify and avoid the need for a runtime test
17913         at the end.
17915         af_alg: recover better from crypto failures
17916         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
17917         input stream is seekable, by repositioning the stream back to
17918         where it was, possibly by just calling sendfile with an offset
17919         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
17920         cases, which lets our callers try again with user-mode code.
17921         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
17922         instead of on fflush and lseek.
17924         af_alg: distiguish I/O errors better
17925         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
17926         not -EIO, if it’s OK for the caller to try again with user-mode code.
17927         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
17928         some other error number) if fflush fails, as the caller should not
17929         try again that case.
17931         af_alg: avoid gotos
17932         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
17933         gotos, as they were a source of unreliability and made the code a
17934         bit harder to follow.
17936         af_alg: don’t leak file descriptors into children
17937         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
17938         This code should be compiled only on recent GNU/Linux platforms
17939         so we shouldn’t have to also depend on the accept4 module.
17941         af_alg: coalesce socket creation
17942         * lib/af_alg.c (alg_socket): New function.
17943         (afalg_buffer, afalg_stream): Use it.  This avoids some
17944         code duplication and gotos.
17946         af_alg: fix file descriptor leak
17947         * lib/af_alg.c (afalg_stream): Close leak.
17949         af_alg: Pacify --enable-gcc-warnings on GCC 8
17950         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
17951         and checking to pacify gcc -Wjump-misses-init on GCC 8.
17953 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17955         af_alg: Pacify --enable-gcc-warnings
17956         Problem reported by Assaf Gordon in:
17957         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
17958         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
17959         gcc -Wjump-misses-init.
17960         * lib/sha512.c (shaxxx_stream): Now static.
17962 2018-05-06  Bruno Haible  <bruno@clisp.org>
17964         af_alg: Add ability to use Linux kernel crypto API on data in memory.
17965         * lib/af_alg.h (afalg_buffer): New declaration.
17966         * lib/af_alg.c (afalg_buffer): New function.
17968 2018-05-06  Bruno Haible  <bruno@clisp.org>
17970         af_alg: Avoid warnings.
17971         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
17972         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
17974 2018-05-06  Bruno Haible  <bruno@clisp.org>
17976         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
17977         * tests/bench-digest.h: New file.
17978         * tests/bench-md5.c: New file.
17979         * tests/bench-sha1.c: New file.
17980         * tests/bench-sha224.c: New file.
17981         * tests/bench-sha256.c: New file.
17982         * tests/bench-sha384.c: New file.
17983         * tests/bench-sha512.c: New file.
17984         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
17985         tests/bench-digest.h.
17986         (Depends-on): Add getrusage, gettimeofday.
17987         (Makefile.am): Add variables to build bench-md5.
17988         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
17989         tests/bench-digest.h.
17990         (Depends-on): Add getrusage, gettimeofday.
17991         (Makefile.am): Add variables to build bench-sha1.
17992         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
17993         tests/bench-sha256.c, tests/bench-digest.h.
17994         (Depends-on): Add getrusage, gettimeofday.
17995         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
17996         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
17997         tests/bench-sha512.c, tests/bench-digest.h.
17998         (Depends-on): Add getrusage, gettimeofday.
17999         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
18001 2018-05-06  Bruno Haible  <bruno@clisp.org>
18003         af_alg: Fix a resource leak.
18004         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
18005         New local variable 'result'.
18007 2018-05-06  Bruno Haible  <bruno@clisp.org>
18009         af_alg: Fix bug with streams that are not at position 0.
18010         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
18011         assume that the stream is positioned at position 0.
18012         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
18013         of the stream.
18014         * lib/md5.h (md5_stream): Likewise.
18015         * lib/sha1.h (sha1_stream): Likewise.
18016         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
18017         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
18018         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
18020         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
18021         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
18022         stream that is not positioned at the beginning.
18024 2018-05-06  Bruno Haible  <bruno@clisp.org>
18026         af_alg: Add configure option to enable/disable use of Linux crypto API.
18027         Suggested by Assaf Gordon <assafgordon@gmail.com>.
18028         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
18029         USE_LINUX_CRYPTO_API.
18030         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
18031         * lib/af_alg.c: Likewise.
18033 2018-05-06  Bruno Haible  <bruno@clisp.org>
18035         Followup to 'af_alg: New module.'.
18036         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
18037         * modules/crypto/sha1 (Depends-on): Likewise.
18038         * modules/crypto/sha256 (Depends-on): Likewise.
18039         * modules/crypto/sha512 (Depends-on): Likewise.
18041 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18043         crypto/{md5,sha1,sha256,sha512}: simplify
18044         * lib/md5.c (md5_stream):
18045         * lib/sha1.c (sha1_stream):
18046         * lib/sha256.c (shaxxx_stream):
18047         Simplify, partly by assuming C99.
18048         * lib/sha256.c (shaxxx_stream):
18049         New function, which implements both sha256 and sha224.
18050         Simplify, partly by assuming C99.
18051         (sha256_stream, sha224_stream):
18052         Use it to avoid code duplication, removing a FIXME.
18053         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18054         Likewise.
18056         af_alg: Improve comments.
18057         * lib/af_alg.h: Use imperatives and tighten up wording.
18059 2018-05-05  Bruno Haible  <bruno@clisp.org>
18061         af_alg: Improve comments.
18062         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
18064 2018-05-05  Bruno Haible  <bruno@clisp.org>
18066         af_alg: New module.
18067         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
18068         * lib/af_alg.c: Include "af_alg.h" before the other header files.
18069         * lib/md5.c: Include "af_alg.h" unconditionally.
18070         (md5_stream): Invoke afalg_stream unconditionally.
18071         * lib/sha1.c: Include "af_alg.h" unconditionally.
18072         (sha1_stream): Invoke afalg_stream unconditionally.
18073         * lib/sha256.c: Include "af_alg.h" unconditionally.
18074         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
18075         * lib/sha512.c: Include "af_alg.h" unconditionally.
18076         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
18077         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
18078         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
18079         * modules/crypto/af_alg: New file.
18080         * modules/crypto/md5 (Files): Remove files that are now in the
18081         'crypto/af_alg' module.
18082         (Depends-on): Add crypto/af_alg.
18083         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18084         (Makefile.am): Don't mention af_alg.c here.
18085         * modules/crypto/sha1 (Files): Remove files that are now in the
18086         'crypto/af_alg' module.
18087         (Depends-on): Add crypto/af_alg.
18088         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18089         (Makefile.am): Don't mention af_alg.c here.
18090         * modules/crypto/sha256 (Files): Remove files that are now in the
18091         'crypto/af_alg' module.
18092         (Depends-on): Add crypto/af_alg.
18093         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18094         (Makefile.am): Don't mention af_alg.c here.
18095         * modules/crypto/sha512 (Files): Remove files that are now in the
18096         'crypto/af_alg' module.
18097         (Depends-on): Add crypto/af_alg.
18098         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18099         (Makefile.am): Don't mention af_alg.c here.
18101 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18103         crypto tests: pacify GCC
18104         * tests/test-digest.h (test_digest_on_files):
18105         Don’t assume digest size fits in int (!).
18107         af_alg: minor style improvements
18108         * lib/af_alg.c (afalg_stream): Prefer C99 style
18109         decl-after-statement, since we’re already assuming C99.  Clarify
18110         by strengthening the bind test and omit unnecessary assignment.
18112 2018-05-05  Bruno Haible  <bruno@clisp.org>
18114         af_alg: Fix bug on empty files.
18115         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
18116         stream is empty.
18118 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18120         sys-limits.h: new file for crypto and safe I/O
18121         * lib/af_alg.c: Include sys-limits.h.
18122         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
18123         (afalg_stream): Also reject negative sizes for sendfile; they
18124         should not happen and the code is a bit cleaner and faster this way.
18125         * lib/safe-read.c: Include sys-limits.h.
18126         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
18127         * lib/sys-limits.h: New file, with values and commentary derived
18128         from the old safe-read.c and from GNU Emacs sysdep.c.
18129         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18130         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
18131         Add lib/sys-limits.h to Files section.
18133 2018-05-05  Bruno Haible  <bruno@clisp.org>
18135         af_alg: Improve function signature.
18136         * lib/af_alg.h (afalg_stream): Swap second and third argument.
18137         * lib/af_alg.c (afalg_stream): Likewise.
18138         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
18140 2018-05-05  Bruno Haible  <bruno@clisp.org>
18142         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
18143         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
18144         * modules/crypto/sha1 (Depends-on): Likewise.
18145         * modules/crypto/sha256 (Depends-on): Likewise.
18146         * modules/crypto/sha512 (Depends-on): Likewise.
18148 2018-05-05  Bruno Haible  <bruno@clisp.org>
18150         crypto/{md5,sha1,sha256,sha512}: Fix module description.
18151         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
18152         * modules/crypto/sha1 (Depends-on): Likewise.
18153         * modules/crypto/sha256 (Depends-on): Likewise.
18154         * modules/crypto/sha512 (Depends-on): Likewise.
18156 2018-05-05  Bruno Haible  <bruno@clisp.org>
18158         af_alg: Add documentation.
18159         * lib/af_alg.h: Add comments.
18161 2018-05-05  Bruno Haible  <bruno@clisp.org>
18163         sha512: Add tests.
18164         * tests/test-sha512.c: New file.
18165         * modules/crypto/sha512-tests: New file.
18167 2018-05-05  Bruno Haible  <bruno@clisp.org>
18169         sha256: Add tests.
18170         * tests/test-sha256.c: New file.
18171         * modules/crypto/sha256-tests: New file.
18173 2018-05-05  Bruno Haible  <bruno@clisp.org>
18175         sha1 tests: Add test for sha1_stream.
18176         * tests/test-sha1.c: Include test-digest.h.
18177         (main): Invoke test_digest_on_files on 'sha1_stream'.
18178         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
18180 2018-05-05  Bruno Haible  <bruno@clisp.org>
18182         md5 tests: Add test for md5_stream.
18183         * tests/test-digest.h: New file.
18184         * tests/test-md5.c: Include test-digest.h.
18185         (main): Invoke test_digest_on_files on 'md5_stream'.
18186         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
18188 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18190         md5sum: Use AF_ALG when available.
18191         * lib/md5.c: Include af_alg.h.
18192         (md5_stream): Use afalg_stream when available.
18193         * modules/crypto/md5 (Files): Add the af_alg files.
18194         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18195         (Makefile.am): Add af_alg.c.
18197 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18199         sha512sum: Use AF_ALG when available.
18200         * lib/sha512.c: Include af_alg.h.
18201         (sha512_stream, sha384_stream): Use afalg_stream when available.
18202         * modules/crypto/sha512 (Files): Add the af_alg files.
18203         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18204         (Makefile.am): Add af_alg.c.
18206 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18208         sha256sum: Use AF_ALG when available.
18209         * lib/sha256.c: Include af_alg.h.
18210         (sha256_stream, sha224_stream): Use afalg_stream when available.
18211         * modules/crypto/sha256 (Files): Add the af_alg files.
18212         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18213         (Makefile.am): Add af_alg.c.
18215 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18217         sha1sum: Use AF_ALG when available.
18218         * lib/af_alg.h: New file.
18219         * lib/af_alg.c: New file.
18220         * lib/sha1.c: Include af_alg.h.
18221         (sha1_stream): Use afalg_stream when available.
18222         * m4/linux-if-alg.m4: New file.
18223         * modules/crypto/sha1 (Files): Add the new files.
18224         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18225         (Makefile.am): Add af_alg.c.
18227 2018-05-05  Bruno Haible  <bruno@clisp.org>
18229         all: Replace more http URLs by https URLs.
18230         * lib/localename.c: Use https: URL.
18231         * lib/timespec.h: Likewise.
18233 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
18235         maint: port more modules to GCC 8
18236         * lib/dirname.h (base_name):
18237         * lib/exclude.h (new_exclude):
18238         * lib/xstrndup.h (xstrndup):
18239         Add malloc attribute.
18240         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
18241         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
18242         This pacifies GCC 8.
18243         * m4/gnulib-common.m4 (gl_COMMON_BODY):
18244         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
18246 2018-05-03  Bruno Haible  <bruno@clisp.org>
18248         Simplify code. Drop support for Borland C++ on Windows.
18249         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
18250         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
18251         'defined _WIN32'.
18252         * lib/canonicalize-lgpl.c: Likewise.
18253         * lib/classpath.c: Likewise.
18254         * lib/clean-temp.c: Likewise.
18255         * lib/csharpexec.c: Likewise.
18256         * lib/ctime.c: Likewise.
18257         * lib/dosname.h: Likewise.
18258         * lib/dup2.c: Likewise.
18259         * lib/errno.in.h: Likewise.
18260         * lib/error.c: Likewise.
18261         * lib/euidaccess.c: Likewise.
18262         * lib/execute.c: Likewise.
18263         * lib/fcntl.in.h: Likewise.
18264         * lib/fcntl.c: Likewise.
18265         * lib/filename.h: Likewise.
18266         * lib/findprog.c: Likewise.
18267         * lib/flock.c: Likewise.
18268         * lib/fopen.c: Likewise.
18269         * lib/freopen.c: Likewise.
18270         * lib/fstat.c: Likewise.
18271         * lib/fsync.c: Likewise.
18272         * lib/gc-gnulib.c: Likewise.
18273         * lib/get-rusage-data.c: Likewise.
18274         * lib/getaddrinfo.c: Likewise.
18275         * lib/getdelim.c: Likewise.
18276         * lib/getdtablesize.c: Likewise.
18277         * lib/gethostname.c: Likewise.
18278         * lib/getlogin.c: Likewise.
18279         * lib/getlogin_r.c: Likewise.
18280         * lib/getopt.c: Likewise.
18281         * lib/getpagesize.c: Likewise.
18282         * lib/getpass.c: Likewise.
18283         * lib/getrusage.c: Likewise.
18284         * lib/gettimeofday.c: Likewise.
18285         * lib/glob.c: Likewise.
18286         * lib/inttypes.in.h: Likewise.
18287         * lib/isapipe.c: Likewise.
18288         * lib/javaexec.c: Likewise.
18289         * lib/link.c: Likewise.
18290         * lib/localcharset.c: Likewise.
18291         * lib/localename.h: Likewise.
18292         * lib/localename.c: Likewise.
18293         * lib/localtime.c: Likewise.
18294         * lib/lseek.c: Likewise.
18295         * lib/mbsinit.c: Likewise.
18296         * lib/mkdir.c: Likewise.
18297         * lib/msvc-nothrow.h: Likewise.
18298         * lib/nanosleep.c: Likewise.
18299         * lib/nl_langinfo.c: Likewise.
18300         * lib/nonblocking.c: Likewise.
18301         * lib/nproc.c: Likewise.
18302         * lib/open.c: Likewise.
18303         * lib/openpty.c: Likewise.
18304         * lib/pathmax.h: Likewise.
18305         * lib/pipe-filter-aux.c: Likewise.
18306         * lib/pipe-filter-gi.c: Likewise.
18307         * lib/pipe-filter-ii.c: Likewise.
18308         * lib/pipe.c: Likewise.
18309         * lib/pipe2.c: Likewise.
18310         * lib/poll.c: Likewise.
18311         * lib/popen.c: Likewise.
18312         * lib/posix_openpt.c: Likewise.
18313         * lib/printf-parse.c: Likewise.
18314         * lib/progreloc.c: Likewise.
18315         * lib/putenv.c: Likewise.
18316         * lib/read.c: Likewise.
18317         * lib/relocatable.c: Likewise.
18318         * lib/rename.c: Likewise.
18319         * lib/same-inode.h: Likewise.
18320         * lib/secure_getenv.c: Likewise.
18321         * lib/select.c: Likewise.
18322         * lib/sethostname.c: Likewise.
18323         * lib/setlocale.c: Likewise.
18324         * lib/sigaction.c: Likewise.
18325         * lib/sigprocmask.c: Likewise.
18326         * lib/sleep.c: Likewise.
18327         * lib/spawn-pipe.h: Likewise.
18328         * lib/spawn-pipe.c: Likewise.
18329         * lib/spawni.c: Likewise.
18330         * lib/stat-time.h: Likewise.
18331         * lib/stat-w32.c: Likewise.
18332         * lib/stat.c: Likewise.
18333         * lib/stdio.in.h: Likewise.
18334         * lib/stdio-impl.h: Likewise.
18335         * lib/stdio-read.c: Likewise.
18336         * lib/stdio-write.c: Likewise.
18337         * lib/stdlib.in.h: Likewise.
18338         * lib/strerror_r.c: Likewise.
18339         * lib/strftime-fixes.c: Likewise.
18340         * lib/sys_stat.in.h: Likewise.
18341         * lib/sys_types.in.h: Likewise.
18342         * lib/sys_wait.in.h : Likewise.
18343         * lib/system-quote.h: Likewise.
18344         * lib/system-quote.c: Likewise.
18345         * lib/tmpdir.c: Likewise.
18346         * lib/tzset.c: Likewise.
18347         * lib/uname.c: Likewise.
18348         * lib/unistd.in.h: Likewise.
18349         * lib/utime.in.h: Likewise.
18350         * lib/utime.c: Likewise.
18351         * lib/utimecmp.c: Likewise.
18352         * lib/utimens.c: Likewise.
18353         * lib/vasnprintf.c: Likewise.
18354         * lib/vma-iter.h: Likewise.
18355         * lib/vma-iter.c: Likewise.
18356         * lib/wait-process.c: Likewise.
18357         * lib/wcsftime.c: Likewise.
18358         * lib/wctype.in.h: Likewise.
18359         * lib/write.c: Likewise.
18360         * tests/nap.h: Likewise.
18361         * tests/test-cloexec.c: Likewise.
18362         * tests/test-dup-safer.c: Likewise.
18363         * tests/test-dup2.c: Likewise.
18364         * tests/test-dup3.c: Likewise.
18365         * tests/test-fcntl.c: Likewise.
18366         * tests/test-get-rusage-data.c: Likewise.
18367         * tests/test-getaddrinfo.c: Likewise.
18368         * tests/test-getlogin.h: Likewise.
18369         * tests/test-isatty.c: Likewise.
18370         * tests/test-localename.c: Likewise.
18371         * tests/test-mbrtowc-w32.c: Likewise.
18372         * tests/test-nonblocking.c: Likewise.
18373         * tests/test-nonblocking-pipe-main.c: Likewise.
18374         * tests/test-nonblocking-socket-main.c: Likewise.
18375         * tests/test-nonblocking-socket.h: Likewise.
18376         * tests/test-pipe.c: Likewise.
18377         * tests/test-pipe2.c: Likewise.
18378         * tests/test-poll.c: Likewise.
18379         * tests/test-pthread_sigmask1.c: Likewise.
18380         * tests/test-select.h: Likewise.
18381         * tests/test-sethostname2.c: Likewise.
18382         * tests/test-sigprocmask.c: Likewise.
18383         * tests/test-spawn-pipe-child.c: Likewise.
18384         * tests/test-stat-time.c: Likewise.
18385         * tests/test-system-quote-main.c: Likewise.
18386         * tests/test-utimens-common.h: Likewise.
18387         * tests/test-wcrtomb-w32.c: Likewise.
18388         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18389         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18390         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
18391         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
18392         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
18393         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18394         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18395         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18396         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18397         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18398         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
18399         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
18400         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18401         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18402         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
18403         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18405 2018-05-02  Bruno Haible  <bruno@clisp.org>
18407         localename: Fix test failures on mingw.
18408         * lib/localename.c (gl_locale_name_thread): Remove code specific to
18409         native Windows.
18410         (gl_locale_name_posix): Move code specific to native Windows here.
18411         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
18412         Accept result without charset suffix, as it appears on mingw.
18414 2018-04-28  Paul Smith  <psmith@gnu.org>
18416         bootstrap: Avoid gnulib operations if not needed
18417         * build-aux/bootstrap: Remove unused variable gnulib_mk.
18418         Set $gnulib_extra_files early so it can be overridden in .conf.
18419         Remove redundant --import flag from $gnulib_tool_options.
18420         Set $use_gnulib to false if no gnulib modules or files are needed.
18421         If $use_gnulib is false, don't do anything related to gnulib.
18422         A lot of this is just whitespace (indentation) changes.
18424 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
18426         manywarnings: port to GCC 8.0
18427         * build-aux/gcc-warning.spec: Add -Wcatch-value,
18428         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
18429         fact that the GCC help message now mentions operands for
18430         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
18431         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
18432         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
18433         and -Wunused-const-variable.
18434         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
18435         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
18436         -Wmissing-attributes, -Wmultistatement-macros,
18437         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
18438         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
18440 2018-04-24  Bruno Haible  <bruno@clisp.org>
18442         sys_socket: Make SO_REUSEPORT available across platforms.
18443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18444         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
18445         * doc/posix-headers/sys_socket.texi: Mention the issue.
18446         * tests/test-poll.c (SO_REUSEPORT): Remove.
18447         * tests/test-select.h: Include <sys/socket.h>.
18448         (SO_REUSEPORT): Remove.
18449         * modules/select-tests (Depends-on): Add 'sys_socket'.
18451 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
18453         localcharset: short-circuit the search for an alias on a Mac
18454         * lib/localcharset.c (get_charset_aliases): Add a tautological
18455         UTF-8 entry to speed up the search for this case.
18456         Most machines default to a UTF-8 locale nowadays, so begin the
18457         list of aliases with a dummy UTF-8 entry so it will be found
18458         immediately and a time-consuming search through the rest of
18459         the list is avoided.
18461 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
18463         fts: add comment
18464         * lib/fts.c (fts_build): Explain why ==, not >.
18465         See remark by Bernhard Voelker in:
18466         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
18468         fts: fix bug in find across filesystems
18469         This fixes a bug I introduced last summer.
18470         Problem reported by Kamil Dudka in:
18471         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
18472         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
18473         (leaf_optimization):
18474         New arg for file descriptor.  All callers changed.
18475         (fts_build): Check for whether inodes should be sorted
18476         before closing the directory.
18478 2018-04-07  Bruno Haible  <bruno@clisp.org>
18480         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
18481         Reported by Genki Sky <sky@genki.is>.
18482         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
18483         version 0.9.10 or newer.
18484         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
18485         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
18486         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
18487         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
18488         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
18490 2018-04-07  Bruno Haible  <bruno@clisp.org>
18492         execute: Update comment.
18493         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
18495 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18497         fts: treat CIFS like NFS
18498         Problem reported by Kamil Dudka in:
18499         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
18500         * lib/fts.c (S_MAGIC_CIFS): New macro.
18501         (dirent_inode_sort_may_be_useful, leaf_optimization):
18502         Treat CIFS like NFS.
18504 2018-03-28  Bruno Haible  <bruno@clisp.org>
18506         c-stack: Fix possible build failure on some platforms.
18507         * lib/c-stack.c (die): Define whenever this function is referenced.
18509 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
18511         time_rz: fix workaround for Mac OS X 10.6 infloop
18512         Problems reported by Charles A. Roelli (Bug#27736#117).
18513         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
18514         Also, discard output, which clutters the 'configure' log.
18516 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
18518         havelib: port to Solaris 10 /bin/sh
18519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
18520         instead of '! test EXPR'.
18522 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
18524         time_rz: work around Mac OS X 10.6 infloop
18525         * doc/posix-functions/localtime.texi:
18526         * doc/posix-functions/localtime_r.texi: Mention the bug.
18527         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
18528         better to fix localtime and localtime_r instead, but that would be
18529         more work and is not needed to fix the Emacs problem.
18530         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
18532 2018-03-24  Jim Meyering  <meyering@fb.com>
18534         test-version-etc.sh: don't use diff directly: use init.sh's compare
18535         We'd rather not sacrifice readable "diff -u" output even for
18536         "diff -c" output (not supported by busybox) or for even less
18537         readable ed-style "diff" output.  So use init.sh's compare function
18538         * tests/test-version-etc.sh: Source init.sh and add "." to path.
18539         Remove "./" from invocation of test-version-etc, so we use path.
18540         And s/diff/compare/.
18541         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
18542         to get init.sh.
18543         Prompted by Eric Blake's comments in
18544         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
18546 2018-03-24  Bruno Haible  <bruno@clisp.org>
18548         javacomp-script, javacomp: Add support for Java 10.
18549         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
18550         target-version 10.
18551         * lib/javaversion.h: Update comments.
18552         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18553         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18554         TARGET_VERSION_BOUND, target_version_index,
18555         corresponding_classfile_version): Accept source_version 10 and
18556         target_version 10.
18557         * lib/javacomp.h: Update comments accordingly.
18559 2018-03-24  Bruno Haible  <bruno@clisp.org>
18561         javacomp-script, javacomp: Update comments.
18562         * m4/javacomp.m4: Update comments regarding gcj.
18563         * lib/javacomp.h: Likewise.
18565 2018-03-24  Bruno Haible  <bruno@clisp.org>
18567         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
18568         * lib/javaversion.h: Update comments.
18569         * lib/javacomp.h: Likewise.
18570         * lib/javacomp.c (default_target_version, source_version_index,
18571         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
18572         "1.9".
18573         (TARGET_VERSION_BOUND): Bump to 9.
18574         (target_version_index, corresponding_classfile_version): Recognize "9"
18575         instead of "1.9".
18576         (get_source_version_for_javac): New function.
18577         (is_envjavac_nongcj_usable, is_javac_usable): Add
18578         source_version_for_javac argument.
18579         (compile_java_class): Determine and pass source_version_for_javac.
18580         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
18581         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
18582         appropriate.
18584 2018-03-23  Jim Meyering  <meyering@fb.com>
18586         test-version-etc.sh: port to diff without -c
18587         * tests/test-version-etc.sh: Don't use diff's -c option.
18588         This caused spurious test failure on Alpine Linux, which
18589         uses busybox's diff. Reported by Assaf Gordon in
18590         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
18592 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
18594         c-stack: port to recent GCC build
18595         Problem reported by The Fireplace (Bug#30913).
18596         * lib/c-stack.c (die): Define only if used.
18598 2018-03-20  Bruno Haible  <bruno@clisp.org>
18600         euidaccess: Port to native Windows.
18601         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
18602         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
18604 2018-03-19  Bruno Haible  <bruno@clisp.org>
18606         javacomp: Add support for Java 7, 8, 9.
18607         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18608         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18609         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
18610         and target_version 1,7, 1.8, 1.9.
18611         * lib/javacomp.h: Update comments accordingly.
18613 2018-03-19  Bruno Haible  <bruno@clisp.org>
18615         javacomp-script: Add support for Java 9.
18616         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
18617         target-version 1.9.
18619 2018-03-16  Bruno Haible  <bruno@clisp.org>
18621         glob: Don't compile replacements on recent glibc systems.
18622         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
18623         REPLACE_GLOB is 0, include the system's <glob.h> and use
18624         _GL_CXXALIAS_SYS.
18625         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
18626         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
18627         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
18628         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
18629         Remove snippet/warn-on-use.
18630         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
18631         (Makefile.am): Create glob.h always. Update list of substitutions in
18632         glob.h. Don't depend on $(WARN_ON_USE_H).
18634 2018-03-16  Bruno Haible  <bruno@clisp.org>
18636         glob: Fix link error on native Windows.
18637         * modules/glob (Depends-on): Add 'lstat'.
18639 2018-03-15  Bruno Haible  <bruno@clisp.org>
18641         glob: Fix compilation error in C++ mode.
18642         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
18644 2018-03-15  Bruno Haible  <bruno@clisp.org>
18646         host-cpu-c-abi: Support for RISC-V CPU.
18647         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
18648         riscv32 and riscv64 ABIs.
18649         References:
18650         https://github.com/riscv/riscv-toolchain-conventions
18651         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
18652         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
18654 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18656         fflush: be more paranoid about libio.h change
18657         Suggested by Eli Zaretskii in:
18658         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
18659         * lib/fbufmode.c (fbufmode):
18660         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18661         (disable_seek_optimization, rpl_fflush):
18662         * lib/fpending.c (__fpending):
18663         * lib/fpurge.c (fpurge):
18664         * lib/freadable.c (freadable):
18665         * lib/freadahead.c (freadahead):
18666         * lib/freading.c (freading):
18667         * lib/freadptr.c (freadptr):
18668         * lib/freadseek.c (freadptrinc):
18669         * lib/fseeko.c (fseeko):
18670         * lib/fseterr.c (fseterr):
18671         * lib/fwritable.c (fwritable):
18672         * lib/fwriting.c (fwriting):
18673         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
18675 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
18677         maint: write-file-hooks -> before-save-hook
18678         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
18679         it's time to use the recommended replacement.
18680         Problem reported by Glenn Morris in:
18681         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
18682         * build-aux/announce-gen, build-aux/bootstrap:
18683         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
18684         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
18685         * build-aux/gnu-web-doc-update, build-aux/gnupload:
18686         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
18687         * build-aux/update-copyright, build-aux/useless-if-before-free:
18688         * build-aux/vc-list-files:
18689         Update hook usage for files where Gnulib is the canonical source.
18691 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
18693         binary-io: pacify gcc -Wunused-parameter
18694         Problem reported by Reuben Thomas in:
18695         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
18696         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
18697         Use _GL_UNUSED where appropriate.
18699         fflush: adjust to glibc 2.28 libio.h removal
18700         Problem reported by Daniel P. Berrangé in:
18701         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
18702         * lib/fbufmode.c (fbufmode):
18703         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18704         (disable_seek_optimization, rpl_fflush):
18705         * lib/fpending.c (__fpending):
18706         * lib/fpurge.c (fpurge):
18707         * lib/freadable.c (freadable):
18708         * lib/freadahead.c (freadahead):
18709         * lib/freading.c (freading):
18710         * lib/freadptr.c (freadptr):
18711         * lib/freadseek.c (freadptrinc):
18712         * lib/fseeko.c (fseeko):
18713         * lib/fseterr.c (fseterr):
18714         * lib/fwritable.c (fwritable):
18715         * lib/fwriting.c (fwriting):
18716         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
18717         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
18718         Define if not already defined.
18720 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
18722         environ: fix link error on 32-bit Cygwin
18723         Problem reported for GNU Emacs by Ken Brown in:
18724         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
18725         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
18727 2018-02-24  Bruno Haible  <bruno@clisp.org>
18729         mbrtowc tests: Fix regression on glibc.
18730         Reported by Bernhard Voelker.
18731         * tests/test-mbrtowc.c (main): Fix expected value of wc.
18733 2018-02-24  Bruno Haible  <bruno@clisp.org>
18735         striconveha, uniconv/*: Avoid test failures on musl libc.
18736         * tests/iconvsupport.c: New file.
18737         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
18738         does not support the ISO-2022-JP-2 encoding.
18739         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
18740         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18741         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18742         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18743         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18744         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18745         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
18746         (Makefile.am): Link test-striconveha with iconvsupport.o.
18747         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
18748         tests/iconvsupport.c.
18749         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
18750         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
18751         tests/iconvsupport.c.
18752         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
18753         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
18754         tests/iconvsupport.c.
18755         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
18756         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
18757         tests/iconvsupport.c.
18758         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
18759         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
18760         tests/iconvsupport.c.
18761         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
18762         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
18763         tests/iconvsupport.c.
18764         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
18766 2018-02-24  Bruno Haible  <bruno@clisp.org>
18768         localename: Add support for musl libc.
18769         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
18770         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
18771         on Linux platforms which define NL_LOCALE_NAME.
18773 2018-02-24  Bruno Haible  <bruno@clisp.org>
18775         mbrtowc tests: Don't make assumptions about the charset the C locale.
18776         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
18777         particular mapping in the C locale.
18779 2018-02-24  Bruno Haible  <bruno@clisp.org>
18781         ptsname_r: Don't expect that this function sets errno.
18782         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
18783         from ptsname_r().
18784         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
18786 2018-02-23  Bruno Haible  <bruno@clisp.org>
18788         xmalloca: pacify gcc -Wbad-function-cast
18789         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
18791 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
18793         nl_langinfo: pacify gcc -Wunused-function
18794         * lib/nl_langinfo.c (ctype_codeset): Do not define if
18795         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
18796         this case.  Without this change, I got a diagnostic when building
18797         coreutils on Fedora 27 with gcc 7.3.1 20180130.
18799         same: pacify gcc -Wunused-variable
18800         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
18801         Omit unused variable.
18803         malloca: pacify gcc -Wbad-function-cast
18804         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
18805         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
18806         To pacify GCC, I had to cast alloca’s result to some type other
18807         than void * before casting that to uintptr_t.
18809 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18811         utimecmp: new function utimecmpat
18812         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
18813         Do not include utimens.h.
18814         (utimecmpat): New function, generalizing utimecmp.
18815         (utimecmp): Now a thin layer around utimecmpat.
18816         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
18817         utimensat instead of on lstat and utimens.
18819         same: new function same_nameat
18820         * lib/same.c: Include fcntl.h.
18821         * lib/same.c (same_nameat): New function, generalizing same_name.
18822         (same_name): Now a thin layer around same_nameat.
18823         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
18824         * modules/same (Depends-on): Depend on fstatat, openat.
18826 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
18828         warnings: Add support for Objective C.
18829         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
18830         macro.
18832 2018-02-17  Bruno Haible  <bruno@clisp.org>
18834         lock: Fix test-once1 crash on FreeBSD11.
18835         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
18836         'pthread_create', not 'pthread_cancel'.
18838 2018-02-17  Bruno Haible  <bruno@clisp.org>
18840         lock: Add test of gl_once.
18841         * tests/test-once.c: New file.
18842         * modules/lock-tests (Files): Add it.
18843         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
18845 2018-02-17  Bruno Haible  <bruno@clisp.org>
18847         thread: Fix compilation error on IRIX.
18848         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
18849         needed; include it outside the C++ extern "C" {} block.
18850         * doc/posix-headers/pthread.texi: Mention the problem with
18851         pthread_atfork on IRIX.
18853 2018-02-04  Bruno Haible  <bruno@clisp.org>
18855         nl_langinfo: Override the system's nl_langinfo() when needed.
18856         Reported by Jim Meyering.
18857         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
18858         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
18860 2018-02-04  Bruno Haible  <bruno@clisp.org>
18862         signal-h, monetary, strings: Fix build failure in some cases.
18863         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18864         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
18865         as delimiter in sed command, not '|'.
18866         * modules/monetary (Makefile.am): Likewise.
18867         * modules/strings (Makefile.am): Likewise.
18869 2018-02-03  Jim Meyering  <meyering@fb.com>
18871         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
18872         * top/maint.mk (sc_file_system): Don't complain about
18873         "/proc/filesystems".
18875 2018-02-03  Bruno Haible  <bruno@clisp.org>
18877         stdlib: Fix compilation error on OpenIndiana.
18878         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
18879         <sys/time.h>.
18880         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18881         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
18883 2018-02-03  Bruno Haible  <bruno@clisp.org>
18885         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
18886         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
18887         and use $EGREP instead of 'grep -E'.
18888         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
18889         'grep -E'.
18891 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18893         malloca: Add a compile-time verification.
18894         * lib/malloca.c (small_t): Verify that it is wide enough.
18895         * modules/malloca (Depends-on): Add verify.
18897 2018-02-02  Bruno Haible  <bruno@clisp.org>
18899         malloca: Add an argument check.
18900         Suggested by Paul Eggert.
18901         * lib/malloca.c (freea): Check against an invalid argument.
18903 2018-02-02  Bruno Haible  <bruno@clisp.org>
18905         localename: Add support for OpenIndiana.
18906         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
18907         Solaris 11 variants with uselocale() but without getlocalename_l().
18909 2018-02-02  Bruno Haible  <bruno@clisp.org>
18911         malloca, xmalloca: Make multithread-safe.
18912         Reported by Florian Weimer <fweimer@redhat.com>.
18913         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
18914         * lib/malloca.h (malloca): In the stack allocation case, return a
18915         pointer that is a multiple of 2 * sa_alignment_max.
18916         (sa_increment): Remove enum item.
18917         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
18918         a pointer that is a multiple of 2 * sa_alignment_max.
18919         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
18920         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
18921         HASH_TABLE_SIZE, mmalloca_results): Remove.
18922         (small_t): New type.
18923         (mmalloca, free): Rewritten.
18924         * lib/malloca.valgrind: Remove file.
18925         * modules/malloca (Files): Remove it.
18926         (Depends-on): Remove verify.
18928 2018-01-31  Bruno Haible  <bruno@clisp.org>
18930         environ: Fix link error on 64-bit Cygwin.
18931         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
18932         __declspec(dllimport) attribute.
18933         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
18935 2018-01-30  Bruno Haible  <bruno@clisp.org>
18937         get-rusage-data: Add support for Minix 3.
18938         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
18940 2018-01-30  Bruno Haible  <bruno@clisp.org>
18942         vma-iter: Add support for Minix 3.
18943         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
18944         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
18946 2018-01-27  Bruno Haible  <bruno@clisp.org>
18948         Fix malfunction of socket functions on HP-UX in 64-bit mode.
18949         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
18950         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
18951         _HPUX_ALT_XOPEN_SOCKET_API.
18952         * modules/accept (Depends-on): Add 'extensions'.
18953         * modules/getpeername (Depends-on): Likewise.
18954         * modules/getsockname (Depends-on): Likewise.
18955         * modules/getsockopt (Depends-on): Likewise.
18956         * modules/recvfrom (Depends-on): Likewise.
18957         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
18958         * doc/posix-functions/getpeername.texi: Likewise.
18959         * doc/posix-functions/getsockname.texi: Likewise.
18960         * doc/posix-functions/getsockopt.texi: Likewise.
18961         * doc/posix-functions/recvfrom.texi: Likewise.
18963 2018-01-27  Bruno Haible  <bruno@clisp.org>
18965         getsockname tests: More tests.
18966         * tests/test-getsockname.c (open_server_socket): New function, mostly
18967         copied from test-poll.c.
18968         (main): Check that getsockname fills in addr.
18969         * modules/getsockname-tests (Depends-on): Add the necessary
18970         dependencies.
18971         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
18973 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
18975         manywarnings: fix maintainer comment
18976         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
18977         it does not mistakenly think that ‘-1)’ is an option.
18979 2018-01-26  Bruno Haible  <bruno@clisp.org>
18981         langinfo: Fix last commit.
18982         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18983         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
18985 2018-01-24  Bruno Haible  <bruno@clisp.org>
18987         langinfo, nl_langinfo: Add support for alternative month names.
18988         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
18989         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
18990         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
18991         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
18992         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
18993         * doc/posix-functions/nl_langinfo.texi: Likewise.
18995 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18997         Merge strftime.c changes from glibc
18998         This incorporates:
18999         2017-11-14 [BZ #10871] Implement alternative month names
19000         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
19001         2017-06-20 Use locale_t, not __locale_t, throughout glibc
19002         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
19003         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
19004         Use locale_t, not __locale_t.
19005         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
19006         (__strftime_internal): Add support for alternate months.
19008 2018-01-23  Bruno Haible  <bruno@clisp.org>
19010         doc: Mention another prerequisite for using Gnulib.
19011         Reported at <https://stackoverflow.com/questions/48378214/>.
19012         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
19013         AC_CONFIG_HEADERS.
19015 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
19017         build: GuixSD doesn't have /bin/bash
19018         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
19020 2018-01-21  Bruno Haible  <bruno@clisp.org>
19022         Avoid test failures on Microsoft Windows Subsystem for Linux.
19023         * tests/test-fcntl.c (main): Allow a different errno.
19024         * tests/test-rename.h (test_rename): Likewise.
19025         * tests/test-renameat.c (main): Likewise.
19026         * tests/test-renameat2.c (main): Likewise.
19028 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19030         filenamecat: make base a suffix of result
19031         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
19032         (mfile_name_concat): Always make BASE a suffix of the result, as
19033         cp expects this.  To implement this, separate with '.' instead of
19034         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
19035         * tests/test-filenamecat.c (main): Adjust tests to match
19036         current behavior.  Check that BASE_IN_RESULT points to
19037         a copy of BASE and is a suffix of the resultk, and that DIR
19038         is a prefix of the result that is no longer than the prefix
19039         indicated by BASE_IN_RESULT.
19041 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
19043         update-copyright: Handle use of ©
19044         * build-aux/update-copyright ($circle_c_re): Update regex to
19045         handle use of © in headers.
19047 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
19049         Fix -Wundef warning in user-included header lib/cdefs.h.
19050         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
19052 2018-01-04  Bruno Haible  <bruno@clisp.org>
19054         pthread_sigmask: Avoid compilation error on mingw.
19055         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19056         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
19057         macro.
19059 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19061         test-framework-sh: ‘ps -ef’, not ‘ps ef’
19062         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
19063         Suggested by Bob Proulx (Bug#29968).
19064         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
19066 2018-01-02  Eric Blake  <eblake@redhat.com>
19068         stat-time: silence -Wunused-parameter regression
19069         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
19070         Prefer attribute over cast-to-void.
19071         (stat_time_normalize): Mark st as potentially unused.
19073 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19075         test-framework-sh: avoid netstat
19076         Problem reported by Kristýna Streitová (Bug#29947).
19077         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
19078         deprecated on SuSE and it's not that important anyway.
19080 2018-01-01  Jim Meyering  <meyering@fb.com>
19082         update-copyright: add code to handle more special cases
19083         After running "make update-copyright" this year, five files
19084         required additional manual changes.  Automate those adjustments
19085         for next year.
19086         * Makefile (_year_and_prev): Define.
19087         (update-copyright): Add perl commands to induce this year's post-
19088         update-copyright adjustments.
19090 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19092         version-etc: new year
19093         * build-aux/gendocs.sh (version):
19094         * doc/gendocs_template:
19095         * doc/gendocs_template_min:
19096         * doc/gnulib.texi:
19097         * lib/version-etc.c (COPYRIGHT_YEAR):
19098         Update copyright dates by hand in templates and the like.
19100         maint: fix 'make update-copyright'
19101         * Makefile (update-copyright): Adjust to 2016-11-23 change
19102         to config/srclist-update, which changed the format of srclist.txt.
19104 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19106         chdir-safer: remove this module
19107         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
19108         * NEWS: Document removal.
19109         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
19110         * modules/chdir-safer: Remove these files.
19112 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
19114         Add cross-compilation results for GNU/Hurd.
19115         * m4/calloc.m4: Add GNU/Hurd guess.
19116         * m4/cbrtl.m4: Likewise.
19117         * m4/ceil.m4: Likewise.
19118         * m4/ceilf.m4: Likewise.
19119         * m4/ceill.m4: Likewise.
19120         * m4/chown.m4: Likewise.
19121         * m4/duplocale.m4: Likewise.
19122         * m4/exp2l.m4: Likewise.
19123         * m4/expm1.m4: Likewise.
19124         * m4/fchdir.m4: Likewise.
19125         * m4/floor.m4: Likewise.
19126         * m4/floorf.m4: Likewise.
19127         * m4/fmod.m4: Likewise.
19128         * m4/fmodf.m4: Likewise.
19129         * m4/fmodl.m4: Likewise.
19130         * m4/getcwd.m4: Likewise.
19131         * m4/getgroups.m4: Likewise.
19132         * m4/gettimeofday.m4: Likewise.
19133         * m4/hypot.m4: Likewise.
19134         * m4/hypotf.m4: Likewise.
19135         * m4/hypotl.m4: Likewise.
19136         * m4/link-follow.m4: Likewise.
19137         * m4/link.m4: Likewise.
19138         * m4/linkat.m4: Likewise.
19139         * m4/log.m4: Likewise.
19140         * m4/log10.m4: Likewise.
19141         * m4/log10f.m4: Likewise.
19142         * m4/log1p.m4: Likewise.
19143         * m4/log1pf.m4: Likewise.
19144         * m4/log1pl.m4: Likewise.
19145         * m4/log2.m4: Likewise.
19146         * m4/log2f.m4: Likewise.
19147         * m4/logf.m4: Likewise.
19148         * m4/lstat.m4: Likewise.
19149         * m4/malloc.m4: Likewise.
19150         * m4/mbrlen.m4: Likewise.
19151         * m4/mbrtowc.m4: Likewise.
19152         * m4/mkdir.m4: Likewise.
19153         * m4/mkfifo.m4: Likewise.
19154         * m4/mknod.m4: Likewise.
19155         * m4/mkstemp.m4: Likewise.
19156         * m4/modf.m4: Likewise.
19157         * m4/modff.m4: Likewise.
19158         * m4/modfl.m4: Likewise.
19159         * m4/printf.m4: Likewise.
19160         * m4/pselect.m4: Likewise.
19161         * m4/ptsname.m4: Likewise.
19162         * m4/putenv.m4: Likewise.
19163         * m4/readlink.m4: Likewise.
19164         * m4/realloc.m4: Likewise.
19165         * m4/remainder.m4: Likewise.
19166         * m4/remainderf.m4: Likewise.
19167         * m4/remainderl.m4: Likewise.
19168         * m4/rmdir.m4: Likewise.
19169         * m4/round.m4: Likewise.
19170         * m4/roundf.m4: Likewise.
19171         * m4/roundl.m4: Likewise.
19172         * m4/select.m4: Likewise.
19173         * m4/setenv.m4: Likewise.
19174         * m4/signbit.m4: Likewise.
19175         * m4/sleep.m4: Likewise.
19176         * m4/stat.m4: Likewise.
19177         * m4/strerror.m4: Likewise.
19178         * m4/strtok_r.m4: Likewise.
19179         * m4/symlink.m4: Likewise.
19180         * m4/symlinkat.m4: Likewise.
19181         * m4/trunc.m4: Likewise.
19182         * m4/truncf.m4: Likewise.
19183         * m4/truncl.m4: Likewise.
19184         * m4/tzset.m4: Likewise.
19185         * m4/ungetc.m4: Likewise.
19186         * m4/usleep.m4: Likewise.
19187         * m4/wcwidth.m4: Likewise.
19189 2017-12-28  Bruno Haible  <bruno@clisp.org>
19191         gnulib-tool: Make --conditional-dependencies work better.
19192         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
19193         * gnulib-tool (Options): Don't reject the combination of
19194         --conditional-dependencies with --with-tests.
19195         (func_emit_autoconf_snippets): Add argument referenceable_modules.
19196         Don't reference $modules.
19197         (func_import, func_create_testdir): Pass it.
19199 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19201         regex: use re_malloc etc. consistently
19202         Problem and original patch reported by Arnold Robbins in:
19203         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
19204         * lib/regcomp.c (re_comp):
19205         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
19206         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
19208 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
19209             Paul Eggert  <eggert@cs.ucla.edu>
19211         glob: Silence warning about void pointer arithmetic.
19212         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19213         arithmetic.
19215 2017-12-15  Bruno Haible  <bruno@clisp.org>
19217         spawn-pipe: Silence a clang warning.
19218         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19219         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
19220         in this file.
19222 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19224         explicit_bzero: port to macOS + Clang 9.0.0
19225         Problem reported by Marcus Johnson (Bug#29658).
19226         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
19227         Don’t use asm.
19229 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19231         doc: Improve explanation of supporting relocatable libraries.
19232         * doc/relocatable-maint.texi (Supporting Relocation): Explain
19233         properly how to build the relocatable module for
19234         libraries. (Method and example code from Bruno Haible.)
19236 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19238         doc: Use better texinfo tags in a few cases.
19239         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
19240         instead of @samp in a few places.
19242 2017-12-11  Bruno Haible  <bruno@clisp.org>
19244         unistr/base: Update comment.
19245         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
19247 2017-12-10  Pádraig Brady  <P@draigBrady.com>
19249         test-faccessat.c: unlink temp file to avoid subsequent test failure
19250         * tests/test-faccessat.c: Remove the file to avoid failure
19251         to open the file on subsequent runs due to being created
19252         with no permissions.
19254 2017-12-10  Bruno Haible  <bruno@clisp.org>
19256         doc: New sect. "Modifying the build rules of a Gnulib import directory".
19257         * doc/gnulib-tool.texi (Modified build rules): New node.
19259 2017-12-10  Bruno Haible  <bruno@clisp.org>
19261         doc: Tweak wording.
19262         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
19263         "binaries".
19265 2017-12-05  Sam Steingold  <sds@gnu.org>
19266             Bruno Haible  <bruno@clisp.org>
19268         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
19269         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
19270         AC_EGREP_CPP pattern.
19272 2017-12-03  Bruno Haible  <bruno@clisp.org>
19274         all: Replace more http URLs by https URLs.
19275         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
19276         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
19277         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
19278         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
19280 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19282         Port better to CentOS 5
19283         Problems reported by Tom G. Christensen in:
19284         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
19285         * doc/glibc-functions/strverscmp.texi (strverscmp):
19286         Document strverscmp bug with glibc 2.9 and earlier.
19287         * doc/posix-functions/tzset.texi (tzset):
19288         Document that TZ with angle brackets is POSIX-2001 and later.
19289         * tests/test-nstrftime.c: Include unistd.h.
19290         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
19291         (TZ): Use it to skip tests with angle brackets in TZ,
19292         for older systems.
19294         stat: add missing module dependencies
19295         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
19296         Add stat-time.
19298 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
19300         stat: fix compilation failure on macOS Sierra
19301         Reported by Marius Schamschula <mschamschula@gmail.com> in:
19302         https://savannah.gnu.org/bugs/?52546
19303         * lib/stat.c: Add missing include of stat-time.h.
19305 2017-11-28  Jim Meyering  <meyering@fb.com>
19307         test-faccessat.c: correct BASE definition to avoid parallel test failure
19308         * tests/test-faccessat.c (BASE): Define using this file's name, not
19309         that of test-lstat.c.  Using the latter caused this test to fail
19310         sometimes when run concurrently with test-lstat.
19312 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19314         unicase: fix VPATH build
19315         * modules/unicase/special-casing (Makefile.am): Ensure that the
19316         base directory is created when generating
19317         unicase/special-casing.h.
19319 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19321         libunistring: update to Unicode 9.0.0
19322         * lib/gen-uni-tables.c (fill_properties): Recognize
19323         Sentence_Terminal and Prepended_Concatenation_Mark.
19324         (is_property_default_ignorable_code_point): Exclude U+08E2.
19325         (fill_arabicshaping): Allow missing whitespace when parsing;
19326         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
19327         (output_blocks): Increase the element size of the level1 table to
19328         accommodate more blocks.
19329         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
19330         Update each class according to the standard.
19331         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
19332         E_Base_GAZ characters.
19333         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
19334         Glue_After_Zwj, and E_Base_GAZ characters.
19335         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
19336         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
19337         enum value.
19338         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
19339         value.
19340         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
19341         LBP_ZWJ, LBP_EB, and LBP_EM.
19342         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
19343         enum value.
19344         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
19345         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
19346         declaration.
19347         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
19348         (uniwbrk_table): Implement WB14.
19349         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
19350         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
19351         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
19352         uc-is-grapheme-break.
19353         * modules/unigbrk/uc-grapheme-breaks: New module.
19354         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
19355         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
19356         enum value.
19357         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
19358         * lib/unigbrk/u-grapheme-breaks.h: New file.
19359         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
19360         u-grapheme-breaks.h instead of uc_is_grapheme_break.
19361         * lib/unigbrk/uc-grapheme-breaks.c: New file.
19362         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
19363         29.
19364         * tests/unigbrk/test-uc-gbrk-prop.c
19365         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19366         GBP_GAZ, and GBP_EBG.
19367         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
19368         * tests/unigbrk/test-uc-is-grapheme-break.c
19369         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19370         GBP_GAZ, and GBP_EBG.
19371         (main): Skip unsupported rules involving 3 or more characters,
19372         namely GB10, GB12, and GB13.
19373         * lib/uniwidth/width.c (nonspacing_table_data): Update.
19374         * all generated files under lib/uni* and tests/uni*: Regenerate.
19375         * all the affected modules: Bump version.
19377 2017-11-26  Bruno Haible  <bruno@clisp.org>
19379         strfmon_l: Fix compilation error with glibc 2.5.
19380         Reported by Tom G. Christensen <tgc@jupiterrise.com>
19381         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
19382         * lib/monetary.in.h: Include also <locale.h>.
19384 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19386         posixtm: remove PDS_LEADING_YEAR
19387         This changes the API slightly, in a hopefully-innocuous way.
19388         Without this change the code had undefined behavior when a
19389         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
19390         Problem reported by Pádraig Brady in:
19391         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
19392         * NEWS: Mention this.
19393         * lib/posixtm.c (posix_time_parse): Treat the absence of
19394         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
19395         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
19396         present, but define it as zero, for compatibility with existing
19397         source code).  All other PDS_* values moved up.
19398         * tests/test-posixtm.c (LY): New macro.
19399         (T): Use it.  Do not expect a particular numeric encoding
19400         for PDS_CENTURY etc.
19402 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
19404         stat: work around Solaris bug with tv_nsec < 0
19405         * doc/posix-functions/fstat.texi (fstat):
19406         * doc/posix-functions/fstatat.texi (fstatat):
19407         * doc/posix-functions/lstat.texi (lstat):
19408         * doc/posix-functions/stat.texi (stat):
19409         Mention Solaris 11 bug.
19410         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
19411         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
19412         * lib/lstat.c (rpl_lstat):
19413         * lib/stat.c (rpl_stat):
19414         Normalize resulting timestamps.
19415         * lib/fstatat.c (normal_fstatat): New function.
19416         (rpl_fstatat): Use it.
19417         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
19418         (stat_time_normalize): New function.
19419         * m4/fstat.m4 (gl_FUNC_FSTAT):
19420         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
19421         * m4/lstat.m4 (gl_FUNC_LSTAT):
19422         * m4/stat.m4 (gl_FUNC_STAT):
19423         Replace on Solaris.
19424         * modules/fstat (Depends-on):
19425         * modules/fstatat (Depends-on):
19426         Add stat-time.
19427         * modules/stat-time (Depends-on): Add errno, intprops.
19429 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
19431         regex: merge from glibc
19432         * lib/regcomp.c (init_word_char): Add comments.
19434 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19436         regex: merge from glibc
19437         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
19438         * lib/regex_internal.h (internal_function): Remove.
19439         All uses removed.
19441 2017-11-20  Bruno Haible  <bruno@clisp.org>
19443         crypto/gc-sm3: Fix buffer overrun.
19444         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
19445         Reported by Coverity.
19447 2017-11-12  Jim Meyering  <meyering@fb.com>
19449         maint: shorten https://lists.gnu.org/archive/html/... links
19450         Each /archive/html/ part can be replace with /r/.
19451         Run this to induce the change:
19452         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
19453         * ChangeLog: Perform that substitution.
19454         * Makefile: Likewise.
19455         * STATUS-libposix: Likewise.
19456         * build-aux/bootstrap: Likewise.
19457         * doc/maintain.texi: Likewise.
19458         * gnulib-tool: Likewise.
19459         * lib/allocator.h: Likewise.
19460         * lib/argp-ba.c: Likewise.
19461         * lib/argp-pv.c: Likewise.
19462         * lib/canon-host.c: Likewise.
19463         * lib/canonicalize-lgpl.c: Likewise.
19464         * lib/float.in.h: Likewise.
19465         * lib/fstat.c: Likewise.
19466         * lib/getdelim.c: Likewise.
19467         * lib/getprogname.c: Likewise.
19468         * lib/glthread/thread.h: Likewise.
19469         * lib/intprops.h: Likewise.
19470         * lib/mbsrtowcs-state.c: Likewise.
19471         * lib/safe-read.c: Likewise.
19472         * lib/signal.in.h: Likewise.
19473         * lib/stat.c: Likewise.
19474         * lib/stdbool.in.h: Likewise.
19475         * lib/stdio-impl.h: Likewise.
19476         * lib/stdio.in.h: Likewise.
19477         * lib/sysexits.in.h: Likewise.
19478         * lib/timespec.h: Likewise.
19479         * lib/wcsrtombs-state.c: Likewise.
19480         * m4/alloca.m4: Likewise.
19481         * m4/extern-inline.m4: Likewise.
19482         * m4/fstatat.m4: Likewise.
19483         * m4/gnulib-common.m4: Likewise.
19484         * m4/lib-ignore.m4: Likewise.
19485         * m4/printf.m4: Likewise.
19486         * m4/regex.m4: Likewise.
19487         * m4/stat-size.m4: Likewise.
19488         * m4/std-gnu11.m4: Likewise.
19489         * m4/stdbool.m4: Likewise.
19490         * m4/sys_types_h.m4: Likewise.
19491         * m4/threadlib.m4: Likewise.
19492         * m4/vararrays.m4: Likewise.
19493         * pygnulib/GLImport.py: Likewise.
19494         * tests/test-exp.h: Likewise.
19495         * tests/test-exp2.h: Likewise.
19496         * tests/test-expm1.h: Likewise.
19497         * tests/test-fflush2.c: Likewise.
19498         * tests/test-getopt_long.h: Likewise.
19499         * tests/test-intprops.c: Likewise.
19500         * tests/test-log.h: Likewise.
19501         * tests/test-log10.h: Likewise.
19502         * tests/test-log1p.h: Likewise.
19503         * tests/test-log2.h: Likewise.
19504         * tests/test-printf-posix.h: Likewise.
19505         * tests/test-regex.c: Likewise.
19506         * tests/test-snprintf-posix.h: Likewise.
19507         * tests/test-sprintf-posix.h: Likewise.
19508         * tests/test-stdalign.c: Likewise.
19509         * tests/test-stdbool.c: Likewise.
19510         * tests/test-vasnprintf-posix.c: Likewise.
19511         * tests/test-vasprintf-posix.c: Likewise.
19512         * top/maint.mk: Likewise.
19514 2017-11-12  Bruno Haible  <bruno@clisp.org>
19516         faccessat: Make the last change more robust.
19517         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
19518         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
19520 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19522         faccessat: port to macOS (Bug#29231)
19523         macOS faccessat has the same bug that lstat does: if the file
19524         name ends in '/' it ignores the trailing slash.
19525         Problem reported for Emacs by Vincent Zhang.
19526         * doc/posix-functions/faccessat.texi (faccessat): Document this.
19527         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
19528         around the initial includes.  Include errno.h, string.h, sys/stat.h.
19529         (orig_faccessat) [HAVE_FACCESSAT]: New function.
19530         Include "unistd.h" after defining it.
19531         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
19532         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
19533         Handle in the usual way.
19534         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
19535         lstat dereferences symlinks, since faccessat is likely to
19536         have the same problem.
19537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
19538         * modules/faccessat (Depends-on): Add fstatat.
19539         Depend if REPLACE_FACCESSAT is 1, too.
19540         (configure.ac): Link if REPLACE_FACCESSAT is 1.
19541         * modules/faccessat-tests (Depends-on): Add symlink.
19542         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
19543         * tests/test-faccessat.c (main): Test for the bug.
19545 2017-11-11  Bruno Haible  <bruno@clisp.org>
19547         getprogname: Fix compilation error on IRIX.
19548         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
19549         'namesize'.
19551 2017-11-11  Bruno Haible  <bruno@clisp.org>
19553         year2038: Tweak last patch.
19554         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
19556 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19558         year2038: be more insistent about 64-bit time_t
19559         Applications requiring access to arbitrary files should not be
19560         built with 32-bit time_t on hosts that have 64-bit timestamps,
19561         as this can lead to real trouble at runtime.
19562         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
19563         Check on all systems, not just MinGW.  Use a heuristic involving
19564         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
19565         output a failure or just a warning, to make it more likely that
19566         builders will select 64-bit time_t.
19568 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
19570         havelib: fix typo in previous change
19571         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
19573         Don’t use AC_EGREP_CPP if affected by CFLAGS
19574         * m4/float_h.m4 (gl_FLOAT_H):
19575         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
19576         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
19577         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
19578         * m4/year2038.m4 (gl_YEAR2038):
19579         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
19580         likely to be affected by the choice of CFLAGS, since CFLAGS are
19581         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
19582         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
19584         fstatat: pacify GCC on unusual platform
19585         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
19586         Omit, as it’s unused in this case.
19588 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19590         timespec: prefer ‘assume’ to ‘assure’
19591         This avoids some runtime tests.  The rest of the module makes
19592         similar assumptions and there is little point to testing here.
19593         * lib/timespec.h: Include verify.h instead of assure.h.
19594         (timespec_cmp): Use ‘assume’, not ‘assure’.
19595         Also, remove an unnecessary cast to ‘int’, as lots of other
19596         code in this module now causes -Wconversion to complain, and
19597         this is a problem with -Wconversion not with the code.
19599         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
19601         Port recent gnulib-tool change to Dash
19602         * gnulib-tool (func_create_testdir): Don't assume that the shell
19603         retokenizes after expanding "$@" inside the call to
19604         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
19606 2017-10-27  Jim Meyering  <meyering@fb.com>
19608         timespec.h: use "assure" to avoid a spurious warning
19609         * lib/timespec.h: Include "assure.h" and use it to help
19610         gcc7's -Wstrict-overflow avoid a false positive warning
19611         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
19612         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
19613         * modules/timespec (Depends-on): Add assure.
19615 2017-10-29  Bruno Haible  <bruno@clisp.org>
19617         Avoid several test failures with traditional locales on Haiku.
19618         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
19619         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
19620         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
19621         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
19622         LOCALE_ZH_CN=none.
19624 2017-10-29  Bruno Haible  <bruno@clisp.org>
19626         strerror_r-posix: Fix behaviour and test failure on Haiku.
19627         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
19628         are positive. Work around return value 0 instead of ERANGE on Haiku.
19629         For unknown error numbers, use a format string consistent with perror().
19630         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
19631         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
19632         are positive.
19634 2017-10-29  Bruno Haible  <bruno@clisp.org>
19636         get-rusage-data: Avoid crash on Haiku.
19637         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
19639 2017-10-29  Bruno Haible  <bruno@clisp.org>
19641         get-rusage-as: Avoid crash on Haiku.
19642         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
19644 2017-10-29  Bruno Haible  <bruno@clisp.org>
19646         ilogbl: Ensure replacement on Haiku.
19647         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
19648         REPLACE_ILOGBL if ilogbl does not work.
19649         (gl_FUNC_ILOGBL_WORKS): New macro.
19650         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
19651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
19652         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
19653         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
19654         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
19656 2017-10-29  Bruno Haible  <bruno@clisp.org>
19658         expl: Ensure replacement on Haiku.
19659         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
19660         zero.
19661         * doc/posix-functions/expl.texi: Mention the Haiku problem.
19663 2017-10-29  Bruno Haible  <bruno@clisp.org>
19665         math: Fix test failure on Haiku.
19666         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
19667         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
19668         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19669         * doc/posix-headers/math.texi: Mention the Haiku problem.
19671 2017-10-29  Bruno Haible  <bruno@clisp.org>
19673         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
19674         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
19675         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
19677 2017-10-29  Bruno Haible  <bruno@clisp.org>
19679         crypto/*: Verify that the header file is self-contained.
19680         * tests/test-gc-*.c: Include the module's header file immediately after
19681         <config.h>.
19682         * tests/test-hmac-*.c: Likewise.
19683         * tests/test-arcfour.c: Likewise.
19684         * tests/test-arctwo.c: Likewise.
19685         * tests/test-des.c: Likewise.
19686         * tests/test-md2.c: Likewise.
19687         * tests/test-md4.c: Likewise.
19688         * tests/test-md5.c: Likewise.
19689         * tests/test-rijndael.c: Likewise.
19690         * tests/test-sha1.c: Likewise.
19691         * tests/test-sm3.c: Likewise.
19693 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19694             Bruno Haible  <bruno@clisp.org>
19696         crypto/gc: fix build failure with -Werror=suggest-attribute=const
19697         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
19699 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19701         New module: crypto/gc-sm3
19702         * lib/gc.h: Declare SM3-related stuffs.
19703         * lib/gc-gnulib.c: Support sm3 in internal functions.
19704         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
19705         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
19706         * modules/crypto/gc-sm3: Define gc-sm3 module.
19707         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
19708         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
19709         * MODULES.html.sh: List gc-sm3 module.
19711 2017-10-29  Bruno Haible  <bruno@clisp.org>
19713         random, random_r: Mention different prototypes on Haiku.
19714         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
19715         * doc/glibc-functions/random_r.texi: Likewise.
19716         * doc/glibc-functions/initstate_r.texi: Likewise.
19717         * doc/glibc-functions/setstate_r.texi: Likewise.
19719 2017-10-28  Bruno Haible  <bruno@clisp.org>
19721         posix_spawn: Avoid spurious message in configure output.
19722         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
19723         'cmp' command.
19725 2017-10-28  Bruno Haible  <bruno@clisp.org>
19727         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
19728         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
19729         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
19731 2017-10-28  Bruno Haible  <bruno@clisp.org>
19733         ioctl: Override non-POSIX declaration on Haiku.
19734         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
19735         * lib/sys_ioctl.in.h: Add comment about Haiku.
19736         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
19737         * doc/glibc-headers/sys_ioctl.texi: Likewise.
19739 2017-10-28  Bruno Haible  <bruno@clisp.org>
19741         crypto/sm3: Add overview documentation to the .h file.
19742         * lib/sm3.h: Add comments.
19744 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19746         New module: crypto/sm3
19747         This new module can be used to compute SM3 message digest of files or
19748         memory blocks according to the specification GM/T 004-2012
19749         Cryptographic Hash Algorithm SM3, published by State Cryptography
19750         Administration, China.
19751         The official SM3 cryptographic hash algorithm specification is
19752         available at
19753         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
19754         * lib/sm3.h: Declare the APIs of sm3 module.
19755         * lib/sm3.c: Implement SM3 hash algorithm.
19756         * m4/sm3.m4: m4 file for sm3 module.
19757         * modules/crypto/sm3: Define sm3 module.
19758         * tests/test-sm3.c: Implement SM3 test case.
19759         * modules/crypto/sm3-tests: Define sm3 test module.
19760         * MODULES.html.sh: List sm3 module.
19762 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19764         gc-libgcrypt: fix undefined enum type in switch statement
19765         Resolve the following build failure:
19766         lib/gc-libgcrypt.c: In function 'gc_hash_open':
19767         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
19768         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
19769              case 0:
19770              ^~~~
19771         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
19772         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
19774 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19776         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
19777         Resolve the following build failure:
19778         lib/gc-libgcrypt.c: In function 'gc_hash_read':
19779         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
19780         in signedness [-Werror=pointer-sign]
19781             digest = gcry_md_read (ctx->gch, 0);
19782                    ^
19783         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
19785 2017-10-26  Bruno Haible  <bruno@clisp.org>
19787         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
19788         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
19789         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
19791 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19793         glob: fix another heap buffer overflow
19794         Problem reported by Tim Rühsen in:
19795         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
19796         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
19798 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
19800         quotearg: pacify compiler re unsigned
19801         * lib/quotearg.c (quotearg_n_options):
19802         Rewrite to avoid diagnostic from overly-picky compiler.
19803         Problem reported by Sami Kerola in:
19804         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
19806         glob: fix heap buffer overflow
19807         * lib/glob.c (glob): Fix off-by-one error introduced into
19808         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
19809         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
19810         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
19811         Fix suggested by Bruno Haible.
19813 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
19815         glob: pacify fuzzer for mempcpy
19816         Problem reported by Tim Rühsen in:
19817         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
19818         * lib/glob.c (glob): Do not pass NULL to mempcpy.
19820 2017-10-12  Bruno Haible  <bruno@clisp.org>
19822         doc: Fix syntax error (regression from 2017-10-03).
19823         * doc/posix-functions/strncpy.texi: Fix syntax error.
19825 2017-10-12  Bruno Haible  <bruno@clisp.org>
19827         doc: Update for Solaris 11.3.
19828         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
19829         mention Solaris 11.3.
19830         * m4/log2.m4: Fix comments.
19831         * m4/log2f.m4: Likewise.
19832         * m4/printf.m4: Update comments.
19833         * m4/rename.m4: Likewise.
19834         * m4/strncat.m4: Likewise.
19836         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
19838 2017-10-10  Bruno Haible  <bruno@clisp.org>
19840         doc: Improve doc about ioctl.
19841         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
19842         prototype.
19844 2017-10-09  Bruno Haible  <bruno@clisp.org>
19846         wcwidth: Don't use obsolete syntax of 'test'.
19847         Reported by Eric Blake.
19848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
19849         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
19851 2017-10-09  Bruno Haible  <bruno@clisp.org>
19853         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
19854         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
19855         and Daniel P. Berrange <berrange@redhat.com>.
19856         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
19857         on glibc systems. The getopt-pfx-core.h file declares exactly what
19858         unistd.h needs, nothing more.
19860 2017-10-08  Bruno Haible  <bruno@clisp.org>
19862         vma-iter: Improve support for FreeBSD.
19863         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
19864         vma_iterate.
19865         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
19867 2017-10-08  Bruno Haible  <bruno@clisp.org>
19869         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
19870         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
19872 2017-10-07  KO Myung-Hun  <komh@chollian.net>
19874         test-framework-sh: Fix 'invalid path dir' error.
19875         On OS/2, a path separator is ';' not ':'. And ':' is used as a
19876         separator between a drive letter and directory parts.
19877         As a result, an absolute path such as x:/path/to/dir on OS/2 is
19878         treated as an invalid path dir.
19879         * tests/init.sh (PATH_SEPARATOR): Set at startup.
19880         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
19881         instead of hard coded ':'.
19883 2017-10-07  Bruno Haible  <bruno@clisp.org>
19885         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
19886         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
19887         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
19888         (rof_open): On Linux, do multiple read() calls and make sure
19889         MIN_LEFTOVER bytes are left when read() returns.
19891 2017-10-07  Bruno Haible  <bruno@clisp.org>
19893         vma-iter: Improve support for GNU/Hurd.
19894         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
19895         API, not the /proc file system.
19897 2017-10-07  Bruno Haible  <bruno@clisp.org>
19899         test-framework-sh: Don't require bash on Windows and OS/2.
19900         Reported by KO Myung-Hun.
19901         * tests/test-init.sh: Use 'shopt' only when running in bash.
19903 2017-10-06  KO Myung-Hun  <komh@chollian.net>
19905         wcwidth: check a macro version of wcwidth () as well
19906         * lib/wchar.in.h: Revert commit from 2016-01-14.
19907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
19909 2017-10-06  Bruno Haible  <bruno@clisp.org>
19911         getopt-posix: Clarify copyright header.
19912         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
19913         * lib/getopt-pfx-core.h: Likewise.
19914         * lib/getopt-pfx-ext.h: Likewise.
19915         * lib/getopt-cdefs.in.h: Likewise.
19917 2017-10-03  Bruno Haible  <bruno@clisp.org>
19919         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
19920         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
19921         gl_HOST_CPU_C_ABI.
19923 2017-10-03  Bruno Haible  <bruno@clisp.org>
19925         doc: warn about misuse of strncpy and wcsncpy.
19926         * doc/posix-functions/strcpy.texi: Describe requirements on prior
19927         memory allocation.
19928         * doc/posix-functions/wcscpy.texi: Likewise.
19929         * doc/posix-functions/strncpy.texi: Describe what this function is not
19930         useful for.
19931         * doc/posix-functions/wcsncpy.texi: Likewise.
19933 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
19935         fsuage: fix typo in previous change
19936         * lib/fsusage.c: Remove stray include of full-read.h.
19937         Problem reported by Sam Steingold for macOS (Bug#28669).
19939 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
19941         fsusage: remove SVR2 support
19942         SVR2 was obsolete by 1986 and is no longer supported by anybody,
19943         and its code was getting in the way of use of this module by
19944         Emacs, which has its own ‘read’ function anyway.
19945         * lib/fsusage.c: Do not include sys/filsys.h.
19946         (get_fs_usage): Remove SVR2-specific code.
19947         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
19948         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
19949         * modules/fsusage (Depends-on): Do not depend on full-read.
19951         Simplify autoupdate of licenses
19952         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
19953         place.
19955 2017-10-01  Bruno Haible  <bruno@clisp.org>
19957         vma-iter: Add support for GNU/Hurd.
19958         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
19959         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
19961 2017-09-30  Bruno Haible  <bruno@clisp.org>
19963         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
19964         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
19965         fail when module 'largefile' is in use.
19966         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
19967         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
19968         Don't test HAVE_SYS_PROCFS_H.
19970 2017-09-30  Bruno Haible  <bruno@clisp.org>
19972         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
19973         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
19974         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
19975         * modules/havelib (Depends-on): Add host-cpu-c-abi.
19977 2017-09-30  Bruno Haible  <bruno@clisp.org>
19979         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
19980         * lib/uniname/uniname.c (unicode_name_character): Add braces around
19981         scope of local variables.
19983 2017-09-28  Bruno Haible  <bruno@clisp.org>
19985         string: code style
19986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
19987         substitutable variables.
19988         * modules/string (Makefile.am): Likewise.
19990 2017-09-26  Bruno Haible  <bruno@clisp.org>
19992         uniname/uniname-tests: Tighten code.
19993         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
19994         local variables into one.
19996 2017-09-26  Bruno Haible  <bruno@clisp.org>
19998         vma-iter: Improvements for Linux and BSD platforms.
19999         - Add support for DragonFly BSD.
20000         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
20001         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
20002         Read the entire file into memory in a single system call.
20003         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
20004         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
20006 2017-09-26  Bruno Haible  <bruno@clisp.org>
20008         vma-iter: Provide the protection flags on FreeBSD.
20009         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
20010         skip three fields between the addresses and the protection flags.
20012 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20014         glob: remove bogus extern decl
20015         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20016         extern declaration.  Problem reported by Adhemerval Zanella in:
20017         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
20019 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20021         uniname/uniname-tests: integer overflow fix
20022         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
20023         Check for integer overflow.
20025         duplocale-tests: fix unlikely crash
20026         * tests/test-duplocale.c (get_locale_dependent_values):
20027         Don’t crash with absurdly long month names.
20029         maint: fix overflow checking in nap.h
20030         * modules/chown-tests:
20031         * modules/fchownat-tests, modules/fdutimensat-tests:
20032         * modules/futimens-tests, modules/lchown-tests:
20033         * modules/stat-time-tests, modules/utime-tests:
20034         * modules/utimens-tests, modules/utimensat-tests:
20035         Depend on intprops.
20036         * tests/nap.h: Include intprops.h.
20037         (diff_timespec): Handle overflow properly.
20039         sys_types: update URL
20040         * m4/sys_types_h.m4: Use https: URL.
20042         parse-datetime: fix dependency
20043         * modules/parse-datetime (Depends-on): Depend
20044         on nstrftime, not strftime.
20046         parse-datetime, posixtm: avoid uninit access
20047         * lib/parse-datetime.y (parse_datetime2):
20048         * lib/posixtm.c (posixtime):
20049         Do not access uninitialized storage, even though the resulting
20050         value is never used.
20052 2017-09-25  Bruno Haible  <bruno@clisp.org>
20054         vma-iter: Improvements for BSD platforms.
20055         - Add support for GNU/kFreeBSD.
20056         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
20057         - Speed up on OpenBSD.
20058         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
20059         (vma_iterate_bsd): New function.
20060         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
20061         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
20062         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20063         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
20065 2017-09-23  Bruno Haible  <bruno@clisp.org>
20067         strfmon_l: New module.
20068         * modules/strfmon_l: New file.
20069         * lib/strfmon_l.c: New file.
20070         * m4/strfmon_l.m4: New file.
20071         * doc/posix-functions/strfmon_l.texi: Mention the new module.
20072         * modules/strfmon_l-tests: New file.
20073         * tests/test-strfmon_l.c: New file.
20075         monetary: New module.
20076         * modules/monetary: New file.
20077         * lib/monetary.in.h: New file.
20078         * m4/monetary_h.m4: New file.
20079         * doc/posix-headers/monetary.texi: Mention the new module.
20080         * modules/monetary-tests: New file.
20081         * tests/test-monetary.c: New file.
20082         * modules/monetary-c++-tests: New file.
20083         * tests/test-monetary-c++.cc: New file.
20084         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
20086 2017-09-23  Bruno Haible  <bruno@clisp.org>
20088         duplocale tests: Fix test crash on Linux/x86.
20089         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
20090         locale from the current thread before freeing it.
20092 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
20094         mktime: port to OpenVMS
20095         Problem reported by John E. Malmberg in:
20096         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
20097         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
20099 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20101         manywarnings: port to GCC on 64-bit MS-Windows
20102         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
20103         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
20104         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
20106 2017-09-13  Bruno Haible  <bruno@clisp.org>
20108         all: Replace many more http URLs by https URLs. Update stale URLs.
20109         * users.txt: Remove mention of 'newts'.
20110         * lib/localename.c: Update comment about LANG_SOTHO.
20112 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20114         all: Replace many http URLs by https URLs.
20116 2017-09-12  Bruno Haible  <bruno@clisp.org>
20118         doc: Prefer https URLs where possible.
20119         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
20120         * doc/ld-output-def.texi: Remove unavailable URL.
20122 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20124         maintainer-makefile: FTP -> HTTPS
20125         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
20126         of FTP, which is planned to be decommissioned on 2017-11-01.
20128 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
20130         libc-config: Fix __GNUC_PREREQ macro.
20131         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
20132         __GNUC_MINOR.
20134 2017-09-09  Bruno Haible  <bruno@clisp.org>
20136         gnulib-tool: Simplify commit from 2015-08-20.
20137         * gnulib-tool (func_add_or_update): Remove local variable
20138         is_binary_file.
20140 2017-09-08  Bruno Haible  <bruno@clisp.org>
20142         stddef: Avoid conflict with system-defined max_align_t.
20143         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
20144         Reported by Werner Lemberg <wl@gnu.org> in
20145         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
20146         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
20147         (max_align_t): Define as a macro.
20148         (GNULIB_defined_max_align_t): New macro. Guards against multiple
20149         definitions of rpl_max_align_t in different copies of gnulib-generated
20150         <stddef.h>.
20152 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
20154         libc-config: port to MSVC
20155         Problems reported by Gisle Vanem in:
20156         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
20157         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
20158         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
20159         * m4/__inline.m4: New file.
20160         * modules/libc-config (Files): Add it.
20161         (Depends-on): Use it.
20163         glob: Use enum for __glob_pattern_type result
20164         From a patch proposed by Adhemerval Zanella in:
20165         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
20166         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
20167         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
20168         * lib/glob_internal.h (__glob_pattern_type):
20169         * lib/glob.c (glob):
20170         * lib/glob_pattern_p.c (__glob_pattern_p):
20171         Use them.
20173         glob: fix for use in glibc
20174         Problem reported by Adhemerval Zanella in:
20175         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
20176         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
20177         Do not redefine if _LIBC.
20179 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20181         glob: fix bugs with long login names
20182         Problem reported by Adhemerval Zanella in:
20183         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
20184         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
20185         (glob): Use the same scratch buffer for both getlogin_r and
20186         getpwnam_r.  Don’t require preallocation of the login name.  This
20187         simplifies storage allocation, and corrects the handling of
20188         long login names.
20190 2017-09-02  Bruno Haible  <bruno@clisp.org>
20192         dirent: Update doc.
20193         * doc/posix-headers/dirent.texi: More concrete list of platforms.
20195 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20197         glob: fix getpwnam_r errno typo
20198         * lib/glob.c (glob): Fix longstanding misuse of errno after
20199         getpwnam_r, which returns an error number rather than setting
20200         errno.
20202         glob: fix typo in recent change
20203         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
20204         Fix recently-introduced typo.
20206 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20208         glob: don't save and restore errno unnecessarily
20209         * lib/glob.c (glob): Don't save and restore errno
20210         merely because we have getpwnam_r.
20212         glob: don't assume getpwnam_r
20213         * lib/glob.c (glob): Port recent patches to platforms
20214         lacking getpwnam_r.
20216         scratch_buffer: don’t use private glibc API
20217         Suggested by Florian Weimer in:
20218         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
20219         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
20220         * lib/scratch_buffer_grow.c: Rename to
20221         lib/malloc/scratch_buffer_grow.c.
20222         * lib/scratch_buffer_grow_preserve.c: Rename to
20223         lib/malloc/scratch_buffer_grow_preserve.c.
20224         * lib/scratch_buffer_set_array_size.c: Rename to
20225         lib/malloc/scratch_buffer_set_array_size.c.
20226         * lib/scratch_buffer.h: New file.
20227         * modules/scratch_buffer (Files, Makefile.am):
20228         Adjust to source-file renaming.
20230 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20232         glob: use scratch_buffer instead of extend_alloca
20233         Much of the lib/glob.c part of this patch comes from a glibc patch
20234         proposed by Adhemerval Zanella in:
20235         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
20236         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
20237         included via glob.h, does this for us now.
20238         (__set_errno): Remove, as libc-config does this for us now.
20239         Include <scratch_buffer.h>.
20240         (GETPW_R_SIZE_MAX): Remove.
20241         (glob): Use struct scratch_buffer instead of extend_alloca.
20242         * lib/glob.in.h: Include libc-config.h rather than
20243         including <sys/cdefs.h> conditionally.
20244         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
20245         (__glibc_unlikely, __restrict, weak_alias):
20246         Remove, as libc-config does this for us now.
20247         * m4/glob.m4 (gl_PREREQ_GLOB):
20248         Remove sys/cdefs.h tests; no longer needed.
20249         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
20250         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
20252         scratch_buffer: new module
20253         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
20254         * lib/scratch_buffer_grow_preserve.c:
20255         * lib/scratch_buffer_set_array_size.c:
20256         New files, copied from glibc with very minor changes that can be
20257         copied back.
20258         * modules/scratch_buffer: New file.
20260         libc-config: new module
20261         * MODULES.html.sh: Add libc-config.
20262         * lib/cdefs.h: New file, copied from the GNU C Library with very
20263         minor changes that can be copied back.
20264         * lib/libc-config.h, modules/libc-config: New files.
20266 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20268         glob: match dangling symlinks
20269         This fixes a bug I inadvertently introduced to Gnulib when I
20270         merged glibc glob back into gnulib on 2007-10-16.  This fix is
20271         inspired by a patch proposed for glibc by Adhemerval Zanella in:
20272         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
20273         * doc/posix-functions/glob.texi: Update list of affected platforms.
20274         * lib/glob.c (__lstat64): New macro.
20275         (is_dir): New function.
20276         (glob, glob_in_dir): Match symlinks even if they are dangling.
20277         (link_stat, link_exists_p): Remove.  All uses removed.
20278         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
20279         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
20280         * modules/glob-tests (Depends-on): Add symlink.
20281         * tests/test-glob.c: Include errno.h, unistd.h.
20282         (BASE): New macro.
20283         (main): Test dangling symlinks, if symlinks are supported.
20285         glob, backupfile: inode 0 is a valid inode number
20286         * doc/posix-functions/readdir.texi (readdir):
20287         * doc/posix-headers/dirent.texi (dirent.h):
20288         Document more readdir portability issues.
20289         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
20290         (numbered_backup): Don’t treat inode 0 any differently from
20291         other inode values.
20292         * lib/glob.c (struct readdir_result): Remove skip_entry member.
20293         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
20294         All uses removed.
20295         * modules/glob (Depends-on): Remove d-ino.
20297         glob: simplify symlink detection
20298         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
20299         uint8_t, as C99 does not require uint8_t.
20300         (struct readdir_result): Use it.  Do not define skip_entry unless
20301         it is needed; this saves a byte on platforms lacking d_ino.
20302         (readdir_result_type, readdir_result_skip_entry):
20303         New functions, replacing ...
20304         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
20305         ... these functions, which were removed.  This makes the callers
20306         easier to read.  All callers changed.
20307         (D_INO_TO_RESULT): Now empty if there is no d_ino.
20309 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20311         fts-tests: tag as a longrunning-test so not included by default
20312         * modules/fts-tests: This test takes about 20s on current systems,
20313         and uses about 285M of space on ext4.
20315 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20317         renameat2: fix compilation on alpine linux
20318         * m4/renameat.m4: Check for <linux/fs.h> presence.
20319         * lib/renameat2.h: Only include <linux/fs.h> if present.
20320         Reported by Assaf Gordon on Alpine Linux.
20322 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20324         glob: try to port recent changes to MS-Windows
20325         Problem reported by Bruno Haible in:
20326         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
20327         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
20328         * lib/glob.in.h (__glob_pattern_p): ... to here.
20330 2017-08-24  Eric Blake  <eblake@redhat.com>
20332         warnings: fix compilation with old autoconf
20333         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
20334         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
20335         AC_DEFUN.
20336         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
20337         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
20339 2017-08-24  Bruno Haible  <bruno@clisp.org>
20341         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
20342         * modules/glob (Depends-on): Add c99.
20344 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20346         glob: fix typo that broke platforms lacking d_ino
20347         This typo also hurt performance on GNU/Linux and similar hosts.
20348         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
20349         in previous change.
20351 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20353         glob: merge from glibc with Zanella glob changes
20354         Merge glob from glibc, with changes for glob proposed
20355         by Adhemerval Zanella in the thread starting here:
20356         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
20357         plus some fixes for this merge.
20358         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
20359         New files, ported from glibc.
20360         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
20361         with __restrict.
20362         (__size_t): Remove.  All uses replaced by size_t.
20363         (size_t): Define by defining __need_size_t and including <stddef.h>.
20364         This should work even in non-glibc platforms, where any name
20365         pollution is OK.
20366         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
20367         (struct stat64): Don’t worry about __GLOB_GNULIB.
20368         (glob, globfree, glob_pattern_p): Remove macros for
20369         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
20370         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
20371         but set errno.
20372         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
20373         removed since the glibc behavior works on null pointers.
20374         Do not include stdio.h; old SunOS is irrelevant now.
20375         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
20376         Include glob_internal.h.
20377         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
20378         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
20379         worked only coincidentally.
20380         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
20381         Remove macros; now done in glob.in.h.
20382         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
20383         (glob): Properly initialize glob structure with
20384         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
20385         Remove old code using SHELL since Bash no longer
20386         uses this.
20387         (glob, prefix_array): Separate MS code better.
20388         (glob, glob_in_dir): Use C99 decls before statements when glibc
20389         does.
20390         (glob_in_dir): Remove old Amiga and VMS code.
20391         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
20392         separate files.
20393         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
20394         (__glibc_unlikely):
20395         Move here from glob.c.
20396         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
20397         (weak_alias): New macro.
20398         (__size_t): Remove.  All uses replaced by size_t.
20399         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
20400         * modules/glob (Files): Add +lib/glob_internal.h,
20401         lib/glob_pattern_p.c, lib/globfree.c.
20402         (Depends-on): Remove snippet/arg-nonnull.
20404 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20406         glob: port to clang's Undefined Sanitizer
20407         Problem reported by Tim Rühsen in:
20408         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
20409         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
20410         (glob_in_dir): Do not rely on undefined behavior in accessing
20411         struct members beyond their bounds.  Use a flexible array member
20412         instead.
20414 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20416         vc-list-files: port to Solaris 10
20417         * build-aux/vc-list-files: Don't assume test -e works.
20419 2017-08-21  Karl Berry  <karl@freefriends.org>
20421         * doc/posix-functions/srandom.texi (srandom): typo }.
20423 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20425         git-version-gen: port to Solaris 10
20426         Problem reported by Dagobert Michelsen in:
20427         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
20428         * build-aux/git-version-gen (v_from_git):
20429         Use expr instead of shell substitution.
20431 2017-08-19  Bruno Haible  <bruno@clisp.org>
20433         host-cpu-c-abi: Improve detection of MIPS ABI.
20434         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
20435         _MIPS_SIM.
20437 2017-08-17  Bruno Haible  <bruno@clisp.org>
20439         hypot tests: Fix test failure on FreeBSD 11.0/x86.
20440         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
20442 2017-08-17  Bruno Haible  <bruno@clisp.org>
20444         float: Fix LDBL_MIN value on FreeBSD/x86.
20445         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
20447 2017-08-17  Bruno Haible  <bruno@clisp.org>
20449         random: Fix test compilation failure on Cygwin 1.5.25.
20450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
20451         HAVE_DECL_SETSTATE.
20452         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
20453         declared.
20454         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
20455         HAVE_DECL_SETSTATE.
20456         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
20457         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
20458         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
20459         * doc/posix-functions/random.texi: Likewise.
20460         * doc/posix-functions/setstate.texi: Likewise.
20461         * doc/posix-functions/srandom.texi: Likewise.
20463 2017-08-16  Bruno Haible  <bruno@clisp.org>
20465         stdnoreturn: Fix test compilation failure on Cygwin.
20466         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
20467         <stdnoreturn.h> replacement.
20468         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
20469         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
20471 2017-08-16  Bruno Haible  <bruno@clisp.org>
20473         thread: Fix conflict with pthread_sigmask module.
20474         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
20475         it's defined as a macro.
20476         * modules/thread (Depends-on): Add pthread_sigmask.
20478 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20480         rename: port better to NetBSD
20481         * doc/posix-functions/rename.texi (rename): NetBSD 7
20482         does not have the link-count bug.
20483         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
20484         broken merely because rename ("a", "b") removes "a" when the two
20485         names are hard links to the same file.
20487 2017-08-16  Bruno Haible  <bruno@clisp.org>
20489         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
20490         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
20491         the target file names with '$(srcdir)/'.
20492         * modules/unicase/locale-language (Makefile.am): Likewise.
20493         * modules/unicase/special-casing (Makefile.am): Likewise.
20494         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
20495         * modules/unictype/category-byname (Makefile.am): Likewise.
20496         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
20497         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
20498         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
20499         * modules/unictype/property-byname (Makefile.am): Likewise.
20500         * modules/unictype/scripts (Makefile.am): Likewise.
20501         * modules/uninorm/composition (Makefile.am): Likewise.
20503 2017-08-16  Bruno Haible  <bruno@clisp.org>
20505         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
20506         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
20507         value for OpenBSD.
20509 2017-08-16  Bruno Haible  <bruno@clisp.org>
20511         rename, renameat: Update doc regarding NetBSD.
20512         * doc/posix-functions/rename.texi: Clarify that when using
20513         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
20514         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
20515         version.
20517 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20519         renameat2: port better to macOS
20520         * lib/renameat2.c (renameat2): Use renameatx_np if available.
20522         futimens: don’t assume struct timespec layout
20523         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
20524         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
20525         * tests/test-fdutimensat.c (main):
20526         * tests/test-futimens.h (test_futimens):
20527         * tests/test-lutimens.h (test_lutimens):
20528         * tests/test-utimens.h (test_utimens):
20529         * tests/test-utimensat.c (main):
20530         Don’t assume that struct timespec is a two-member structure in
20531         tv_sec, tv_nsec order.  Although this is true on all platforms we
20532         know about, POSIX does not guarantee it.
20534         rename: document+test NetBSD rename
20535         Test failure reported by Bruno Haible in:
20536         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
20537         This is an area where NetBSD is better-behaved than POSIX,
20538         so allow the NetBSD behavior in tests.
20539         * doc/posix-functions/rename.texi:
20540         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
20541         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
20543 2017-08-15  Bruno Haible  <bruno@clisp.org>
20545         renameat: Ensure declaration in <stdio.h> on NetBSD.
20546         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
20547         * doc/posix-functions/renameat.texi: Mention this problem.
20549 2017-08-15  Bruno Haible  <bruno@clisp.org>
20551         duplocale: Work around NetBSD 7.0 bug.
20552         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
20553         * lib/duplocale.c: Add comment about NetBSD problem.
20554         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
20556 2017-08-15  Bruno Haible  <bruno@clisp.org>
20558         duplocale tests: Verify use with *_l functions.
20559         * modules/duplocale-tests (configure.ac): Test for uselocale and
20560         some *_l functions.
20561         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
20562         from main.
20563         (get_locale_dependent_values_from, test_with_locale_parameter): New
20564         functions.
20565         (main): Test both test_with_uselocale and test_with_locale_parameter.
20567 2017-08-15  Bruno Haible  <bruno@clisp.org>
20569         extensions: Enable NetBSD specific extensions.
20570         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
20572 2017-08-14  Bruno Haible  <bruno@clisp.org>
20574         open, openat: Update doc about O_CLOEXEC.
20575         * doc/posix-functions/open.texi: More concrete list of platforms.
20576         * doc/posix-functions/openat.texi: Likewise.
20578 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20580         open: support O_CLOEXEC
20581         * NEWS, doc/posix-functions/open.texi:
20582         * doc/posix-functions/openat.texi: Document this.
20583         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
20584         (GNULIB_defined_O_CLOEXEC): New symbol.
20585         * lib/open.c: Include cloexec.h.
20586         (open): Support O_CLOEXEC.
20587         * lib/openat.c: Include cloexec.h.
20588         (rpl_openat): Support O_CLOEXEC.
20589         * lib/popen-safer.c: Do not include cloexec.h.
20590         (open_noinherit): Remove.
20591         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
20592         * lib/save-cwd.c: Do not include cloexec.h.
20593         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
20594         * m4/open-cloexec.m4: New file.
20595         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
20596         Replace 'open' if O_CLOEXEC is not present.
20597         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
20598         Replace 'openat' if O_CLOEXEC is not present.
20599         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
20600         * modules/open (Files): Add m4/open-cloexec.m4.
20601         (Depends-on): Depend on cloexec if replacing 'open'.
20602         * modules/openat (Files): Add m4/open-cloexec.m4.
20603         (Depends-on): Depend on cloexec if replacing openat.
20604         * modules/popen-safer (Depends-on): Remove cloexec.
20605         * modules/save-cwd (Depends-on): Remove cloexec, and add
20606         fd-safer-flag and 'open'.
20608 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
20610         reallocarray: minor fixes
20611         * doc/glibc-functions/reallocarray.texi: Update version numbers.
20612         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
20613         * modules/reallocarray (License): Change from GPL to LGPL.
20614         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
20615         Indent properly and don't use tabs.
20617 2017-08-13  Darshit Shah  <darnir@gnu.org>
20619         reallocarray: New module
20620         reallocarray is a new function in glibc 2.26 to safely allocate an array
20621         of memory locations with integer overflow protection.
20622         * MODULES.html.sh: Add reallocarray.
20623         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
20624         * lib/reallocarray.c: New file to implement module reallocarray.
20625         * lib/stdlib.in.h: Add function declarations for reallocarray.
20626         * m4/reallocarray.m4: New file.
20627         * m4/stdlib_h.m4: Declare reallocarray.
20628         * modules/reallocarray: New file.
20629         * modules/reallocarray-test: New file.
20630         * modules/stdlib: Coerce stdlib.h to export reallocarray.
20631         * tests/test-reallocarray.c: New test.
20633 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
20635         dirent-safer: fix cloexec race
20636         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
20637         (opendir_safer): Use F_DUPFD_CLOEXEC.
20638         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
20639         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
20640         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
20641         instead of dup_safer.
20643         fts: fix cloexec races
20644         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
20645         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
20646         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
20647         (fd_ring_check): Set cloexec flag on new file descriptors.
20648         (fts_build, fd_ring_check): While we’re at it, make sure the
20649         resulting file descriptor is not 0, 1, or 2, since that is easy.
20651 2017-08-11  Bruno Haible  <bruno@clisp.org>
20653         fts tests: Fix link error.
20654         Reported by Tom G. Christensen in
20655         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
20656         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
20658 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20660         fts: port recent changes to CentOS 6
20661         Problem reported by Tom G. Christensen in:
20662         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
20663         * lib/fts.c (fsword): New type.
20664         (struct dev_type, filesystem_type): Use it.
20665         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
20666         Also, check for f_type only if fstatfs and sys/vfs.h work.
20668 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20670         tempname: do not depend on secure_getenv
20671         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
20672         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
20673         * modules/tempname (Depends-on): Remove secure_getenv.
20675 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
20677         extensions: add _OPENBSD_SOURCE
20678         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
20680 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
20681             Bruno Haible  <bruno@clisp.org>
20683         manywarnings: Add support for C++.
20684         * build-aux/g++-warning.spec: New file.
20685         * m4/manywarnings-c++.m4: New file.
20686         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
20687         redirects to manywarnings-c++.m4.
20688         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
20690 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20692         git-version-gen: another fix for tags with "-"
20693         * build-aux/git-version-gen: Improve fix for tags containing "-".
20694         Suggested by Markus Armbruster in:
20695         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
20697 2017-08-06  Bruno Haible  <bruno@clisp.org>
20699         warnings, manywarnings: Add support for multiple languages, not just C.
20700         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
20701         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
20702         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
20703         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
20704         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
20705         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
20706         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
20707         of the current language. If C++ is the current language, modify
20708         WARN_CXXFLAGS instead of WARN_CFLAGS.
20709         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
20710         gl_MANYWARN_ALL_GCC.
20711         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
20713 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
20715         git-version-gen: Fix for tags containing '-'
20717         Really old versions of git-describe (before v1.5.0, Feb 2007)
20718         don't have the number of commits in their long format output,
20719         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
20720         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
20721         recognizes both patterns, and normalizes the old format to the new one.
20723         Unfortunately, this normalization code gets confused when the tag
20724         contains '-'.  Reproducer:
20726             $ git-tag -m test v0.2-rc1
20727             $ build-aux/git-version-gen .tarball-version; echo
20728             build-aux/git-version-gen: WARNING: git rev-list failed
20729             UNKNOWN
20731         We take exact tag "v0.2-rc1" for the old format, extract the presumed
20732         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
20733         commits since tha tag.  Fails, because tag "v0.2" does not exist.
20735         * git-version-gen: We could perhaps drop support for versions from
20736         more than a decade ago.  But tightening the pattern match is easy
20737         enough, so do that.  Still breaks when you use version tags ending in
20738         something matching -g????, but you arguably get what you deserve then.
20740 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
20742         valgrind-tests: use ls, and cache
20743         * m4/valgrind-tests.m4: Test ls, not bash.
20744         Problem reported by Reuben Thomas.
20745         Also, cache the result so that it can be overridden.
20747 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
20749         manywarnings: port to 64-bit GCC builds of Emacs
20750         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
20751         object size rather than hardwiring 2147483647.  This is needed to
20752         build GNU Emacs, which has one conditional (and used
20753         only-in-theory) call to malloc with a literal greater than
20754         2147483647.
20756 2017-08-04  Bruno Haible  <bruno@clisp.org>
20758         Relax the license of some modules with no runtime code.
20759         * modules/std-gnu11 (License): Set to 'unlimited'.
20760         * modules/c99 (License): Likewise.
20761         Reported by Reuben Thomas <rrt@sc3d.org>.
20762         * modules/d-ino (License): Set to 'LGPL'.
20763         * modules/host-os (License): Likewise.
20764         * modules/longlong (License): Likewise.
20766 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
20768         renameat2: port to RHEL 7 + NFS
20769         * lib/renameat2.c (renameat2) [SYS_renameat2]:
20770         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
20771         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
20773 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
20775         renameat2: port to non-renameat platforms
20776         Problem reported for MSVC-2015 by Gisle Vanem in:
20777         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
20778         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
20779         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
20781 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
20783         manywarnings: port to 32-bit GCC bug
20784         Problem reported by Pino Toscano in:
20785         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
20786         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
20787         not 2**63 - 1, to work around the following GCC bug:
20788         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
20790 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
20792         backupfile: new function to validate backup suffix
20793         * lib/backupfile.c (set_simple_backup_suffix): New function.
20794         (backupfile_internal): Use it.
20796         canonicalize: fix EOVERFLOW commentary
20797         Problem reported by Bruno Haible in:
20798         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
20799         * lib/canonicalize.c (canonicalize_filename_mode):
20800         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
20802         Don't interpret EOVERFLOW to mean nonexistence
20803         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
20804         may be EOVERFLOW; this is likely more useful than reporting the
20805         stat errno.
20806         * lib/glob.c (link_stat): Rename from link_exists2_p and
20807         return -1/0 instead of 0/1.  Caller changed.
20808         * lib/glob.c (link_exists_p):
20809         * lib/renameat2.c (rename_noreplace, renameat2):
20810         * lib/tempname.c (try_nocreate):
20811         If errno == EOVERFLOW then the directory entry exists, so do not
20812         act as if it does not exist.
20814         backup-rename: new module
20815         It is like backupfile, except it avoids some race conditions,
20816         and it does not output to stderr or exit.
20817         * MODULES.html.sh: Add backup-rename.
20818         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
20819         * modules/backup-rename: New files.
20820         * lib/backupfile.c: Turn this into an internals file, which
20821         contains code common to backupfile and backup_rename.  Include
20822         backupfile-internal.h instead of backupfile.h.  Do not include
20823         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
20824         renameat2.h and fcntl.h.
20825         (BACKUP_NOMEM): New constant.
20826         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
20827         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
20828         (backupfile_internal): Rename from find_backup_file_name.
20829         Support new arg RENAME.
20830         (backup_args, backup_types, get_version, xget_version):
20831         Move to lib/backup-find.c.
20832         * lib/backupfile.h (backup_file_rename): New decl.
20833         * modules/backupfile (Files): Add lib/backup-internal.h,
20834         lib/backup-find.c.
20835         (Depends-on): Add dirfd, fcntl, renameat2.
20836         (lib_SOURCES): Add backup-find.c.
20838         renameat2: port better to older Solaris
20839         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
20840         Add goto to use a label, to silence picky compilers.
20842         fts-tests: port to gcc -Wwrite-strings
20843         * tests/test-fts.c (base, base_d): New static vars.
20844         (argv, remove_tree, main): Use them.
20846 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
20848         relocatable-lib{,-lgpl}: improve documentation
20849         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
20850         Various other updates.
20852 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
20853             Bruno Haible  <bruno@clisp.org>
20855         relocatable-lib{,-lgpl}: add Valgrind suppressions
20856         * lib/relocatable.valgrind: New file.
20857         * modules/relocatable-lib (Files): Add relocatable.valgrind.
20858         * modules/relocatable-lib-lgpl: Likewise.
20860 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
20862         relocatable: Make the license on the sources the GPL.
20863         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
20864         LGPL, which was a special case so that the relocatable source files
20865         could be used without gnulib-tool, to GPL. They can still be used under
20866         the LGPL, using the --lgpl option to gnulib-tool.
20868 2017-07-30  Bruno Haible  <bruno@clisp.org>
20870         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
20871         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
20872         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
20873         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
20874         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
20876 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
20878         faccessat: document AT_SYMLINK_NOFOLLOW issue
20879         * doc/posix-functions/faccessat.texi: Modernize platform list.
20880         Document AT_SYMLINK_NOFOLLOW limitation.
20882         renameat2: port to Solaris 10
20883         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
20884         with AT_SYMLINK_NOFOLLOW (which is not portable).
20885         (renameat): Undef before using, to avoid endless recursion when
20886         the replacement renameat calls renameat2 which calls the
20887         replacement renameat.
20888         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
20889         * modules/renameat2 (Depends-on): Remove faccessat.
20890         * modules/renameat-tests (test_renameat_LDADD):
20891         * modules/renameat2-tests (test_renameat2_LDADD):
20892         Remove $(LIB_EACCESS).
20894         renameat2: new module
20895         Although the Linux syscall renameat2 is not in glibc (yet?), it is
20896         useful to have access to its RENAME_NOREPLACE flag.
20897         * MODULES.html.sh (func_all_modules): Add renameat2.
20898         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
20899         * modules/renameat2-tests, tests/test-renameat2.c: New files.
20900         * lib/renameat.c (renameat): Move most of the implementation
20901         to renameat2, and just call renameat2.
20902         * modules/renameat (Files): Remove lib/at-func2.c.
20903         (Depends-on): Depend only on renameat2.
20904         (Include): Remove <fcntl.h>.
20905         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
20906         since renameat (via renameat2) might use faccessat.
20908 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
20910         vc-list-files: Adjust the script to support git worktrees
20911         * build-aux/vc-list-files: Require existence, not directory.
20913 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
20915         doc: bring MODULES.html.sh up to date
20916         Somehow a few months ago we stopped updating MODULES.html.sh.
20917         I don’t recall explicitly deciding this, so I updated it now.
20918         Alternatively I suppose we could remove it.
20919         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
20920         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
20921         truncate, utime, utime-h, windows-stat-inodes,
20922         windows-stat-override, windows-stat-timespec, year2038.  Sort.
20924 2017-07-26  Jim Meyering  <meyering@fb.com>
20926         fprintftime: fix build-break caused by recent renaming
20927         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
20928         "strftime.c".
20929         * modules/fprintftime: Depend directly on nstrftime.
20931 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
20933         regex: work with GCC7's -Werror=implicit-fallthrough=
20934         * lib/regex_internal.h (FALLTHROUGH): New macro.
20935         * lib/regcomp.c (peek_token_bracket, parse_expression):
20936         * lib/regexec.c (check_node_accept): Use it.
20938 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
20940         fts: simplify fts_build
20941         * lib/fts.c (fts_build): Simplify, and be lazier about
20942         calling leaf_optimization.
20944         fts: three levels of leaf optimization
20945         * lib/fts.c (enum leaf_optimization): New type with three values.
20946         (S_MAGIC_AFS): New macro.  Sort them.
20947         (leaf_optimization): Rename from leaf_optimization_applies, and
20948         return enum leaf_optimization instead of bool.  All uses changed.
20949         Add cases for unknown type and for AFS.
20950         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
20952         fts: cache dirent_inode_sort_may_be_useful too
20953         * lib/fts.c (struct dev_type): New struct.
20954         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
20955         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
20956         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
20957         Now takes FTSENT const *, not int.  All uses changed.  Use
20958         filesystem_type to cache.
20959         (link_count_optimize_ok): Remove.  Caller changed to use
20960         leaf_optimization_applies, which now uses shared cache.
20962         fts: introduce MIN_DIR_NLINK
20963         * lib/fts.c (MIN_DIR_NLINK): New constant.
20964         Use it instead of 2, whenever we are talking about link counts.
20966         fts: nlink_t signedness fixups
20967         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
20968         so that root need not be a special case later.
20969         (fts_read): Remove now-redundant test for fts_level.
20970         Do not assume that nlink_t is signed.
20971         (fts_build): Remove useless decrement of nlinks.
20972         (fts_stat): Avoid unlikely signed integer overflow later, if
20973         nlink_t is signed.
20975         fts-tests: new module
20976         * modules/fts-tests, tests/test-fts.c: New files.
20978 2017-07-23  Bruno Haible  <bruno@clisp.org>
20980         Rename module 'strftime' to 'nstrftime'.
20981         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
20982         * lib/nstrftime.c: Renamed from lib/strftime.c.
20983         * modules/nstrftime: Renamed from modules/strftime.
20984         (Files, Makefile.am): Update.
20985         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
20986         Fix comment.
20987         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
20988         (Files, Makefile.am): Update.
20989         * modules/strftime: New file, an obsolete indirection.
20990         * doc/posix-functions/strftime.texi: Update reference.
20991         * config/srclist.txt: Update info.
20992         * NEWS: Mention the change.
20994 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
20996         malloca: Silence a warning from clang's memory sanitizer.
20997         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
20998         (freea): Use it.
21000 2017-07-18  Bruno Haible  <bruno@clisp.org>
21002         host-cpu-c-abi: Fix detection of MIPS ABI.
21003         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
21004         ABI, not the CPU instruction set.
21006 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21008         explicit_bzero: new module
21009         The explicit_bzero function has been added to glibc.
21010         This module is intended to supports its use in GNU programs.
21011         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
21012         * m4/explicit_bzero.m4, modules/explicit_bzero:
21013         New files.
21014         * doc/gnulib.texi (Glibc string.h): Link to new doc.
21015         * lib/string.in.h (explicit_bzero): Declare.
21016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
21017         * modules/string (string.h): Substitute its vars.
21019 2017-07-16  Bruno Haible  <bruno@clisp.org>
21021         threadlib: Support static linking.
21022         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
21023         set gl_cv_have_weak to 'no'.
21025 2017-07-16  Bruno Haible  <bruno@clisp.org>
21027         unicase/locale-language: Fix link dependencies.
21028         * modules/unicase/locale-language (Link): New section.
21029         * modules/unicase/locale-language-tests (Makefile.am): Link
21030         test-locale-language program with $(LIBTHREAD).
21032 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21034         sys_socket: Add support for OpenVMS.
21035         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
21036         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
21038 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21040         sys_resource: Add support for OpenVMS.
21041         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
21042         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
21044 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21045             Bruno Haible  <bruno@clisp.org>
21047         math: Add support for OpenVMS.
21048         * lib/math.in.h [__VMS]: Include <fp.h>.
21049         * doc/posix-headers/math.texi: Mention OpenVMS issues.
21051 2017-07-15  Bruno Haible  <bruno@clisp.org>
21053         getdtablesize: Add minimal support for OpenVMS.
21054         Reported by John E. Malmberg <wb8tyw@qsl.net>.
21055         * modules/getdtablesize (Description): Fix.
21056         * lib/getdtablesize.c: Fix comment.
21057         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
21058         getdtablesize() function, even though the test fails.
21059         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
21060         limitation on OpenVMS.
21062 2017-07-13  Bruno Haible  <bruno@clisp.org>
21064         Revisit cross-compilation guesses.
21065         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
21067 2017-07-13  Bruno Haible  <bruno@clisp.org>
21069         Improve cross-compilation guesses for native Windows.
21070         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
21071         Windows.
21072         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
21073         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
21074         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21075         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
21076         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
21077         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
21078         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
21079         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21080         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21081         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
21082         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21083         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
21084         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
21085         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
21086         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
21087         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21088         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
21089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21090         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21091         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21092         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
21093         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21094         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
21095         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
21096         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
21097         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
21098         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21099         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21100         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21101         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
21102         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21103         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
21104         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21105         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
21106         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
21107         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
21108         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21109         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21110         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21111         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21112         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21113         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21114         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
21115         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
21116         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
21117         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
21118         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
21119         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
21120         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
21121         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
21122         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
21123         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
21124         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
21125         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
21126         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
21127         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
21128         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
21129         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21130         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
21131         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
21132         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21133         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
21134         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
21135         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21136         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21138         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
21139         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21140         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
21141         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
21142         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
21143         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
21144         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21145         * m4/regex.m4 (gl_REGEX): Likewise.
21146         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21147         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
21148         gl_FUNC_REMAINDERF_WORKS): Likewise.
21149         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
21150         gl_FUNC_REMAINDERL_WORKS): Likewise.
21151         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21152         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21153         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21154         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21155         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21156         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
21157         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21158         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21159         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
21160         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21161         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
21162         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
21163         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21164         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21165         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21166         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21167         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21168         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21169         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21170         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21171         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21172         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21173         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21174         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21175         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21176         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21177         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21178         Likewise.
21179         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21180         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
21181         Windows. Enable also on Autoconf 2.70.
21182         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21183         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21184         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21185         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
21186         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21187         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
21188         for native Windows.
21189         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21190         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
21192 2017-07-13  Bruno Haible  <bruno@clisp.org>
21194         Improve cross-compilation guesses for native Windows.
21195         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
21196         Windows.
21197         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
21198         memchr.m4.
21199         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21201 2017-07-13  Bruno Haible  <bruno@clisp.org>
21203         Improve cross-compilation guesses for native Windows.
21204         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
21205         native Windows.
21206         (gl_FUNC_FFLUSH): Update accordingly.
21207         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
21208         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21210 2017-07-11  Bruno Haible  <bruno@clisp.org>
21212         More systematic m4 quoting and indentation.
21213         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
21214         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21215         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21216         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21217         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21218         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
21219         gl_WINSIZE_IN_PTEM): Likewise.
21220         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
21221         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21222         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21223         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
21224         Correct indentation.
21225         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
21226         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21227         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
21228         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21229         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21230         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21232 2017-07-10  Bruno Haible  <bruno@clisp.org>
21234         round, roundf: Avoid compiler warning in configure test.
21235         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
21236         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21238 2017-07-10  Bruno Haible  <bruno@clisp.org>
21240         getlogin tests: Avoid #ifdefs when sharing code between modules.
21241         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
21242         * modules/getlogin-tests (Files): Likewise. Remove
21243         tests/test-getlogin_r.c.
21244         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
21245         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
21246         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
21247         getlogin().
21249 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21251         getlogin: don’t assume one name per uid
21252         Problem reported by Wolfgang F. Muthmann (Bug#27640).
21253         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
21254         (ttyname): Remove test.
21255         * modules/getlogin_r-tests (ttyname): Remove test.
21256         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
21257         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
21258         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
21259         getlogin rather than getlogin_r.  This avoids code duplication.
21260         (main): Use isatty and fstat rather than ttyname and stat.
21261         Use getpwnam instead of getpwuid, to be portable to test platforms
21262         that have multiple login names for the same uid.
21264 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
21265             Bruno Haible  <bruno@clisp.org>
21267         glob: Fix more memory leaks.
21268         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
21269         returning.
21270         Reported by Tim Rühsen.
21272 2017-07-10  Bruno Haible  <bruno@clisp.org>
21274         Make sure $host and $host_os are defined when used.
21275         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
21276         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
21277         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
21278         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21279         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21280         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21281         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21282         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
21283         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21284         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21285         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
21286         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
21287         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21288         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
21289         m4_ifdef block.
21291 2017-07-09  Bruno Haible  <bruno@clisp.org>
21293         *printf: Fix cross-compilation guess for Solaris.
21294         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
21295         2010-12-21.
21297 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21298             Bruno Haible  <bruno@clisp.org>
21300         vasnprintf: port to macOS 10.13
21301         Problem reported by comex in:
21302         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
21303         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
21305 2017-07-06  Bruno Haible  <bruno@clisp.org>
21307         imaxdiv tests: Fix logic.
21308         * tests/test-imaxdiv.c (main): Use == instead of =.
21309         Reported by Coverity.
21311 2017-07-06  Bruno Haible  <bruno@clisp.org>
21313         uninorm/filter: Fix use-after-free bug.
21314         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
21315         sortbuf == filter->sortbuf invariant.
21316         Reported by Coverity.
21318 2017-07-06  Bruno Haible  <bruno@clisp.org>
21320         glob: Fix more memory leaks.
21321         * lib/glob.c (glob): Free dirname before returning.
21322         Reported by Coverity and Tim Rühsen.
21324 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21326         parse-datetime: fix uninit var bug
21327         Reported by Bruno Haible in:
21328         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
21329         * lib/parse-datetime.y (parse_datetime2): Do not use
21330         uninitialized.
21332 2017-07-05  Bruno Haible  <bruno@clisp.org>
21334         doc: Update for MSVC 14.
21335         * doc/posix-headers/*.texi: Add info about MSVC 14.
21336         * doc/posix-functions/*.texi: Likewise.
21337         * doc/pastposix-functions/*.texi: Likewise.
21338         * doc/glibc-headers/*.texi: Likewise.
21339         * doc/glibc-functions/*.texi: Likewise.
21341 2017-07-05  Bruno Haible  <bruno@clisp.org>
21343         sched: Fix build failure on native Windows (regression from 2017-06-19).
21344         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
21346 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
21348         stdioext: Port to OpenVMS.
21349         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
21350         * lib/fpending.c (fpending): Remove non-working VMS specific code.
21351         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
21352         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
21353         * lib/fpurge.c (fpurge): Likewise.
21354         * lib/freadable.c (freadable): Likewise.
21355         * lib/freadahead.c (freadahead): Likewise.
21356         * lib/freading.c (freading): Likewise.
21357         * lib/freadptr.c (freadptr): Likewise.
21358         * lib/freadseek.c (freadseek): Likewise.
21359         * lib/fseeko.c (fseeko): Likewise.
21360         * lib/fseterr.c (fseterr): Likewise.
21361         * lib/fwritable.c (fwriteable): Likewise.
21362         * lib/fwriting.c (fwriting): Likewise.
21364 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
21366         glob: Declare variables at the very start of their scope.
21367         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
21368         its separate scope, so the functions will compile on Haiku.
21370 2017-07-01  Bruno Haible  <bruno@clisp.org>
21372         logbl: Work around a glibc bug on PowerPC64LE.
21373         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
21374         numbers.
21375         * doc/posix-functions/logbl.texi: Update.
21377 2017-06-29  Bruno Haible  <bruno@clisp.org>
21379         stat, fstat: Compile stat-w32.c only on platforms that need it.
21380         Suggested by Paul Eggert.
21381         * modules/stat (configure.ac): Request stat-w32.o only on native
21382         Windows.
21383         * modules/fstat (configure.ac): Likewise.
21385 2017-06-25  Bruno Haible  <bruno@clisp.org>
21387         stat: Improve last change.
21388         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
21390 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
21392         stat: port to xlc 12.01
21393         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
21394         12.01 complains "Compilation unit is empty."
21396 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
21398         xalloc-oversized: port to icc
21399         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
21400         __builtin_mul_overflow if ICC is defined, as this results in
21401         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
21402         20170213.
21404 2017-06-19  Bruno Haible  <bruno@clisp.org>
21406         classpath: Avoid including config.h twice, as it produces warnings.
21407         Reported by John E. Malmberg <wb8tyw@gmail.com>.
21408         * lib/classpath.h: Conditionalize the include of config.h.
21410 2017-06-19  Bruno Haible  <bruno@clisp.org>
21411             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
21413         sched: Fix compilation failure on OpenVMS.
21414         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
21415         test whether <pthread.h> exists and defines struct sched_param.
21416         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
21418 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
21420         diffseq: port to GCC 7 with --enable-gcc-warnings
21421         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
21422         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
21423         not complain about big_snake being defined but not used.
21425 2017-06-15  Bruno Haible  <bruno@clisp.org>
21427         gettext-h: Update theoretical condition for use of variable size arrays.
21428         Reported by Paul Eggert.
21429         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
21430         to include the theoretical condition for availability of variable size
21431         arrays, if we could trust the value of __STDC_VERSION__.
21433 2017-06-12  Bruno Haible  <bruno@clisp.org>
21435         Relicense some modules under LGPLv2+.
21436         Daiki Ueno's approval is in
21437         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
21438         * modules/uniwidth/base (License): Change to LGPLv2+.
21439         * modules/uniwidth/width (License): Likewise.
21441 2017-06-11  Bruno Haible  <bruno@clisp.org>
21443         localename: Fix test failure on DragonFly BSD.
21444         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
21445         like FreeBSD.
21447 2017-06-11  Bruno Haible  <bruno@clisp.org>
21449         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
21450         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
21451         * lib/float.in.h: Likewise.
21452         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
21454 2017-06-11  Bruno Haible  <bruno@clisp.org>
21456         gnulib-tool: Clean up after autotools.
21457         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
21458         useless directory left over by the Autotools.
21460 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
21462         getopt-posix: port to glibc 2.25.90
21463         Problem reported by Daniel P. Berrange in:
21464         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
21465         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
21466         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
21467         #undef if __GETOPT_PREFIX is defined.
21469 2017-06-11  Bruno Haible  <bruno@clisp.org>
21471         strtod-obsolete: Fix license.
21472         * modules/strtod-obsolete (License): Change to LGPL.
21474 2017-06-10  Jim Meyering  <meyering@fb.com>
21476         maint: update to work with GCC7's -Werror=implicit-fallthrough=
21477         * lib/savewd.c (FALLTHROUGH): Define.
21478         (savewd_save, savewd_restore): Use this, rather than a comment,
21479         whenever one switch case falls through into the next.
21481 2017-06-08  Bruno Haible  <bruno@clisp.org>
21483         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
21484         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
21485         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
21486         case.
21488 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
21490         doc: remove robots, add prereqs
21491         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
21492         builds.  Simon's robot site does not seem to be up, so remove
21493         mentions of it for now.
21495 2017-06-08  Bruno Haible  <bruno@clisp.org>
21497         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
21498         * gnulib-tool (func_symlink_target): New function, extracted from
21499         func_symlink.
21500         (func_symlink, func_symlink_if_changed): Use it.
21502 2017-06-08  Bruno Haible  <bruno@clisp.org>
21504         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
21505         * gnulib-tool (func_ln_s): Determine cp_src correctly.
21507 2017-06-07  Bruno Haible  <bruno@clisp.org>
21509         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
21510         Reported by John E. Malmberg <wb8tyw@gmail.com> in
21511         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
21512         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
21513         override, pass 2 arguments to getcwd, not 3.
21515 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
21517         same-inode: port better to VMS 8.2 and later
21518         Problem reported by John E. Malmberg in:
21519         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
21520         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
21521         Use the usual POSIX definition.
21522         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
21524 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
21526         error: fix POSIX violation for va_end
21527         Problem reported by Bruno Haible in:
21528         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
21529         * lib/error.c (error_tail): Do not call va_end here.
21530         (error, error_at_line): Call it here instead.
21532 2017-05-28  Bruno Haible  <bruno@clisp.org>
21534         c-strtod: Make it usable in C++ mode.
21535         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
21537 2017-05-25  Jim Meyering  <meyering@fb.com>
21539         quotearg: fix compilation failure due to FALLTHROUGH misuse
21540         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
21541         macro back to /* fall through */ comment.  The macro can apply only
21542         to a following case statement.  Reported by Assaf Gordon.
21544 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
21546         intprops: port to recent icc
21547         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
21548         but does not support __builtin_add_overflow etc.
21549         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
21550         Define to 0.
21552 2017-05-23  Karl Berry  <karl@freefriends.org>
21554         * config/srclist.txt (iconv.m4): sync broken, comment out
21555         until (hopefully) the next gettext release.
21557 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
21559         Remove repeated words in comments.
21561 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
21563         fallthrough: reinstate a FALLTHROUGH instance in quotearg
21564         quotearg.c: Reinstate this instance which is significant
21565         when the if branch is not taken.
21567 2017-05-21  Bruno Haible  <bruno@clisp.org>
21569         gnulib-tool: Add options to create hard links.
21570         * gnulib-tool (func_usage): Document options --hardlink,
21571         --local-hardlink, --more-hardlinks.
21572         (func_symlink): Renamed from func_ln.
21573         (func_symlink_if_changed): Renamed from func_ln_if_changed.
21574         (func_hardlink): New function.
21575         (copymode, lcopymode): New variables.
21576         (symbolic, lsymbolic): Remove variables.
21577         (Options): Implement options --hardlink, --local-hardlink,
21578         --more-hardlinks.
21579         (func_should_link): Renamed from func_should_symlink. Set copyaction.
21580         (func_add_file, func_update_file): Update invocation of
21581         func_should_link. Invoke func_hardlink when appropriate.
21582         (func_import): Update comments.
21583         (func_create_testdir): Update invocation of func_should_link. Invoke
21584         func_hardlink when appropriate.
21585         Finally, invoke 'git update-index --refresh' to mitigate the effects of
21586         the hard links on git.
21588 2017-05-20  Bruno Haible  <bruno@clisp.org>
21590         argp: Simplify bit manipulation.
21591         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
21592         on a signed integer type.
21594 2017-05-20  Bruno Haible  <bruno@clisp.org>
21596         Avoid wrong configure results with gcc -fsanitize=address.
21597         This completes the work done on 2016-02-06 on this topic.
21598         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
21599         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
21600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21601         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21602         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
21603         returning.
21604         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21605         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
21606         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21607         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21608         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21609         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21610         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
21611         free allocated memory before returning.
21612         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21613         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
21614         objects before returning.
21615         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
21616         returning.
21618 2017-05-20  Bruno Haible  <bruno@clisp.org>
21620         gnulib-tool: Don't create hard links between gnulib and its testdirs.
21621         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
21623 2017-05-20  Bruno Haible  <bruno@clisp.org>
21625         argp, tsearch tests: Fix file list.
21626         * modules/argp-tests (Files): Add tests/macros.h.
21627         * modules/tsearch-tests (Files): Likewise.
21629 2017-05-20  Bruno Haible  <bruno@clisp.org>
21631         getopt-posix tests: Remove redundant include.
21632         * tests/test-getopt.h: Don't include "macros.h". It's already included
21633         by tests/test-getopt-main.h.
21635 2017-05-19  Jim Meyering  <meyering@fb.com>
21637         dfa: two small simplifications
21638         * lib/dfa.c (build_state): Avoid repeating longer expressions.
21640 2017-05-18  Jim Meyering  <meyering@fb.com>
21642         fallthrough: update for GCC 7/8
21643         * lib/quotearg.c (FALLTHROUGH): New macro.
21644         Use it whenever one switch case falls through into the next,
21645         replacing "/* Fall through */" comments.  This exposed one
21646         instance of an unwarranted "fall through" comment: unwarranted
21647         because it preceded a "goto" label not a case statement.
21648         * lib/freopen-safer.c (freopen_safer): Likewise.
21649         * lib/fts.c (leaf_optimization_applies): Likewise.
21650         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
21651         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
21652         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
21653         tests/macros.h for the definition.
21654         * tests/test-argp.c (group1_parser): Likewise.
21655         * tests/test-getopt.h (getopt_loop): Likewise.
21657 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21659         argp: fix shift bug
21660         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
21661         behavior on shift overflow, caught by gcc -fsanitize=undefined.
21663         argp: fix pointer-subtraction bug
21664         * lib/argp-help.c (hol_append): Don’t subtract pointers to
21665         different arrays, as this can run afoul of -fcheck-pointer-bounds.
21666         See the thread containing Bruno Haible’s report in:
21667         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
21669 2017-05-19  Bruno Haible  <bruno@clisp.org>
21671         printf-posix tests: Avoid test failure with "gcc --coverage".
21672         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21673         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
21674         than 5000000.
21675         * tests/test-fprintf-posix2.c (main): Likewise.
21677 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21679         closeout: don’t close stderr when sanitizing
21680         * NEWS: Document this.
21681         * lib/closeout.c (__has_feature): New macro, if not already defined.
21682         (SANITIZE_ADDRESS): New constant.
21683         (close_stdout): Don’t close stderr if sanitizing addresses.
21685 2017-05-19  Bruno Haible  <bruno@clisp.org>
21687         get-rusage-data tests: Avoid failure on Linux/glibc.
21688         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
21689         on glibc systems.
21691 2017-05-18  Bruno Haible  <bruno@clisp.org>
21693         localename: Include necessary header files on Cygwin.
21694         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
21695         where NL_LOCALE_NAME is defined.
21697 2017-05-18  Bruno Haible  <bruno@clisp.org>
21699         gettext: Update macros from gettext git.
21700         * m4/intldir.m4: Require Autoconf >= 2.60.
21701         * m4/progtest.m4: Fix typos in copyright notice.
21703 2017-05-18  Bruno Haible  <bruno@clisp.org>
21705         copy-file tests: Fix link error (regression from 2017-05-01).
21706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21707         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
21708         $(LIB_CLOCK_GETTIME).
21710 2017-05-18  Bruno Haible  <bruno@clisp.org>
21712         unicase/special-casing: Fix incompatibility with gperf-3.0.4
21713         (regression from 2017-02-13).
21714         * lib/unicase/special-casing.in.h: Renamed from
21715         lib/unicase/special-casing.h.
21716         * modules/unicase/special-casing (Files): Add
21717         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
21718         (Makefile.am): Add rule for generating unicase/special-casing.h.
21719         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
21720         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
21721         not "special-casing.h".
21722         * lib/unicase/u*.c: Likewise.
21724 2017-05-17  Bruno Haible  <bruno@clisp.org>
21726         README: Don't ask people to read a TeXinfo file.
21727         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21728         * README: Tell people how to read the HTML formatted manual.
21730 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21732         parse-datetime: Fix memleak
21733         * lib/parse-datetime.y (parse_datetime2): Cleanup on
21734         localtime_rz() failure.
21736 2017-05-16  Bruno Haible  <bruno@clisp.org>
21738         javacomp: Fix handle leak.
21739         Found by Coverity.
21740         * lib/javacomp.c (get_classfile_version): Close fd before returning.
21742 2017-05-16  Bruno Haible  <bruno@clisp.org>
21744         relocate: Make it easier to reclaim allocated memory.
21745         * lib/relocatable.h (relocate2): New declaration/macro.
21746         * lib/relocatable.c (relocate2): New function.
21747         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
21748         relocate2 function.
21749         * lib/localcharset.c (relocate2): Define fallback.
21750         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
21751         allocated memory.
21752         * lib/javaversion.c (relocate2): Define fallback.
21753         (javaexec_version): Invoke relocate2 instead of relocate. Free the
21754         allocated memory.
21756 2017-05-16  Bruno Haible  <bruno@clisp.org>
21758         relocate: Simplify EMX specific code.
21759         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
21760         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
21762 2017-05-16  Bruno Haible  <bruno@clisp.org>
21764         sigpipe tests: Fix file list.
21765         * modules/sigpipe-tests (Files): Add tests/macros.h.
21767 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21769         manywarnings: update for GCC 7
21770         * build-aux/gcc-warning.spec:
21771         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
21772         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
21773         requires a non-comment fallthrough attribute.  This is a bit
21774         cleaner than the comment versions.
21775         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
21776         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
21777         Use it whenever one switch case falls through into the next.
21778         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
21779         Use FALLTHROUGH macro.
21781 2017-05-15  Bruno Haible  <bruno@clisp.org>
21783         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
21784         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
21785         @ALLOCA@, not @LTALLOCA@.
21787 2017-05-15  Bruno Haible  <bruno@clisp.org>
21789         sys_select: Avoid "was expanded before it was required" warning.
21790         * modules/sys_select (configure.ac): Require, not invoke,
21791         gl_HEADER_SYS_SELECT.
21793 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21795         gnulib-tool: improve GNU Make debugging
21796         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
21797         Report autoconf diagnostics when it fails, in the output makefile.
21799 2017-05-14  Bruno Haible  <bruno@clisp.org>
21801         stat-time tests: Improve comment.
21802         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
21804 2017-05-14  Bruno Haible  <bruno@clisp.org>
21806         same-inode: Adapt for windows-stat-inodes.
21807         * lib/same-inode.h: Include <sys/types.h>.
21808         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
21809         * modules/same-inode (Depends-on): Add sys_types.
21811 2017-05-14  Bruno Haible  <bruno@clisp.org>
21813         windows-stat-inodes: New module.
21814         * m4/windows-stat-inodes.m4: New file.
21815         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
21816         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
21817         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
21818         (_GL_WINDOWS_STAT_INODES): New macro.
21819         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
21820         (GetFileInformationByHandleExFunc): New variable.
21821         (initialize): Initialize it.
21822         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
21823         st_ino appropriately.
21824         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
21825         a fallback, because it does not provide st_dev and st_ino values.
21826         * modules/fstat (Depends-on): Add 'verify'.
21827         * modules/windows-stat-inodes: New file.
21828         * doc/windows-stat-inodes.texi: New file.
21829         * doc/gnulib.texi: Include it.
21830         * doc/posix-headers/sys_stat.texi: Mention the new module.
21832 2017-05-14  Bruno Haible  <bruno@clisp.org>
21834         stat-time tests: Workaround for native Windows.
21835         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
21836         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
21837         New variables.
21838         (initialize_filenames): New function.
21839         (main): Invoke it.
21840         (cleanup, prepare_test): Update.
21842 2017-05-14  Bruno Haible  <bruno@clisp.org>
21844         stat-time: Adapt for windows-stat-timespec.
21845         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
21846         entire st_ctim field.
21848 2017-05-13  Jim Meyering  <meyering@fb.com>
21850         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
21851         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
21852         file that uses the assume macro, claiming that verify.h is unused.
21854 2017-05-13  Bruno Haible  <bruno@clisp.org>
21856         Use symbolic values for _WIN32_WINNT.
21857         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
21858         * lib/sethostname.c (_WIN32_WINNT): Likewise.
21860 2017-05-13  Bruno Haible  <bruno@clisp.org>
21862         year2038: New module.
21863         * m4/year2038.m4: New file.
21864         * modules/year2038: New file.
21865         * doc/year2038.texi: New file.
21866         * doc/gnulib.texi: Include it.
21868 2017-05-13  Bruno Haible  <bruno@clisp.org>
21870         largefile: Simplify.
21871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
21872         of _GL_WINDOWS_64_BIT_ST_SIZE.
21874 2017-05-13  Bruno Haible  <bruno@clisp.org>
21876         largefile: Improve and document.
21877         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
21878         the mingw headers already define 'stat' appropriately.
21879         * modules/largefile (Description): Clarify.
21880         * doc/largefile.texi: New file.
21881         * doc/gnulib.texi: Include it.
21882         * doc/posix-headers/sys_types.texi: Update.
21884 2017-05-13  Bruno Haible  <bruno@clisp.org>
21886         truncate: New module.
21887         * lib/unistd.in.h (truncate): New declaration.
21888         * lib/truncate.c: New file.
21889         * m4/truncate.m4: New file.
21890         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
21891         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
21892         REPLACE_TRUNCATE.
21893         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
21894         HAVE_TRUNCATE, REPLACE_TRUNCATE.
21895         * modules/truncate: New file.
21896         * tests/test-unistd-c++.cc (truncate): Test signature.
21897         * doc/posix-functions/truncate.texi: Mention the new module.
21899         * tests/test-truncate.c: New file.
21900         * modules/truncate-tests: New file.
21902 2017-05-13  Bruno Haible  <bruno@clisp.org>
21904         windows-stat-timespec: New module.
21905         * modules/windows-stat-timespec: New file.
21906         * m4/windows-stat-timespec.m4: New file.
21907         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
21908         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
21909         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
21910         fields st_atim, st_mtim, st_ctim.
21911         (st_atime, st_mtime, st_ctime): Define as macros.
21912         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
21913         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
21914         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
21915         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
21916         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
21917         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
21918         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
21919         FILETIME to 'struct timespec', not 'time_t'.
21920         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
21921         FILETIME to 'struct timespec', not 'time_t'.
21922         * lib/stat-time.h (STAT_TIMESPEC): Define also if
21923         _GL_WINDOWS_STAT_TIMESPEC.
21924         * doc/windows-stat-timespec.texi: New file.
21925         * doc/gnulib.texi: Include it.
21927 2017-05-13  Bruno Haible  <bruno@clisp.org>
21929         windows-stat-override: New module.
21930         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
21931         definition. Define GNULIB_defined_struct_stat.
21932         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
21933         link error if this symbol is used and the corresponding module is not
21934         in use.
21935         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
21936         GNULIB_OVERRIDES_STRUCT_STAT.
21937         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
21938         GNULIB_OVERRIDES_STRUCT_STAT.
21939         * modules/sys_stat (Makefile.am): Substitute
21940         GNULIB_OVERRIDES_STRUCT_STAT.
21941         * modules/windows-stat-override: New file.
21943 2017-05-13  Bruno Haible  <bruno@clisp.org>
21945         fstat: Fix module dependency conditions.
21946         * modules/fstat (Depends-on): Fix typo.
21948 2017-05-13  Bruno Haible  <bruno@clisp.org>
21950         stat, fstat: Complete removal of old native Windows code.
21951         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
21952         * lib/fstat.c: Likewise.
21953         * lib/stat-w32.c: Likewise.
21955 2017-05-13  Bruno Haible  <bruno@clisp.org>
21957         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
21958         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
21960 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
21962         getopt-posix: port to mingw
21963         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
21964         Problem reported by Daniel P. Berrage in:
21965         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
21967 2017-05-11  Bruno Haible  <bruno@clisp.org>
21969         gettimeofday: Increase precision on mingw.
21970         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
21971         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
21972         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
21973         GetSystemTimePreciseAsFileTime based implementation always.
21974         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
21975         mingw.
21977 2017-05-11  Bruno Haible  <bruno@clisp.org>
21979         poll: Fix confusion between SOCKETs and FDs on native Windows.
21980         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
21981         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
21983 2017-05-11  Bruno Haible  <bruno@clisp.org>
21985         doc: Clarify doc about socket functions on native Windows.
21986         This reworks doc that was added on 2008-09-29.
21987         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
21988         clearer wording.
21989         * doc/posix-functions/accept.texi: Use clearer wording.
21990         * doc/posix-functions/bind.texi: Likewise.
21991         * doc/posix-functions/connect.texi: Likewise.
21992         * doc/posix-functions/getpeername.texi: Likewise.
21993         * doc/posix-functions/getsockname.texi: Likewise.
21994         * doc/posix-functions/getsockopt.texi: Likewise.
21995         * doc/posix-functions/ioctl.texi: Likewise.
21996         * doc/posix-functions/listen.texi: Likewise.
21997         * doc/posix-functions/recv.texi: Likewise.
21998         * doc/posix-functions/recvfrom.texi: Likewise.
21999         * doc/posix-functions/send.texi: Likewise.
22000         * doc/posix-functions/sendto.texi: Likewise.
22001         * doc/posix-functions/setsockopt.texi: Likewise.
22002         * doc/posix-functions/shutdown.texi: Likewise.
22003         * doc/posix-functions/socket.texi: Likewise.
22005 2017-05-10  Bruno Haible  <bruno@clisp.org>
22007         poll: Fix link error on native Windows.
22008         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
22010 2017-05-10  Bruno Haible  <bruno@clisp.org>
22012         time: Fix missing initialization of HAVE_TIMEZONE_T.
22013         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
22014         here...
22015         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
22016         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
22017         gl_HEADER_SYS_TIME_H_DEFAULTS.
22018         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
22019         (configure.ac): Remove useless quoting.
22021 2017-05-10  Bruno Haible  <bruno@clisp.org>
22023         Implement a way to opt out from MSVC support, part 2.
22024         * modules/msvc-inval (Include): Document recommended idiom.
22025         * modules/msvc-nothrow (Include): Likewise.
22027         Implement a way to opt out from MSVC support.
22028         This is useful for Emacs.
22029         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
22030         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
22031         * lib/error.c: Likewise.
22032         * lib/fcntl.c: Likewise.
22033         * lib/flock.c: Likewise.
22034         * lib/fstat.c: Likewise.
22035         * lib/fsync.c: Likewise.
22036         * lib/ioctl.c: Likewise.
22037         * lib/isapipe.c: Likewise.
22038         * lib/lseek.c: Likewise.
22039         * lib/nonblocking.c: Likewise.
22040         * lib/poll.c: Likewise.
22041         * lib/select.c: Likewise.
22042         * lib/sockets.h: Likewise.
22043         * lib/sockets.c: Likewise.
22044         * lib/stdio-read.c: Likewise.
22045         * lib/stdio-write.c: Likewise.
22046         * lib/utimens.c: Likewise.
22047         * lib/w32sock.h: Likewise.
22048         * lib/w32spawn.h: Likewise.
22049         * tests/test-cloexec.c: Likewise.
22050         * tests/test-dup-safer.c: Likewise.
22051         * tests/test-dup2.c: Likewise.
22052         * tests/test-dup3.c: Likewise.
22053         * tests/test-fcntl.c: Likewise.
22054         * tests/test-pipe.c: Likewise.
22055         * tests/test-pipe2.c: Likewise.
22056         * lib/ftruncate.c: Likewise.
22057         (chsize_nothrow): Renamed from chsize.
22058         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
22059         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22060         * lib/close.c: Likewise.
22061         * lib/dup.c: Likewise.
22062         * lib/fclose.c: Likewise.
22063         * lib/raise.c: Likewise.
22064         * tests/test-fgetc.c: Likewise.
22065         * tests/test-fputc.c: Likewise.
22066         * tests/test-fread.c: Likewise.
22067         * tests/test-fwrite.c: Likewise.
22068         * lib/getdtablesize.c: Likewise.
22069         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
22070         * lib/isatty.c: Don't include msvc-inval.h if
22071         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22072         Include <io.h> as an alternative to msvc-nothrow.h.
22073         * lib/read.c: Likewise.
22074         * lib/write.c: Likewise.
22075         * lib/dup2.c: Likewise.
22076         (dup2_nothrow): New function.
22077         (ms_windows_dup2): Use it.
22078         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
22079         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
22080         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22081         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
22082         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
22083         * m4/read.m4 (gl_FUNC_READ): Likewise.
22084         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
22085         * doc/windows-without-msvc.texi: New file.
22086         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
22087         section.
22089 2017-05-10  Bruno Haible  <bruno@clisp.org>
22091         wait-process: Adjust native Windows support.
22092         * lib/wait-process.c: Use the usual condition for recognizing a native
22093         Windows platform.
22095 2017-05-10  Bruno Haible  <bruno@clisp.org>
22097         doc: New chapter "Native Windows Support".
22098         * doc/gnulib.texi (Native Windows Support): New chapter.
22099         * doc/windows-libtool.texi: Small wording changes.
22100         * doc/windows-sockets.texi: Small wording and formatting changes.
22102 2017-05-10  Bruno Haible  <bruno@clisp.org>
22104         doc: Move section "Library version handling".
22105         * doc/gnulib.texi: Move section "Library version handling"
22106         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
22108 2017-05-10  Bruno Haible  <bruno@clisp.org>
22110         doc: Move section "Running self-tests under valgrind".
22111         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
22112         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
22114 2017-05-10  Bruno Haible  <bruno@clisp.org>
22116         doc: New chapter "Build Infrastructure Modules".
22117         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
22119 2017-05-10  Bruno Haible  <bruno@clisp.org>
22121         Prepare for reordering sections in the manual.
22122         * doc/gnulib.texi: Move several sections to separate files. Include
22123         these files.
22124         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
22125         * doc/obsolete.texi: Likewise.
22126         * doc/extra-tests.texi: Likewise.
22127         * doc/transversal.texi: Likewise.
22128         * doc/namespace.texi: Likewise.
22129         * doc/check-version.texi: Likewise.
22130         * doc/windows-sockets.texi: Likewise.
22131         * doc/windows-libtool.texi: Likewise.
22132         * doc/licenses-texi.texi: Likewise.
22133         * doc/build-automation.texi: Likewise.
22134         * doc/c-locale.texi: Likewise.
22136 2017-05-10  Bruno Haible  <bruno@clisp.org>
22138         Fix instructions how to update manual on www.gnu.org.
22139         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
22141 2017-05-09  Bruno Haible  <bruno@clisp.org>
22143         tzset: Expand comment about TZ problem on native Windows.
22144         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
22145         Paul Eggert.
22146         * lib/ctime.c (rpl_ctime): Likewise.
22147         * lib/localtime.c (rpl_localtime): Likewise.
22148         * lib/mktime.c (mktime): Likewise.
22149         * lib/strftime-fixes.c (rpl_strftime): Likewise.
22150         * lib/wcsftime.c (rpl_wcsftime): Likewise.
22152 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22154         intprops: don’t depend on ‘verify’
22155         Problem reported by Ævar Arnfjörð Bjarmason in:
22156         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
22157         * lib/intprops.h: Do not include verify.h, and move compile-time
22158         checks from here ...
22159         * tests/test-intprops.c (main): ... to here, if they’re not here
22160         already.  Check widths of other standard integer types.
22161         * modules/intprops (Depends-on): Remove ‘verify’.
22163 2017-05-07  Bruno Haible  <bruno@clisp.org>
22165         utimens: On native Windows, support 100ns resolution also if fd < 0.
22166         * lib/utime.in.h: Include <time.h>.
22167         (_gl_utimens_windows): New declaration.
22168         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
22169         (utime): Invoke it.
22170         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
22171         instead of utime.
22172         * modules/utime (Depends-on): Add 'time'.
22174 2017-05-07  Bruno Haible  <bruno@clisp.org>
22176         utimens: Improve error code on native Windows.
22177         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
22178         error code EACCES, not EINVAL.
22180 2017-05-07  Bruno Haible  <bruno@clisp.org>
22182         utime: Handle more Windows error codes.
22183         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
22184         Based on explanations by Billy O'Neal.
22186 2017-05-05  Bruno Haible  <bruno@clisp.org>
22188         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
22189         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
22190         union.
22191         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
22192         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
22193         value of cipher->IV.
22195 2017-05-05  Bruno Haible  <bruno@clisp.org>
22197         wctype-h-c++-tests: Update.
22198         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
22200 2017-05-05  Bruno Haible  <bruno@clisp.org>
22202         wchar-c++-tests: Update.
22203         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
22205 2017-05-05  Bruno Haible  <bruno@clisp.org>
22207         utime-h-c++-tests: New module.
22208         * tests/test-utime-h-c++.cc: New file.
22209         (utime): Declare, missing since 2017-04-30.
22210         * modules/utime-h-c++-tests: New file.
22212 2017-05-05  Bruno Haible  <bruno@clisp.org>
22214         unistd-c++-tests: Update.
22215         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
22216         (read): Declare, missing since 2011-04-15.
22217         (sethostname): Declare, missing since 2011-12-03.
22219 2017-05-05  Bruno Haible  <bruno@clisp.org>
22221         time-c++-tests: Update.
22222         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
22223         (localtime, gmtime): Declare, missing since 2017-04-30.
22224         (ctime): Declare, missing since 2017-04-30.
22225         (strftime): Declare, missing since 2017-04-30.
22226         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
22227         2015-07-24.
22229 2017-05-05  Bruno Haible  <bruno@clisp.org>
22231         sys_resource-c++-tests: New module.
22232         * tests/test-sys_resource-c++.cc: New file.
22233         (getrusage): Declare, missing since 2012-04-13.
22234         * modules/sys_resource-c++-tests: New file.
22236 2017-05-05  Bruno Haible  <bruno@clisp.org>
22238         strings-c++-tests: New module.
22239         * tests/test-strings-c++.cc: New file.
22240         (ffs): Declare, missing since 2011-07-12.
22241         * modules/strings-c++-tests: New file.
22243 2017-05-05  Bruno Haible  <bruno@clisp.org>
22245         string-c++-tests: Update.
22246         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
22247         (ffsll): Declare, missing since 2011-07-15.
22249 2017-05-05  Bruno Haible  <bruno@clisp.org>
22251         stdlib-c++-tests: Update.
22252         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
22253         2011-10-18.
22254         (ptsname_r): Declare, missing since 2011-11-07.
22255         (qsort_r): Declare, missing since 2014-08-29.
22256         (random, srandom, initstate, setstate): Declare, missing since
22257         2012-01-14.
22258         (secure_getenv): Declare, missing since 2013-02-05.
22260 2017-05-05  Bruno Haible  <bruno@clisp.org>
22262         stdio-c++-tests: Update.
22263         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
22265 2017-05-05  Bruno Haible  <bruno@clisp.org>
22267         signal-h-c++-tests: Update.
22268         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
22270 2017-05-05  Bruno Haible  <bruno@clisp.org>
22272         math-c++-tests: Update.
22273         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
22274         (fma): Declare, missing since 2011-10-17.
22275         (fmal): Declare, missing since 2011-10-17.
22277 2017-05-05  Bruno Haible  <bruno@clisp.org>
22279         locale-c++-tests: Update.
22280         * tests/test-locale-c++.cc (localeconv): Declare, missing since
22281         2012-03-25.
22283 2017-05-05  Bruno Haible  <bruno@clisp.org>
22285         inttypes-c++-tests: New module.
22286         * tests/test-inttypes-c++.cc: New file.
22287         (strtoimax): Declare, missing since 2012-01-05.
22288         (strtoumax): Declare, missing since 2012-01-05.
22289         * modules/inttypes-c++-tests: New file.
22291 2017-05-05  Bruno Haible  <bruno@clisp.org>
22293         dirent-c++-tests: Update.
22294         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
22295         (rewinddir): Declare, missing since 2011-09-13.
22296         (dirfd): Declare, missing since 2010-03-08.
22298 2017-05-04  Bruno Haible  <bruno@clisp.org>
22300         argp: Fix mistake in 2017-04-23 commit.
22301         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
22302         assume that strerror_r returns 'int', not 'char *'.
22304 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
22306         argp: Fix typo.
22307         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
22309 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22311         utimens: port to Emacs + MS-Windows
22312         Skip the new MS-Windows-specific code if Emacs.
22313         * lib/utimens.c [EMACS_CONFIGUATION]:
22314         Avoid new MS-Windows-specific code.
22315         (USE_SETFILETIME): New macro.
22316         (fdutimens): Use it.
22318 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22320         tzset: update doc for TZ problems on MS-Windows
22321         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
22322         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
22323         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
22324         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
22325         * doc/posix-functions/wcsftime.texi:
22326         Mention some issues with TZ under MS-Windows.
22328 2017-05-01  Bruno Haible  <bruno@clisp.org>
22330         copy-file: Fix build error on mingw.
22331         * modules/copy-file (Depends-on): Add 'close'.
22333 2017-05-01  Bruno Haible  <bruno@clisp.org>
22335         tzset: Work around TZ problem on native Windows.
22336         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
22337         Windows, set REPLACE_TZSET to 1.
22338         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
22339         invoke '_tzset' instead of 'tzset'.
22340         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
22342         * modules/time_rz (Depends-on): Add tzset.
22343         * lib/time_rz.c (tzset): Remove fallback definition.
22344         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
22346 2017-05-01  Bruno Haible  <bruno@clisp.org>
22348         mktime: Fix dependencies.
22349         * modules/mktime (Depends-on): Add 'time'.
22351 2017-05-01  Bruno Haible  <bruno@clisp.org>
22353         New module 'localtime-buffer', split off from module 'gettimeofday'.
22354         * lib/localtime-buffer.h: New file.
22355         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
22356         * lib/time.in.h (tzset): New declaration.
22357         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
22358         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
22359         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
22360         moved to lib/localtime-buffer.c or lib/tzset.c.
22361         * m4/localtime-buffer.m4: New file.
22362         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
22363         HAVE_TZSET, REPLACE_TZSET.
22364         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
22365         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
22366         gl_LOCALTIME_BUFFER_NEEDED.
22367         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
22368         since 2007-01-18.
22369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
22370         tzset.
22371         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
22372         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
22373         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
22374         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
22375         * modules/localtime-buffer: New file.
22376         * modules/time (Depends-on): Remove 'gettimeofday'.
22377         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
22378         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
22379         * modules/tzset (Description): Enable hyperlink to POSIX spec.
22380         (Files): Add lib/tzset.c.
22381         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
22382         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
22383         gl_TIME_MODULE_INDICATOR.
22384         * modules/gettimeofday (Depends-on): Add localtime-buffer.
22386 2017-05-01  Bruno Haible  <bruno@clisp.org>
22388         copy-file: Preserve sub-second time stamps.
22389         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
22390         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
22391         transport the time stamps from the original file to the destination
22392         file.
22393         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
22394         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
22395         utime-h.
22397 2017-05-01  Bruno Haible  <bruno@clisp.org>
22399         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
22400         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
22401         also on MSVC.
22402         Reported by Eli Zaretskii <eliz@gnu.org>.
22404 2017-05-01  Bruno Haible  <bruno@clisp.org>
22406         wchar: Fix compilation error with the original mingw.org mingw.
22407         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
22408         <stddef.h> instead.
22409         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
22410         gl_WCTYPE_H.
22411         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
22412         gl_TYPE_WINT_T_PREREQ instead.
22413         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
22414         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
22415         Reported by Eli Zaretskii <eliz@gnu.org>.
22417 2017-04-30  Bruno Haible  <bruno@clisp.org>
22419         utimecmp: Add support for native Windows.
22420         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
22422 2017-04-30  Bruno Haible  <bruno@clisp.org>
22424         utimens: Add support for native Windows.
22425         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
22426         (fdutimens): Provide a native Windows implementation, like utime.c with
22427         added tv_nsec support.
22428         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
22429         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
22431 2017-04-30  Bruno Haible  <bruno@clisp.org>
22433         wcsftime: New module.
22434         * lib/wchar.in.h (wcsftime): New declaration.
22435         * lib/wcsftime.c: New file.
22436         * m4/wcsftime.m4: New file.
22437         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
22438         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
22439         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
22441         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22442         * modules/wcsftime: New file.
22443         * doc/posix-functions/wcsftime.texi: Mention the new module.
22445 2017-04-30  Bruno Haible  <bruno@clisp.org>
22447         strftime-fixes: New module.
22448         * lib/time.in.h (strftime): New declaration.
22449         * lib/strftime-fixes.c: New file.
22450         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
22451         (gl_FUNC_STRFTIME): Remove macro.
22452         * m4/strftime-fixes.m4: New file.
22453         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
22454         REPLACE_STRFTIME.
22455         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
22456         REPLACE_STRFTIME.
22457         * modules/strftime-fixes: New file.
22458         * doc/posix-functions/strftime.texi: Mention the new module.
22460 2017-04-30  Bruno Haible  <bruno@clisp.org>
22462         mktime: Work around TZ problem on native Windows.
22463         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
22464         from the native Windows workaround.
22465         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
22466         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
22467         'guessing no'.
22468         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
22469         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
22470         NEED_MKTIME_WINDOWS.
22471         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
22472         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
22473         NEED_MKTIME_INTERNAL.
22474         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
22475         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
22476         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
22477         not REPLACE_MKTIME.
22478         * doc/posix-functions/mktime.texi: Mention the native Windows
22479         workaround.
22481 2017-04-30  Bruno Haible  <bruno@clisp.org>
22483         localtime: New module.
22484         * lib/time.in.h (localtime): Declare also if requested by module
22485         'localtime'.
22486         * lib/localtime.c: New file.
22487         * m4/localtime.m4: New file.
22488         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
22489         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
22490         * modules/localtime: New file.
22491         * doc/posix-functions/localtime.texi: Mention the new module.
22493 2017-04-30  Bruno Haible  <bruno@clisp.org>
22495         ctime: New module.
22496         * lib/time.in.h (ctime): New declaration.
22497         * lib/ctime.c: New file.
22498         * m4/ctime.m4: New file.
22499         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
22500         REPLACE_CTIME.
22501         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
22502         * modules/ctime: New file.
22503         * doc/posix-functions/ctime.texi: Mention the new module.
22505 2017-04-30  Bruno Haible  <bruno@clisp.org>
22507         gettimeofday: Provide higher resolution on native Windows.
22508         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
22509         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
22510         (initialize): Initialize it.
22511         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
22512         'struct timeval'. Don't use _ftime().
22513         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
22514         <sys/timeb.h> and _ftime.
22516 2017-04-30  Bruno Haible  <bruno@clisp.org>
22518         Document the problem with the Cygwin environment variable TZ.
22519         * doc/posix-functions/tzset.texi: Add note about TZ.
22520         * doc/posix-functions/ctime.texi: Likewise.
22521         * doc/posix-functions/localtime.texi: Likewise.
22522         * doc/posix-functions/mktime.texi: Likewise.
22523         * doc/posix-functions/strftime.texi: Likewise.
22524         * doc/posix-functions/wcsftime.texi: Likewise.
22525         * doc/pastposix-functions/ftime.texi: Likewise.
22527 2017-04-30  Bruno Haible  <bruno@clisp.org>
22529         utime-tests: New module.
22530         * tests/test-utime.c: New file, based on tests/test-utimens.h.
22531         * tests/test-utimens-common.h: Include <sys/stat.h>.
22532         * modules/utime-tests: New file.
22534 2017-04-29  Bruno Haible  <bruno@clisp.org>
22536         utime: New module.
22537         * lib/utime.in.h: Add comment for snippets.
22538         (utime): New declaration.
22539         * lib/utime.c: New file.
22540         * m4/utime.m4: New file.
22541         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
22542         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
22543         REPLACE_UTIME.
22544         * modules/utime-h (Depends-on): Add snippets.
22545         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
22546         Insert snippets.
22547         * modules/utime: New file.
22548         * doc/posix-functions/utime.texi: Mention the new module.
22550 2017-04-29  Bruno Haible  <bruno@clisp.org>
22552         utime-h: Modernize handling of 'struct utimbuf'.
22553         * lib/utime.in.h: Include next <utime.h> if it exists.
22554         (utimbuf): Define to _utimbuf on native Windows.
22555         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
22556         Set UTIME_H on native Windows.
22557         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
22558         * modules/utime-h (Depends-on): Add include_next.
22559         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
22560         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
22562         * lib/utimens.c (utimbuf): Remove fallback definition.
22563         * m4/utimens.m4 (gl_UTIMENS): Don't require
22564         gl_CHECK_TYPE_STRUCT_UTIMBUF.
22565         * m4/utimbuf.m4: Remove file.
22566         * modules/utimens (Files): Remove m4/utimbuf.m4.
22568 2017-04-29  Bruno Haible  <bruno@clisp.org>
22570         Make use of module 'utime-h'.
22571         * modules/copy-file (Depends-on): Add utime-h.
22572         * lib/copy-file.c: Assume that <utime.h> exists.
22573         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
22575         * modules/utimens (Depends-on): Add utime-h.
22576         * lib/utimens.c: Assume that <utime.h> exists.
22578 2017-04-29  Bruno Haible  <bruno@clisp.org>
22580         utime-h: New module.
22581         * m4/utime_h.m4: New file.
22582         * lib/utime.in.h: New file.
22583         * modules/utime-h: New file.
22584         * doc/posix-headers/utime.texi: Mention the new module.
22586         * tests/test-utime-h.c: New file.
22587         * modules/utime-h-tests: New file.
22589 2017-04-30  Bruno Haible  <bruno@clisp.org>
22591         Fix a few typos.
22592         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
22593         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
22594         * doc/posix-functions/fstat.texi: Fix a plural typo.
22595         * doc/posix-functions/stat.texi: Likewise.
22596         * m4/include_next.m4: Update comments.
22598 2017-04-29  Bruno Haible  <bruno@clisp.org>
22600         error: Fix mistake in 2017-04-23 commit.
22601         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
22602         assume that strerror_r returns 'int', not 'char *'.
22604 2017-04-29  Bruno Haible  <bruno@clisp.org>
22606         stat: Fix time_t values and other problems on native Windows platforms.
22607         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
22608         implementations of stat().
22609         * lib/stat.c: Include filename.h instead of dosname.h. Include
22610         malloca.h, stat-w32.h.
22611         (is_unc_root): New function.
22612         (rpl_stat): New implementation for native Windows. Remove
22613         REPLACE_FUNC_STAT_DIR code.
22614         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
22615         Don't define REPLACE_FUNC_STAT_DIR.
22616         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
22617         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
22618         (Depends-on): Remove dosname. Add filename, malloca.
22619         (configure.ac): Also compile lib/stat-w32.c.
22621 2017-04-29  Bruno Haible  <bruno@clisp.org>
22623         fstat: Fix time_t values on native Windows platforms.
22624         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
22625         * lib/stat-w32.h: New file.
22626         * lib/stat-w32.c: New file.
22627         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
22628         stat-w32.h instead.
22629         (fstat_nothrow): Remove function.
22630         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
22631         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
22632         always.
22633         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
22634         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
22635         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
22636         (configure.ac): Also compile lib/stat-w32.c.
22638 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
22640         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
22641         Problem reported by Assaf Gordon and Gavin Smith in:
22642         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
22643         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
22644         #define this, too.
22646 2017-04-29  Bruno Haible  <bruno@clisp.org>
22648         strerror_r-posix: Fixes for MSVC 14.
22649         * lib/strerror_r.c: Include <stdarg.h>.
22650         (strerror_r): Provide error messages for errno values 100...140.
22651         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
22653 2017-04-28  Bruno Haible  <bruno@clisp.org>
22655         noreturn: New module.
22656         * lib/noreturn.h: New file.
22657         * modules/noreturn: New file.
22658         * tests/test-noreturn.c: New file.
22659         * modules/noreturn-tests: New file.
22660         * tests/test-noreturn-c++.cc: New file.
22661         * modules/noreturn-c++-tests: New file.
22663 2017-04-27  Bruno Haible  <bruno@clisp.org>
22665         wctype-h: Fix compilation error with the original mingw.org mingw.
22666         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
22667         HAVE_CRTDEFS_H.
22668         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
22669         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
22670         <stddef.h> instead.
22671         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
22673 2017-04-26  Pádraig Brady  <P@draigBrady.com>
22675         nap.h: Fix compilation on non windows platforms
22676         * tests/nap.h: Move misplaced endif.
22678 2017-04-26  Pádraig Brady  <P@draigBrady.com>
22679         and Paul Eggert  <eggert@cs.ucla.edu>
22681         time_rz: fix heap buffer overflow vulnerability
22682         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
22683         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
22684         whether there is enough buffer space available, thus avoiding
22685         the problematic promotion of signed to unsigned causing an invalid
22686         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
22687         the start of the buffer.
22688         * tests/test-parse-datetime.c (main): Add a test case written by
22689         Paul Eggert, which overwrites enough of the heap so that
22690         standard glibc will fail with "free(): invalid pointer"
22691         without the patch applied.
22693 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22695         xalloc: add missing integer overflow check
22696         * lib/xalloc.h (x2nrealloc): Also check for multiplication
22697         overflow when P is null.
22699 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22701         parse-datetime: make it standalone
22702         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
22703         (_GL_ATTRIBUTE_FORMAT): New macro.
22704         These are needed to get './gnulib-tool --test parse-datetime' to work.
22706 2017-04-23  Bruno Haible  <bruno@clisp.org>
22708         nap.h: Port to native Windows.
22709         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
22710         use nap_fd instead. On native Windows, close and reopen nap_fd.
22711         (nap_works): Don't compare the ctimes, because on native Windows, these
22712         are the creation times.
22713         (nap): Update.
22715 2017-04-23  Bruno Haible  <bruno@clisp.org>
22717         nap.h: Fix logic.
22718         * tests/nap.h (nap): Avoid signed integer overflow in loop.
22720 2017-04-23  Bruno Haible  <bruno@clisp.org>
22722         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
22723         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
22724         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
22725         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
22726         * lib/argp-help.c (__argp_failure): Likewise.
22728 2017-04-23  Bruno Haible  <bruno@clisp.org>
22730         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
22731         * m4/strerror_r.m4: Revert changes since 2016-10-16.
22732         * lib/strerror_r.c: Likewise.
22734 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
22736         Target a C99 subset, not a C89 subset
22737         For many years Gnulib has targeted C89 and has resisted using C99
22738         features, as some Gnulib-using programs still wanted to target
22739         C89.  As this no longer seems to be the case, relax the porting
22740         requirements to allow some C99 features.  This is merely a change
22741         to the documentation, to give other Gnulib developers a chance to
22742         weigh in on the topic.
22743         * doc/extern-inline.texi (extern inline):
22744         * doc/gnulib-readme.texi (Portability guidelines):
22745         * doc/gnulib-tool.texi (Initial import):
22746         * doc/gnulib.texi (Header files):
22747         Modernize to talk about C99 and C11 instead of C89 and C99.
22748         * doc/gnulib-readme.texi (Portability guidelines):
22749         Now a section, not merely a subsection, so that it
22750         can be split up.  Modernize a bit.
22751         (C language versions, C99 features assumed)
22752         (C99 features avoided):
22753         New sections.
22755 2017-04-23  Bruno Haible  <bruno@clisp.org>
22757         doc: New section "Modules that modify the way other modules work".
22758         * doc/gnulib.texi (Modules that modify the way other modules work): New
22759         section.
22761 2017-04-23  Bruno Haible  <bruno@clisp.org>
22763         stat-time: Update comments.
22764         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
22765         * tests/test-utimens-common.h: Add reference regarding st_ctime on
22766         Windows.
22768 2017-04-01  Bruno Haible  <bruno@clisp.org>
22770         glob: Fix more memory leaks.
22771         * lib/glob.c (glob): Free allocated memory before returning.
22772         Reported by Coverity via Tim Rühsen.
22774 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22776         poll: improve fast check for out-of-range NFD
22777         * lib/poll.c: Do not include intprops.h.
22778         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
22779         * modules/poll (Depends-on): Remove intprops.
22781         ftoastr: cite a newer paper
22782         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
22783         instead of Loitsch 2010.
22785 2017-04-22  Bruno Haible  <bruno@clisp.org>
22787         poll: Enable argument check also in the Windows implementation.
22788         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
22789         Reported by Paul Eggert.
22791 2017-04-22  Bruno Haible  <bruno@clisp.org>
22793         getlogin_r: Work around bug in Mac OS X 10.12.
22794         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
22795         bug.
22796         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
22797         given size minus 1, call getlogin_r a second time, on a larger buffer.
22798         * modules/getlogin_r (Depends-on): Add malloca.
22799         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
22801 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22803         parse-datetime: fix %z and prefer signed int
22804         %z problem reported by Pádraig Brady in:
22805         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
22806         While fixing it, I decided to prefer signed ints to size_t, as
22807         they are less error-prone (e.g., ubsan catches overflow).
22808         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
22809         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
22810         counts, since signed integers make for better debugging.
22811         (date): Don’t assume %z works in printf formats.
22812         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
22813         sizes of buffers known to be small, e.g., because we’re using snprintf.
22814         (parse_datetime2): Simplify call to debug_mktime_not_ok.
22816 2017-04-22  Bruno Haible  <bruno@clisp.org>
22818         *printf: Work around rounding bug on Mac OS X.
22819         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
22820         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
22821         Mac OS X and FreeBSD.
22822         * doc/glibc-functions/*printf.texi: Likewise.
22824 2017-04-22  Bruno Haible  <bruno@clisp.org>
22826         vasnprintf tests: Avoid warnings.
22827         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
22828         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
22829         test.
22831 2017-04-22  Bruno Haible  <bruno@clisp.org>
22833         sys_file tests: Avoid warning.
22834         * tests/test-sys_file.c (main): Add a default clause to the switch
22835         statement.
22837 2017-04-22  Bruno Haible  <bruno@clisp.org>
22839         sethostname: Update doc.
22840         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
22841         Mac OS X.
22843 2017-04-22  Bruno Haible  <bruno@clisp.org>
22845         quotearg tests: Avoid warnings.
22846         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
22847         false.
22849 2017-04-22  Bruno Haible  <bruno@clisp.org>
22851         poll: Enable argument check.
22852         * lib/poll.c: Include intprops.h.
22853         (poll): Check value of nfd correctly.
22854         * modules/poll (Depends-on): Add intprops.
22856 2017-04-22  Bruno Haible  <bruno@clisp.org>
22858         get-rusage-data: Avoid warnings on Mac OS X.
22859         * lib/get-rusage-data.c: On Mac OS X, don't define
22860         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
22861         (get_rusage_data) [Mac OS X]: Just return 0.
22863 2017-04-22  Bruno Haible  <bruno@clisp.org>
22865         xbinary-io: Fix build error.
22866         * modules/xbinary-io (Depends-on): Add gettext-h.
22867         * lib/xbinary-io.c: Include gettext.h and define _().
22868         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
22869         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
22871 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22873         parse-datetime: overflow and debug cleanups
22874         This long patch was triggered by this bug report from Ruediger Meier:
22875         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
22876         I fixed the bug he noted, then found some others nearby, and then
22877         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
22878         up some of the code to follow GNU standards while I was at it.
22879         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
22880         use c_isdigit.
22881         (EPOCH_YEAR): Remove; unused.
22882         (TM_YEAR_BASE): Now an enum rather than a macro.
22883         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
22884         time zone offset, since timezones now are in terms of seconds and
22885         not minutes.
22886         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
22887         appropriate.  Verify that intmax_t is wide enough.
22888         (time_overflow, time_zone_str): New functions, used to deal
22889         more reliably with overflow.
22890         (dbg_printf): Add printf attribute, to help catch integer width errors.
22891         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
22892         (%union, to_hour, yylex, parse_datetime2):
22893         Use intmax_t instead of long int and/or long_time_t.
22894         All uses changed.
22895         (DBGBUFSIZE): Move earlier.
22896         (relative_time, set_hhmmss, parser_control):
22897         Just use int for nanoseconds and for time zones; that’s wide enough.
22898         (parser_control): Use bool for members like year_seen that can
22899         be booleans instead of counters.  All uses changed.
22900         Remove debug_default_input_timezone; no longer needed.
22901         All uses removed.
22902         (apply_relative_time): Return a bool overflow flag.
22903         All uses changed to check for overflow.
22904         (apply_relative_time, zone, date, relunit, relunit_snumber)
22905         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
22906         Check for integer overflow portably.
22907         (str_days): Use just int for N, as it’s wide enough.
22908         Prefer 2D char arrays to arrays of char * when it looks like
22909         2D is a win on typical platforms.
22910         Prefer snprintf to strncpy/strncat, for simplicity;
22911         all buffers are smaller than INT_MAX so this is safe.
22912         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
22913         (debug_print_current_time): Don’t assume tv_nsec is of type long,
22914         as this is not true on x32.  Output "." before any nanoseconds.
22915         (debug_print_current_time, parse_datetime2):
22916         Output local zones using a more-consistent format.
22917         (debug_print_current_time, date, parse_datetime2):
22918         (main) [TEST]:
22919         Don’t assume time_t is the same width as long.
22920         (print_rel_part): New function, replacing ...
22921         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
22922         (debug_print_relative_time): Use bool for boolean.
22923         (local_zone): dsts_seen now counts only tDST instances.
22924         (date): Fix printf of size_t to use %z.  Do not assume numeric
22925         tokens have negative values merely because the context suggests
22926         a syntax with "-" separating tokens.
22927         (time_zone_hhmm): Return bool success indicator, which checks for
22928         overflow.  Store result into PC->time_zone instead.  All callers
22929         changed.
22930         (tm_year_str): New function.  Return a bool success indicator and
22931         store the result into a buffer.  All callers changed.  Output the
22932         numerically correct string even if adding 1900 to the year would
22933         overflow.
22934         (to_tm_year): New function, replacing the old to_year.  All
22935         callers changed.
22936         (tm_diff): Sync with glibc.
22937         (lookup_word): Use to_uchar instead of doing it by hand.
22938         (TZBUFSIZE): Now local to the only function that needs it.
22939         (debug_strfdatetime): Simplify now that time zones are int seconds.
22940         (debug_strfdate): Work even if tm_year + 1900 would overflow.
22941         (get_effective_timezone): Remove.  All uses removed.
22942         (parse_datetime2): Use fprintf in pieces instead of snprintfing
22943         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
22944         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
22945         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
22946         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
22947         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
22948         * modules/parse-datetime (Depends-on): Add inttypes.
22950 2017-04-21  Bruno Haible  <bruno@clisp.org>
22952         gettext-h: Avoid -Wundef warning.
22953         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
22954         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
22955         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
22957 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
22959         error: Avoid "function declaration isn't a prototype" warning.
22960         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
22962 2017-04-21  Bruno Haible  <bruno@clisp.org>
22964         vasnprintf: Fix for MSVC 14.
22965         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
22966         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
22967         of !HAVE_SNPRINTF_RETVAL_C99.
22969 2017-04-21  Bruno Haible  <bruno@clisp.org>
22971         mbrtowc tests: Fix test failures on MSVC 14.
22972         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
22973         behaviour for invalid input.
22975 2017-04-21  Bruno Haible  <bruno@clisp.org>
22977         mbsinit: Fix for MSVC 14.
22978         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
22979         implementation that is in sync with mbrtowc.c. On other platforms, use
22980         an adequate ad-hoc implementation.
22982 2017-04-21  Bruno Haible  <bruno@clisp.org>
22984         Fix test-mbrtowc5.sh failure on native Windows.
22985         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
22986         "C".
22988 2017-04-21  Bruno Haible  <bruno@clisp.org>
22990         Avoid accidental use of native Windows APIs on Cygwin.
22991         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
22992         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
22993         * lib/localename.c (WINDOWS_NATIVE): Likewise.
22995 2017-04-20  Bruno Haible  <bruno@clisp.org>
22997         Remove red warnings from the generated MODULES.html.
22998         * modules/fcntl (Description): Disambiguate function references.
22999         * modules/getcwd-lgpl (Description): Likewise.
23000         * modules/hostent (Description): Likewise.
23001         * modules/servent (Description): Likewise.
23002         * modules/tempname (Description): Likewise.
23004 2017-04-20  Bruno Haible  <bruno@clisp.org>
23006         verify tests: Fix spurious failure with parallel make.
23007         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
23008         EXTRA_PROGRAMS.
23009         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
23010         * tests/test-verify-try.c: New file.
23011         * modules/verify-tests (Files): Add it.
23012         (EXTRA_PROGRAMS): Add test-verify-try.
23013         (MOSTLYCLEANFILES): Update accordingly.
23014         Reported by Adam James Stewart <ajstewart@anl.gov>.
23016 2017-04-18  Bruno Haible  <bruno@clisp.org>
23018         vma-iter: Fix compilation error on Solaris 7.
23019         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
23020         like on IRIX, OSF/1.
23021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23023 2017-04-18  Bruno Haible  <bruno@clisp.org>
23025         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
23026         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
23027         included.
23028         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
23029         <sys/procfs.h>.
23030         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
23031         <sys/procfs.h> cannot be included.
23032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23034 2017-04-18  Bruno Haible  <bruno@clisp.org>
23036         getopt-gnu: Add comments.
23037         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
23038         * modules/getopt-gnu (configure.ac): Likewise.
23040 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
23042         regex: port better to Solaris 10
23043         Solaris 10 <locale.h> includes <libintl.h>, which #defines
23044         gettext, and this causes a double #define.
23045         Problem reported by Gavin Smith in:
23046         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
23047         * lib/regex_internal.h (gettext): #undef before #defining.
23049 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23051         intprops: improve comments
23052         * lib/intprops.h: Improve and shorten commentary.
23053         For the record, if we ever run into a pedantic compiler that
23054         behaves differently from GCC when converting an out-of-range value
23055         to a signed integer, we can work around the problem with something
23056         like the following code, where UCT is the signed counterpart of T
23057         (UCT is sometimes narrower than UT) and all callers are changed
23058         accordingly:
23059         #if __SUNPRO_C <= 0x5120
23060         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23061            ((t) ((ut) (a) op (ut) (b)))
23062         #else
23063         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23064            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
23065             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
23066                + TYPE_MINIMUM (t)) \
23067             : (t) (uct) ((ut) (a) op (ut) (b)))
23068         #endif
23070 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23072         intprops: try to avoid tickling similar bugs
23073         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
23074         needs to be the same width as T; it can be wider.
23075         Change callers so that UT is at least as wide as unsigned int,
23076         as I suspect that this is less likely to run into compiler bugs.
23078         intprops: port to Oracle Studio 12.3 x86
23079         Problem reported by Gavin Smith in:
23080         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
23081         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23082         Convert unsigned to signed via the usual rather than the standard way,
23083         to avoid a compiler bug in Oracle Studio 12.3 x86.
23085 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23087         getopt: prefer - to _ in new file names
23088         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
23089         * lib/getopt-core.h: Rename from lib/getopt_core.h.
23090         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
23091         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
23092         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
23093         All uses changed.
23095         getopt: port recent getopt changes to macOS
23096         Problem reported by Harald Maier (Bug#26398).
23097         The macOS C compiler uses __nonnull for its own purposes and that
23098         clashes with glibc's __nonnull.
23099         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
23100         * lib/getopt_cdefs.in.h (__nonnull): Remove.
23101         * lib/getopt_core.h (getopt):
23102         * lib/getopt_ext.h (getopt_long, getopt_long_only):
23103         Use _GL_ARG_NONNULL, not __nonnull.
23104         * lib/unistd.in.h: Move snippet hooks to before where the getopt
23105         .h files are included, so that _GL_ARG_NONNULL is defined in time.
23106         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
23107         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
23109 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23111         getopt-gnu: omit some duplicate code
23112         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
23113         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
23114         gnulib-tool already does this.
23115         * modules/getopt-gnu (configure.ac): Omit code duplicated from
23116         getopt-posix, which we depend on.
23118         getopt-posix: use angle-bracket include
23119         * lib/getopt1.c: Include <config.h>, not "config.h".
23121 2017-04-06  Zack Weinberg  <zackw@panix.com>
23123         getopt: annotate files with relationship to glibc
23125         As the final act in this patchset, adjust the message at the top of
23126         each file to indicate which files are synced with glibc.  (This has
23127         already been done for most of the headers.)
23129         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
23130         Mention in top-of-file boilerplate that these files are shared
23131         between glibc and gnulib.
23134         getopt: split up getopt.in.h and eliminate __need_getopt
23136         Over in glibc, all of the __need macros are being phased out in favor
23137         of small headers that declare only the necessary components, as this
23138         is much simpler and less prone to bugs.  As getopt is shared with
23139         glibc, gnulib needs to do the same for __need_getopt.
23141         __need_getopt is misnamed; what it really means is "we want only the
23142         getopt features specified in POSIX, not the GNU extensions".  glibc
23143         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
23144         these files can be shared verbatim with gnulib.  The portability
23145         wrapper, on the other hand, they have renounced altogether; glibc's
23146         getopt.h will no longer be shared with gnulib at all.  In exchange,
23147         certain glibc-specific quirks (having to do with __posix_getopt) no
23148         longer need appear in gnulib's headers at all.
23150         This patch merges getopt_core.h and getopt_ext.h from glibc, and
23151         splits up the current gnulib-side portability wrapper into three
23152         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
23153         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
23154         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
23155         unistd.in.h just use them.  All new files are clearly marked with
23156         whether they are shared with glibc.
23158         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
23159         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
23160         with glibc, and ...
23161         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
23162         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
23163         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
23164         instead of defining __need_getopt and including the full getopt.h.
23166         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
23167         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
23168         * modules/getopt-posix (Files): Add new headers and sort list.
23169         (Depends-on): No longer need snippet/arg-nonnull.
23170         (Makefile.am): Generate getopt_cdefs.h.
23173         getopt: better handling of ambiguous options
23175         glibc's getopt uses alloca to construct a linked list of possibilities
23176         for an "ambiguous" long option.  In gnulib, malloc should be used
23177         instead.  Providing for both cases complicates things a fair bit.
23179         This patch rewrites ambiguous-option handling to use a boolean vector
23180         instead of a linked list.  There is then only one allocation that
23181         might need freeing; in glibc it can honor __libc_use_alloca as usual,
23182         and in gnulib we define __libc_use_alloca to always be false, so we
23183         don't need ifdefs in the middle of the function.  This should also be
23184         slightly more efficient in the normal case of long options being fully
23185         spelled out -- I think most people aren't even aware they _can_
23186         sometimes abbreviate long options.
23188         One interesting consequence is that the list of possibilities is now
23189         printed in exactly the order they appear in the list of long options,
23190         instead of the first possibility being shuffled to the end.
23192         (The patch looks bigger than it really is because there's a fair bit
23193         of reindentation and code rearrangement.)
23195         * lib/getopt.c: When used standalone, define __libc_use_alloca
23196         as always false and alloca to abort if called.
23197         (process_long_option): Rewrite handling of ambiguous long options
23198         to use a single boolean vector, not a linked list; use
23199         __libc_use_alloca to decide whether to allocate this using alloca.
23202         getopt: refactor long-option handling
23204         There were two copies of the bulk of the code to handle long options.
23205         Now there is only one.
23207         This change temporarily removes the logic to avoid using alloca when
23208         standalone; the next patch in the series will restore it.
23210         * lib/getopt.c (process_long_option): New function split out
23211         from _getopt_internal_r.
23212         (_getopt_internal_r): Replace both copies of the long-option
23213         processing code with calls to process_long_option.
23216         getopt: tidy up _getopt_initialize a bit
23218         _getopt_data.__posixly_correct is completely redundant to
23219         _getopt_data.__ordering, and some work that logically belongs in
23220         _getopt_initialize was being done by _getopt_internal_r, making the
23221         code harder to understand.
23223         As a side effect, getenv will no longer be called if the first
23224         character of the options string is '+' or '-', which is probably a
23225         Good Thing.  (Perhaps we should have a flag character that
23226         specifically asks for the permutation behavior?)
23228         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
23229         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
23230         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
23233         getopt: merge from glibc: repetition reduction
23235         The definitions of the entry point functions 'getopt' and
23236         '__posix_getopt' can be made substantially less repetitive with a
23237         helper macro.
23239         While I was merging the const-correctness changes from gnulib into
23240         glibc I noticed there are still some unnecessary casts in
23241         _getopt_internal_r.
23243         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
23244         a macro.  Consistently cast 'argv' to 'char **' when calling
23245         _getopt_internal.
23246         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
23249         getopt: clean up error reporting
23251         getopt can print a whole bunch of error messages, and when used
23252         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
23253         cancellation point and getopt isn't, and also applying fprintf to a
23254         stream in wide-character mode is not allowed.  So every single error
23255         reporting case has an #ifdef _LIBC block in which it calls internal
23256         libc functions instead.  The counterpart patch series in glibc makes
23257         it possible to simplify all of that down to a set of #defines at the
23258         top of the file; core code is written as if it is safe to just call
23259         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
23260         call any *other* stdio functions.)
23262         * lib/getopt.c: When _LIBC is defined, define fprintf to
23263         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
23264         to _IO_funlockfile.  When neither _LIBC nor
23265         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
23266         funlockfile as no-ops.
23267         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
23268         standalone error-printing code can now be used for libc as well.
23269         Add an flockfile/funlockfile pair around one case where the error
23270         message is printed in several chunks.  Don't use fputc.
23273         getopt: fix fencepost error in ambiguous-W-option handling
23275         getopt_long contains an undocumented (AFAICT) feature in which, if you
23276         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
23277         treated as equivalent to '--foo'.  This is implemented with a partial
23278         second copy of the code for handling long options, and that code
23279         increments optind one too many times when recovering from an ambiguous
23280         abbreviated option, which can cause the main loop to walk past the end
23281         of argv and crash.
23283         I discovered this while writing a test case that tries to exercise all
23284         of getopt's error reporting paths; I wouldn't be surprised to learn
23285         that this feature is never used by real applications.
23287         * lib/getopt.c (_getopt_internal_r): Don't increment
23288         d->optind a second time when reporting ambiguous -W options.
23291         getopt: clean up getopt.c and getopt1.c file headers
23293         In getopt.c, there is no need to include wchar.h at all, and it is
23294         safe nowadays to assume that stdlib.h does declare getenv (several
23295         other gnulib modules make this assumption).
23297         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
23298         by using "" inclusions consistently, and there is no actual need to
23299         include stdlib.h (except in the #ifdef TEST block, where it should be
23300         unconditional), nor to provide a backup definition of NULL at all.
23302         * lib/getopt1.c: Simplify #ifdeffage at top of file.
23303         Move inclusion of stdlib.h to #ifdef TEST block and make
23304         unconditional.  Do not define NULL.
23305         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
23306         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
23307         * modules/getopt-gnu, modules/getopt-posix: Don't call
23308         gl_PREREQ_GETENV.
23311         getopt: harmonize comments with glibc
23313         The comments explaining how the behavior of 'getopt' varies depending
23314         on whether it's the standalone version and whether there are special
23315         characters at the beginning of the options string were inconsistent
23316         between gnulib and glibc, and also out of sync with the code.
23318         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
23321         getopt: remove USE_NONOPTION_FLAGS
23323         getopt includes code to parse an environment variable named
23324         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
23325         in decimal); but all of it has been #ifdefed out since 2001, with no
23326         official way to turn it back on.
23328         According to commentary in glibc's config.h.in, bash version 2.0
23329         set this environment variable to indicate argv elements that were
23330         the result of glob expansion and therefore should not be treated
23331         as options, but the feature was "disabled later" because "it
23332         caused problems".  According to bash's CHANGES file, "later" was
23333         release 2.01; it gives no more detail about what the problems
23334         were.
23336         Version 2.0 of bash was released on the last day of 1996, and version
23337         2.01 in June of 1997.  Twenty years later, I think it is safe to
23338         assume that this environment variable isn't coming back.
23340         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
23341         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
23342         __libc_argc and __libc_argv externs, which were only used by
23343         #ifdef USE_NONOPTION_FLAGS blocks.
23346         getopt: tabify, in preparation for merge with glibc
23348         glibc sticks to the GNU default of indenting with a mix of
23349         8-column tabs and spaces; make the gnulib copy match.
23351         getopt.h is not included because it is *not* going to be merged in its
23352         present form.
23354         * getopt.c, getopt1.c, getopt_int.h: Tabify.
23356 2017-04-02  Bruno Haible  <bruno@clisp.org>
23358         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
23359         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
23360         like it was done in modules/relocatable-lib on 2011-05-21 and in
23361         modules/relocatable-prog on 2011-08-15.
23362         Reported by Reuben Thomas <rrt@sc3d.org>.
23364 2017-03-31  Bruno Haible  <bruno@clisp.org>
23366         glob: Fix invalid free() call.
23367         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
23368         static storage to home_dir.
23369         Reported by Coverity via Tim Rühsen.
23371 2017-03-31  Bruno Haible  <bruno@clisp.org>
23373         glob: Fix memory leaks.
23374         * lib/glob.c (glob): Free allocated memory before returning.
23375         Reported by Coverity via Tim Rühsen.
23377 2017-03-31  Bruno Haible  <bruno@clisp.org>
23379         md5, sha1, sha256, sha512: Add comments regarding correctness.
23380         * lib/md5.h (buflen): Add comments regarding range.
23381         * lib/sha1.h (buflen): Likewise.
23382         * lib/sha256.h (buflen): Likewise.
23383         * lib/sha512.h (buflen): Likewise.
23384         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
23385         * lib/sha1.c (sha1_process_bytes): Likewise.
23386         * lib/sha256.c (sha256_process_bytes): Likewise.
23387         * lib/sha512.c (sha512_process_bytes): Likewise.
23388         Reported by Coverity via Tim Rühsen.
23390 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
23392         getopt: merge from glibc
23393         This does not change anything substantial; it merely simplifies
23394         hypothetical merges back to glibc.
23395         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
23396         Change copyright notice to match what is in glibc.
23397         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
23398         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
23399         __open_memstream rather than open_memstream and __glibc_likely
23400         instead of __builtin_expect.
23401         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
23403 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
23405         dfa: make [0-9] faster in non-C locales
23406         Problem reported by John P. Linderman (Bug#26193).
23407         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
23408         If both ends of the range are ASCII digits, do not worry about
23409         multi-character collating sequences and the like.  Be consistent
23410         about using isalpha as a precondition for setbit_case_fold_c.
23412 2017-03-19  Bruno Haible  <bruno@clisp.org>
23414         lock: Fix compilation error with HP-UX IA64 cc.
23415         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
23416         weak on non-glibc platforms.
23418 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23420         stdalign: tweak version# and test for HP-UX IA64
23421         Problems reported by Bruno Haible in:
23422         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
23423         * lib/stdalign.in.h (_Alignas):
23424         * m4/stdalign.m4 (gl_STDALIGN_H):
23425         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
23426         used octal (as that is how they document it), but it is decimal in
23427         practice now and the ancient implementations no longer matter.
23428         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
23430 2017-03-19  Bruno Haible  <bruno@clisp.org>
23432         vma-iter: Add support for Solaris.
23433         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
23434         approach.
23435         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
23436         * lib/get-rusage-as.c: Update comment about Solaris.
23437         * lib/get-rusage-data.c: Likewise.
23439 2017-03-19  Bruno Haible  <bruno@clisp.org>
23441         vma-iter: Prefer HP-UX specific API on HP-UX.
23442         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
23443         * lib/vma-iter.h: Update.
23444         Just in case HP-UX ever implements mquery().
23446 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
23448         stdalign: restore previous behavior for HP-UX IA64
23449         See Bruno Haible's email in:
23450         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23451         which cites p 150 of a manual saying that 'aligned' works on Itanium.
23452         * lib/stdalign.in.h (_Alignas):
23453         Assume the '061200' applies to Itanium, not to PA-RISC.
23454         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
23456 2017-03-17  Bruno Haible  <bruno@clisp.org>
23458         stat-time, timespec: Support use of the header files in C++ mode.
23459         * lib/stat-time.h: Add "C" linkage declaration.
23460         * lib/timespec.h: Likewise.
23462 2017-03-17  Bruno Haible  <bruno@clisp.org>
23464         stdalign: Make it work with HP-UX cc.
23465         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
23466         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
23467         for HP-UX cc.
23469 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
23471         flexmember: try to detect HP-UX 11.31 cc bug
23472         Problem reported by Bruno Haible in:
23473         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23474         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23475         Attempt to detect bug in HP-UX 11.31 cc.
23477 2017-03-16  Bruno Haible  <bruno@clisp.org>
23479         stdint: Fix test compilation failure with HP-UX 11 cc.
23480         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
23481         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
23482         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
23483         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
23485 2017-03-14  Bruno Haible  <bruno@clisp.org>
23487         gnulib-tool: Don't produce a tests directory with only snippet .h files.
23488         * gnulib-tool (func_modules_transitive_closure_separately): If
23489         testsrelated_modules ends up with no "real" modules, aside from
23490         modules with applicability 'all', set it to empty.
23492 2017-03-14  Bruno Haible  <bruno@clisp.org>
23494         vma-iter: Add support for HP-UX.
23495         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
23496         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
23497         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
23498         * lib/get-rusage-as.c: Update comment about HP-UX.
23499         * lib/get-rusage-data.c: Likewise.
23500         (get_rusage_data): Use get_rusage_data_via_setrlimit.
23502 2017-03-14  Bruno Haible  <bruno@clisp.org>
23504         limits-h: Make it work with HP-UX cc.
23505         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
23506         defined.
23508 2017-03-14  Bruno Haible  <bruno@clisp.org>
23510         Fix test failures on DragonFlyBSD.
23511         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
23512         * tests/test-select.h (test_bad_fd): Likewise.
23513         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
23515 2017-03-14  Bruno Haible  <bruno@clisp.org>
23517         freadahead: Silence warning on DragonFlyBSD.
23518         * lib/freadahead.c (__sreadahead): Declare ourselves.
23520 2017-03-14  Bruno Haible  <bruno@clisp.org>
23522         vma-iter: Add comment about AIX.
23523         * lib/vma-iter.c: Add comment about why this module is not implemented
23524         on AIX.
23526 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23528         snippets: move unadjusted snippet sources to lib
23529         Problem reported by Michal Privoznik in:
23530         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
23531         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
23532         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
23533         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
23534         * lib/unused-parameter.h: Rename from
23535         build-aux/snippet/unused-parameter.h.
23536         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
23537         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
23538         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
23539         * modules/snippet/c++defs (Files:, CXXDEFS_H):
23540         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
23541         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
23542         Adjust to file renamings.
23544 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
23546         gnulib-tool: don't automatically distribute files from top/
23547         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
23548         not distribute top/README-release by default, don't distribute files
23549         from top/ unconditionally.
23550         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
23551         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
23553 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23555         gnulib-tool: fix typo in comment output
23556         * gnulib-tool (func_import): Fix typo with previous change.
23558         snippets: work around GNU Make 3.82 VPATH
23559         When using 'gnulib-tool --gnu-make' on Emacs, and building
23560         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
23561         an out-of-source (VPATH) build failed because the sans-copyright
23562         snippet file was not built before the file that used it.
23563         Presumably this is some sort of VPATH thing.  Work around the
23564         problem by using the original snippet, i.e., don’t bother to
23565         remove its copyright notice.
23566         * modules/snippet/_Noreturn, modules/snippet/link-warning:
23567         Don’t assume Automake in comments.  Omit long-incorrect comment.
23568         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
23569         (MOSTLYCLEANFILES):
23570         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
23571         (MOSTLYCLEANFILES):
23572         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
23573         (MOSTLYCLEANFILES):
23574         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
23575         (MOSTLYCLEANFILES):
23576         Remove.
23577         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
23578         * modules/snippet/c++defs (CXXDEFS_H):
23579         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
23580         * modules/snippet/warn-on-use (WARN_ON_USE_H):
23581         Don’t bother to remove the copyright notice; just use the
23582         original snippet as-is.
23584 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
23586         gnulib-tool: minor --gnu-make fixups
23587         * gnulib-tool (func_emit_lib_Makefile_am):
23588         Remove useless code that was a blind alley during implementation.
23589         Problem reported by Thien-Thi Nguyen in:
23590         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
23591         (func_import): Note the "--gnu-make" option in the output comment.
23593 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
23595         gnulib-tool: new option --gnu-make
23596         This is for applications like GNU Emacs that use GNU Make
23597         features instead of Automake.
23598         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
23599         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
23600         Do not assume Automake.
23601         * gnulib-tool (func_determine_path_separator)
23602         (func_modules_transitive_closure, func_update_file)
23603         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
23604         (func_import): Add support for --gnu-make.
23606 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23608         gnulib-common.m4: avoid aclocal.m4 bloat
23609         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
23610         Hide AM_PROG_AR from aclocal, so that aclocal does not
23611         install irrelevant macro definitions into aclocal.m4.
23613 2017-03-10  Bruno Haible  <bruno@clisp.org>
23615         vma-iter: Let callers know about error.
23616         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
23617         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
23619 2017-03-05  Bruno Haible  <bruno@clisp.org>
23621         Fix value of LD for 64-bit compilers on AIX.
23622         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
23623         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
23625 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
23627         dtotimespec: simplify
23628         * lib/dtotimespec.c (dtotimespec): Simplify.
23630 2017-03-04  Bruno Haible  <bruno@clisp.org>
23632         test-calloc-gnu: Reenable test also for GCC 7.
23633         * tests/test-calloc-gnu.c (eight): New function.
23634         (main): Don't skip test; use eight() instead.
23636 2017-03-04  Jim Meyering  <meyering@fb.com>
23638         test-calloc-gnu: port to GCC7
23639         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
23640         that attempts to calloc more than SIZE_MAX bytes, because GCC7
23641         and newer would detect that at compilation time.
23643 2017-03-04  Bruno Haible  <bruno@clisp.org>
23645         tests: Avoid compiler warning about uses of null_ptr.
23646         * tests/null-ptr.h: New file.
23647         * tests/test-canonicalize.c: Include null-ptr.h.
23648         (null_ptr): Remove function.
23649         * tests/test-canonicalize-lgpl.c: Likewise.
23650         * tests/test-memmem.c: Likewise.
23651         * tests/test-ptsname_r.c: Likewise.
23652         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
23653         * modules/canonicalize-lgpl-tests: Likewise.
23654         * modules/memmem-tests: Likewise.
23655         * modules/ptsname_r-tests: Likewise.
23656         Reported by Jim Meyering.
23658 2017-03-03  Bruno Haible  <bruno@clisp.org>
23660         doc: Mention Mac OS X deficiencies regarding semaphores.
23661         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
23662         * doc/posix-functions/sem_destroy.texi: Likewise.
23663         * doc/posix-functions/sem_getvalue.texi: Likewise.
23665 2017-03-03  Bruno Haible  <bruno@clisp.org>
23667         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
23668         Reported by Assaf Gordon <assafgordon@gmail.com> via
23669         Pádraig Brady <P@draigBrady.com>.
23670         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
23671         semaphores.
23672         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
23673         (atomic_int_semaphore): New macro.
23675 2017-02-28  Bruno Haible  <bruno@clisp.org>
23677         perror tests: Tweak for z/OS.
23678         Reported by Daniel Richard G. <skunk@iskunk.org>.
23679         * tests/test-perror.sh: Don't fail z/OS style perror output.
23681 2017-02-26  Bruno Haible  <bruno@clisp.org>
23683         nproc: Refactor large function.
23684         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
23685         from num_processors.
23686         (num_processors): In this function, only deal with OMP.
23688 2017-02-26  Pádraig Brady  <P@draigBrady.com>
23690         nproc: adjust handling of OpenMP environment variables
23691         to match the return value from omp_get_num_threads(), i.e.:
23692          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
23693          - Treat 0 as an invalid value and ignore
23694         Also remove the call to omp_get_num_threads() because
23695         it's ineffective without the omp pragmas in place.
23696         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
23697         so that it can be ignored.
23698         (num_processors): Honor OMP_THREAD_LIMIT even without
23699         OMP_NUM_THREADS being set.  Also fix a typo in the environment
23700         variable being checked, from the previous recent commit.
23702 2017-02-26  Pádraig Brady  <P@draigBrady.com>
23704         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
23705         * lib/nproc.c (parse_omp_threads): A new function refactored
23706         from num_processors() to support parsing both of the
23707         above environment variables.
23708         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
23709         to accurately reflect the current OpenMP nesting level.
23710         Also support the OMP_THREAD_LIMIT environment variable
23711         to limit the max value determined from OMP_NUM_THREADS.
23712         * modules/nproc: Depend on minmax header.
23713         Suggested by Oliver Heimlich.
23715 2017-02-25  Bruno Haible  <bruno@clisp.org>
23717         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
23718         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
23720 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23722         ftoastr: port to -Wdouble-promotion
23723         Work around -Wdouble-promotion false alarm in recent GCCs.
23724         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
23725         (ftoastr_snprintf, FTOASTR): Use it.
23727 2017-02-21  Bruno Haible  <bruno@clisp.org>
23729         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
23730         Reported by Rene Saavedra <rennes@openmailbox.org> in
23731         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
23732         * lib/glthread/lock.h: On glibc systems without
23733         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
23734         implementation of rwlocks.
23735         * lib/glthread/lock.c: Likewise.
23737 2017-02-20  Bruno Haible  <bruno@clisp.org>
23739         lock tests: Fix build failure on z/OS.
23740         Reported by Daniel Richard G. <skunk@iskunk.org>.
23741         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
23742         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
23743         exist.
23745 2017-02-19  Bruno Haible  <bruno@clisp.org>
23747         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
23748         This helps when CC=clang.
23749         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
23750         of /usr/bin/gcc.
23752         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
23753         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
23755 2017-02-19  Bruno Haible  <bruno@clisp.org>
23757         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
23758         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
23759         --with-tests --single-configure is specified.
23761 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
23763         users.txt: Update links, use HTTPS where possible
23764         * users.txt: Updated to HTTPS where possible,
23765         fixed some links to new locations.
23767 2017-02-16  Bruno Haible  <bruno@clisp.org>
23769         xbinary-io: Fix inlining.
23770         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
23772 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23774         xbinary-io: rename from xsetmode
23775         This patch is taken from suggestions by Bruno Haible in:
23776         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
23777         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
23778         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
23779         not ENOTTY, when it is an inappropriate device.
23780         * lib/binary-io.h (SET_BINARY): Resurrect.
23781         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
23782         (xset_binary_mode_error): Rename from xsetmode_error.
23783         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
23784         (xset_binary_mode): Rename from xsetmode.
23785         All uses changed.
23786         * modules/xbinary-io: Rename from modules/xsetmode.
23787         Update file names.
23788         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
23789         * NEWS: Update to match revised behavior.
23791 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23793         tests: Adjust to recent SET_BINARY change
23794         * tests/test-binary-io.c (main):
23795         * tests/test-binary-io.sh: Remove test for SET_BINARY.
23796         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
23797         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
23798         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
23800         xsetmode: new module
23801         This is to fix a problem noted by Eric Blake.
23802         Code was using xfreopen to change files to binary mode, but this
23803         fails for stdout when in append mode.  Such code should use
23804         xsetmode instead.
23805         * NEWS: Document incompatible changes to binary-io module.
23806         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
23807         New function.
23808         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
23809         (set_binary_mode): New function, which also checks for tty.
23810         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
23812 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23814         headers: fix begin-end typos
23815         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
23816         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
23818         selinux-h: port to PGI 16.10
23819         * lib/se-selinux.in.h: Don't assume that include_next skips over
23820         duplicate -I DIR options.
23822         argp: port to PGI 16.10
23823         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
23825 2017-02-13  Darshit Shah  <darnir@gnu.org>
23827         unicase: Update function protoype to match definition.
23828         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
23829         uses 'size_t' as the datatype for the 'len' parameter in the functions
23830         it generates. Update the prototype specified here to match the newly
23831         generated function.
23833 2017-02-12  Bruno Haible  <bruno@clisp.org>
23835         times test: Avoid gcc warnings on Linux/x32.
23836         * tests/test-times.c (main): Really cast printf arguments from clock_t
23837         to 'long int'.
23839 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23841         glob: port better to emscripten
23842         Problem reported by Bruno Haible in:
23843         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
23844         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
23846 2017-02-11  Bruno Haible  <bruno@clisp.org>
23848         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
23849         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
23850         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
23851         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
23852         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
23853         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
23854         Distinguish hppa64 from hppa.
23856 2017-02-10  Bruno Haible  <bruno@clisp.org>
23858         search: Don't assume that tsearch() exists if 'VISIT' is defined.
23859         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
23860         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
23861         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
23863 2017-02-09  Bruno Haible  <bruno@clisp.org>
23865         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
23866         * doc/gnulib.texi (Libtool and Windows): Recommend
23867         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
23868         Reported by Reuben Thomas <rrt@sc3d.org>.
23870 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23872         stddef-tests: port to SIZE_MAX <= INT_MAX
23873         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
23874         Do not assume that INT_MAX < SIZE_MAX.
23876 2017-02-01  Bruno Haible  <bruno@clisp.org>
23878         lock tests: Fix link error.
23879         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
23880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23882 2017-01-31  Bruno Haible  <bruno@clisp.org>
23884         lock: Fix link error (regression from 2017-01-05).
23885         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
23886         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
23887         pthread_rwlockattr_destroy weak.
23888         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23890 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23892         Port to PGI 16.10 x86-64
23893         This patch fixes one real bug in gl_anylinked_list2.h, along with
23894         some minor glitches that are not bugs.  It does not silence PGI’s
23895         thousands of bogus warnings when compiling test-intprops.c.
23896         Fortunately, the warnings do not cause a failure.
23897         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
23898         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
23899         My goodness, PGI goes back a long ways - this predates C89!
23900         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
23901         For example, ASYNCSAFE (const void *) should expand to
23902         ‘const void *volatile’, not to ‘volatile const void *’.
23903         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
23904         * lib/verify.h (verify) [!__GNUC__]:
23905         Use shorter albeit meaningless string to bypass silly compiler limits.
23906         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
23907         * tests/nan.h (NaNf, NaNd, NaNl):
23908         Use static functions to avoid misguided compiler diagnostics.
23909         Is there some reason we don’t use static functions on all platforms?
23911 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23913         parse-datetime: handle timezones reentrantly
23914         This API change was prompted by a report by Pádraig Brady in:
23915         https://bug.debian.org/851934#10
23916         To help fix the bug, make parse_datetime2 more reentrant.
23917         * NEWS: Document this incompatible change.
23918         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
23919         Add two arguments, the timezone and the timezone name.
23920         All callers changed.  If TZ="..." is specified, use it for
23921         calculating defaults.
23922         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
23923         this code should be usable in a library.
23924         (mktime_ok, get_effective_timezone):
23925         Accept timezone arg too.  All callers changed.
23926         (get_tz): Remove.
23927         (get_effective_timezone): Check for failures.
23929 2017-01-20  Eric Blake  <eblake@redhat.com>
23931         localename: port to cygwin 2.6
23932         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
23933         Cygwin.
23934         * modules/localename (Depends-on): Add extensions, since
23935         NL_LOCALE_NAME() is not visible without it.
23937 2017-01-17  Pádraig Brady  <P@draigBrady.com>
23939         parse-datetime: fix dependence on AC_PROG_SED
23940         * modules/parse-datetime: Use `sed` directly like all other modules.
23941         Reported by J William Piggott
23943 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
23945         intprops: update doc URLs
23946         * doc/intprops.texi (Integer Range Overflow): Update URLs.
23948 2017-01-16  Bruno Haible  <bruno@clisp.org>
23950         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
23951         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
23952         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
23953         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
23954         distinguish s390 and s390x.
23955         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
23956         * NEWS: Mention the change regarding 'armel'.
23958 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23960         localeinfo: case_folded_counterparts and WEOF
23961         * NEWS: Document this.
23962         * lib/localeinfo.c (case_folded_counterparts):
23963         First arg is now wint_t, not wchar_t.  This generalizes the
23964         function to also work on WEOF, where it returns 0.
23966         dfa: port to gcc -fsanitize=undefined
23967         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
23968         as this runs afoul of gcc -fsanitize=undefined.
23970 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
23972         strftime: %z is -00 if unknown
23973         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
23974         the caller's responsibility to set 'negative_number'.  All uses changed.
23975         (__strftime_internal): Put '-' before a zero UTC offset if the time
23976         zone abbreviation starts with "-", which is the recently-introduced
23977         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
23978         * tests/test-strftime.c: Test for this.
23980 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23982         dfa: port to older GCC
23983         Problem reported by Assaf Gordon in:
23984         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
23985         * modules/c99: New module.  This merely attempts to use the latest
23986         C version, which should be enough to solve this particular problem.
23987         The idea is to document which Gnulib modules assume C99 or later.
23988         * modules/dfa (Depends-on): Add it.
23990 2017-01-10  Bruno Haible  <bruno@clisp.org>
23992         Update DEPENDENCIES.
23993         * DEPENDENCIES: List only https URLs. Update recommended version for
23994         autoconf, automake, gperf.
23996 2017-01-10  Jim Meyering  <meyering@fb.com>
23998         maint.mk: enforce spelling of "timestamp" (i.e., no space)
23999         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24000         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
24002 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24004         dfa: minor simplification with emptyset
24005         * lib/dfa.c (build_state): Simplify by using emptyset.
24007 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24009         dfa: shrink constraints from 4 bits to 3
24010         * lib/dfa.c (newline_constraint, letter_constraint)
24011         (other_constraint, prev_newline_dependent)
24012         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
24013         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
24014         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
24015         Constraints need only 3 bits, not 4.  Using smaller integers
24016         shrinks the code a bit and makes grep a tad faster on x86-64.
24018         dfa: omit unnecessary ptrdiff_t check
24019         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
24020         overflow, since xnmalloc does that now.
24022         dfa: omit unnecessary allocation
24023         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
24024         an all-zero follow set works just fine.
24026         dfa: omit unused local
24027         * lib/dfa.c (build_state): Fix up recent change.
24029         maint: remove stray .texi files
24030         Although these were superseded by other files like
24031         doc/posix-functions/ctime.texi, the old files were not removed.
24032         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
24034 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
24036         getprogname: fix port to IRIX
24037         * lib/getprogname.c (getprogname) [__sgi]:
24038         Don't dump core if malloc returns NULL.
24040         dfa: fix reallocation bug when matching newlines
24041         Problem reported for sed by S. Gilles (Bug#25390).
24042         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
24043         (dfastate): Reallocate before moving any newline transition ...
24044         (build_state): ... instead of reallocating here, where it is too late.
24046 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24048         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
24049         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
24051 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24053         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
24054         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
24056 2017-01-07  Bruno Haible  <bruno@clisp.org>
24058         stdioext: Port to Minix 3.2 and newer.
24059         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
24060         * lib/fseeko.c (fseeko): Likewise.
24061         Reported by Nelson Beebe via Paul Eggert.
24063 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24065         getprogname: port to IRIX
24066         * lib/getprogname.c (getprogname): Port to IRIX.
24067         Based on an idea by Bastien Roucariès at:
24068         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
24069         via code from Bruno Haible at:
24070         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24072         localename-tests: port to NetBSD 7
24073         Problem reported by Nelson H. F. Beebe.
24074         * tests/test-localename.c:
24075         Test newlocale and uselocale only if both exist.
24077         glob, intprops, xalloc: work around Clang bug
24078         Work around LLVM bug 16404, which is still not fixed.
24079         https://llvm.org/bugs/show_bug.cgi?id=16404
24080         Problem reported by Nelson H. F. Beebe.
24081         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
24082         Remove.
24083         * lib/glob.c (size_add_wrapv):
24084         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
24085         * lib/xalloc-oversized.h (xalloc_oversized):
24086         Do not use overflow builtins if Clang.
24088         dfa: fix 'return' typo
24089         Problem reported by Nelson H. F. Beebe.
24090         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
24092 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24094         parse-datetime: fix generated paths for coverage files
24095         * modules/parse-datetime: Adjust the paths for parse-datetime.y
24096         within parse-datetime.c, so that gcc generates appropriate .gcno
24097         files, allowing lcov to proceed without error.  Previously it
24098         would error trying to find "lib/lib/parse-datetime.y".
24100 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24102         maint.mk: support parallel execution of coverage
24103         * top/maint.mk (coverage): Run dependencies serially,
24104         thus supporting parallel processing of each one,
24105         particularly build-coverage, which builds and runs tests.
24107 2017-01-05  Bruno Haible  <bruno@clisp.org>
24109         lock tests: Prefer semaphore over mutex.
24110         * tests/test-lock.c (USE_SEMAPHORE): New constant.
24111         (struct atomic_int, init_atomic_int, get_atomic_int_value,
24112         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
24113         Suggested by Torvald Riegel <triegel@redhat.com>.
24115 2017-01-05  Bruno Haible  <bruno@clisp.org>
24117         lock: Provide guarantee to avoid writer starvation for rwlocks.
24118         The rationale is: 1) Read-preferring read-write locks are prone to
24119         writer starvation if the number of reader threads multiplied by the
24120         percentage of time they have the lock held is too high. 2) Write-
24121         preferring read-write locks are the only reliable way to avoid this.
24122         3) There have been reports of 'test-lock' hanging on glibc systems
24123         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
24124         and glibc indeed implements read-preferring rwlocks by default, see
24125         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
24126         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
24127         * m4/pthread_rwlock_rdlock.m4: New file.
24128         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24129         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
24130         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24131         of rwlock initialization on glibc systems without
24132         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24133         of rwlocks altogether on non-glibc systems without
24134         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24135         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
24136         * lib/glthread/lock.c [USE_POSIX_THREADS]
24137         (glthread_rwlock_init_for_glibc): New function.
24138         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
24139         comment.
24140         [USE_PTH_THREADS]: New implementation of rwlocks.
24141         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
24142         readers.
24143         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
24144         (Depends-on): Add 'extensions'.
24145         * tests/test-rwlock1.c: New file.
24146         * lock-tests (Files): Add it.
24147         (Depends-on): Add usleep.
24148         (Makefile.am): Add test-rwlock1 to the tests.
24150 2017-01-05  Bruno Haible  <bruno@clisp.org>
24152         thread: Fix pth port.
24153         * lib/glthread/thread.h (pth_init): Declare weak.
24154         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
24155         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
24156         function.
24158 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
24160         parse-datetime: fix debug message on lone year number
24161         Input dates such as
24162           date -d "Apr 11 22:59:00 2011"
24163         are parsed as date (Apr 11, with default year 2016), then time, then a
24164         number (2011). Based on the combination of previously seen tokens,
24165         'digits_to_date_time' determines 2011 to be a year value.
24166         This fixes the debug messages to correctly show the updated year.
24167         Before:
24168             $ date --debug -d 'Apr 11 22:59:00 2011'
24169             date: parsed date part: (Y-M-D) 2016-04-11
24170             date: parsed time part: 22:59:00
24171             date: parsed number part: today/this/now
24172         After:
24173             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
24174             date: parsed date part: (Y-M-D) 2016-04-11
24175             date: parsed time part: 22:59:00
24176             date: parsed number part: year: 2011
24177         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
24178         'debug_year_seen' member fields.
24179         (digits_to_date_time): Update 'year_seen' as needed.
24180         (debug_print_current_time): Inform about year updates.
24181         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
24183         parse-datetime: fix local timezone debug messages
24184         "Local timezones" are strings that affect only DST relative to the
24185         default timezone. The debug messages in parse-datetime.y printed
24186         wrong information when encountering local timezones.
24187         Examples:
24188         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
24189              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
24190              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
24191         When the default timezone relates to the zone strings, EET/EEST are
24192         parsed as local timezones (tLOCAL_ZONE), and only change the DST
24193         value (0/1, respectively):
24194              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
24195              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
24196         * lib/parse-datetime.y (debug_print_current_time): If local timezone
24197         was seen, inform about DST change, don't print actual timezone.
24198         (debug_strfdatetime): If local timezone was seen, use default timezone
24199         (and adjust as needed) instead of using incorrect timezone.
24200         (parse_datetime2): Use correct time-zone source string, and adjust
24201         default timezone as needed.
24203         parse-datetime: add debug warning about DST changes
24204         Incorrect date arithmetic due to daylight saving time (DST) are a
24205         common (false) bug report in coreutils.
24206         Detect two such cases and print a warning:
24207         1. year/month/day adjustments (performed on 'struct tm'),
24208            where 'mktime' returns a different isdst value.
24209         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
24210            where the result of 'localtime(3)' on the value will return a
24211            different isdst value.
24212         Note: DST changes could be harmless or unnoticeable.
24213         Examples (with 'TZ=America/New_York'):
24214         Unnoticeable: result is 2016-Dec-14
24215            $ date -d '2016-06-15 EDT + 6 months' +%b
24216            Dec
24217         Unnoticeable: result is 2016-Dec-15 11:00:00
24218            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
24219            2016-12-15
24220         This is unexpected:
24221            $ date -d '2016-06-01 EDT + 6 months' +%F
24222            2016-11-30
24223         The new debug warnings will show:
24224            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
24225            ...
24226            date: warning: daylight saving time changed after date adjustment
24227            ...
24228         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
24229         print an appropriate warning message.
24231         parse-datetime: add debug warning about date arithmetic
24232         Date arithmetic are done directly on the fields of 'struct tm',
24233         which can result in invalid dates. Normalization with 'mktime(3)'
24234         will then produce a different date - which might cause unexpected
24235         results.
24236         Examples:
24237           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
24238           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
24239         Note that date normalization is not inherently wrong and not rejected,
24240         as it has legitimate uses:
24241           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
24242         If the user asked to adjust months but 'mday' changed,
24243         or user asked to adjust years but 'month' changed - warn about it.
24244             $ ./src/date --debug -d '2016-10-31 - 1 month'
24245             ...
24246             date: warning: when adding relative months/years, \
24247                            it is recommended to specify the 15th of the month
24248             ...
24249             date: warning: month/year adjustment resulted in shifted dates:
24250             date:      adjusted Y M D: 2016 09 31
24251             date:    normalized Y M D: 2010 10 01
24252             ...
24253         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
24254         a warning message. Improve recommendation of when to use 15 of the
24255         month or noon for date arithmetic.
24257         parse-datetime: fix debug message of relative part after timezone
24258         Relative part (e.g '+8 days') after a timezone string was not
24259         reported (was only reported after a timezone number). Due to the
24260         parser's structure, timezone strings with numbers were handled
24261         separately.
24262         before:
24263              # Timezone number + relative part: OK
24264              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
24265              ...
24266              date: parsed relative part: -8 day(s)
24267              # Timezone string + relative part: missing
24268              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
24269              [ missing message ]
24270         After: messages are printed in both cases.
24271         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
24273         parse-datetime: fix incorrect debug message on lone number
24274         A lone number is an absolute value, not a relative time part.
24275         before:
24276            $ date --debug -d '20130101'
24277            date: parsed number part: today/this/now
24278         After:
24279            $ ./src/date --debug -d '20130101'
24280            date: parsed number part: (Y-M-D) 2013-01-01
24281         * lib/parse-datetime.y ('item'/'number' tokens): Call
24282         'debug_print_current_time' instead of 'debug_print_relative_time'.
24284 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24286         doc: modernize for C11 etc.
24287         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
24288         for C11, MinGW, etc.  This responds to Paul Smith's question in:
24289         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
24291         dfa: prefer functions to FETCH_WC macro
24292         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
24293         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
24294         wint_t result into DFA->lex.wctok instead of to a separate arg.
24295         All callers changed.  Move more local decls closer to where
24296         they're used.
24298         dfa: narrow more local var scopes
24299         * lib/dfa.c: Move more local decls to be more local.
24301         dfa: remove duplicate assignment
24302         Problem reported by Bruno Haible in:
24303         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
24304         * lib/dfa.c (parse_bracket_exp): Simplify.
24306 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24308         dfa: simplify constraint-dependency checking
24309         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
24310         (prev_other_constraint): Remove.
24311         (prev_newline_dependent, prev_letter_dependent):
24312         Simplify, to avoid an unnecessary bitwise AND operation.
24314         dfa: prefer functions and constants to macros
24315         * lib/dfa.c: Prefer constants to macros where either will do.
24316         (streq, isasciidigit, newline_constraint)
24317         (letter_constraint, other_constraint, succeeds_in_context)
24318         (prev_newline_constraint, prev_letter_constraint)
24319         (prev_other_constraint, prev_newline_dependent)
24320         (prev_letter_dependent, accepting, accepts_in_context):
24321         Now static functions instead of function-like macros.
24322         Use lower-case names accordingly.  All uses changed.
24324         dfa: narrow more local var scopes
24325         * lib/dfa.c: Move some more local decls down to nearer where
24326         they're needed.
24328 2016-12-31  Jim Meyering  <meyering@fb.com>
24330         dfa: narrow the scope of many local variables
24331         * lib/dfa.c: Now that we are no longer constrained to c89, move
24332         declarations of many variables (often indices) "down" into the
24333         scope(s) where used or to the point of definition.  This is a
24334         no-semantic-change diff.
24336 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24338         version-etc: new year
24339         * build-aux/gendocs.sh (version):
24340         * doc/gendocs_template:
24341         * doc/gendocs_template_min:
24342         * doc/gnulib.texi:
24343         * lib/version-etc.c (COPYRIGHT_YEAR):
24344         Update copyright dates by hand in templates and the like.
24345         * all files: Run 'make update-copyright'.
24347 2016-12-31  Eric Blake  <eblake@redhat.com>
24349         do-release-commit-and-tag: avoid shell syntax error
24350         * build-aux/do-release-commit-and-tag (curr_br): $branch can
24351         contain spaces when rebasing.
24353         maint.mk: hoist gnulib_dir definition earlier
24354         * top/maint.mk (gnulib_dir): Move near top of file.
24356 2016-12-31  Jim Meyering  <meyering@fb.com>
24358         maint.mk: do not always evaluate intprops-related shell
24359         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
24360         using gnulib_dir undefined (gnulib_dir is defined later in the
24361         file, which will be fixed separately), and besides, there is no
24362         need to incur the cost of this shell invocation for every single
24363         use of this .mk file.  Reported by Eric Blake in
24364         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
24366 2016-12-30  Jim Meyering  <meyering@fb.com>
24368         maint.mk: improve sc_prohibit_intprops_without_use
24369         * top/maint.mk (_intprops_names): Don't hard-code the list of
24370         symbol names.  Instead, derive it on the fly.
24372 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
24374         dfa: shorten sbit, success
24375         * lib/dfa.c (struct regex_syntax.sbit):
24376         (struct dfa.success): Use char, not int, for array elements, since
24377         they are all in the range 0..7.
24379         dfa: simplify multibyte_prop etc.
24380         This follows up on a change made when dfa.c was in grep, namely grep
24381         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
24382         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
24383         That earlier simplification allows for some more simplification
24384         and trimming down here.
24385         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
24386         (struct lexer_state): New mamber brack.
24387         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
24388         since they must be in the range 0..3 now.
24389         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
24390         the brack member now supersedes them.
24391         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
24392         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
24393         (dfaparse): Remove unnecessary initializations of already-0 storage.
24394         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
24395         (dfassbuild): No need to clear sup->mbcsets.
24397         dfa: minor performance tweak
24398         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
24400         dfa: wrap charclass inside a struct
24401         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
24402         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
24403         about 5% faster, where list.txt is generated by 'aspell dump
24404         master | head -n 100000 >list.txt'.  See Bug#22239.
24405         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
24406         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
24407         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
24408         Adjust to this, e.g., by using charclass * rather than charclass.
24409         All callers changed as needed.
24410         (copyset): Remove.  All uses changed to simple assignment.
24411         (parse_bracket_exp): Use zeroset instead of memset.
24413 2016-12-30  Jim Meyering  <meyering@fb.com>
24415         maint.mk: update list of intprops.h symbol names
24416         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
24417         This avoids a false failure of the sc_prohibit_intprops_without_use
24418         rule in grep.
24420 2016-12-29  Eric Blake  <eblake@redhat.com>
24422         getopt: fix parallel test failure
24423         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
24424         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
24425         * tests/test-getopt-main.h (main): Use different file names
24426         in case test-getopt-gnu and test-getopt-posix run in parallel.
24428 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24430         xalloc: x2nrealloc check for ptrdiff_t overflow
24431         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
24432         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
24434 2016-12-24  Bruno Haible  <bruno@clisp.org>
24436         lock test: Fix performance problem on multi-core machines.
24437         * tests/test-lock.c (USE_VOLATILE): New macro.
24438         (struct atomic_int): New type.
24439         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
24440         functions.
24441         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
24442         as 'struct atomic_int'.
24443         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
24444         reclock_checker_thread, test_recursive_lock): Use the new functions.
24445         Reported by Eric Blake in
24446         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
24447         and by Pádraig Brady in
24448         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
24450 2016-12-19  Bruno Haible  <bruno@clisp.org>
24452         vma-iter: Fix endless loop on 64-bit Windows.
24453         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
24454         'unsigned long'.
24456 2016-12-19  Bruno Haible  <bruno@clisp.org>
24458         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
24459         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
24460         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
24461         Invoke gt_TYPE_WINT_T instead.
24462         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
24463         * modules/stdint (Files): Add m4/wint_t.m4.
24464         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
24465         * modules/wctype-h (Makefile.am): Likewise.
24466         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
24467         not only on MSVC.
24468         * lib/wctype.in.h (wint_t): Likewise.
24470 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24472         getopt-posix-tests: fix Makefile typo
24473         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
24474         Fix typo: the last ‘_’ was missing in the name.
24475         I suspect that the typo explains this build failure:
24476         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
24477         although I can’t reproduce the problem on Solaris 10 sparc.
24479 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24481         dfa: improve worst-case 'replace' performance
24482         See my note in Bug#22357#71.
24483         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
24484         (merge_constrained): New function, which is like
24485         the old 'merge' function, except with a new argument C2.
24486         Simplify the body by avoiding the need for different sections
24487         of code depending on whether one input is exhausted.
24488         (merge): Use the new function.
24489         (delete): Return the constraint of the deleted position,
24490         not the entire position.  Caller changed.
24491         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
24493 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24495         dfa: performance improvement for removal of epsilon closure
24496         See Bug#22357#32.
24497         * lib/dfa.c (delete): Use binary search to find deleted index.
24498         (replace): New function.  It replaces a position with the followed set.
24499         (epsclosure): Replace it with a new algorithm.  Update caller.
24501 2016-12-18  Bruno Haible  <bruno@clisp.org>
24503         Split tests for getopt-posix and getopt-gnu.
24504         * tests/test-getopt-posix.c: New file.
24505         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
24506         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
24507         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
24508         GNULIB_TEST_GETOPT_GNU.
24509         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
24510         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
24511         (Makefile.am): Test test-getopt-posix instead of test-getopt.
24512         * modules/getopt-gnu-tests: New file.
24513         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
24515 2016-12-18  Bruno Haible  <bruno@clisp.org>
24517         posix-modules: Add options for specific platforms.
24518         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
24519         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
24520         Invoke func_tmpdir. Filter out the excludes.
24522 2016-12-18  Bruno Haible  <bruno@clisp.org>
24524         getopt: Fix link error for users of getopt() in <unistd.h>.
24525         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
24526         __need_getopt is defined. Undefine all macros before defining them.
24527         * modules/getopt (Include): Clarify that including <unistd.h> is also
24528         OK.
24529         * tests/test-getopt.c: Add comment.
24531 2016-12-17  Bruno Haible  <bruno@clisp.org>
24533         getaddrinfo tests: Avoid compilation error on MSVC.
24534         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
24535         getaddrinfo on native Windows.
24537 2016-12-17  Bruno Haible  <bruno@clisp.org>
24539         getlogin, getlogin_r: Fix link errors on MSVC.
24540         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
24541         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
24542         (Link): New section.
24543         * modules/getlogin_r (Files): Add m4/getlogin.m4.
24544         (configure.ac): Require gl_LIB_GETLOGIN.
24545         (Link): New section.
24546         * NEWS: Mention the new link requirements.
24547         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
24548         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
24550 2016-12-17  Bruno Haible  <bruno@clisp.org>
24552         Un-deprecate the 'progname' module.
24553         * NEWS: Describe the appropriate use-cases of 'progname' versus
24554         'getprogname'. Based on discussion summary at
24555         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
24557 2016-12-17  Bruno Haible  <bruno@clisp.org>
24559         Reorganize NEWS a bit.
24560         * NEWS: Move some not so important changes away from section
24561         "Important Notes".
24563 2016-12-17  Bruno Haible  <bruno@clisp.org>
24565         tanhf: Avoid redefinition error on MSVC.
24566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
24567         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
24568         may be defined as an inline function.
24569         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
24570         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
24572 2016-12-17  Bruno Haible  <bruno@clisp.org>
24574         tanf: Avoid redefinition error on MSVC.
24575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
24576         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
24577         may be defined as an inline function.
24578         * modules/math (Makefile.am): Substitute REPLACE_TANF.
24579         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
24581 2016-12-17  Bruno Haible  <bruno@clisp.org>
24583         sqrtf: Avoid redefinition error on MSVC.
24584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
24585         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
24586         may be defined as an inline function.
24587         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
24588         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
24590 2016-12-17  Bruno Haible  <bruno@clisp.org>
24592         sinhf: Avoid redefinition error on MSVC.
24593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
24594         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
24595         may be defined as an inline function.
24596         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
24597         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
24599 2016-12-17  Bruno Haible  <bruno@clisp.org>
24601         sinf: Avoid redefinition error on MSVC.
24602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
24603         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
24604         may be defined as an inline function.
24605         * modules/math (Makefile.am): Substitute REPLACE_SINF.
24606         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
24608 2016-12-17  Bruno Haible  <bruno@clisp.org>
24610         logf: Avoid redefinition error on MSVC.
24611         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
24612         may be defined as an inline function.
24614 2016-12-17  Bruno Haible  <bruno@clisp.org>
24616         log10l: Avoid redefinition error on MSVC.
24617         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
24618         may be defined as an inline function.
24620 2016-12-17  Bruno Haible  <bruno@clisp.org>
24622         log10f: Avoid redefinition error on MSVC.
24623         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
24624         may be defined as an inline function.
24626 2016-12-17  Bruno Haible  <bruno@clisp.org>
24628         hypotl: Avoid redefinition error on MSVC.
24629         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
24630         may be defined as an inline function.
24632 2016-12-17  Bruno Haible  <bruno@clisp.org>
24634         hypotf: Avoid redefinition error on MSVC.
24635         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
24636         may be defined as an inline function.
24638 2016-12-17  Bruno Haible  <bruno@clisp.org>
24640         fmodl: Avoid redefinition error on MSVC.
24641         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
24642         may be defined as an inline function.
24644 2016-12-17  Bruno Haible  <bruno@clisp.org>
24646         fmodf: Avoid redefinition error on MSVC.
24647         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
24648         may be defined as an inline function.
24650 2016-12-17  Bruno Haible  <bruno@clisp.org>
24652         expf: Avoid redefinition error on MSVC.
24653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
24654         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
24655         may be defined as an inline function.
24656         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
24657         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
24659 2016-12-17  Bruno Haible  <bruno@clisp.org>
24661         coshf: Avoid redefinition error on MSVC.
24662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
24663         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
24664         may be defined as an inline function.
24665         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
24666         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
24668 2016-12-17  Bruno Haible  <bruno@clisp.org>
24670         cosf: Avoid redefinition error on MSVC.
24671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
24672         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
24673         may be defined as an inline function.
24674         * modules/math (Makefile.am): Substitute REPLACE_COSF.
24675         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
24677 2016-12-17  Bruno Haible  <bruno@clisp.org>
24679         atan2f: Avoid redefinition error on MSVC.
24680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
24681         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
24682         may be defined as an inline function.
24683         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
24684         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
24686 2016-12-17  Bruno Haible  <bruno@clisp.org>
24688         atanf: Avoid redefinition error on MSVC.
24689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
24690         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
24691         may be defined as an inline function.
24692         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
24693         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
24695 2016-12-17  Bruno Haible  <bruno@clisp.org>
24697         asinf: Avoid redefinition error on MSVC.
24698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
24699         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
24700         may be defined as an inline function.
24701         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
24702         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
24704 2016-12-17  Bruno Haible  <bruno@clisp.org>
24706         acosf: Avoid redefinition error on MSVC.
24707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
24708         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
24709         may be defined as an inline function.
24710         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
24711         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
24713 2016-12-17  Bruno Haible  <bruno@clisp.org>
24715         Avoid redefinition errors on MSVC.
24716         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
24717         the function may be defined as an inline function.
24718         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
24719         the function may be defined as an inline function.
24721 2016-12-17  Bruno Haible  <bruno@clisp.org>
24723         Avoid redefinition errors on MSVC.
24724         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
24725         * lib/unistd.in.h: Include <stdio.h> when necessary.
24727 2016-12-17  Bruno Haible  <bruno@clisp.org>
24729         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
24730         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
24731         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
24732         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
24733         WINT_MAX.
24735 2016-12-17  Bruno Haible  <bruno@clisp.org>
24737         Avoid autoconf warning.
24738         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
24739         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
24741 2016-12-17  Bruno Haible  <bruno@clisp.org>
24743         fpending: Revert workaround against Emacs bug.
24744         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
24745         The Emacs bug is fixed by Eli Zaretskii in
24746         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
24748 2016-12-17  Bruno Haible  <bruno@clisp.org>
24750         getlogin_r tests: Port to mingw.
24751         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
24752         regression introduced on 2014-05-19.
24754 2016-12-17  Bruno Haible  <bruno@clisp.org>
24756         getlogin: Port to newer mingw.
24757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
24758         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
24759         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
24760         HAVE_GETLOGIN.
24761         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
24762         HAVE_GETLOGIN.
24763         * doc/posix-functions/getlogin.texi: Mention the issue.
24764         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
24765         regression introduced on 2014-05-14.
24767 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
24769         builtin-expect: improve port to IBM XL C
24770         Problem reported for z/OS by Daniel Richard G. in:
24771         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
24772         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
24773         Test for <builtins.h> directly.
24775         builtin-expect: port to IBM XL C
24776         Problem reported for z/OS by Daniel Richard G. in:
24777         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
24778         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
24779         Also allow __builtin_expect defined via a standard include file.
24781         regex: fix dependency
24782         Problem reported by Bruno Haible in:
24783         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
24784         * modules/regex: Depend on builtin-expect.
24786         builtin-expect: new module
24787         Fix fnmatch to use it.
24788         Problem reported for z/OS by Daniel Richard G.
24789         * lib/fnmatch.c (__builtin_expect):
24790         * lib/glob.c (__builtin_expect):
24791         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
24792         * lib/memmem.c (__builtin_expect) [!_LIBC]:
24793         * lib/scandir.c (__builtin_expect):
24794         * lib/strstr.c (__builtin_expect) [!_LIBC]:
24795         Remove macro; config.h now does this.
24796         * lib/gl_anytreehash_list1.h (add_to_bucket):
24797         * lib/regex_internal.h (BE):
24798         Assume __builtin_expect.
24799         * m4/builtin-expect.m4, modules/builtin-expect: New files.
24800         * modules/avltreehash-list, modules/fnmatch, modules/glob:
24801         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
24802         * modules/scandir, modules/strstr-simple:
24803         Depend on builtin-expect.
24805 2016-12-15  Bruno Haible  <bruno@clisp.org>
24807         init.sh: Add possibility to not delete temporary files.
24808         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
24809         to yes, don't erase the temporary directory.
24811 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
24813         regex: fix integer-overflow bug in never-used code
24814         Problem reported by Clément Pit–Claudel in:
24815         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
24816         * lib/regex_internal.h: Include intprops.h.
24817         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
24818         behavior on integer overflow.
24819         * modules/regex (Depends-on): Add intprops.
24821         fpending: fix port to MinGW on Emacs
24822         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
24823         Problem reported by Eli Zaretskii in:
24824         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
24825         Is Plan 9 still a valid porting target, anyway?
24827 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
24829         safe-alloc: use xalloc-oversized
24830         * lib/safe-alloc.c: Include xalloc-oversized.h.
24831         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
24832         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
24834         xalloc: do not exceed PTRDIFF_MAX
24835         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
24836         xalloc_oversized check, since objects larger than PTRDIFF_MAX
24837         bytes have pointer-subtraction problems.
24839         malloca: do not exceed PTRDIFF_MAX
24840         * lib/malloca.h: Include xalloc-oversized.
24841         (nmalloca): Use xalloc_oversized instead of rolling our own.
24842         * modules/malloca (Depends-on):
24843         * modules/relocatable-prog-wrapper (Depends-on):
24844         Add xalloc-oversized.
24846         quotearg: pacify GCC better
24847         * modules/quotearg (Depends-on): Add minmax, stdint.
24848         * lib/quotearg.c: Include minmax.h, stdint.h.
24849         (nslots): Now int, as there seems little point to going to extra
24850         work merely to support the INT_MAX slot, which nobody ever uses.
24851         (quotearg_n_options): Redo size-overflow checks to pacify GCC
24852         and to catch (mostly-theoretical) ptrdiff_t problems too.
24853         This can be done via one comparison.
24855 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
24857         xalloc-oversized: check for PTRDIFF_MAX too
24858         This avoids undefined behavior when subtracting pointers to
24859         objects containing more than PTRDIFF_MAX bytes.
24860         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
24861         Also return 1 if the result would exceed PTRDIFF_MAX>
24862         * modules/xalloc-oversized (Depends-on):
24863         Add stdint.
24865         dfa: fix glitches in previous commit
24866         Sorry, I don't know how I managed to commit the wrong version.
24867         * lib/dfa.c (MIN): Move up.
24868         (xpalloc): Now static.
24870         dfa: fix some unlikely integer overflows
24871         I found these while reviewing the recent Coverity-related fix.
24872         This patch changes part of dfa.c to prefer ptrdiff_t instead of
24873         size_t for object counts.  Using ptrdiff_t is the style typically
24874         used in Emacs; although it wastes a sign bit as sizes can never be
24875         negative, it makes -fsanitize=undefined more likely to catch
24876         integer overflows in index calculation, and nowadays the upside is
24877         typically more important than the downside.  Although perhaps the
24878         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
24879         of dfa.c already does, since it uses state_num which is signed),
24880         that is a bigger change and is not needed to fix the bugs I found.
24881         * lib/dfa.c: Include stdint.h and intprops.h.
24882         (TOKEN_MAX): New macro.
24883         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
24884         (charclass_index, parse_bracket_exp, addtok, insert, merge)
24885         (realloc_trans_if_necessary, free_mbdata):
24886         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
24887         This is safe because xpalloc checks that the sizes do not exceed
24888         either SIZE_MAX or PTRDIFF_MAX.
24889         (xpalloc): New function, mostly taken from Emacs.
24890         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
24891         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
24892         (charclass_index): Check for integer overflow in computing
24893         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
24894         added to it later.
24895         (alloc_position_set): Check for integer overflow.  On typical
24896         platforms this check has zero overhead, since the constant
24897         expression is false.
24898         (realloc_trans_if_necessary):
24899         Remove assertion, which I hope Coverity no longer needs.
24901         * modules/dfa (Depends-on): Add intprops, stdint.
24903 2016-12-12  Jim Meyering  <meyering@fb.com>
24905         dfa: add an assertion to avoid coverity false positive
24906         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
24907         warned that "newalloc1 - 2" could overflow.
24909 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
24911         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
24912         * dfa.h (DFA_CASE_FOLD): Remove.
24913         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
24915 2016-12-13  John W. Eaton  <gnu@jweaton.org>
24917         link: fix test to declare use of rename()
24918         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
24919         -Werror=implicit-function-declaration
24921 2016-12-12  Bruno Haible  <bruno@clisp.org>
24923         fpending: Port to native Windows with MSVC.
24924         * lib/fpending.c: Include stdio-impl.h.
24925         (__fpending): Include all known implementations. Err out if it's not
24926         ported.
24927         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
24928         * modules/fpending (Files): Add lib/stdio-impl.h.
24929         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
24931 2016-12-12  Bruno Haible  <bruno@clisp.org>
24933         stdioext: Port to native Windows with MSVC.
24934         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
24935         (struct _gl_real_FILE): New type.
24936         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
24937         Windows.
24938         * lib/fbufmode.c (fbufmode): Add code for native Windows.
24939         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
24940         other SystemV derived implementations.
24941         * lib/fpurge.c (fpurge): Likewise.
24942         * lib/freadable.c (freadable): Likewise.
24943         * lib/freadahead.c (freadahead): Likewise.
24944         * lib/freading.c (freading): Likewise.
24945         * lib/freadptr.c (freadptr): Likewise.
24946         * lib/freadseek.c (freadptrinc): Likewise.
24947         * lib/fseeko.c (fseeko): Likewise.
24948         * lib/fseterr.c (fseterr): Likewise.
24949         * lib/fwritable.c (fwritable): Likewise.
24950         * lib/fwriting.c (fwriting): Likewise.
24951         Reported by Gisle Vanem <gvanem@yahoo.no>.
24953 2016-12-11  Jim Meyering  <meyering@fb.com>
24955         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
24956         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
24957         to work with most shells, but not with the one provided by many
24958         Solaris 10 systems, so running configure with such a /bin/sh evokes
24959         e.g., "./configure: syntax error at line 33602: `(' unexpected".
24960         Reported by Assaf Gordon in
24961         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
24963 2016-12-10  Bruno Haible  <bruno@clisp.org>
24965         threadlib: Optimize out runtime test on Solaris >= 10.
24966         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
24967         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
24968         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
24970 2016-12-10  Bruno Haible  <bruno@clisp.org>
24972         stdint: Update doc about Solaris 9.
24973         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
24975 2016-12-09  Bruno Haible  <bruno@clisp.org>
24977         c-ctype tests: Fix link error on Solaris 9.
24978         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
24979         Reported at <https://savannah.gnu.org/bugs/?46827>.
24981 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
24983         dfa: fix performance bug that recomputes trans
24984         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
24985         25 on-demand changes.  The bug caused build_state to reset all
24986         d->trans elements to -2 even when d->trans was already non-null.
24987         Use C99 style decls after statements in this function.
24989         same-inode: port to MinGW
24990         Here st_ino is always 0, so change the definition of SAME_INODE so
24991         that 1 means the two files are the same, 0 with st_ino != 0 means
24992         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
24993         reported by Bruno Haible (Bug#25146).
24994         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
24995         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
24997 2016-12-04  Bruno Haible  <bruno@clisp.org>
24999         javacomp-script: Support Java 7 and 8.
25000         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
25001         target-version 1.7, 1.8.
25003 2016-12-02  Daiki Ueno  <ueno@gnu.org>
25005         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
25006         GPLv2" rewriting.
25008 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
25010         * gnulib-tool (func_import): Adhere to the license guideline when
25011         rewriting the license text to "LGPLv3+ or GPLv2":
25012         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
25014 2016-12-02  Bruno Haible  <bruno@clisp.org>
25016         localcharset: Avoid theoretical buffer overrun.
25017         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
25018         return value from setlocale if it would lead to a buffer overrun.
25020 2016-12-01  Bruno Haible  <bruno@clisp.org>
25022         Relicense some modules under LGPLv2+.
25023         Kevin Cernekee's approval is in
25024         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
25025         * modules/fseterr (License): Change to LGPLv2+.
25026         * modules/mbchar (License): Likewise.
25027         * modules/mbiter (License): Likewise.
25028         * modules/mbsnlen (License): Likewise.
25029         * modules/wcwidth (License): Likewise.
25031 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25033         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
25034         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
25035         OS/2 kLIBC.
25037 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25039         alphasort, scandir: Port to OS/2 kLIBC
25040         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
25041         declaration.
25042         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
25044 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25046         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
25047         * lib/relocatable.c (relocate): Do not touch pathname if it is started
25048         with '/@unixroot'.
25050 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25052         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
25053         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
25054         OS/2 kLIBC unless TCPV40HDRS is defined.
25056 2016-11-29  Jim Meyering  <meyering@fb.com>
25058         dfa: avoid new infinite loop
25059         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
25060         * lib/dfa.c (dfastate): When constructing a new state table, we could
25061         initially declare that we had found a match, and later find that
25062         constraints eliminate that possibility, yet continue to use the
25063         now stale "matched" indicator.  That would lead to an infinite loop.
25064         The solution is to update "matched" when necessary.
25065         Introduced by commit v0.1-983-g403adf1.
25067 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25069         dfa: avoid match middle in multibyte character
25070         * lib/dfa.c (transit_state): If fails in matching single byte characters
25071         on a state including period expression in non-UTF8 multibyte locales,
25072         skip trailing bytes.
25073         (dfa_supported): Revert previous change.
25075 2016-11-27  Jim Meyering  <meyering@fb.com>
25077         dfa: avoid false match in non-UTF8 multibyte locales
25078         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
25079         as "not supported" so that callers will resort to using regex-based
25080         matcher.  This will surely hurt performance, but correctness trumps
25081         performance here, and the affected locales are less and less relevant,
25082         these days.  See grep's bug report https://bugs.gnu.org/24975.
25084 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
25086         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
25087         * lib/ptsname_r.c: Include the appropriate headers.
25088         [__sun]: Delete sys/sysmacros.h include.
25089         [_AIX || __osf__]: Likewise.
25090         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
25092 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25094         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
25095         * lib/md4.c (md4_process_bytes): The existing define is made internal
25096         in recent versions of glibc, so also use this new public define.
25097         * lib/md5.c (md5_process_bytes): Likewise.
25098         * lib/sha1.c (sha1_process_bytes): Likewise.
25099         * lib/sha256.c (sha256_process_bytes): Likewise.
25100         * lib/sha512.c (sha512_process_bytes): Likewise.
25102 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25104         maint: use a more standard return from mbrtowc test
25105         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
25106         from the test program as this often indicates an
25107         unhandled case in the test program.
25108         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
25109         (gl_MBRTOWC_SANITYCHECK): Likewise.
25110         (gl_MBRTOWC_NULL_ARG2): Likewise.
25111         (gl_MBRTOWC_NUL_RETVAL): Likewise.
25113 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25115         freopen: work around glibc bug with closed fd
25116         Work around glibc bug#15589, where freopen mishandles the case
25117         where stdin etc. are already closed.
25118         * doc/posix-functions/freopen.texi (freopen): Document the bug.
25119         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
25120         instead of __need_FILE, as the latter does not work with glibc.
25121         Include <fcntl.h>, for open flags.
25122         (rpl_freopen): Work around glibc bug.
25123         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
25124         * modules/freopen (Depends-on): Add fcntl-h.
25125         * tests/test-freopen.c (main): Test for bug.
25127 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25129         fnmatch: fix typo introduced on 2016-08-17
25130         This fixes the port to non-GCC compilers that lack __builtin_expect.
25131         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
25133         dfa: simplify with new function fillset
25134         * lib/dfa.c (fillset): New function.
25135         Use it for clarity when applicable.
25137         dfa: fix glitches with on-demand states
25138         Also, adjust commentary to better match new code.
25139         Some of these glitches predate the recent change.
25140         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
25141         only non-initial states.
25142         (dfastate): Rename locals to better match new roles.
25143         Move them into nested scopes if this is easy.
25144         Omit unnecessary calls to zeroset.
25145         Simplify test for whether to throw in the positions of state 0.
25146         Omit C99-ism (decl after statement) since Gawk still wants C89.
25147         (build_state): Omit unnecessary test and assignment.
25148         Fix some confusion that counted transition tables inaccurately
25149         and could cause a memory leak.
25150         (dfaexec_main): Redo to make it clearer to the compiler that
25151         -1 and -2 are the only negative state numbers here.
25153 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25155         dfa: addition of new state on demand
25156         * src/dfa.c (dfastate): Add argument UC, the current input character.
25157         Fill only a group including the character in transition table.
25158         (realloc_trans_if_necessary): Add the dummy state which means that a
25159         transition table is assigned but the next state is not assigned.
25160         (build_state): Return the next state.  All callers updated.
25161         (transit_state_singlebyte): If we get the dummy state,
25162         fill the transition table.
25163         (dfaexec_main): Handle the dummy state.
25164         (free_mbdata, dfafree): Consider the dummy state.
25166 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25168         srclist: sync with released gettext
25169         * config/srclist.txt: Set "release" option to the files under
25170         $GETTEXT.
25172 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25174         srclist: add "release" option
25175         * config/srclist.txt: Change the format so that the first column
25176         of each line points to the top-level directory of the source
25177         archive.
25178         * config/srclist-update: Accept "release" option that checks files
25179         from the most recently tagged revision in the source archive.
25181 2016-11-21  Bruno Haible  <bruno@clisp.org>
25183         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
25184         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25185         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
25186         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
25187         Inline and remove member function 'rpl ()' of the wrapper struct.
25189 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25191         dfa: fix logic typo
25192         Problem reported by Stephane Chazelas (Bug#24973).
25193         * lib/dfa.c (using_simple_locale): Fix typo that caused some
25194         non-simple locales like fr_FR to be treated as simple.
25196 2016-11-20  Jim Meyering  <meyering@fb.com>
25198         fix test driver leaks: exclude, malloc, realloc
25199         * tests/test-exclude.c (main): Fix trivial leak.
25200         * tests/test-malloc-gnu.c (main): Likewise.
25201         * tests/test-realloc-gnu.c (main): Likewise.
25202         With these changes, grep's tests are now leak free.
25203         I.e., running them with ASAN elicits no failure:
25204           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
25205             AM_LDFLAGS='-fsanitize=address -static-libasan' check
25207 2016-11-11  Bruno Haible  <bruno@clisp.org>
25209         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
25210         * modules/libunistring: (License): Change from LGPL to
25211         "LGPLv3+ or GPLv2".
25212         * modules/libunistring-optional: Likewise.
25213         * modules/unicase/*: Likewise.
25214         * modules/uniconv/*: Likewise.
25215         * modules/unictype/*: Likewise.
25216         * modules/unigbrk/*: Likewise.
25217         * modules/unilbrk/*: Likewise.
25218         * modules/uniname/*: Likewise.
25219         * modules/uninorm/*: Likewise.
25220         * modules/unistdio/*: Likewise.
25221         * modules/unistr/*: Likewise.
25222         * modules/uniwbrk/*: Likewise.
25223         * modules/uniwidth/*: Likewise.
25225 2016-11-12  Bruno Haible  <bruno@clisp.org>
25227         Relicense some modules under LGPLv2+.
25228         Paul Eggert's approval is in
25229         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
25230         Eric Blake's approval is in
25231         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
25232         Ludovic Courtès's approval is in
25233         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
25234         * modules/isnand-nolibm (License): Change to LGPLv2+.
25235         * modules/isnanf-nolibm (License): Likewise.
25236         * modules/isnanl-nolibm (License): Likewise.
25238 2016-11-19  Bruno Haible  <bruno@clisp.org>
25240         Relicense some modules under LGPLv2+.
25241         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
25242         modules/vasnprintf.
25243         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
25244         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
25245         All other significant changes to the files in lib/ of these modules
25246         are from me.
25247         * modules/memcmp2 (License): Change to LGPLv2+.
25248         * modules/amemxfrm (License): Likewise.
25249         * modules/fpieee (License): Likewise.
25250         * modules/fpucw (License): Likewise.
25251         * modules/frexp-nolibm (License): Likewise.
25252         * modules/frexpl-nolibm (License): Likewise.
25253         * modules/printf-frexp (License): Likewise.
25254         * modules/printf-frexpl (License): Likewise.
25255         * modules/printf-safe (License): Likewise.
25256         * modules/signbit (License): Likewise.
25258 2016-11-17  Bruno Haible  <bruno@clisp.org>
25260         Enable Unicode decoder safety unconditionally.
25261         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
25262         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
25263         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25264         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25265         * lib/unistr/u8-prev.c (u8_prev): Likewise.
25266         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
25267         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
25268         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
25269         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
25270         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
25271         * lib/unistr/u16-prev.c (u16_prev): Likewise.
25272         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
25273         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
25274         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
25275         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
25276         * lib/unistr/u32-prev.c (u32_prev): Likewise.
25277         * lib/unistr/u32-next.c (u32_next): Likewise.
25278         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
25279         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
25280         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25281         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25282         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
25283         CONFIG_UNICODE_SAFETY tests unconditionally.
25284         * tests/unistr/test-u32-mblen.c (main): Likewise.
25285         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
25286         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
25287         * tests/unistr/test-u32-next.c (main): Likewise.
25288         * tests/unistr/test-u32-strmblen.c (main): Likewise.
25289         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
25290         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
25291         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
25292         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
25293         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25294         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
25295         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
25296         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
25297         * lib/unistr/u16-check.c (u16_check): Update comment.
25298         * NEWS: Mention the changes that callers should be aware of.
25300 2016-11-19  Bruno Haible  <bruno@clisp.org>
25302         relocatable-prog-wrapper: Fix breakage on Cygwin.
25303         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
25304         (Depends-on): Remove intprops.
25305         * lib/relocwrapper.c: Update dependency tree.
25306         (strerror): Undefine.
25307         * build-aux/install-reloc (func_create_wrapper): Do not compile
25308         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
25310 2016-11-19  Bruno Haible  <bruno@clisp.org>
25312         strerror: Make it compile in C++ mode.
25313         * lib/strerror.c (strerror): Ignore the return value of memcpy().
25315 2016-11-15  Pedro Alves  <palves@redhat.com>
25317         sys_time: add gnulib::timeval for C++
25318         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
25319         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
25320         timeval macro.
25322 2016-11-14  Pedro Alves  <palves@redhat.com>
25324         snippet/c++defs: fix real-floating arg functions in C++ mode
25325         Also, define isfinite, isinf, isnan, signbit in the gnulib
25326         namespace instead of in the global namespace.
25327         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
25328         (_GL_END_NAMESPACE): New.
25329         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
25330         (isfinite, isinf, isnan, signbit) [__cplusplus &&
25331         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
25332         instead of in the global namespace.
25333         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
25334         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
25335         of in the global namespace.
25337 2016-11-13  Jim Meyering  <meyering@fb.com>
25339         strftime: don't use __THROW
25340         Each use of __THROW would provoke this from gcc-7-to-be:
25342           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
25343             on unit local functions [-Wattributes]
25344           static int iso_week_days (int, int) __THROW;
25345           ^~~~~~
25346         * lib/strftime.c (__THROW): Don't define.
25347         Remove each use of __THROW.
25348         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
25349         (tm_diff, iso_week_days, __strftime_internal): Likewise.
25351 2016-11-14  Paul Eggert  <eggert@union>
25353         obstack: port to gcc -fcheck-pointer-bounds
25354         Problem found by 'make check' failure on bleeding-edge coreutils
25355         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
25356         6.2.0-5ubuntu12), configured via "./configure
25357         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
25358         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
25359         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
25360         New macro, copied from fts_.h.
25361         (struct _obstack_chunk.contents): Use it.
25363 2016-11-14  Eric Blake  <eblake@redhat.com>
25365         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
25366         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
25367         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
25369 2016-11-14  Pádraig Brady  <P@draigBrady.com>
25371         strptime: fix compile error in recent change
25372         * lib/strptime.c (__strptime_internal): Fix ported code.
25374 2016-11-11  Bruno Haible  <bruno@clisp.org>
25376         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
25377         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
25378         (func_import): Extend determination of license_incompatibilities.
25379         (func_create_testdir): Extend table of license compatibility. Handle
25380         also the licenses GPLv3+, GPL, LGPLv3+.
25382 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25384         strftime: tune %q
25385         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
25387         Merge strftime.c changes from glibc
25388         This incorporates:
25389         2007-10-16 [BZ #5184] Add tzset_called argument
25390         2008-06-13 [BZ #6612] pass reference to tzset_called around
25391         2009-10-30 Implement Burmese language locale for Myanmar
25392         2010-01-09 Add support for XPG7 testing
25393         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
25394         2015-10-20 Convert miscellaneous function definitions to prototype style
25395         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
25396         it anyway and this lessens the difference between gnulib and glibc.
25397         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
25398         (__THROW): Define if standard headers do not.
25399         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
25400         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
25401         Declare with __THROW.
25402         (__strftime_internal): Rename from strftime_case_. Add arg for
25403         whether tzset is called.  All uses changed.  Call tzset at most
25404         once.  Allow %OC, for Burmese.
25405         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
25406         Don't assume values are in range.
25408 2016-11-12  Eric Blake  <eblake@redhat.com>
25410         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
25411         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
25412         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
25413         different value.
25415 2006-11-12  Pedro Alves  <palves@redhat.com>
25417         Fix gnulib C++ namespace support and std::frexp
25418         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
25419         _GL_CXXALIASWARN.
25421 2006-11-12  Pedro Alves  <palves@redhat.com>
25423         GNULIB_NAMESPACE::func need not pull in rpl_func
25424         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25425         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
25426         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
25427         struct instead of a function pointer.
25429 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
25431         manywarnings: fix -Wno-missing-field-initializers detection
25432         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
25433         to be independent of -Wunused-variable.  I.E. ensure the latter
25434         warning doesn't occur so that detection of the former is accurate.
25436 2016-11-05  Pádraig Brady  <pbrady@fb.com>
25438         strftime,strptime: support %q to represent the quarter
25439         * lib/strftime.c (strftime_case_): Add %q case.
25440         * lib/strptime.c (__strptime_internal): Likewise.
25441         * tests/test-strftime.c (quarter_test): A new test case.
25443 2016-11-03  Eric Blake  <eblake@redhat.com>
25445         bootstrap: Fix get_version() for AIX 5.3
25446         * build-aux/bootstrap (get_version): Factor out sed script, since
25447         indented comments choke AIX 5.3 sed.
25448         Reported-by: Michael Felt <aixtools@gmail.com>
25450 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
25452         intprops: port to older XL C
25453         Problem reported by Alexander Samoilov in:
25454         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
25455         http://savannah.nongnu.org/bugs/?49448
25456         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
25457         Define to 1 only for XL C 12.1 or later, since this bug
25458         occurs in XL C for AIX 6.0 but not in 12.1.
25460 2016-11-02  Pádraig Brady  <P@draigBrady.com>
25462         backupfile: initialize default suffix within the implementation
25463         * lib/backupfile.c (find_backup_file_name): Initialize the
25464         global variable here, to simplify usage, and to only call
25465         getenv() when needed.
25467 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25469         futimens: remove FIXME for old Linux kernels
25470         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
25471         this in 2012" FIXME, like that for utimensat.
25473         utimensat: remove FIXME for old Linux kernels
25474         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
25475         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
25476         this in 2012" FIXME, by assuming the file system bug is absent
25477         unless demonstrated to be present.  We no longer need to worry
25478         about Linux kernel 2.6.32 when building with newer kernels.
25480 2016-10-16  Bruno Haible  <bruno@clisp.org>
25482         qsort_r: Fix macrology for platforms that lack the function.
25483         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
25484         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
25485         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
25486         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
25487         not exist.
25488         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
25489         the function exists.
25490         * modules/qsort_r: Add comments.
25492 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25494         sys_types: fix Texinfo typos
25495         * doc/glibc-functions/gnu_dev_major.texi:
25496         * doc/glibc-functions/gnu_dev_makedev.texi:
25497         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
25499 2016-10-26  John David Anglin  <dave.anglin@bell.net>
25501         getprogname: port to HP-UX
25502         See Bug#24805.
25503         * lib/getprogname.c (getprogname) [__hpux]: Port.
25504         * tests/test-getprogname.c (STREQ) [__hpux]:
25505         Special-case for HP-UX limitations on program name length.
25507 2016-10-20  Bruno Haible  <bruno@clisp.org>
25509         Update doc about target platforms.
25510         * doc/gnulib-intro.texi (Target Platforms): Update list.
25512 2016-10-15  Bruno Haible  <bruno@clisp.org>
25514         opendir, readdir, closedir: Relicense under LGPLv2+.
25515         * modules/opendir (License): Change to LGPLv2+.
25516         * modules/readdir (License): Likewise.
25517         * modules/closedir (License): Likewise.
25519 2016-10-16  Bruno Haible  <bruno@clisp.org>
25521         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
25522         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
25523         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
25524         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
25525         HAVE_DECL_STRERROR_R.
25527 2016-10-16  Bruno Haible  <bruno@clisp.org>
25529         Make the 'argp' module work without the 'error' module.
25530         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
25532 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25534         diffseq: restore TOO_EXPENSIVE heuristic
25535         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
25536         (Bug#24715).  The simplest solution is to restore the
25537         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
25538         using a higher threshold to avoid Bug#16848 on smaller files.
25539         * lib/diffseq.h (struct context): Restore member too_expensive.
25540         (struct partition): Restore members lo_minimal, hi_minimal.
25541         (diag, compareseq): Restore arg find_minimal.  All uses changed.
25542         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
25543         1993 to make 'diff' run faster (but not as well) on large inputs,
25544         but use a threshold of 4096 instead of the old 256.
25545         * lib/fstrcmp.c (strcmp_bounded):
25546         * lib/git-merge-changelog.c (compute_differences):
25547         Adjust to diffseq.h changes.
25549 2016-10-22  Bruno Haible  <bruno@clisp.org>
25551         iconv: Avoid compilation error when bootstrapping GNU libiconv.
25552         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
25553         declaration yet, define ICONV_CONST to empty.
25555 2016-10-15  Bruno Haible  <bruno@clisp.org>
25557         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
25558         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
25559         module.
25561 2016-10-16  Bruno Haible  <bruno@clisp.org>
25563         system-quote tests: Avoid compiler warning on AIX.
25564         * tests/test-system-quote-child.c (fopen): Redefine like the system's
25565         <stdio.h> does.
25567 2016-10-16  Bruno Haible  <bruno@clisp.org>
25569         Fix some "gcc -Wall" warnings.
25570         * tests/test-ffsl.c (main): Use variable x, not i.
25571         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
25572         freopen.
25573         * tests/test-sethostname1.c (main): Explicitly ignore the return value
25574         of sethostname.
25576 2016-10-16  Bruno Haible  <bruno@clisp.org>
25578         gnulib-tool: Make --create-testdir on all modules work again.
25579         * gnulib-tool (func_create_testdir): Don't include the
25580         non-recursive-gnulib-prefix-hack module.
25582 2016-10-21  Daiki Ueno  <ueno@gnu.org>
25584         libunistring: change the maintainer to 'all'
25585         * modules/gen-uni-tables, modules/libunistring:
25586         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
25587         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
25588         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
25589         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
25590         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
25591         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
25592         * modules/uniwidth/*: Change the maintainer to 'all'.
25594 2016-10-16  Bruno Haible  <bruno@clisp.org>
25596         Simplify "configure: checking ..." messages.
25597         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
25598         AC_MSG_NOTICE.
25599         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25601 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25603         quotearg-tests: pacify gcc -Wall
25604         Problem reported by Bruno Haible in:
25605         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
25606         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
25607         * tests/test-quotearg.h: ... from here.
25609 2016-10-20  Pádraig Brady  <P@draigBrady.com>
25611         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
25612         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
25613         Needed on Centos <= 4.
25615 2016-10-20  Jim Meyering  <meyering@fb.com>
25617         printf.m4: fix a bug in detecting printf %j support
25618         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
25619         uintmax_t is defined in neither stdint.h nor inttypes.h.
25620         Before, this macro might have mistakenly set
25621         gl_cv_func_printf_sizes_c99=yes on such a system.
25622         Spotted by Zev Weiss.
25624 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
25626         sched: substitute HAVE_SYS_CDEFS_H too
25627         Problem reported by Tom G. Christensen in:
25628         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
25629         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
25630         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
25632 2016-10-19  Pádraig Brady  <P@draigBrady.com>
25634         quotearg: never write beyond the returned length
25635         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
25636         scan of the string when we initially encounter a single quote when
25637         shell quoting, so that if we then switch to a more concise quoting method
25638         we will not have written beyond that returned length.
25639         This is significant for sh-quote, which has separate routines
25640         to determine the length and do the actual quoting.
25641         * tests/test-quotearg.h: Reinstate the buffer bounds checking
25642         now that we never write more than the returned length.
25644 2016-10-18  Bruno Haible  <bruno@clisp.org>
25646         getprogname tests: Avoid failure in packages that use libtool.
25647         * tests/test-getprogname.c (main): Strip "lt-" prefix.
25648         Based on a patch by Jim Meyering.
25650 2016-10-16  Bruno Haible  <bruno@clisp.org>
25652         getprogname: Fix test failure on Cygwin. Comments.
25653         * lib/getprogname.h: Add comments.
25654         * lib/getprogname.c: Add comments. Fix #elif indentation.
25655         * tests/test-getprogname.c (main): On Cygwin, expect a result without
25656         ".exe" suffix.
25658 2016-10-16  Bruno Haible  <bruno@clisp.org>
25660         Make sure the libunistring detection rejects older versions with a
25661         known bug.
25662         * modules/unistr/u8-strtok (configure.ac): Bump required version.
25663         * modules/unistr/u16-strtok (configure.ac): Likewise.
25664         * modules/unistr/u32-strtok (configure.ac): Likewise.
25666 2016-10-18  Bruno Haible  <bruno@clisp.org>
25668         sh-quote, system-quote: revert regression of unit test.
25669         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
25670         * tests/test-system-quote-main.c (check_one): Likewise.
25672 2016-10-16  Pádraig Brady  <P@draigBrady.com>
25674         quotearg: fix stale tests
25675         * tests/test-quotearg.c [locale_results]: Add the missing str7
25676         entries to the expected results.
25677         * tests/test-system-quote-main.c (check_one): Don't enforce that we
25678         don't write beyond the returned length, since that's no longer the
25679         case if we switch to a more concise quoting style.
25680         * tests/test-sh-quote.c (check_one): Likewise.
25681         (main): Adjust for the new more concise quoting style.
25682         Reported by Bruno Haible.
25684 2016-10-16  Jim Meyering  <meyering@fb.com>
25686         non-recursive-gnulib-prefix-hack: fix inconsequential typo
25687         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
25688         to "$1".  This macro is always invoked with $1 == lib.
25689         Spotted by Bruno Haible
25691 2016-10-16  Bruno Haible  <bruno@clisp.org>
25693         Fix a test crash.
25694         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
25695         fails.
25697 2016-10-16  Pádraig Brady  <P@draigBrady.com>
25699         test-limits-h: suppress -Woverlength-strings
25700         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
25702 2016-10-15  Bruno Haible  <bruno@clisp.org>
25704         gettime, timespec, utimens: Relicense under LGPL.
25705         * modules/gettime (License): Change to LGPL.
25706         * modules/timespec (License): Likewise.
25707         * modules/utimens (License): Likewise.
25709 2016-10-14  Bruno Haible  <bruno@clisp.org>
25710             Pádraig Brady  <P@draigBrady.com>
25712         canonicalize-lgpl: Support the case path_max > INT_MAX.
25713         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
25714         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
25716 2016-10-13  Jim Meyering  <meyering@fb.com>
25718         getprogname: IBM z/OS: avoid NULL-dereference
25719         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
25720         upon strdup failure.
25722 2016-10-12  Jim Meyering  <meyering@fb.com>
25724         test-stdint: use _GL_VERIFY rather than "verify" for some tests
25725         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
25726         and an abbreviated diagnostic rather than verify with the full one,
25727         because the full-length strings would evoke warnings from gcc with
25728         -Woverlength-strings.
25730 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25732         stdint: port SIZE_MAX to glibc s390
25733         Problem reported by Eric Blake in:
25734         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
25735         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
25736         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
25737         correct type, if possible.
25739 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
25741         getprogname: port to IBM z/OS
25742         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
25744 2016-10-11  Jim Meyering  <meyering@fb.com>
25746         maint: remove stray space after "." in AC_DEFINE comment.
25747         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
25748         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25750 2016-10-05  Jim Meyering  <meyering@fb.com>
25752         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
25753         * lib/long-options.c (parse_long_options): Add a break statement
25754         to avoid this new warning/failure:
25755         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
25756           --create-testdir --dir=/t/x --with-tests --test long-options
25757         ../../gllib/long-options.c: In function 'parse_long_options':
25758         ../../gllib/long-options.c:66:12: error: this statement may \
25759           fall through [-Werror=implicit-fallthrough]
25760                    (*usage_func) (EXIT_SUCCESS);
25761                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
25763 2016-10-05  Jim Meyering  <meyering@fb.com>
25765         utimecmp: avoid new GCC 7 warning from -Wbool-operation
25766         Testing this module would fail when using GCC 7 like this:
25767         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
25768           --dir=/tmp/x --with-tests --test utimecmp
25769         ../../gllib/utimecmp.c: In function ‘utimecmp’:
25770         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
25771           [-Werror=bool-operation]
25772                          time_t s = src_s & ~ (res == 2 * BILLION);
25773                                             ^
25774         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
25775           [-Werror=bool-operation]
25776                src_s &= ~ (res == 2 * BILLION);
25777                         ^
25778         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
25779         Instead, make it explicit that we intend to apply it to 0 or 1.
25781 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25783         dfa: save memory for states
25784         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
25785         states if dfa has a lot of caches.
25787 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
25789         wchar, wctype-h: fix for MinGW 3.22.2
25790         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
25791         special invocation, to fix issues with MinGW 3.22.2 wchar.h
25792         when included from <string.h>.
25793         * lib/wctype.in.h [__MINGW32__]: Add special invocation
25794         convention for MinGW 3.22.2, to solve issues with their
25795         wctype.h when included from <ctype.h>.
25797 2016-10-05  Jim Meyering  <meyering@fb.com>
25799         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
25800         * lib/long-options.c (parse_long_options): Add a break statement
25801         to avoid this new warning/failure:
25802         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
25803           --create-testdir --dir=/t/x --with-tests --test long-options
25804         ../../gllib/long-options.c: In function ‘parse_long_options’:
25805         ../../gllib/long-options.c:66:12: error: this statement may \
25806           fall through [-Werror=implicit-fallthrough]
25807                    (*usage_func) (EXIT_SUCCESS);
25808                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
25810         utimecmp: avoid new GCC 7 warning from -Wbool-operation
25811         Testing this module would fail when using GCC 7 like this:
25812         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
25813           --dir=/tmp/x --with-tests --test utimecmp
25814         ../../gllib/utimecmp.c: In function ‘utimecmp’:
25815         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
25816           [-Werror=bool-operation]
25817                          time_t s = src_s & ~ (res == 2 * BILLION);
25818                                             ^
25819         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
25820           [-Werror=bool-operation]
25821                src_s &= ~ (res == 2 * BILLION);
25822                         ^
25823         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
25824         Instead, make it explicit that we intend to apply it to 0 or 1.
25826 2016-10-03  Pádraig Brady  <P@draigBrady.com>
25828         quotearg: minimize shell quoting using double quotes
25829         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
25830         quote in encountered then use double quotes (c style quoting)
25831         when possible, as it simplifies the quoting.
25832         * tests/test-quotearg-simple.c: Add test cases.
25833         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
25834         for the fact we now may write beyond the returned length.
25836 2016-10-02  Jim Meyering  <meyering@fb.com>
25838         vasnprintf.c: avoid spurious warning from GCC 7
25839         The presence of cpp directives renders this "FALLTHROUGH" comment
25840         ineffective, so does not suppress the -Wimplicit-fallthrough warning
25841         from GCC 7 built from git on 2016-10-02.
25842         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
25843         directives, so that it takes effect once again.  This is clearly
25844         not a proper change, and I will revert it once this bug is fixed:
25845         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
25847 2016-10-01  Jim Meyering  <meyering@fb.com>
25849         getprogname: correct the test for a __progname variable
25850         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
25851         and AC_LINK_IFELSE to check for a global __progname.  If found,
25852         define HAVE_VAR___PROGNAME.
25853         * lib/getprogname.c (getprogname): Reflect the new name of the
25854         feature- checked preprocessor symbol:
25855         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
25857 2016-09-28  Jim Meyering  <meyering@fb.com>
25859         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
25860         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
25861         fall-through case with a /* fallthrough */ comment.
25863         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
25864         * lib/dfa.c (dfassbuild): Mark the end of this case with a
25865         /* fallthrough */ comment.
25867         getprogname: avoid __progname vs program_invocation_short_name pitfall
25868         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
25869         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
25870         not with Fedora 24's glibc-2.23.1-10.
25871         * lib/getprogname.c (__progname): Move this declaration down...
25872         (getprogname): ... into the #elif block where used, and make it
25873         explicitly "extern".
25875         getprogname: port to OpenBSD 5.1
25876         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
25877         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
25878         * modules/getprogname (configure.ac): Move most of this code...
25879         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
25880         increment serial number, and add a test for __progname.
25881         https://bugs.gnu.org/24562
25882         Reported by Nelson H. F. Beebe.
25884 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25886         sched: port to GCC 6.2.1 on macOS Sierra
25887         Problem reported by Denis Davydov in:
25888         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
25889         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
25890         Include <sys/cdefs.h> before <sched.h>.
25891         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
25892         so that we needn’t worry about the sched.h include bug here.
25893         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
25894         and include it before <sched.h> if it exists, when
25895         checking for <sched.h>.
25897         tests/init.sh: port Alpine fix to AIX 7.1
25898         * tests/init.sh (compare_): When attempting to use diff -U3,
25899         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
25900         diff -u not outputting a space after leading '+', as the users
25901         of 'compare' should not be that picky about its output format.
25902         In the AIX 7.1 case, return with diff exit status (or with 2 if
25903         trouble), instead of some random nonzero exit status.
25904         * tests/test-init.sh (test_compare): Remove space after leading
25905         '+', so that AIX 7.1 'diff' passes the test.
25907 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25909         nl_langinfo: pacify GCC
25910         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
25911         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
25913         stdint: also set GL_GENERATE_LIMITS_H
25914         Problem reported by Jim Meyering in:
25915         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
25916         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
25918         limits-h, stdint: Don't assume extensions, fix typo
25919         * m4/limits-h.m4 (gl_LIMITS_H):
25920         * m4/stdint.m4 (gl_STDINT_H):
25921         Don't assume AC_USE_SYSTEM_EXTENSIONS.
25922         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
25923         reported by Jim Meyering in:
25924         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
25926 2016-09-21  Jim Meyering  <meyering@fb.com>
25928         getprogname: port to AIX
25929         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
25930         and strdup to obtain a short program name string.  Using code from
25931         Bruno Haible and an idea from Bastien ROUCARIÈS, in
25932         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
25933         Assaf Gordon reported that this new file would fail to compile on
25934         AIX-7.1 32bit.
25936 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25938         extensions: fix typo in comment
25939         * m4/extensions.m4: Sync from Autoconf master.
25941         stdint: support new _WIDTH macros
25942         * doc/posix-headers/stdint.texi: Document this.
25943         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
25944         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
25945         support for INTMAX_WIDTH, etc. as well as for support for just C99.
25946         * modules/stdint (Depends-on): Add limits-h.
25947         (Makefile.am): Substitute HAVE_C99_STDINT_H.
25948         * modules/stdint-tests (Depends-on): Add extensions, so that
25949         INTMAX_MAX etc. are defined.
25950         * tests/test-stdint.c: Verify the new macros.
25952         limits-h: new module
25953         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
25954         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
25955         * doc/posix-headers/limits.texi: Document new module.
25956         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
25957         * modules/limit-h-tests, tests/test-limits-h.c: New files.
25959         stdio: don't redefine __USE_MINGW_ANSI_STDIO
25960         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
25961         if it is already defined.  Apparently GNU Emacs relies on this.  See:
25962         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
25964 2016-09-15  Eric Blake  <eblake@redhat.com>
25966         sys_types: avoid glibc 2.25 warnings about major()
25967         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
25968         older autoconf.
25969         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
25970         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
25971         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
25972         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
25974         mountlist: include sysmacros.h for glibc
25975         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
25976         AC_HEADER_MAJOR.
25977         * lib/mountlist.c (includes): Use correct headers.
25979 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
25981         extensions: port to more ISO C TSes
25982         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
25983         master, to add support for more recent ISO C TRs and TSes.
25985 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25987         intprops: new macro TYPE_WIDTH
25988         * lib/intprops.h (TYPE_WIDTH): New macro.
25989         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
25990         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
25991         * lib/parse-datetime.y (parse_datetime2):
25992         Use it.
25994         extensions: port to recent ISO C TRs
25995         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25996         Sync from Autoconf master, to add support for recent ISO C TRs.
25997         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
25998         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
25999         the MinGW option is not an extension.
26001 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26003         dfa: port to Solaris 9
26004         Problems reported by Tom G. Christensen in:
26005         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
26006         * modules/dfa (Depends-on): Add isblank.
26007         * modules/dfa-tests (dfa_match_aux_LDADD):
26008         Rename from test_stat_LDADD, to fix typo.
26009         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
26011 2016-09-10  Jim Meyering  <meyering@fb.com>
26013         strverscmp: avoid link failure on OS X
26014         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
26015         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
26017 2016-08-16  Jim Meyering  <meyering@fb.com>
26019         dfa: new module, importing grep's DFA matcher
26020         Since grep's DFA matcher is now being used by two gnulib-enabled
26021         projects, grep and sed, it makes sense to version-control its
26022         sources and unit tests in one place: here.
26023         * modules/dfa: New module.
26024         * modules/dfa-tests: New file.
26025         * lib/dfa.c: New file, from grep.
26026         * lib/dfa.h: Likewise.
26027         * lib/localeinfo.c: Likewise.
26028         * lib/localeinfo.h: Likewise.
26029         * tests/dfa-match-aux.c: Likewise.
26030         * tests/dfa-invalid-char-class.sh: Likewise.
26031         * tests/dfa-match.sh: Likewise, with minor changes.
26032         * MODULES.html.sh (Misc): Add "dfa" to this list.
26034 2016-09-09  Jim Meyering  <meyering@fb.com>
26036         getprogname-tests: don't depend on assert-h
26037         * modules/getprogname-tests (Depends-on): Remove assert-h.
26038         It was not needed, and in fact would cause build failure for
26039         coreutils on some systems.  Reported by Assaf Gordon in https:
26040         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
26042 2016-09-07  Jim Meyering  <meyering@fb.com>
26044         getprogname-tests: work also when EXEEXT is nonempty
26045         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
26046         * tests/test-getprogname.c (main): Use it.
26047         Suggested by Gisle Vanem.
26049 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
26051         getprogname: fix errors in previous change
26052         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
26053         s/program_invocation_name/base/
26054         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
26056 2016-09-08  Pádraig Brady  <P@draigBrady.com>
26058         parse-datetime: restrict debug output to input string
26059         * lib/parse-datetime.y (parse_datetime2): If we parse
26060         all of the input but determine it's invalid, ensure
26061         we don't output the now invalid input pointer.
26062         This issue was seen with `date -d 'now +1'`.
26064 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26066         flexmember: new macro FLEXALIGNOF
26067         * lib/flexmember.h: Include <stddef.h>, for offsetof.
26068         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
26069         this macro.  Update comments.
26071 2016-09-07  Jim Meyering  <meyering@fb.com>
26073         getprogname: port to systems with __argv (mingw, msvc)
26074         * lib/getprogname.c (getprogname): Include "dirname.h" and use
26075         last_component: more general than open coding it with hard-coded "/".
26076         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
26077         * modules/getprogname (Depends-on): Add dirname-lgpl.
26078         (configure.ac): Check for __argv in <stdlib.h>.
26079         * modules/getprogname-tests: New file.
26080         * tests/test-getprogname.c: New file.
26081         Suggested by Gisle Vanem in
26082         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
26084 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26086         flexmember: port better to GCC + valgrind
26087         With a char[] flexible array member in a struct with nontrivial
26088         alignment, GCC-generated code can access past the end of the
26089         array, because GCC assumes there are padding bytes to get the
26090         struct aligned.  So the common idiom of malloc (offsetof (struct
26091         s, m), n) does not properly allocate an n-byte trailing member, as
26092         malloc’s argument should be the next multiple of alignof (struct s).
26093         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26094         Although C11 apparently permits this GCC optimization (i.e., there
26095         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
26096         See the thread containing:
26097         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
26098         * lib/flexmember.h: New file.
26099         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
26100         * lib/localename.c, lib/time_rz.c:
26101         Include flexmember.h.
26102         * lib/fnmatch_loop.c (struct patternlist):
26103         * lib/localename.c (struct hash_node):
26104         Use FLEXIBLE_ARRAY_MEMBER.
26105         * lib/fnmatch_loop.c (EXT):
26106         * lib/fts.c (fts_alloc):
26107         * lib/glob.c (glob_in_dir):
26108         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26109         * lib/localename.c (gl_lock_define_initialized):
26110         * lib/time_rz.c (tzalloc):
26111         Use FLEXSIZEOF instead of offsetof.
26112         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26113         Check that the size of the struct can be taken.
26114         * modules/flexmember (Files): Add lib/flexmember.h.
26115         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
26116         Add flexmember.
26118 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26120         getprogname: port to Solaris 10
26121         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
26122         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
26123         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
26125         stdalign: correct mistake in alignof doc
26126         Problem reported by Joseph Myers in:
26127         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
26128         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
26129         alignof(S) where S is a structure containing a flexible array
26130         member.  The Gnulib substitute does not support this, but C11 does.
26132 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26134         main.mk: remove sc_program_name, since there is no more need to
26135         use set_program_name in tools (getprogname is enough for most
26136         of the cases).
26137         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
26138         * top/maint.mk (sc_program_name): Remove.
26140 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26142         Port tests away from progname, since modules that need the
26143         program name already depend on getprogname.
26144         * modules/acl-tests (Depends-on): Remove progname.
26145         * modules/argmatch (Depends-on): Likewise.
26146         * modules/argmatch-tests (Depends-on): Likewise.
26147         * modules/argp-tests (Depends-on): Likewise.
26148         * modules/argp-version-etc-tests (Depends-on): Likewise.
26149         * modules/array-list-tests (Depends-on): Likewise.
26150         * modules/array-oset-tests (Depends-on): Likewise.
26151         * modules/avltree-list-tests (Depends-on): Likewise.
26152         * modules/avltree-oset-tests (Depends-on): Likewise.
26153         * modules/avltreehash-list-tests (Depends-on): Likewise.
26154         * modules/carray-list-tests (Depends-on): Likewise.
26155         * modules/copy-file-tests (Depends-on): Likewise.
26156         * modules/exclude-tests (Depends-on): Likewise.
26157         * modules/fchownat-tests (Depends-on): Likewise.
26158         * modules/fdopendir-tests (Depends-on): Likewise.
26159         * modules/filenamecat-tests (Depends-on): Likewise.
26160         * modules/fstatat-tests (Depends-on): Likewise.
26161         * modules/fstrcmp-tests (Depends-on): Likewise.
26162         * modules/linked-list-tests (Depends-on): Likewise.
26163         * modules/linkedhash-list-tests (Depends-on): Likewise.
26164         * modules/mkdirat-tests (Depends-on): Likewise.
26165         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
26166         * modules/nonblocking-socket-tests (Depends-on): Likewise.
26167         * modules/obstack-printf-tests (Depends-on): Likewise.
26168         * modules/openat-tests (Depends-on): Likewise.
26169         * modules/parse-datetime-tests (Depends-on): Likewise.
26170         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
26171         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
26172         * modules/quotearg-simple-tests (Depends-on): Likewise.
26173         * modules/quotearg-tests (Depends-on): Likewise.
26174         * modules/rbtree-list-tests (Depends-on): Likewise.
26175         * modules/rbtree-oset-tests (Depends-on): Likewise.
26176         * modules/rbtreehash-list-tests (Depends-on): Likewise.
26177         * modules/spawn-pipe-tests (Depends-on): Likewise.
26178         * modules/system-quote-tests (Depends-on): Likewise.
26179         * modules/uniname/uniname-tests (Depends-on): Likewise.
26180         * modules/uninorm/nfc-tests (Depends-on): Likewise.
26181         * modules/uninorm/nfd-tests (Depends-on): Likewise.
26182         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
26183         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
26184         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
26185         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
26186         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
26187         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
26188         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
26189         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
26190         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
26191         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
26192         * modules/unlinkat-tests (Depends-on): Likewise.
26193         * modules/version-etc-tests (Depends-on): Likewise.
26194         * modules/xalloc-die-tests (Depends-on): Likewise.
26195         * modules/xmemdup0-tests (Depends-on): Likewise.
26196         * modules/xprintf-posix-tests (Depends-on): Likewise.
26197         * modules/xvasprintf-tests (Depends-on): Likewise.
26198         * tests/test-argmatch.c: Do not include progname.h.
26199         (main) Stop calling set_program_name.
26200         * tests/test-argp-version-etc.c: Likewise.
26201         * tests/test-argp.c: Likewise.
26202         * tests/test-argv-iter.c: Likewise.
26203         * tests/test-array_list.c: Likewise.
26204         * tests/test-array_oset.c: Likewise.
26205         * tests/test-avltree_list.c: Likewise.
26206         * tests/test-avltree_oset.c: Likewise.
26207         * tests/test-avltreehash_list.c: Likewise.
26208         * tests/test-carray_list.c: Likewise.
26209         * tests/test-copy-acl.c: Likewise.
26210         * tests/test-copy-file.c: Likewise.
26211         * tests/test-exclude.c: Likewise.
26212         * tests/test-fchownat.c: Likewise.
26213         * tests/test-fdopendir.c: Likewise.
26214         * tests/test-filenamecat.c: Likewise.
26215         * tests/test-fstatat.c: Likewise.
26216         * tests/test-fstrcmp.c: Likewise.
26217         * tests/test-linked_list.c: Likewise.
26218         * tests/test-linkedhash_list.c: Likewise.
26219         * tests/test-mkdirat.c: Likewise.
26220         * tests/test-nonblocking-pipe-main.c: Likewise.
26221         * tests/test-nonblocking-socket-main.c: Likewise.
26222         * tests/test-obstack-printf.c: Likewise.
26223         * tests/test-openat.c: Likewise.
26224         * tests/test-parse-datetime.c: Likewise.
26225         * tests/test-pipe-filter-gi1.c: Likewise.
26226         * tests/test-pipe-filter-gi2-main.c: Likewise.
26227         * tests/test-pipe-filter-ii1.c: Likewise.
26228         * tests/test-pipe-filter-ii2-main.c: Likewise.
26229         * tests/test-quotearg-simple.c: Likewise.
26230         * tests/test-quotearg.c: Likewise.
26231         * tests/test-rbtree_list.c: Likewise.
26232         * tests/test-rbtree_oset.c: Likewise.
26233         * tests/test-rbtreehash_list.c: Likewise.
26234         * tests/test-sameacls.c: Likewise.
26235         * tests/test-set-mode-acl.c: Likewise.
26236         * tests/test-spawn-pipe-main.c: Likewise.
26237         * tests/test-system-quote-main.c: Likewise.
26238         * tests/test-unlinkat.c: Likewise.
26239         * tests/test-version-etc.c: Likewise.
26240         * tests/test-xalloc-die.c: Likewise.
26241         * tests/test-xfprintf-posix.c: Likewise.
26242         * tests/test-xmemdup0.c: Likewise.
26243         * tests/test-xprintf-posix.c: Likewise.
26244         * tests/test-xvasprintf.c: Likewise.
26245         * tests/uniname/test-uninames.c: Likewise.
26246         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26247         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26248         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26249         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26250         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26251         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26252         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26253         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26254         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26255         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26256         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26257         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26258         * tests/test-c-stack.c: (program_name): Do not define.
26259         (main): Do not set program_name.
26260         * tests/test-closein.c: Likewise.
26261         * tests/test-xstrtol.c: Likewise.
26262         * tests/test-yesno.c: Likewise.
26264 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26266         Port modules to use getprogname explicitly, instead of requiring
26267         progname to be used (or program_name to be provided).
26268         * lib/argmatch.c: Do not include progname.h.
26269         [TEST] (program_name): Do not define.
26270         [TEST] (main): Call getprogname instead of using program_name.
26271         * lib/c-stack.c: Do not include progname.h.
26272         (program_name): Do not define.
26273         (die): Call getprogname instead of using program_name.
26274         * lib/chdir-long.c: Do not include progname.h.
26275         [TEST_CHDIR] (main): Do not set program_name.
26276         * lib/error.c [!_LIBC]: Include progname.h.
26277         [!_LIBC] (program_name): Define using getprogname.
26278         * lib/euidaccess.c: Do not include progname.h.
26279         [TEST] (main): Do not set program_name.
26280         * lib/git-merge-changelog.c: Include getprogname.h instead of
26281         progname.h.
26282         (usage): Call getprogname instead of using program_name.
26283         (main): Likewise.  Stop calling set_program_name.
26284         * lib/group-member.c: Do not include progname.h.
26285         [TEST] (main): Do not set program_name.
26286         * modules/argmatch (Depends-on): Add getprogname.
26287         * modules/c-stack (Depends-on): Likewise.
26288         * modules/error (Depends-on): Likewise.
26289         * modules/git-merge-changelog (Depends-on): Likewise.
26290         Also remove progname.
26292 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
26294         * NEWS: Document the deprecation of the 'progname' module.
26296 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26298         getprogname: new module
26299         This provides a LGPL module for getting the name of the current
26300         program, using the same API found on *BSD systems.
26301         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
26302         * modules/getprogname: New files.
26303         * MODULES.html.sh (Misc): Add getprogname.
26305 2016-09-02  Jim Meyering  <meyering@fb.com>
26307         manywarnings: add -fno-common
26308         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
26309         to the list.  Quoting the manual, "Compiling with -fno-common is
26310         useful on targets for which it provides better performance, or if
26311         you wish to verify that the program will work on other systems that
26312         always treat uninitialized variable declarations this way [putting
26313         it in the data section]."  If diffutils had been using this sooner,
26314         it would have prevented this duplicate declaration issue:
26315         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
26317 2016-08-31  Simon Josefsson  <simon@josefsson.org>
26319         parse-datetime: Fix typo.
26320         * lib/parse-datetime.y (parse_datetime2): Fix typo.
26322 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26324         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
26325         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
26326         GCC 5 and 6 that have __builtin_sub_overflow but not
26327         __builtin_sub_overflow_p.  With the recent changes, these
26328         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
26329         implementation than with INT_SUBTRACT_OVERFLOW implementation,
26330         since the former needs just one runtime comparison whereas the
26331         latter needs two.
26333         strverscmp: sync with glibc
26334         Although this doesn't exactly synchronize with glibc
26335         byte-for-byte, it makes the code behave the same as glibc.
26336         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
26337         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
26338         difference shouldn't matter in practical use.  All uses changed
26339         back to isdigit.
26340         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
26341         (next_state): Now unsigned char array; redo elements.
26342         (result_type): Now signed char array; redo elements.
26343         (__strverscmp): Fix glibc bug 9913 by using new states.
26344         * tests/test-strverscmp.c (main): Test glibc bug 9913.
26346 2016-08-29  Jim Meyering  <meyering@fb.com>
26348         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
26349         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
26350         similarly to how it was done to intprops.h.
26352 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26354         intprops.h: port recent changes to GCC 6.2.0
26355         * lib/intprops.h (__has_builtin): Move earlier.
26356         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
26357         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
26358         the last argument can be null.  All uses changed.
26359         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
26360         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26361         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
26362         and it's not clear which GCC versions it works for.
26363         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
26364         its definiens.
26366         intprops.h: use __typeof__ with GCC 7
26367         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
26368         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
26369         This avoids computing the expression's value (which might overflow!).
26371 2016-08-29  Jim Meyering  <meyering@fb.com>
26373         intprops.h, xalloc-oversized.h: work with gcc 7
26374         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
26375         __builtin_mul_overflow each accept a NULL pointer as the third
26376         argument.  However in gcc 7, that is no longer accepted.
26377         Instead, one must use the "_p"-suffixed names, with which, the
26378         third parameter is no longer a pointer.
26379         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
26380         the definition: not true for gcc 7 and subsequent.
26381         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
26382         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26383         Provide new definitions for gcc 7 and subsequent.
26384         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
26385         that works with gcc-7.
26387         intprops.h: fix missing-backslash problems
26388         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
26389         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
26391 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26393         intprops: fix paren typo on old platforms
26394         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
26395         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
26396         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
26397         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
26398         && !defined LLONG_MAX]:
26399         Remove stray paren.
26401         intprops: port to OpenVMS
26402         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
26403         * doc/posix-headers/limits.texi: Document the problem.
26404         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
26405         Define if not already defined.
26407 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
26409         parse-datetime: improve debug implementation
26410         Follow-up to commit 12ad79069 ("add optional debug printing").
26411         Improve parse-datetime's debug implementation: remove macros,
26412         replace global debug flag variable with a function parameter,
26413         use nstrftime for formatting.
26414         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
26415         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
26416         (parse_datetime2): New function, accepts 'flags' parameter, supporting
26417         debug flag. Existing interface 'parse_datetime' left unmodified.
26418         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
26419         (struct parser_control): add 'parse_datetime_debug' member variable.
26420         (parse_datetime): Call new function 'parse_datetime2' without debug.
26421         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
26422         pc.parse_datetime_debug variable as needed.
26423         (to_year): Accept new flags parameter, instead of using global variable.
26424         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
26425         use struct 'debug' variable instead of global variable.
26426         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
26427         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
26428         correspnding functions directly instead of using macros.
26429         * modules/parse-datetime: Add gnulib's strftime module.
26431 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
26433         c-strcase-tests: port to EBCDIC
26434         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
26435         which assume ASCII encoding semantics to run only in ASCII
26436         mode, as they fail in EBCDIC.
26438         sigpipe-tests: fix typo
26439         * tests/test-sigpipe.sh: C, not B.
26441 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
26443         canonicalize-lgpl: fix errno after malloca fails
26444         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
26445         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
26446         * lib/canonicalize-lgpl.c (__realpath):
26447         Don't assume malloca sets errno on failure.
26449 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26451         strtod: port errno handling to z/OS
26452         * lib/strtod.c (strtod): Save and restore errno more reliably.
26454 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26456         strtod: port to z/OS
26457         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26458         implementation.
26460 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26462         strtod: port to z/OS
26463         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26464         implementation.
26466         regex, string: rename to avoid '__string'
26467         * lib/regex.h, lib/string.in.h: Do not use the identifier
26468         '__string', as it is effectively reserved by string.h on z/OS.
26470         c-strcase-tests, wcwidth-tests: depend on c-ctype
26471         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
26472         Add c-ctype.
26474 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26476         thread: port to z/OS
26477         * lib/glthread/thread.c, lib/glthread/thread.h:
26478         Rudimentary gl_thread support for z/OS.
26480         maint: port tests to z/OS errno behavior
26481         * tests/test-nonblocking-reader.h:
26482         * tests/test-nonblocking-writer.h:
26483         Accommodate z/OS errno code preferences. (I believe this should
26484         still be within spec; IBM is good at following the letter if not
26485         the spirit of such things.)
26487         maint: preprocessor changes to support z/OS
26488         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
26489         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
26490         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
26491         * tests/test-nonblocking-pipe.h:
26493         fclose, strstr-simple, wchar: port to z/OS
26494         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
26495         Changes to the Autoconf M4 code to support z/OS.  Note that
26496         fclose() is broken in a different way on z/OS than it is on other
26497         systems, thus the special-case in fclose.m4.
26499         iconv_open-utf-tests, iconv-tests: port to EBCDIC
26500         * tests/test-iconv-utf.c, tests/test-iconv.c:
26501         Added appropriately conditional #pragmas so that the test strings
26502         in test-iconv-utf.c are correctly interpreted in ASCII instead of
26503         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
26504         addressed in a more portable way by simply rewriting all the ASCII
26505         literal characters as octal escapes, but then you would lose the
26506         partial readability that the strings have now. Also, iconv_open()
26507         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
26509         c-strcase-tests, wcwidth-tests: port to EBCDIC
26510         * tests/test-c-strcasecmp.c: Include c-ctype.h.
26511         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
26512         * tests/test-wcwidth.c: Likewise.
26514 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26516         stdbool: don't require _Bool for C++
26517         Problem reported by David Seifert in:
26518         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
26519         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
26520         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
26521         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
26522         stricter about checking that bool and _Bool are compatible in C.
26524 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
26526         getdelim: remove dependency on realloc-posix
26527         * lib/canonicalize-lgpl.c (alloc_failed)
26528         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
26529         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
26530         Use __set_errno where needed, for consistency.
26531         * lib/getdelim.c (alloc_failed): New function.
26532         (getdelim): Use it.
26534 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
26536         parse-datetime: add optional debug printing
26537         Print parsing information, warnings, and errors to stderr.
26538         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
26539         * lib/parse-datetime.y:
26540         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
26541         (PROGRESS*): Same as DEBUG, for progress reporting.
26542         (dbg_printf): Print message to stderr, with 'date' prefix.
26543         (struct parser_control): Add 'debug_*_seen' variables.
26544         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
26545         (debug_print_current_time, debug_print_relateive_time): Prints the
26546         current/relative date/time value of parser_control.
26547         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
26548         (to_year): Warn about 2-digit year parsing.
26549         (yylex):   Warn about unrecognized words.
26550         (get_effective_timezone): Returns current timezone in minutes.
26551         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
26552         clearly and unambigiously as possible.
26553         (debug_mktime_not_ok): Print detailed information about failed
26554         date/time values.
26555         (parse_datetime): Add DEBUG messages for failures, warnings. Add
26556         PROGRESS messages for status messages.
26557         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
26559 2016-08-06  Jim Meyering  <meyering@fb.com>
26561         tests/init.sh: exclude dash with bad "local" semantics
26562         * tests/init.sh (gl_shell_test_script_): Add a function to
26563         eliminate a shell like "dash" (unlike bash, zsh) that has
26564         surprising/risky "local var='...'" semantics.  Inspired by
26565         the problem and discussion in https://bugs.gnu.org/24116#11.
26567 2016-08-02  Ján Tomko  <jtomko@redhat.com>
26569         maint.mk: expand the prohibit_doubled_word regex
26570         This check has a static list of words that are checked for
26571         repetitions.  Expand it before running the perl script to
26572         avoid using expensive captures.  This decreases the cost
26573         for libvirt from 1.66s to 0.66s.
26574         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
26575         (sc_prohibit_doubled_word): Use it.
26577 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26579         useless-if-before-free: skip non-matching lines early
26580         * build-aux/useless-if-before-free: First match each line with the
26581         simple/quick /\bif\b/ and reject if there is no match. This often
26582         saves the cost of the much more involved regular expression.
26583         For libvirt, this decreases the cost from 1.44s to 1.02s.
26585 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26587         maint.mk: speed up sc_po_check
26588         sc_po_check would skip files based on their names, or on the
26589         existence of files with derived names. Rewrite it to use perl
26590         instead of shell to make the check faster.
26591         * top/maint.mk (perl_translatable_files_list_): Define.
26592         (sc_po_check): Use it.
26594 2016-07-30  Ján Tomko  <jtomko@redhat.com>
26596         maint.mk: speed up require_config_h_first
26597         Instead of spawning three processes per file,
26598         rewrite the check in perl and run it once for all the files.
26599         * top/maint.mk (perl_config_h_first_): Define.
26600         (sc_require_config_h_first): Use it in place of shell code.
26602 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26604         maint.mk: speed up sc_po_check
26605         sc_po_check would skip files based on their names, or on the
26606         existence of files with derived names. Rewrite it to use perl
26607         instead of shell to make the check faster.
26608         * top/maint.mk (perl_translatable_files_list_): Define.
26609         (sc_po_check): Use it.
26611 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26613         obstack: pacify GCC 6 with -Wnull-dereference
26614         Problem reported by Assaf Gordon in:
26615         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
26616         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
26617         Declare with __attribute_noreturn__.
26618         * lib/obstack.h (__attribute_noreturn__): New macro.
26620 2016-07-13  Eric Blake  <eblake@redhat.com>
26622         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
26623         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
26624         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
26626 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
26628         doc: mention glibc SSIZE_MAX buglet
26629         * doc/posix-headers/limits.texi (limits.h): Document the bug.
26631 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
26633         printf-posix: Fix mingw build
26634         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
26635         expression for detecting C symbol prefixes but forgot to qoute square
26636         brackets in the command line arguments for grep.  That way when
26637         building with mingw the condition was false although it ought to be
26638         true instead.  In particular scenarios this led to the following
26639         compile error:
26641             Cannot export rpl_printf: symbol not found
26642             Cannot export rpl_scanf: symbol not found
26643             collect2: error: ld returned 1 exit status
26645         Fix this by properly quoting square brackets.
26647 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26649         mktime: call tzset as per POSIX
26650         Problem reported by Ludovic Courtès in:
26651         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
26652         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
26653         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
26655 2016-06-26  Pádraig Brady  <P@draigBrady.com>
26657         fts: handle readdir() errors
26658         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
26659         but also upon error when it will also set errno.  Therefore
26660         flag the error case from readdir().  We treat the case where
26661         no items are read the same as if the dir can't be accessed,
26662         i.e. by setting fts_errno to FTS_DNR.
26664 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
26666         intprops: port better to GCC 7
26667         GCC 7 __builtin_add_overflow supports a new usage form, where the
26668         last argument is a null pointer, and which merely returns 1 if an
26669         overflow would occur.  This is a constant expression if all
26670         arguments are constants, and should generate faster code when code
26671         needs to be generated.
26672         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
26673         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26674         Use builtin operations if available.
26675         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
26676         operations are available, as it's almost surely faster.
26678 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26680         intprops-test: port to GCC 6
26681         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
26682         since the bug is not fixed in GCC 6.1.
26684 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
26686         xalloc-oversized: port to GCC 7; fewer warnings
26687         GCC 7 will have a better way to deal with integer overflow.
26688         Plus, fix a warnings problem reported by Tim Ruehsen in:
26689         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
26690         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
26691         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
26692         For GCC 5, use __xalloc_oversized if both args are constants,
26693         or if pedantic.
26695 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
26697         regex: port to Sun C
26698         Reported by Daiki Ueno.
26699         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
26700         __restrict, in prototype.  This fixes a problem I introduced in
26701         the 2016-02-19 merge from glibc.
26703 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
26705         stdbool: Restore __bool_true_false_are_defined check
26706         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
26707         __bool_true_false_are_defined is still defined, even with C++11.
26709 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
26711         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
26712         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
26714 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
26716         Use GCC_LINT, not lint
26717         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
26718         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
26719         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
26720         Document problem with lint and _Noreturn.
26721         * lib/diffseq.h (IF_LINT, IF_LINT2):
26722         * lib/fts.c (sccsid):
26723         * lib/getndelim2.c (IF_LINT):
26724         * lib/gl_anylinked_list2.h (gl_linked_iterator)
26725         (gl_linked_iterator_from_to):
26726         * lib/gl_anytree_list2.h (gl_tree_iterator)
26727         (gl_tree_iterator_from_to):
26728         * lib/gl_anytree_oset.h (gl_tree_iterator):
26729         * lib/gl_array_list.c (gl_array_iterator)
26730         (gl_array_iterator_from_to):
26731         * lib/gl_array_oset.c (gl_array_iterator):
26732         * lib/gl_carray_list.c (gl_carray_iterator)
26733         (gl_carray_iterator_from_to):
26734         * lib/idcache.c:
26735         * lib/inet_ntop.c (IF_LINT):
26736         * lib/regcomp.c (build_charclass_op, create_tree):
26737         * lib/regex_internal.c (re_acquire_state)
26738         (re_acquire_state_context):
26739         * lib/trigl.c (rcsid):
26740         * lib/trim.c (IF_LINT):
26741         * lib/vasnprintf.c (IF_LINT):
26742         * lib/verify.h (assume):
26743         Treat GCC_LINT like lint.
26745 2016-05-29  Bruno Haible  <bruno@clisp.org>
26747         secure_getenv: Port to many more platforms.
26748         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
26749         functions.
26750         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
26751         for non-BSD Unix platforms and for native Windows.
26752         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
26753         Prompted by a request from Nikos Mavrogiannopoulos.
26755 2016-05-27  Eric Blake  <eblake@redhat.com>
26757         canonicalize: Fix broken probe for realpath.
26758         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
26759         in logic introduced in 54615b95.
26761 2016-05-26  Eric Blake  <eblake@redhat.com>
26763         unsetenv: relax to LGPLv2+
26764         * modules/unsetenv (License): Match setenv license.
26766 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
26768         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
26769         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
26770         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
26771         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
26772         (commonarg, dirargs, dirs, infoarg, generate_ascii)
26773         (generate_html, generate_info, generate_tex, outdir)
26774         (source_extra, split, srcfile, texarg): Move above 'version'.
26775         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
26777 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
26779         manywarnings: update for GCC 6.1
26780         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
26781         Add GCC 6.1 options that apply to C.
26782         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
26783         do not apply to C, are obsolescent, etc.
26785 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
26787         glob: size_t overflow checks
26788         * lib/glob.c (__has_builtin): New macro.
26789         (size_add_wrapv, glob_use_alloca): New static functions.
26790         (glob, glob_in_dir): Check for size_t overflow in several places,
26791         and fix some size_t checks that were not quite right.
26793         glob: don't assume INT_MAX < SIZE_MAX
26794         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
26795         latter is not portable to (probably theoretical) hosts where
26796         SIZE_MAX <= INT_MAX.
26798 2016-05-09  Bruno Haible  <bruno@clisp.org>
26800         Fix undefined behaviour in gettext.h.
26801         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
26802         pointer's value after the storage it points to has been freed.
26803         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
26804         Spotted by Coverity.
26806 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
26808         git-version-gen: avoid undefined shift
26809         Problem reported by Mosè Giordano in:
26810         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
26811         * build-aux/git-version-gen: Avoid undefined behavior if invoked
26812         with --prefix or --fallback but without a later argument.  While
26813         we're at it, omit unnecessary quotes.
26815 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
26817         glob: merge glibc changes into lib/glob.c
26818         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
26819         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
26820         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
26821           struct dirent [BZ #19779]
26822         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
26823           callback gl_readdir
26824         2015-10-20 Convert miscellaneous function definitions to prototype style
26825         2015-10-20 Convert 113 more function definitions to prototype style
26826           (files with assertions)
26827         2015-06-12 Fix getlogin_r namespace (bug 18527).
26828         2014-02-10 Use glibc_likely instead __builtin_expect.
26829         2013-10-20 When glob pattern contains a trailing slash match only
26830           directories. Fixes bug 10278.
26831         2013-09-04 glob: silence -Wattribute warnings
26832         2013-06-07 Avoid use of "register" as optimization hint.
26833         2012-09-25 Use size_t instead of int for internal variables in glob
26834           (bug 14621)
26835         2011-07-20 Check for overflows in expressions
26836         2011-05-28 Remove unused variable
26837         2011-05-22 Add a few more alloca size checks
26838         2010-03-27 Whitespace fixes
26839         2010-03-27 Fix one more issue with the glob patch
26840         2010-03-24 Fix glob with empty pattern
26841         2008-05-27 Remove useless more "if" tests before "free"
26842         * modules/glob (Depends-on): Add stdint.
26844 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26846         mktime: port to stricter signed overflow checking
26847         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
26848         (long_int): Require width for INT_MAX * 3 * (seconds per year),
26849         instead of merely for INT_MAX * 2.  In practice platforms that
26850         do the latter also do the former.
26851         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
26852         (shr): New static function, replacing SHR.  All uses changed.
26853         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
26854         and TIME_T_MAX.  All uses changed.
26855         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
26856         Use long_int, not time_t.
26857         (long_int_avg): New static function, replacing time_t_avg.
26858         All uses changed.  Round toward positive infinity, as that
26859         generates slightly better code.
26860         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
26861         by INT_ADD_WRAPV.
26862         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
26863         (convert_time): New static function.
26864         (ranged_convert): Use it
26865         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
26866         Use simpler test for loop exit.
26867         (__mktime_internal): Store negative of guessed offset, to simplify
26868         overflow checking.  Remove no-longer-needed test for small time_t
26869         overflows.
26871         mktime: speed up DEBUG_MKTIME benchmarks
26872         Call tzset just once, at the start, rather than for every test
26873         case.  This lets us measure the CPU cost of mktime as opposed to
26874         that of tzset.  This is relevant when TZ is not set and glibc is
26875         being used.  This speeds up tests by a factor of 40 on my Fedora
26876         23 x86-64 platform.
26877         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
26878         to call tzset and as a sanity check.  Later on, use localtime_r
26879         instead of localtime.
26881         mktime: resurrect DEBUG_MKTIME testing
26882         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
26883         Include <string.h>, for strcmp.
26885         mktime: simplify DEBUG_MKTIME
26886         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
26887         Simplify later usage accordingly.
26889         Port mktime_internal offset to unsigned time_t
26890         This avoids some assumptions about wraparound arithmetic on
26891         signed integer overflow.
26892         * lib/mktime-internal.h (mktime_offset_t): New type.
26893         (mktime_internal): Use it in decl.
26894         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
26896         * lib/mktime.c (__mktime_internal, localtime_offset):
26897         * lib/timegm.c (timegm): Use it.
26898         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
26899         (gl_FUNC_MKTIME): Require it.
26901 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26903         xstrtol: prohibit monstrosities like "1bB"
26904         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
26905         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
26906         "B" only if the first suffix needs a base.
26907         * tests/test-xstrtol.sh: Test this.
26909 2016-04-21  Pádraig Brady  <P@draigBrady.com>
26911         xstrtod: reinstate setting of *result upon ERANGE
26912         * lib/xstrtod.c (XSTRTOD): The user may decide to use
26913         the returned limits upon ERANGE, so allow and document that.
26915 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
26917         xstrtod: modify *result only if no errors
26918         * lib/xstrtod.c (XSTRTOD).
26920 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
26922         btowc: document problems in C locale
26923         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
26924         with mbrtowc.  See: http://bugs.gnu.org/23269#32
26926 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26928         mktime: improve integer overflow checking
26929         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
26930         (WRAPV): Remove; no longer needed.
26931         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
26932         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
26933         Remove.  Use intprops.h defns instead.
26934         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
26935         Use bool for Boolean, for clarity.
26936         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
26937         detect integer overflow.
26938         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
26940         intprops: check two's complement assumption
26941         Suggested by Eric Blake in:
26942         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
26943         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
26944         short, int, long, and (if available) long long are two's complement.
26945         * modules/intprops (Depends-on): Add 'verify'.
26947         intprops, mktime, strtol: assume two's complement
26948         These macros were not portable to every conforming C11 ones'
26949         complement platform.  It's not worth the hassle of porting to some
26950         platforms that use ones' complement or signed magnitude, as such
26951         platforms are almost purely theoretical nowadays and porting even
26952         to some of them makes the code harder to review for little
26953         practical benefit.  Problem reported by Florian Weimer in:
26954         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
26955         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
26956         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
26957         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
26958         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
26959         (TYPE_SIGNED_MAGNITUDE):
26960         Remove.  All uses rewritten to assume two's complement, which is
26961         all we can reasonably test nowadays anyway.
26962         * top/maint.mk (_intprops_names): Remove the removed macros.
26964 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
26966         stdint: port to strict C11 left shift
26967         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
26968         Pacify clang -Wshift-negative-value, which should be an issue only
26969         on clang setups where stdint.h does not conform to C11 or to C++11.
26970         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
26972 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
26974         mbrtowc: work around glibc bug#19932
26975         Fix mbrtowc so that it never returns -1 in the C locale,
26976         as this conflicts with a future version of POSIX
26977         http://austingroupbugs.net/view.php?id=663#c2738
26978         and causes problems with GNU grep: http://bugs.gnu.org/23234
26979         See glibc bug 19932:
26980         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
26981         * doc/posix-functions/mbrlen.texi (mbrlen):
26982         * doc/posix-functions/mbrtowc.texi (mbrtowc):
26983         Document the glibc bug.
26984         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
26985         Include hard-locale.h, locale.h.
26986         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
26987         if the bug is possible.
26988         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
26989         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
26990         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
26991         * modules/mbrtowc (Depends-on): Add hard-locale.
26992         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
26993         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
26994         * tests/test-mbrtowc5.sh: New file.
26996 2016-04-03  Pedro Alves  <palves@redhat.com>
26998         stdint: detect good enough pre-C++11 stdint.h in C++ mode
26999         When gnulib is configured in C++ mode for a system with a working C99
27000         implementation of stdint.h that predates C++11, gnulib ends up
27001         substituting stdint.h anyway.  This works on most targets, but on e.g.,
27002         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
27003         MinGW is LLP64.  Instead of trying to detect the right types, detect
27004         good-enough-pre-C++11 stdint.h and in such case define
27005         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
27006         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
27007         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
27008         conforms to C99.  If it does, check whether it hides symbols
27009         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
27010         does, define those macros in config.h.
27012 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27014         argp: merge changes from glibc
27015         Among other things, this should fix problems found by a Coverity
27016         scan and reported by Andrei Borzenkov:
27017         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
27018         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
27019         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
27020         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
27021         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
27022         * lib/argp.h:
27023         Merge changes from glibc.
27024         * tests/test-argp-2.sh: Adjust to match new behavior.
27026 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
27028         stddef: support configuring with g++
27029         Problem reported by Ángel González in:
27030         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
27031         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
27032         Do not define if _GCC_MAX_ALIGN_T is defined.
27034 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27036         test-framework-sh: minor cleanups
27037         * tests/init.sh (testdir_prefix_): Output a trailing newline,
27038         since strictly speaking POSIX requires this.
27039         (setup_): Do not use the variable 'fail', as that makes the
27040         trace output harder to read ('fail' is typically used by
27041         tests to mean the test failed).  Treat // portably.
27042         Check that new directory is not merely a sibling of the tmp dir.
27043         Avoid unnecessary invocation of tr.
27045         test-framework-sh: revert port to NetBSD 7.0
27046         It was a false alarm; I misinterpreted Assaf Gordon's report.
27047         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27048         Restore.
27049         (test_dir_): Adjust to mktempd_ change.
27050         (mktempd_): Restore 2nd arg.  Use -t again.
27051         (base_template_, template_, nx_): Resurrect old code.
27053         Port better to Alpine Linux
27054         Its diff implementation does not support -c, but does support -U3.
27055         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27056         * tests/init.sh (diff_opt_): New var.
27057         (compare_): Prefer diff -U3 to diff -c to plain diff.
27059 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27061         test-framework-sh: port to NetBSD 7.0
27062         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27063         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27064         Remove.  All uses removed.
27065         (test_dir_): Adjust to mktempd_ change.
27066         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
27067         (base_template_, template_, nx_): Simplify by hardcoding.
27069 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27071         gitlog-to-changelog: suppress ignored chatter
27072         * build-aux/gitlog-to-changelog: Do not warn about skipping
27073         an SHA if it would have been ignored anyway.
27075 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
27077         setlocale: add "sv" to Windows language table
27078         * lib/setlocale.c (language_table) [W32]: Add "sv".
27079         Reported in <https://savannah.gnu.org/bugs/?44588>.
27081 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27083         sys_select: port to new Cygwin
27084         Problem reported by Ken Brown in:
27085         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
27086         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
27087         diagnostics.
27089 2016-03-17  Jim Meyering  <meyering@fb.com>
27091         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
27092         * tests/test-userspec.c (main): Remove unnecessary braces and fix
27093         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
27094           test-userspec.c:176:9: error: statement is indented as if it were \
27095             guarded by... [-Werror=misleading-indentation]
27096                    {
27097                    ^
27098           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
27099                  if (!diag && !T[i].result)
27100                  ^~
27102 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27104         time_rz: port to clang -Wunused-const-variable
27105         * lib/time_rz.c (TZ): Remove.  All uses removed.
27107         std-gnu11: improve clang support
27108         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
27109         2016-03-15 Also try clang
27110         2016-03-15 Port C11 and C++11 testing to clang
27112         select: port more to Intel 2016.1.150 compiler
27113         Problem reported by Balázs Hajgató in:
27114         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
27115         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
27117 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27119         select: try to port to 2016.1.150 compiler
27120         Problem reported by Balázs Hajgató in:
27121         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
27122         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
27123         POSIX specifies 'restrict'.
27125 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27127         localename-tests: memory allocation fixes
27128         * tests/test-localename.c (test_locale_name)
27129         (test_locale_name_thread): Don't call freelocale on a locale
27130         that was the base of a successful newlocale, as that
27131         results in a double free.  Problem reported by Assaf Gordon.
27132         (test_locale_name_thread): Free saved names after use, to pacify
27133         gcc -fsanitize=address.
27135 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
27137         intprops: make .h file license match module
27138         * lib/intprops.h: Change the license wording to match glibc format.
27139         This is what is in modules/intprops anyway.  See:
27140         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
27142 2016-03-08  Eric Blake  <eblake@redhat.com>
27144         acl: fix missing return on Cygwin
27145         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
27146         fall off end of function. Fixes http://bugs.gnu.org/22949
27148 2016-03-05  Bruno Haible  <bruno@clisp.org>
27150         extern-inline: port to PGI CC
27151         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
27152         keyword 'inline'.
27153         Reported by Adam James Stewart in:
27154         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
27156 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27158         signbit: port back to pre-C++11 GCC
27159         * lib/math.in.h (signbit): Do previous change only if
27160         __cplusplus < 201103.  See Jonathan Wakely in:
27161         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
27163 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
27165         mountlist: recognize autofs-mounted remote file systems, too
27166         Originally reported at: https://bugzilla.redhat.com/1309247
27167         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
27168         "-hosts" because it is used by autofs to mount remote file systems.
27170 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27172         signbit: port to C++ with GCC 6
27173         * lib/math.in.h (signbit) [__cplusplus]:
27174         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
27175         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
27177         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
27179         regex: make it closer to libc
27180         Make Idx a signed type, rather than possibly unsigned.
27181         The unsignedness was not really buying us anything, since the code
27182         overflows for other reasons before getting to PTRDIFF_MAX.  Making
27183         it signed allows us to use -1 and -2 with abandon, like libc does,
27184         thus lessening the number of differences between gnulib and libc.
27185         Also, it should help avoid gratuitous warnings like the one
27186         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
27187         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
27190         regex: merge patches from libc
27192         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
27193         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
27194         Convert miscellaneous function definitions to prototype style.
27195         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
27196         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
27197         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
27198         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
27199         (re_search_internal):
27200         Convert to prototype-style function definition.
27201         Use internal_function for internal functions.
27203 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
27205         stdalign: port to older HP and IBM cc
27206         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
27207         C compilers, by checking their version numbers.  These version
27208         numbers appear in MariaDB and in Qt code that dates way back and
27209         that conditiionally uses the 'aligned' attribute.
27211 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27213         stdalign: port to clang 3.7.0
27214         Problem reported by Herbert J. Skuhra in:
27215         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
27216         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
27217         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
27218         https://llvm.org/bugs/show_bug.cgi?id=26547
27220 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27222         readdir_r: now obsolescent
27223         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
27224         * lib/mountlist.c (read_file_system_list): Add a FIXME.
27226 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27228         misc: port better to gcc -fsanitize=address
27229         Without these patches, ./configure CFLAGS='-fsanitize=address'
27230         would compute incorrect values.  This patch fixes some (but not all)
27231         test failures with recent glibc, with this configuration.
27232         * m4/acl.m4 (gl_ACL_GET_FILE):
27233         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
27234         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
27235         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
27236         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
27237         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
27238         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
27239         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
27240         * m4/getline.m4 (gl_FUNC_GETLINE):
27241         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
27242         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
27243         * m4/regex.m4 (gl_REGEX):
27244         * m4/strndup.m4 (gl_FUNC_STRNDUP):
27245         * tests/test-calloc-gnu.c (main):
27246         * tests/test-duplocale.c (main):
27247         * tests/test-getgroups.c (main):
27248         * tests/test-getline.c (main):
27249         * tests/test-inttostr.c (main):
27250         * tests/test-localename.c (test_locale_name)
27251         (test_locale_name_thread, test_locale_name_environ)
27252         (test_locale_name_default):
27253         * tests/test-regex.c (main):
27254         * tests/test-setlocale1.c (main):
27255         * tests/test-stat.h (test_stat_func):
27256         Free heap-allocated storage before exiting.
27257         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
27258         Don't match *_foo symbols inserted by AddressSanitizer.
27259         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
27261 2016-02-02  Jim Meyering  <meyering@fb.com>
27263         verify-tests: also remove stray test-verify.Tpo
27264         * modules/verify-tests (Makefile.am): Arrange for "make clean"
27265         to remove the test-verify.Tpo file that is left behind by
27266         the automake-generated rule upon compilation failure.
27267         Otherwise, that .Tpo file would cause a failed "make distcheck"
27268         at least for grep.
27270 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27272         std-gnu11: new module
27273         This makes it easier for applications to prefer C11 and C++11
27274         to older variants, when compiling C and C++ code.
27275         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
27276         a nontrivial chunk of GPLed Autoconf source code.
27277         * COPYING: Mention the m4/*.m4 copyright situation.
27278         * MODULES.html.sh (std-gnu11): New module.
27279         * m4/std-gnu11.m4, modules/std-gnu11: New files.
27281 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27283         get-permissions, strftime: fix grammar in comments
27284         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
27285         some grammar fixes Alan Mackenzie made to GNU Emacs.
27287 2016-01-25  Daiki Ueno  <ueno@gnu.org>
27289         gettext: mark as obsolete
27290         Suggested by Paul Eggert in:
27291         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
27292         * modules/gettext (Status): Mark as obsolete.
27293         (Notice): Suggest to use 'gettext-h' instead.
27294         * modules/gettext-h (Description): Suggest GNU gettext, instead of
27295         the 'gettext' module.
27297 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27299         gnulib-tool: don't give up on ln -s so easily
27300         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
27301         because an earlier one failed.  The targets could be on different
27302         file systems.  Problem reported by KO Myung-Hun in:
27303         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
27305         closedir: fix OS/2-related typos
27306         Problem reported by KO Myung-Hun in:
27307         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
27308         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
27309         in the last couple of changes.
27311 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
27313         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
27314         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
27315         copying a directory.
27317 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27319         regex: treat [x] as x if x is a unibyte encoding error
27320         Problem reported by Aharon Robbins in:
27321         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
27322         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
27323         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
27325         closedir, dirfd, opendir: port to OpenSolaris 5.10
27326         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
27327         * m4/dirfd.m4 (gl_FUNC_DIRFD):
27328         * m4/opendir.m4 (gl_FUNC_OPENDIR):
27329         Don't use ${word##pat} substitution, as it doesn't work in
27330         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
27331         http://bugs.gnu.org/22443#11
27333 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27335         bootstrap: use American spelling
27336         * build-aux/bootstrap: Honor American spelling.
27338 2016-01-22  Karl Berry  <karl@freefriends.org>
27340         * doc/posix-functions/localtime.texi,
27341         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
27343 2016-01-21  Bruno Haible  <bruno@clisp.org>
27345         hash-pjw-bare: fix comment
27346         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
27348         wcwidth: Replace also on OpenBSD 5.8
27349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
27350         * doc/posix-functions/wcwidth.texi: Update.
27352 2016-01-20  Pádraig Brady  <P@draigBrady.com>
27354         gnu-web-doc-update: fix addition of new files
27355         If there were already added (emnpty) dirs,
27356         then cvs aborts the add with the message:
27357           cvs [add aborted]: there is a version in <./dirname> already
27358         * build-aux/gnu-web-doc-update: Add directories separately
27359         to the addition of files, to avoid the above issue
27360         impacting the addition of files.
27362 2016-01-19  Daiki Ueno  <ueno@gnu.org>
27364         utimens-tests: avoid pulling gettext .m4 files
27365         Although this is not the right fix to the original problem:
27366         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
27367         it makes it possible again for consumer projects to use arbitrary
27368         version of gettext, through the steps described at:
27369         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
27370         See here for details:
27371         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
27372         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
27373         'gettext'.
27374         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
27375         'gettext'.
27377 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27379         regex: pacify static checkers
27380         Problem and draft fix reported by Aharon Robbins in:
27381         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27382         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
27383         Clear memory to pacify static checkers.
27385         regex: fix [ diagnostic
27386         Problem and fix reported by Aharon Robbins in:
27387         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27388         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
27390         regex: fix memory leaks
27391         Problem and draft fix reported by Aharon Robbins in:
27392         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27393         * lib/regcomp.c (build_range_exp, build_charclass_op)
27394         * lib/regex_internal.c (re_dfa_add_node):
27395         Fix memory leak on failure.
27397 2016-01-18  Pádraig Brady  <P@draigBrady.com>
27399         fts: don't unconditionally use leaf optimization for NFS
27400         NFS st_nlink are not accurate on all implementations,
27401         leading to aborts() if that assumption is made.
27402         See <https://bugzilla.redhat.com/1299169>
27403         * lib/fts.c (leaf_optimization_applies): Remove NFS from
27404         the white list, and document the issue.
27406 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27407             KO Myung-Hun  <komh@chollian.net>
27409         gnulib-tool: don't assume ln -s works
27410         * gnulib-tool (func_ln_s): New function.
27411         (func_ln): Use it.
27413 2016-01-15  KO Myung-Hun  <komh@chollian.net>
27415         utimes: detect utimes() correctly on OS/2 kLIBC
27416         utimes() of OS/2 kLIBC has some limitations.
27417         1. OS/2 itself supports a file date since 1980 year in local time.
27418         2. OS/2 itself supports only even seconds for a file time.
27419         3. utimes() of OS/2 kLIBC does not work on an opened file.
27420         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
27421         * doc/posix-functions/utimes.texi: Document the above limitations of
27422         utimes() on OS/2 kLIBC.
27424 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27425             KO Myung-Hun  <komh@chollian.net>
27427         openat_proc_name: port to OS/2 kLIBC
27428         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
27429         instead of /proc/self/fd.
27430         * lib/openat-proc.c (openat_proc_name):
27431         Don't assume file name length is less than INT_MAX.
27432         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
27434 2016-01-14  KO Myung-Hun  <komh@chollian.net>
27436         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
27437         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
27438         definitions of intptr_t and uintptr_t (which use int and unsigned)
27439         to avoid clashes with declarations of system functions like sbrk.
27440         * lib/stdint.in.h (intptr_t, uintptr_t): Check
27441         _INTPTR_T_DECLARED before defining them.
27443         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
27444         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
27445         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
27446         Declare on kLIBC.
27447         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
27448         fd associated with dirp.
27449         (_gl_register_dirp_fd): New. Register fd associated with dirp to
27450         dirp_fd_list.
27451         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
27452         (dirfd): Implemented for kLIBC.
27453         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
27454         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
27455         succeeds.
27456         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
27457         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27458         (REPLACE_DIRFD): Define to 1 if replaced.
27459         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
27460         * modules/closedir (Depends-on): Add dirfd.
27461         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
27462         condition.
27463         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
27464         * modules/opendir (Depends-on): Add dirfd.
27466         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
27467         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
27468         * lib/dup.c (dup_nothrow): New.
27469         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
27470         (klibc_dup2): New.
27471         * lib/fcntl.c (klibc_fcntl): New.
27472         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
27473         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
27474         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
27475         fd.
27477         pipe_filter_ii_execute: port to OS/2 kLIBC
27478         Pipes on kLIBC do not support O_NONBLOCK like Win32.
27479         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
27480         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
27481         Reuse Win32 code on OS/2 kLIBC.
27482         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
27483         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
27485         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
27486         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
27487         static inline function.  The implementation of wcwidth in wcwidth.c
27488         causes a "conflicting types" error.
27489         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
27491         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
27492         spawn() on OS/2 kLIBC is not silly like one on Windows
27493         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
27494         empty string on OS/2 kLIBC.
27496         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
27497         On OS/2 kLIBC, select() works only on sockets.
27498         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
27500         binary-io: don't put fd in binary mode if it is a console on EMX
27501         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
27502         a console on EMX.
27504 2016-01-15  Pádraig Brady  <P@draigBrady.com>
27506         doc: mention unfixed issues with unsupported localtime() values
27507         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
27508         returns nonsense for localtime(2^56).
27509         * doc/posix-functions/localtime_r.texi: Likewise.
27511 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27513         doc: mention setlocale() issues on OpenBSD
27514         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
27515         never fails, and the need to check categories individually.
27517 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27519         sig2str: list all signals on FreeBSD >= 7
27520         FreeBSD >= 7 is contravening POSIX by not defining NSIG
27521         to the maximal statically defined signal value.
27522         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
27523         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
27524         where available, even when NSIG is defined.
27526 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
27528         acl-permissions: port to USE_ACL==0 platforms
27529         I ran into this problem when building bleeding-edge GNU Emacs
27530         with gcc -fsanitize=address on Fedora 23.  On this platform
27531         the ACL library does not pass the 'configure' test and Emacs
27532         then does not build due in part to what appear to be typos in the
27533         ACL part of Gnulib.
27534         * lib/acl-internal.c (free_permission_context):
27535         * lib/acl-internal.h (struct permission_context):
27536         Test whether USE_ACL is nonzero, not whether it is defined.
27538 2016-01-12  Martin Sebor  <msebor@redhat.com>
27540         mktime: rename macro to avoid glibc clash
27541         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
27542         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
27544 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27546         Port "$@" to OpenIndiana ksh93
27547         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
27548         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
27549         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
27550         bug long-dead shells, so remove the workaround.
27551         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
27552         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
27553         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
27554         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
27555         Use "$@" instead of ${1+"$@"}.
27557         Port Universal Time settings to strict POSIX
27558         * build-aux/announce-gen, build-aux/bootstrap:
27559         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
27560         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
27561         * build-aux/gnupload, build-aux/mkinstalldirs:
27562         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
27563         * build-aux/update-copyright, build-aux/useless-if-before-free:
27564         * build-aux/vc-list-files, tests/test-strftime.c:
27565         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
27566         but POSIX says the behavior of TZ="UTC" is undefined.
27568 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
27570         msvc-inval: fix problem with unset shell var
27571         Problem reported by Karl Berry in:
27572         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
27573         * modules/msvc-inval (Depends-on):
27574         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
27575         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
27577 2016-01-01  Pádraig Brady  <P@draigBrady.com>
27579         tests: for compare_(), use cmp -s where available
27580         * tests/init.sh (compare_): Only fall back to cmp without
27581         the POSIX defined -s option, where this is not available.
27583 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27585         version-etc: new year
27586         * build-aux/gendocs.sh (version):
27587         * doc/gendocs_template:
27588         * doc/gendocs_template_min:
27589         * doc/gnulib.texi:
27590         * lib/version-etc.c (COPYRIGHT_YEAR):
27591         Update copyright dates by hand in templates and the like.
27592         * all files: Run 'make update-copyright'.
27594 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
27596         human: fix output buffer overrun by 1
27597         * lib/human.c (human_readable): Fix off-by-one typo in buffer
27598         calculation that could lead to a one-byte buffer overrun.
27600 2015-12-28  Daiki Ueno  <ueno@gnu.org>
27602         maint: fix operator precedence in mbrtowc test
27603         This is a fix for test breakage introduced by commit 45228d96; the
27604         equality expression must be parenthesized when negated with '!',
27605         otherwise we always get:
27607           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
27609         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
27610         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
27612 2015-12-23  James Youngman  <jay@gnu.org>
27614         regexprops-generic: update from regex.h
27615         * doc/regexprops-generic.texi: update by running the regexprops binary
27616         from findutils (the command line is 'regexprops "Regular Expressions"
27617         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
27618         gnulib with GNU grep had made this document out-of-date.
27620 2015-12-23  Pádraig Brady  <P@draigBrady.com>
27622         strftime-tests: avoid false failure on OS X
27623         * tests/test-strftime.c (struct localtime_rz_test): Add an
27624         ahistorical member which is used to warn rather than fail
27625         when tm_isdst isn't set for such entries.  This is the case for
27626         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
27628 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
27630         fts: ensure leaf optimization is used for NFS
27631         NFS provides usable dirent.d_type but not necessarily for all entries
27632         of large directories.  See <https://bugzilla.redhat.com/1252549>
27633         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
27635 2015-12-20  Pádraig Brady  <P@draigBrady.com>
27637         fts: enable leaf optimization for XFS
27638         XFS provides usable dirent.d_type only for DT_DIR,
27639         but the noleaf optimization still applies.
27640         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
27642 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
27644         intprops: comment fix
27645         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
27646         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
27648         intprops-test: work around GCC bug 68971
27649         Problem reported by Pádraig Brady in:
27650         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
27651         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
27652         (main): Add a case that better tests 64-bit long in this area.
27654 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
27656         gnulib-tool: allow multiple --local-dir usage
27657         * gnulib-tool: Use --local-dir to construct compound
27658         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
27659         PATH_SEPARATOR early.
27660         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
27661         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
27662         func_determine_path_separator because that needs to be detected
27663         earlier now.
27664         (func_determine_path_separator): New function.
27665         (func_path_foreach, func_path_foreach_inner): New functions.
27666         (func_path_prepend, func_path_append): Likewise.
27667         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
27668         (func_lookup_file, func_all_modules): Use new functions to work
27669         with local_gnulib_path.
27670         (func_modules_in_dir, func_exists_module): New callbacks for
27671         func_path_foreach.
27672         (func_exists_module, func_get_tests_module): Likewise.
27673         (func_is_local_file, func_should_symlink): New helper methods.
27674         (func_add_file, func_update_file): Use new func_should_symlink
27675         instead, DRY.
27676         (func_reconstruct_cached_local_gnulib_path): New helper.
27677         (func_reconstruct_cached_dir): New callback.
27678         (func_import): The cached_local_gnulib_dir renamed to
27679         cached_local_gnulib_path similarly to local_gnulib_dir.
27680         Use new func_reconstruct_cached_local_gnulib_path.
27681         (func_count_relative_local_gnulib_path): New sub-method.
27682         (func_create_testdir): Use func_should_symlink, DRY.
27683         (func_create_megatestdir): Use new functions to work with
27684         local_gnulib_path correctly.
27685         (func_append_local_dir): New helper.
27687 2015-12-08  Pádraig Brady  <P@draigBrady.com>
27689         fix freadptr to work with ungetc on all uClibc configs
27690         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
27691         where GNU coreutils cut(1) generates invalid output on uClibc
27692         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
27693         * lib/freadptr.c (freadptr): Return NULL if there are
27694         ungotten chars.  In this case freadseek() will iterate
27695         again to process the ungotten character.
27697 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
27699         xalloc-oversized: improve performance with GCC 5
27700         * lib/xalloc-oversized.h (xalloc_oversized):
27701         Improve performance with GCC 5 by using __builtin_mul_overflow.
27703 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27705         intprops: new public macro EXPR_SIGNED
27706         Emacs can use this macro, so make it public.
27707         * doc/intprops.texi (Arithmetic Type Properties): Rename from
27708         'Integer Type Determination', since some of these macros apply
27709         to non-integer types.  Clarify what kinds of constant expressions
27710         these macros return.  Say when the arguments can be non-integers.
27711         Mention newly published macro EXPR_SIGNED.
27712         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
27713         make it public.  All uses changed.
27715         intprops: fix typo in clang port
27716         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
27717         '__builtin_add_overflow' that is not caught by compiler.
27719 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27721         test-timespec: fix typo in previous change
27722         * tests/test-timespec.c (main): Fix typo that reduced test quality.
27724         timespec-sub: fix overflow bug; add tests
27725         * lib/timespec-add.c (timespec_add):
27726         * lib/timespec-sub.c (timespec_sub):
27727         Work even if time_t is narrower than int (a theoretical
27728         possibility).  Redo code for a bit more clarity.
27729         * lib/timespec-sub.c (timespec_sub):
27730         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
27731         * modules/timespec-tests, tests/test-timespec.c: New files.
27733         intprops-test: suppress -Woverlength-strings
27734         Problem reported by Pádraig Brady in:
27735         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
27736         It is not worth the hassle to port this test to compilers that
27737         cannot handle long strings in diagnostics.
27738         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
27740 2015-11-03  Pádraig Brady  <P@draigBrady.com>
27742         quotearg: add quotearg_n_style_colon()
27743         This quotes with default options of the specified style,
27744         but with quoting enabled for instances of ':'.
27745         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
27746         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
27748 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27750         intprops: revise _WRAPV macros, revert _OVERFLOW
27751         The incompatible changes to the _OVERFLOW macros were too much of
27752         a hassle in practice, so revert them.  Instead, change the new
27753         _WRAPV macros to make them closer in behavior to GCC 5's new
27754         builtin_add_overflow etc. functions.  No other software was using
27755         these newly-added macros yet, so this should be OK.
27756         * NEWS: Revert previous change, since the incompatible change
27757         has been reverted, and nobody used the incompatible version.
27758         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
27759         Document revised behavior.
27760         (Integer Range Overflow): Adjust example to match above revisions.
27761         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
27762         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
27763         these can be used in integer constant expressions again.
27764         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
27765         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
27766         needed.
27767         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
27768         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
27769         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
27770         Remove, as they did not seem that useful.
27771         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
27772         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
27773         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
27774         Support new semantics.
27775         (__has_builtin): New macro, if not alreay defined.
27776         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
27777         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
27778         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
27779         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
27780         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
27781         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
27782         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
27783         New macros.
27784         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
27786 2015-11-03  Jim Meyering  <meyering@fb.com>
27788         intprops: add parentheses for when OP has precedence lower than "-"
27789         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
27790         "a OP b" must be parenthesized for when OP is like "<<", which has
27791         lower precedence than the following "-". Reported by Pádraig Brady.
27793 2015-11-03  Pádraig Brady  <P@draigBrady.com>
27795         quotearg: constify get_quoting_style parameters
27796         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
27797         * lib/quotearg.c (get_quoting_style): Likewise.
27799 2015-11-02  Pádraig Brady  <P@draigBrady.com>
27801         quotearg: add support for $'' shell escaping
27802         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
27803         items and descriptions.
27804         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
27805         above types by quoting like "shell", but using $'...' syntax
27806         for non printable characters, which should provide unambiguous
27807         printable output for any input.
27808         * tests/test-quotearg-simple.c: Update accordingly.
27810 2015-11-02  Pádraig Brady  <P@draigBrady.com>
27812         maint: use a more standard return from mbrtowc test
27813         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
27814         from the test program as this is non standard and often
27815         indicates an unhandled case in the test program.
27816         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
27818 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27820         intprops: add WRAPV and const flavors for GCC 5
27821         If available, use GCC 5's builtin functions for efficient integer
27822         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
27823         and safely compute the low-order bits of the correct answer.
27824         A downside of these efficient functions is that they cannot be
27825         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
27826         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
27827         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
27828         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
27829         Document the changes.
27830         (Wraparound Arithmetic): New section.
27831         (Integer Range Overflow):
27832         Put this subsection last, since it's least useful.
27833         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
27834         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
27835         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
27836         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
27837         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
27838         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
27839         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
27840         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
27841         New macros.
27842         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
27843         Generate calls to GCC builtins if available, for speed.
27844         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
27845         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
27846         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
27847         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
27848         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
27849         (CHECK_QUOTIENT, CHECK_REMAINDER):
27850         Test WRAPV and CONST flavors (when available) too.
27852 2015-10-30  Pádraig Brady  <P@draigBrady.com>
27854         doc: use extended timezone format in iso-8601 example
27855         * doc/parse-datetime.texi: The standard states that extended format
27856         is to be used consistently throughout.
27857         Note that lib/parse-datetime.y can handle either tz format.
27859 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27861         stdalign: port to Sun C 5.9
27862         * doc/posix-headers/stdalign.texi: Document this.
27863         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
27864         __attribute__ ((__aligned__ (...))).
27866 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27868         time_rz: fix comment about tzalloc
27869         * lib/time_rz.c (tzalloc): Fix comment.
27871 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27873         stdalign: work around pre-4.9 GCC x86 bug
27874         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
27875         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
27876         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
27878 2015-10-18  Pádraig Brady  <P@draigBrady.com>
27880         maint.mk: sc_tight_scope: remove extraneous expressions
27881         * top/maint.mk (tight_scope): This is not really required since
27882         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
27883         that matches all nm entries.  But it does remove extraneous entries
27884         that may be confusing or cause issue in future maintenance.
27886 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27888         time_rz: return NULL if localtime_r fails
27889         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
27890         while still attempting to pacify bleeding-edge GCC.
27892         fts: port to C11 alignof
27893         * doc/posix-headers/stdalign.texi (stdalign.h):
27894         Document the C11 restriction.
27895         * lib/fts.c: Include stddef.h, for max_align_t.
27896         (fts_alloc): Align using max_align_t, not FTSENT.
27897         * modules/fts (Depends-on): Add stddef.
27899 2015-10-18  Jim Meyering  <meyering@fb.com>
27901         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
27902         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
27903         would see this:
27905         lib/time_rz.c: In function 'localtime_rz':
27906         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
27907           [-Werror=nonnull]
27908                    if (tm && !save_abbr (tz, tm))
27909                        ^
27911         That was complaining about "tm" because it is a parameter that was
27912         declared with the __nonnull__ attribute.
27913         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
27914         result of localtime_r.
27916 2015-10-17  Jim Meyering  <meyering@fb.com>
27918         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
27919         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
27920         name-extraction regexp mistakenly used \S+, and would mistakenly
27921         extract "*F" from "extern int *F()" rather than the desired "F".
27922         Use \w+ instead.
27924 2015-10-17  Jim Meyering  <meyering@fb.com>
27926         maint.mk: sc_tight_scope: factor and support OS X
27927         * top/maint.mk (_gl_tight_scope): Address three issues:
27928         - factor out four instances of code that wraps a string in "^...$"
27929         - allow nm-reported symbol names to have an optional leading "_"
27930         - add "main" to the list of ignored variable names, because on os x,
27931         "main" has nm-reported type "S" in the variable-checking section.
27933 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
27935         safe-alloc-tests: fix typo in license header
27936         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
27938 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
27940         copy-file: fix mem leak in error case
27941         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
27942         upon error opening or performing I/O to the src and dest files.
27944 2015-10-15  Mike Frysinger  <vapier@chromium.org>
27946         localename: control langinfo.h inclusion
27947         This header is only used to work around buggy behavior in old
27948         versions of glibc, so do not include it all the time.  Otherwise
27949         we get build failures on systems that do not provide langinfo.h.
27950         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
27951         in the source later on.
27952         The patch was originally submitted to gettext as:
27953         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
27955 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27957         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
27958         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
27959         * lib/u64.c, lib/unistd.c:
27960         Append 'typedef int dummy;', to pacify compilers that are picky
27961         about empty translation units.
27963 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
27965         accept4-tests: fix to avoid non portable flags
27966         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
27967         as they are the only documented ones, and passing others may trigger
27968         EINVAL (seen on FreeBSD 10.1-RELEASE).
27969         * doc/glibc-functions/accept4.texi: Mention that we don't provide
27970         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
27972 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
27974         gnulib-tool: fix tests of 'extensions' module
27975         This complements f8fe25fab60e3c687a124 commit.
27976         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
27977         emitting of initial gl_EARLY macros.
27978         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
27979         replaced with func_emit_pre_early_macros call.
27981 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27983         unicase/locale-language: fix typo in utf-8 cookie
27984         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
27985         Problem reported by Zbigniew Jędrzejewski-Szmek.
27987 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27989         xalloc: do not worry about GCC 5 warning on 32 bit
27990         * lib/xalloc.h: Revert previous change.
27991         I found a better way to fix this in coreutils.
27993 2015-10-02  Pádraig Brady  <P@draigBrady.com>
27995         xalloc: avoid GCC 5.1 warning on 32 bit
27996         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
27997         xalloc_oversized(), which was seen to give this warning
27998         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
27999         when simplifying conditional".
28001 2015-10-02  Daiki Ueno  <ueno@gnu.org>
28003         uniname/uniname-tests: avoid compiler warnings
28004         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
28005         unused local variables.
28006         (test_alias_lookup): Fix alias name display in failure cases.
28008 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28010         c-ctype: do not worry about EBCDIC + char signed
28011         Drop support for EBCDIC with char being signed, as this breaks too
28012         many programs.  Problem reported by Ben Pfaff in:
28013         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
28014         * lib/c-ctype.h: Verify that we are not using EBCDIC with
28015         char being signed.
28016         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
28017         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
28018         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
28019         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
28020         * tests/test-c-ctype.c (test_all):
28021         Simplify by assuming standard char values cannot be negative.
28022         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
28024 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28026         c-ctype: port better to z/OS EBCDIC
28027         Problems reported by Daniel Richard G. in:
28028         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
28029         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
28030         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
28031         (_C_CTYPE_OTHER_CNTRL): New macro.
28032         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
28033         from SCHAR_MIN, as the functions are defined only from values
28034         promoted from char or from unsigned char, not necessarily from
28035         signed char.
28037 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
28039         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
28041         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
28042         and ARFLAGS variables.  Doing this unconditionally could break
28043         later Automake's AM_PROG_AR invocation (at least it's
28044         AC_CHECK_TOOLS call to detect correct 'ar' binary).
28046         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
28047         Amsterdam Compiler Kit, so make the previous code to have effects
28048         only on ACK, and rather automatically call the Automake's
28049         AM_PROG_AR as soon as possible to decide other cases.
28051         References:
28052         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
28054         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
28055         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
28056         is possible, keep setting AR/ARFLAGS to reasonable defaults.
28057         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
28058         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
28059         'extensions' module is used.
28060         * modules/extensions (configure.ac-early): Remove as this snippet
28061         is added to gnulib-comp.m4 earlier anyway.
28063 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28065         sockets: MS Windows initalization fixes
28066         Problem reported by Test User in:
28067         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
28068         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
28069         Correct the endianness.
28070         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
28071         number mismatch, not just on <.  Cleanup before any such failure.
28073 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28075         gc: fix detection of installed libgcrypt version
28076         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
28077         at least as recent as 1.4.4.  The previously used macro is not
28078         available now, since modules were removed in version 1.6.0.
28080 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28082         c-ctype: rewrite to use inline functions
28083         This simplifies maintenance, since it makes for just one
28084         implementation of each function, letting the compiler have the fun
28085         of optimization.  In practice this works well nowadays with GCC.
28086         E.g., c_isascii might need only three instructions even though the
28087         source code lists every ASCII character individually in a large
28088         switch statement.
28089         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
28090         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
28091         * NEWS: Document the API change.
28092         * lib/c-ctype.c: Drastically simplify, since this now just expands
28093         inline functions.
28094         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28095         (C_CTYPE_INLINE): New macro.
28096         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
28097         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
28098         Verify that either ASCII or EBCDIC is being used.
28099         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
28100         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
28101         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
28102         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
28103         New private macros.
28104         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
28105         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
28106         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
28107         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
28108         (c_tolower, c_toupper): When converting, return the unsigned char,
28109         as that is what z/OS does.
28110         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
28111         of some c-ctype.h macros.
28112         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
28113         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
28114         c_tolower promotion to be compatible with z/OS.
28116 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
28118         gitlog-to-changelog: trim only trailing whitespaces
28119         This is fix for --format regression introduced by commit
28120         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
28121         doubled %n string) had no effect anymore.  This format
28122         specification has been used e.g. by GNU paxuitils (commit
28123         edfd8bcc3).
28125         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
28126         newlines in commmit messages.
28128 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28130         Test that c_iscntrl agrees with iscntrl, etc.
28131         Suggested by Daniel Richard G. in:
28132         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
28133         * modules/c-ctype-tests (Depends-on): Add ctype.
28134         * tests/test-c-ctype.c: Include <ctype.h>.
28135         (NCHARS): New constant.
28136         (test_agree_with_C_locale): New function.
28137         (main): Use it.
28138         (test_all): Use named constants.
28140         c-ctype: improve c_isascii testing
28141         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
28142         Add a test to count the number of ASCII characters.
28144 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28146         savewd: remove SAVEWD_CHDIR_READABLE
28147         It was problematic in the light of file systems that ignore umask.
28148         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
28149         * NEWS: Document this.
28150         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
28151         successful, -1 (setting errno) on failure, rather than something
28152         more complicated than that.
28153         * lib/mkdir-p.c (make_dir_parents):
28154         Do not use SAVEWD_CHDIR_READABLE.
28155         * lib/savewd.c (savewd_chdir):
28156         Remove support for SAVEWD_CHDIR_READABLE.
28157         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
28159         c-ctype: port better to EBCDIC
28160         Problems reported by Daniel Richard G. in
28161         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
28162         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
28163         Include "verify.h".
28164         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
28165         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
28166         Define as enum constants with value false, if not defined, so that
28167         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
28168         code more portable, as both branches of the 'if' are compiled on
28169         all platforms.
28170         (C_CTYPE_EBCDIC): New constant.
28171         Verify that the character set is either ASCII or EBCDIC.
28172         (to_char): New static function.
28173         (c_isascii, c_iscntrl):
28174         Assume standard control-character assignments for EBCDIC.
28175         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
28176         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
28177         Rewrite to use 'if' instead of 'ifdef'.
28178         Use to_char if non-ASCII.  Prefer <= to >=.
28179         Prefer true and false to 1 and 0, for booleans.
28180         (c_iscntrl): Use 'if', not 'ifdef'.
28181         * modules/c-ctype (Depends-on): Add verify.
28182         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
28183         (to_char): New function.
28184         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
28186 2015-09-21  Pádraig Brady  <P@draigBrady.com>
28188         nanosleep: fix return code for interrupted replacement
28189         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
28190         that we return -1 in the case the call is interrupted by a signal,
28191         rather than the current value of 1.
28192         Diagnosed and tested by Daniel Richard G.
28194 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
28196         Diagnose ERE '()|\1'
28197         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
28198         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
28199         track of the set of previously-completed subexpressions available
28200         before the first alternative, and restore this set just before
28201         parsing each subsequent alternative.  This lets us diagnose the
28202         invalid back-reference in the ERE '()|\1'.
28204         regex: merge patches from libc
28206         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
28207         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
28208         * lib/regex_internal.h:
28209         Include <libc-lock.h> instead of <bits/libc-lock.h>.
28211         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
28212         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
28213         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
28214         wcscoll.
28215         * lib/regexec.c (check_node_accept_bytes): Likewise.
28217         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28218         Fix regex wcrtomb namespace (bug 18496).
28219         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
28220         instead of wcrtomb.
28222         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28223         Fix regex wctype namespace (bug 18495).
28224         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
28225         instead of towlower.
28226         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
28227         instead of iswlower.  Call __towupper instead of towupper.
28228         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
28229         instead of iswalnum.
28231         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28232         * lib/regcomp.c (parse_bracket_exp): Initialize type to
28233         COLL_SYM in a couple of places to avoid uninitialized variable
28234         wanings on tilegx gcc 4.8.2.
28236         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28237         * lib/regex_internal.h: Remove NOT_IN_libc.
28239         2014-11-17  Andreas Schwab  <schwab@suse.de>
28240         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
28242         2014-09-11  Roland McGrath  <roland@hack.frob.com>
28243         Move findidx nested functions to top-level.
28244         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
28245         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
28246         Pass new arguments to findidx.
28247         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
28248         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
28249         Don't #include it inside the function.  Pass new arguments to findidx.
28250         * lib/regex_internal.h:
28251         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
28252         (re_string_elem_size_at): Don't #include it inside the function.
28253         Pass new arguments to findidx.
28255         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28256         Check if DEBUG is defined in regex_internal.c
28257         * lib/regex_internal.c: Check if DEBUG is defined and is set.
28259 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
28261         ceill: detect buggy OpenBSD implementation
28262         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
28263         which returns zero for small values.  Discussed here:
28264         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
28266 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
28268         mountlist: add me_mntroot field on Linux machines
28269         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
28270         mount_entry so Linux machines based on /proc/self/mountinfo can
28271         distinguish between bind mounts and original mounts.  In reality bind
28272         mounts aren't treated differently than mountroot=/ mounts by the
28273         kernel, but the user often wants these bind mounts distinguished.
28274         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
28275         More details at https://pad.lv/1432871
28277 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
28279         doc: Describe to use multiple instances of gnulib
28280         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
28281         instances of gnulib with different modules can be used, for example one
28282         for a lib and another one for associated tools.
28284 2015-09-01  Pádraig Brady  <P@draigBrady.com>
28286         base32: mark function as __attribute__ const
28287         * lib/base32.h (isbase32): Mark __attribute__ const as
28288         suggested by GCC, and consistent with the base64 module.
28290 2015-08-20  Daiki Ueno  <ueno@gnu.org>
28292         gnulib-tool: don't transform binary files with sed
28293         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
28294         .mo and .class files.
28295         Reported by Denis Denisov.
28297 2015-08-10  Daiki Ueno  <ueno@gnu.org>
28299         gperf: respect silent rules
28300         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
28301         V_GPERF_0 for silent rules.
28302         * modules/iconv_open (Makefile.am): Use V_GPERF.
28303         * modules/unicase/locale-language (Makefile.am): Likewise.
28304         * modules/unicase/special-casing (Makefile.am): Likewise.
28305         * modules/unictype/category-byname (Makefile.am): Likewise.
28306         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
28307         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
28308         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
28309         * modules/unictype/property-byname (Makefile.am): Likewise.
28310         * modules/unictype/scripts (Makefile.am): Likewise.
28311         * modules/uninorm/composition (Makefile.am): Likewise.
28313 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28315         Improve port of stdalign to C++11
28316         Problem reported by Sundaram in:
28317         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
28318         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
28319         (__alignas_is_defined): Define if C++11 or newer.
28321 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
28323         pmccabe2html: fix gawk regex escaping
28324         * build-aux/pmccabe2html: Add one more backslash to properly
28325         escape the gsub replacement value.  Fixes this error:
28326         gawk: ./build-aux/pmccabe2html:425: \
28327         warning: escape sequence `\&' treated as plain `&'
28329 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
28331         time_rz: port to pedantic memcpy
28332         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
28333         that reject memcpy (..., NULL, 0).
28335 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
28337         time_rz: port better to MinGW
28338         Don't change tzname, as this makes MinGW dump core (Bug#21020).
28339         Instead, store the tzname copy in the struct tm_zone object.
28340         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
28341         * lib/strftime.c [!_LIBC]:
28342         * lib/time_rz.c: Include time-internal.h.
28343         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
28344         name from *TZ rather than from TZNAME, doable because *TZ now has
28345         a tzname_copy member.
28346         * lib/time-internal.h: New file, with contents taken from
28347         lib/time_rz.c.  It's separate because strftime.c now accesses
28348         struct tm_zone members.
28349         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
28350         New member tzname_copy.
28351         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
28352         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
28353         Initialize tzname_copy member.
28354         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
28355         in tzname_copy member.
28356         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
28357         (restore_tzname): Remove; no longer needed.  All calls removed.
28358         * modules/time_rz (Files): Add lib/time-internal.h.
28360         time: port __need_time_t to MinGW
28361         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
28362         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
28364 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28366         strftime: fix newly-introduced bug on Solaris
28367         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
28368         consistently at the start, rather than doing some of the setup at
28369         the start and some in the %Z format spec.  This is cleaner, and
28370         works better with time_rz on platforms like Solaris where struct
28371         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
28372         mktime_z and localtime_rz can mess up the tzname cache.
28374         test-strftime: test for Solaris bug
28375         * modules/strftime-tests (Depends-on): Add strerror.
28376         * tests/test-strftime.c: Include <errno.h>.
28377         (posixtm_test): New function, containing the old 'main'.
28378         (struct tzalloc_test, struct localtime_rz_test): New types.
28379         (TZ, LT): New static vars.
28380         (tzalloc_test): New function.
28381         (main): Rewrite in terms of posixtm_test and tzalloc_test.
28383         time_rz: port to Solaris etc.
28384         Works around a tzname problem on platforms like Solaris that have
28385         tzname but not tm_zone, by setting tzname at the appropriate time
28386         and restoring it later.
28387         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
28388         New static vars.
28389         (save_abbr) [HAVE_TZNAME]: Set them.
28390         (revert_tz) [HAVE_TZNAME]: Clear or use them.
28391         (restore_tzname): New function.
28392         (localtime_rz, mktime_z): Use it.
28394         time_rz: now LGPL
28395         * modules/time_rz (License): Now LGPL, because strftime depends on it.
28397         time_rz: make a constant 'const'
28398         * lib/time_rz.c (local_tz): Now const.
28400         time_rz: fix off-by-one typo
28401         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
28403 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
28405         fprintftime, strftime: use timezone_t args
28406         * NEWS: Document the change.
28407         * lib/fprintftime.h (fprintftime):
28408         * lib/strftime.c (extra_args) [my_strftime]:
28409         * lib/strftime.h (nstrftime):
28410         Time zone arg is now of type timezone_t, not int.
28411         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
28412         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
28413         (my_strftime) [emacs && !my_strftime]:
28414         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
28415         Remove; Emacs doesn't need this any more.
28416         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
28417         fprintftime and nstrftime to call tzset.
28418         (ut) [!my_strftime]: Remove, replacing with ...
28419         (tz) [!my_stftime]: ... this new macro.  All uses changed.
28420         (strftime_case_): Use localtime_rz and mktime_z instead
28421         of localtime_r and mktime.
28422         * modules/fprintftime (Depends-on): Add time_rz.
28423         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
28424         * tests/test-strftime.c (main): Adjust to new nstrftime API.
28426         time_rz: new module
28427         * MODULES.html.sh: Add time_rz.
28428         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
28429         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
28430         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
28431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
28432         New var HAVE_TIMEZONE_T (default 0).
28433         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
28434         New var GNULIB_TIME_RZ (default 0).
28435         * modules/time (time.h): Substitute the new vars.
28437         flexmember: license is now unlimited
28438         * modules/flexmember (License): Change to unlimited,
28439         since its only source file gives an unlimited license.
28441 2015-07-15  Eric Blake  <eblake@redhat.com>
28443         maint: update copyright paper procedures
28444         * config/srclist.txt: Drop outdated files.
28445         * doc/Copyright/conditions.txt: Update to latest.
28446         * doc/Copyright/assign.changes.manual: Delete.
28447         * doc/Copyright/assign.future.manual: Likewise.
28448         * doc/Copyright/assign.manual: Likewise.
28449         * doc/Copyright/assign.translation.manual: Likewise.
28450         * doc/Copyright/disclaim.changes.manual: Likewise.
28451         * doc/Copyright/disclaim.manual: Likewise.
28452         * doc/Copyright/disclaim.program: Likewise.
28454 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28456         localename: fix link error on Illumos
28457         Illumos defines __sun, but does not have getlocalename_l nor the
28458         equivalent.  This partially reverts commit 387c214.
28459         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
28460         available, as well as uselocale.
28461         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
28462         use getlocalename_l if it is not available.
28464 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28466         unistr/uN-strtok-tests: avoid a trivial leak
28467         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
28468         input and delim after the multibyte delimiter tests.
28470 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
28472         file-has-acl, acl-permissions: fix HP-UX typos
28473         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
28474         * lib/file-has-acl.c (file_has_acl):
28475         * lib/set-permissions.c (context_acl_from_mode)
28476         (context_aclv_from_mode, set_acls):
28477         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
28478         They were introduced by the recent ACL changes.
28480         regex: match current GNU grep behavior
28481         These symbols have not matched GNU grep behavior for quite some time.
28482         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
28483         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
28484         Change to match current GNU behavior.
28485         Simplify by expressing it as differences from POSIX BREs and EREs.
28486         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
28488 2015-07-03  Jim Meyering  <meyering@fb.com>
28490         set-permissions.c: adjust acl_from_mode's cpp guard
28491         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
28492         directives identical to those guarding the sole use.
28493         Otherwise, on some systems, we'd get a warning about
28494         the function being defined but not used.
28495         Also, filter through cppi to correct misleading indentation
28496         of cpp directives.
28498 2015-07-03  Pádraig Brady  <P@draigBrady.com>
28500         tests: restrict shells to those that support 'local'
28501         The local keyword is very widely supported and used
28502         in tests in coreutils and grep at least.  Therefore
28503         restrict to testing with shells that support it.
28504         This mainly excludes /bin/sh on Solaris.
28505         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
28507 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
28508         and Daiki Ueno  <ueno@gnu.org>
28510         unistr/uN-strtok: handle multibyte delimiters
28511         Previously, uN_strtok moved PTR to the next unit to the token end.
28512         When DELIM contained a multibyte character, the new position could
28513         be a middle of a multibyte character.
28514         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
28515         after the token.
28516         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
28517         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
28518         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
28519         * modules/unistr/u8-strtok (Depends-on): Depend on
28520         unistr/u8-strmblen.
28521         * modules/unistr/u16-strtok (Depends-on): Depend on
28522         unistr/u16-strmblen.
28523         * modules/unistr/u32-strtok (Depends-on): Depend on
28524         unistr/u32-strmblen.
28525         * tests/unistr/test-u-strtok.h: New file.
28526         * tests/unistr/test-u8-strtok.c: New file.
28527         * tests/unistr/test-u16-strtok.c: New file.
28528         * tests/unistr/test-u32-strtok.c: New file.
28529         * modules/unistr/u8-strtok-tests: New file.
28530         * modules/unistr/u32-strtok-tests: New file.
28531         * modules/unistr/u16-strtok-tests: New file.
28533 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
28535         update-copyright: fix test failure with perl >= 5.22 (trivial)
28536         * build-aux/update-copyright: Escape a literal left curly bracket,
28537         required with perl >= 5.22
28539 2015-07-02  Daiki Ueno  <ueno@gnu.org>
28541         u{16,32}-strstr-tests: relax timeout condition
28542         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
28543         tests can take longer than 5 seconds to complete.
28544         Reported by Dagobert Michelsen in:
28545         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
28546         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
28547         seconds to 10 seconds.
28548         * tests/unistr/test-u32-strstr.c (main): Likewise.
28550 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
28552         gnulib-common.m4: change the ARFLAGS default to 'cr'
28553         In some GNU/Linux distributions people started to compile 'ar'
28554         binary with --enable-deterministic-archives (binutils project).
28555         That, however, in combination with previous autotools long time
28556         working default AR{_,}FLAGS=cru causes warnings on such
28557         installations:
28558         ar: `u' modifier ignored since `D' is the default (see `U')
28559         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
28560         set already.
28562 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
28564         selinux-h: avoid double free after *getfilecon()
28565         Originally reported by Ben Shelton on bug-tar:
28566         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
28567         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
28568         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
28569         param should be freed by freecon(3) (regardless the return value).
28571 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
28573         fix pty related tests issues on Windows (trivial)
28574         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
28575         however it's still present in tests/ subdirectory of the final project.
28576         Therefore avoid it to pass `make check`.
28577         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
28578         will just return -ENOSYS, so avoid this non applicable test allowing
28579         the build to proceed.
28581 2015-07-01  Pádraig Brady  <P@draigBrady.com>
28583         acl: fix definition of acl_from_mode on FreeBSD
28584         This was causing basic coreutils copy operations to fail
28585         with ENOTSUP or ENOENT error messages.
28586         * lib/acl-internal.h (acl_from_mode): Only define when
28587         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
28588         of acl_from_mode() defined in lib/set-permissions.c to
28589         be used on FreeBSD at least.
28590         * lib/set-permissions.c: Fix up comment spelling,
28591         and a redundant variable assignment; noticed in passing.
28593 2015-06-30  Pádraig Brady  <P@draigBrady.com>
28595         readutmp: port to FreeBSD >= 9
28596         * lib/readutmp.h: Map utmpxname() to setutxdb().
28597         With that coreutils who(1) and pinky(1) tests pass.
28599 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
28601         mgetgroups: port to strict OS X
28602         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
28603         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
28604         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
28605         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
28607 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
28609         mgetgroups: port to strict OS X
28610         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
28611         Document the getgrouplist problem.
28612         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
28613         New macro.
28614         (mgetgroups): Use it.
28615         * m4/mgetgroups.m4 (gl_MGETGROUPS):
28616         Check for OS X signature for getgrouplist.
28618 2015-06-29  Jim Meyering  <meyering@fb.com>
28620         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
28621         It started like this when building coreutils' latest on OS X,
28622         invoking ./configure with a nonempty --cache=.cache:
28624           lib/linkat.c:46:42: error: operator '||' has no right operand
28625           lib/linkat.c: In function 'rpl_linkat':
28626           lib/linkat.c:330:27: error: #if with no expression
28628         Here's linkat.c's line 46:
28630           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
28632         Here's some context:
28634           $ grep linkat_nofoll .cache
28635           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
28636           $ grep LINKAT_SYM lib/config.h
28637           #define LINKAT_SYMLINK_NOTSUP
28639         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
28640         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
28641         but that violates a tenet of AC_CACHE_CHECK: it must
28642         have no side effect other than setting its cache variable.
28644         What happens is that when the cache is set, we'd skip the
28645         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
28646         defined to whatever value it happened to have in configure's
28647         environment.  In my case, it was not defined, so this later code:
28649           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
28650             [Define to 1 if linkat can create hardlinks to symlinks])
28652         would emit code with an empty RHS.
28654         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
28655         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
28657 2015-06-28  Jim Meyering  <meyering@fb.com>
28659         mountlist: avoid an unused-label warning on OS X
28660         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
28661         Building on OS X, I saw a warning about the "free_then_fail" label
28662         being unused.  Give it the _GL_UNUSED_LABEL attribute.
28664         error.c: correct printf-style format: %d -> %u
28665         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
28666         rather than %d, to match the type of "line_number", unsigned int.
28668 2015-06-25  Pádraig Brady  <P@draigBrady.com>
28670         fts: avoid reading beyond the heap allocation
28671         GCC 5.1.1 with -O2 and -fsanitize=address reports
28672         a read of size 4 from a heap object of size 3 is indeed invalid,
28673         though this may be due to incorrect padding assumptions by GCC, see:
28674         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
28675         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
28676         * modules/fts: Depend on stdalign.
28678 2015-06-24  Pádraig Brady  <P@draigBrady.com>
28680         savedir: avoid undefined behavior in qsort call
28681         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
28682         "runtime error: null pointer passed as argument 1,
28683          which is declared to never be null"
28684         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
28686 2015-06-24  Pádraig Brady  <P@draigBrady.com>
28688         userspec: avoid undefined behavior in gettext call
28689         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
28690         "runtime error: null pointer passed as argument 2,
28691          which is declared to never be null"
28692         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
28694 2015-06-20  Glenn Morris  <rgm@gnu.org>
28696         gitlog-to-changelog: improve gitmerge.el commits
28697         Let the Emacs ChangeLog generation process exclude "skipped"
28698         messages from merge commits (Bug#20717).
28699         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
28701 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
28703         wchar: fix MinGW compilation warnings
28704         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
28705         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
28706         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
28708 2015-06-20  Daiki Ueno  <ueno@gnu.org>
28710         uniname/uniname-tests: use pristine data files
28711         For copyright and maintenance reasons, use the data files from UCD
28712         without modification.
28713         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
28714         (getfield): Remove.
28715         (aliases_count): New global variable.
28716         (fill_names): Skip comments and empty lines in the input.  Don't
28717         use getfield.
28718         (fill_aliases): Likewise.
28719         (main): Change the expected command line arguments to:
28720         NAMES... ["--" ALIASES...].
28721         * tests/uniname/test-uninames.sh: Adjust to the change in
28722         test-uninames.c.
28723         * tests/uniname/UnicodeDataNames.txt: Remove.
28724         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
28725         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
28726         file from Unicode 8.0.0.
28728 2015-06-19  Pádraig Brady  <P@draigBrady.com>
28730         linked-list, linkedhash-list: avoid compiler warnings
28731         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28732         -Werror=suggest-attribute=pure (from GCC 5.1.1).
28734 2015-06-19  Daiki Ueno  <ueno@gnu.org>
28736         libunistring: bump minimum version to 0.9.6
28737         * all modules depending on updated Unicode data: Regenerate.
28738         The modules are listed by a script that does:
28739         - for each file listed by: git show --oneline --name-only 705f4efc
28740           - deduce the containing modules, based on "Files:"
28741         - deduce the modules which depend on the containing modules, based
28742           on "Depends-on:"
28744 2015-06-18  Daiki Ueno  <ueno@gnu.org>
28746         uniname/uniname: update to Unicode 8.0.0
28747         * lib/uniname/uninames.h: Regenerate.
28748         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
28749         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
28751 2015-06-18  Daiki Ueno  <ueno@gnu.org>
28753         libunistring: update to Unicode 8.0.0
28754         * lib/gen-uni-tables.c (SIZEOF): New macro.
28755         (output_numeric): Increase the maximum number of fractions from
28756         128 to 160.  Increase the level3 value width from 7 bits to 8
28757         bits.  Use SIZEOF instead of a hard-coded integer.
28758         (output_blocks): Decrease the cut-off threshold from 0x30000 to
28759         0x28000.
28760         (fill_blocks): Increase the maximum number of blocks from 256 to
28761         384.  Use SIZEOF instead of a hard-coded integer.
28762         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
28763         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
28764         value width.
28765         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
28766         a new case added to LBP22.
28767         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
28768         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
28769         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
28770         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
28771         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
28772         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28773         lib/uniwidth/width.c.
28774         * all generated files under lib/uni* and tests/uni*: Regenerate.
28776 2015-06-16  Pádraig Brady  <P@draigBrady.com>
28778         gnu-web-doc-update: add --mirror to remove stale files
28779         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
28780         out of date files from the CVS server.  Since this is usually
28781         appropriate, a prompt is given when the option is not specified,
28782         along with the `cvs remove` command that would be run.
28784 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
28786         acl-permissions: pacify -Wsuggest-attribute=const
28787         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
28788         * lib/acl-internal.h (free_permission_context):
28789         Declare with attribute const if ! (defined USE_ACL &&
28790         (HAVE_ACL_GET_FILE || defined GETACL)).
28792         fsync: document AIX misbehavior
28793         * doc/posix-functions/fsync.texi (fsync):
28794         Document failure on AIX with read-only file descriptor.
28796 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
28798         stdio: Don't redefine gets when using C++
28799         * lib/stdio.in.h (gets): Disable warning on C++.
28801 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
28803         acl-permissions: port to AIX, C89 HP-UX
28804         Problems reported by Michael Felt.
28805         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
28806         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
28807         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
28808         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
28809         Add cast for AIX, whose system calls are declared to accept
28810         char * even though the arguments are really char const *.
28811         * lib/get-permissions.c (get_permissions):
28812         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
28813         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
28814         that broke a build.
28815         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
28816         Rework types to pacify xlc.
28818 2015-06-03  Pádraig Brady  <P@draigBrady.com>
28820         vasprintf-posix: avoid compiling vasnprintf where possible
28821         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
28822         module where not required.  For example on a GNU/Linux system
28823         when gnulib-tool is run with the --conditional-dependencies option.
28825 2015-06-02  Pádraig Brady  <P@draigBrady.com>
28827         file-has-acl: fix build on Mac OS X 10
28828         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
28829         which has an incompatible 6 parameter getxattr() call.
28830         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
28831         call on Mac OS X >= 10.4.
28832         * doc/glibc-functions/fgetxattr.texi: Likewise.
28833         * lib/file-has-acl.c: Revert to more complete combined check.
28834         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
28835         Reported by Jack Howarth.
28837 2015-06-02  Pádraig Brady  <P@draigBrady.com>
28839         prefix-gnulib-mk: remove no longer needed special case
28840         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
28841         continued lib_SOURCES lines are no longer present,
28842         so special case handling of such entries is not required.
28844 2015-06-01  Pádraig Brady  <P@draigBrady.com>
28846         acl: don't depend on the deprecated qacl module
28847         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
28849 2015-06-01  Pádraig Brady  <P@draigBrady.com>
28851         gnulib-tool: concatenate lib_SOURCES to a single line
28852         * gnulib-tool: Refactor the line merging sed logic,
28853         and use that to output a single lib_SOURCES line for each module.
28854         gnulib using projects often postprocess this output to prepend
28855         subdir paths to each item, and having a single line simplifies this
28856         processing allowing better decoupling from the gnulib-tool output.
28858 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
28860         pthread_sigmask: discount system version if a simple macro (trivial)
28861         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
28862         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
28863         function to ensure it's available.
28865 2015-05-31  Pádraig Brady  <P@draigBrady.com>
28867         readlinkat: avoid OS X 10.10 trailing slash bug
28868         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
28869         has this bug.
28870         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
28871         that OS X 10.10 has this function.
28872         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
28873         as done for readlink().
28874         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
28875         trailing slash bug, and assume readlinkat() has the same issue.
28876         Also fix a typo where $gl_cv_decl_readlink_works was tested,
28877         rather than the correct $gl_cv_decl_readlinkat_works.
28879 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
28881         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
28882         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
28883         module rewrite.
28885         acl-permissions: Fix build on Solaris and Cygwin
28886         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
28887         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
28888         ace_entries variables have moved into struct permission_context but
28889         they were still accessed as local variables here.
28891 2015-05-29  Pádraig Brady  <P@draigBrady.com>
28893         linkat: avoid OS X 10.10 trailing slash with symlink bug
28894         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
28895         causes the symlink to be dereferenced, and if it points
28896         to a non existent file, that file will be created as
28897         a hard link to "path1".
28898         This fixes a test failure in test-linkat.c.
28899         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
28900         this case.  The existing workaround in linkat.c for
28901         trailing slash issues, suffices for this case.
28902         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
28903         the list of platforms with trailing slash issues.
28905 2015-05-28  Pádraig Brady  <P@draigBrady.com>
28907         unlinkat: handle ignoring of ".." on Darwin 14
28908         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
28909         on Mac OS X 10.10, where it ignores paths with a trailing "..",
28910         so handle in the same manner.
28911         * m4/unlinkat.m4: Comment on this Darwin issue.
28912         * doc/posix-functions/unlink.texi: Update the latest version
28913         where the issue was seen.
28914         * doc/posix-functions/unlinkat.texi: Mention this issue.
28915         Fixes a test failure in test-unlinkat.c.
28917 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28919         qacl: split into qcopy-acl and qset-acl
28920         Emacs needs the former, but not the latter.
28921         * modules/acl-permissions: New file, containing most of the old qacl.
28922         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
28923         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
28924         * modules/qcopy-acl, modules/qset-acl: New files.
28925         * MODULES.html.sh (File system functions):
28926         Mention the new modules, and mention qacl while we're at it.
28928 2015-05-27  Glenn Morris  <rgm@gnu.org>
28930         gitlog-to-changelog: new option --ignore-line
28931         (This patch is imported from the GNU Emacs master.)
28932         This option ignores individual commit lines matching a pattern.
28933         * build-aux/gitlog-to-changelog: Add --ignore-line option.
28935 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
28937         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
28938         Implement get_permissions and set_permissions primitives for getting all
28939         the permissions of a file, storing them, and later setting them. (In the
28940         minimal case, the permissions consist only of a file mode.) Reimplement
28941         qset_acl and qcopy_acl based on these new primitives: this avoids code
28942         duplication and makes error handling more consistent.
28943         The Solaris and Cygwin code still uses duplicate code paths for setting
28944         a file mode while making sure that no acls exist and setting an explicit
28945         acl; this is no worse than before, but could be cleaned up.  The AIX
28946         code still doesn't read ACLs, it only makes sure that acls don't get in
28947         the way when setting a file mode.
28948         * lib/acl-internal.h (struct permission_context): New data structure.
28949         (get_permissions, set_permissions, free_permission_context): Declare.
28950         * lib/acl-internal.c (free_permission_context): New helper function.
28951         * lib/get-permissions.c (get_permissions): New helper function split off
28952         from qcopy_acl.
28953         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
28954         AIX, set a file's permissions based only on a file mode.
28955         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
28956         other platforms construct a temporary acl from the file mode and set
28957         that acl in the same way as setting an acl read from the source file.
28958         This should help avoid code duplication and inconsistent / buggy
28959         behavior.
28960         (set_acls): New helper function Split off from qcopy_acl.
28961         (chmod_or_fchmod): Moved here from qset-acl.c.
28962         (set_permissions): New helper function.
28963         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
28964         set_permissions.
28965         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
28966         * modules/qacl: Add get-permissions.c and set-permissions.c.
28968         file-has-acl: Split feature tests again (Bug#20667)
28969         * lib/file-has-acl.c: Instead of testing for
28970         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
28971         define them when needed.
28972         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
28973         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
28975 2015-05-27  Pádraig Brady  <P@draigBrady.com>
28977         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
28978         This avoids a conflict with "FORTIFY_SOURCE" variants
28979         of the string functions when they're replaced on NetBSD-6.0.1
28980         and Darwin-14.3.0 at least.
28981         * lib/string.in.h: Avoid including our "lib/string.h" while
28982         including the system <string.h>.
28984 2015-05-26  Eric Blake  <eblake@redhat.com>
28986         stdio: limit __gnu_printf__ witness to gcc 4.4+
28987         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
28988         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
28990         error: use correct printf attributes on mingw
28991         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
28993         inttypes: force correct mingw PRIdMAX even without <stdio.h>
28994         * modules/inttypes (Depends-on): Require extensions, so that mingw
28995         always uses GNU style inttypes.
28996         * lib/inttypes.in.h: On mingw, include <stdio.h>.
28998         stdio: fix probe on mingw under gcc 5.1
28999         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
29000         around new gcc preprocessor rules.
29002 2015-05-07  Glenn Morris  <rgm@gnu.org>
29004         gitlog-to-changelog: parse "Tiny-change"
29005         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
29006         "Copyright-paperwork-exempt".  (Bug#20324)
29008 2015-05-06  Pádraig Brady  <P@draigBrady.com>
29010         doc: document glibc posix_fallocate() issues
29011         * doc/posix-functions/posix_fallocate.texi: Mention the
29012         glibc efficiency problems and issues with NFS.
29014 2015-05-05  Karl Berry  <karl@freefriends.org>
29016         * build-aux/gendocs.sh (usage): document new css default
29017         for HTML (--htmlarg).
29019 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29021         extern-inline: no need for workaround in GCC 5.1
29022         * doc/extern-inline.texi (extern inline):
29023         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
29024         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
29025         around these bugs in GCC 5.1 and later.  Maybe in a decade or
29026         two we can remove these workarounds.
29028 2015-04-28  Pádraig Brady  <P@draigBrady.com>
29030         eealloc, pagealign_alloc, xalloc: avoid clang warnings
29031         Avoid [-Wunknown-attributes] warnings like:
29032         warning: unknown attribute '__alloc_size__' ignored
29033         * lib/xalloc.h: Don't use the __alloc_size__  attribute
29034         with clang, as support has been fully removed as of clang 3.5:
29035         https://github.com/llvm-mirror/clang/commit/c047507a
29036         * lib/eealloc.h: Likewise.
29037         * lib/pagealign_alloc.h: Likewise.
29039 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29041         tests: pacify GCC 5.1's stricter printf checking
29042         * tests/test-dirname.c (main):
29043         * tests/test-getaddrinfo.c (simple):
29044         * tests/test-getlogin.c (main):
29045         * tests/test-getndelim2.c (main):
29046         * tests/test-inttostr.c (CK):
29047         * tests/test-md5.c (main):
29048         * tests/test-read-file.c (main):
29049         * tests/test-sha1.c (main):
29050         Fix mismatches between printf format and value signedness.
29051         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
29052         Remove, as CAST_VAL always returned a value of type uintmax_t.
29054         fts: port to GCC 5.1 with --enable-gcc-warnings
29055         Without this fix, GCC 5.1 (correctly) warns about a subscript
29056         error on the fts_name component of FTSENT.  It's actually a
29057         flexible member, so define it that way on C99 or later hosts.
29058         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
29059         structure that now has a flexible array member.
29060         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
29061         (FTSENT): fts_name is now flexible on C99-or-later platforms.
29062         * modules/fts (Depends-on): Add flexmember.
29064 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
29066         file-has-acl: port to CentOS 6
29067         Problem reported by Tom G. Christensen in:
29068         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
29069         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
29070         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
29071         HAVE_GETXATTR.
29072         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
29073         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
29074         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
29075         file-has-acl.c actually needs.
29077 2015-04-26  Pádraig Brady  <P@draigBrady.com>
29079         file-has-acl: always return false when ACLs aren't supported
29080         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
29081         change the GNU/Linux getxattr path, to transform "not supported"
29082         errors to a false return rather than an error.  This is handled
29083         within file_has_acl() due to the platform specific tests to
29084         determine if ACLs are not supported.
29086 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
29088         gettext: propagate po/Makefile.in.in too
29089         * build-aux/po/Makefile.in.in: Copy from latest gettext.
29090         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
29091         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
29092         between Makefile.in.in and the gettext-runtime m4 files.
29094 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29096         file-has-acl: new module, split from acl
29097         And add a new module file-has-acl-tests to match.
29098         I ran into a problem with the recent changes to the acl module,
29099         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
29100         When using the fixed version with Emacs, I discovered that
29101         file-has-acl wasn't separated out well enough for Emacs (e.g., it
29102         had multiple libraries, but needed only one), so I fixed that too.
29103         * NEWS: Document this incompatible change.
29104         * modules/file-has-acl, modules/file-has-acl-tests: New files.
29105         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
29106         Initialize gl_need_lib_has_acl.
29107         (gl_FUNC_ACL): Require it.
29108         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
29109         Move the file-has-acl.c-relevant stuff to ...
29110         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
29111         use_xattrs = 0' typo, and omit some needless work.  Set
29112         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
29113         when gl_FUNC_ACL is called.
29114         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
29115         (Link): Remove $(LIB_HAS_ACL).
29116         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
29117         (check_PROGRAMS): Move stuff relevant to file-has-acl to
29118         modules/file-has-acl-tests.
29119         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
29121         manywarnings: add GCC 5.1 warnings
29122         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
29123         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
29124         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
29125         -Wsuggest-override, -Wuse-without-only.  Change
29126         -Wnormalized=... operands to match 5.1.
29127         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
29128         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
29129         -Wdiscarded-qualifiers, -Wformat-signedness,
29130         -Wincompatible-pointer-types, -Wint-conversion,
29131         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
29132         -Wshift-count-negative, -Wshift-count-overflow,
29133         -Wsizeof-array-argument, -Wsuggest-final-methods,
29134         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
29135         and add -Warray-bounds=2 as a special case.
29137 2015-04-21  Simon Josefsson  <simon@josefsson.org>
29139         doc: update FDL template to match FDL examples.
29140         * doc/alloca-opt.texi:
29141         * doc/alloca.texi:
29142         * doc/c-ctype.texi:
29143         * doc/c-strcase.texi:
29144         * doc/c-strcaseeq.texi:
29145         * doc/c-strcasestr.texi:
29146         * doc/c-strstr.texi:
29147         * doc/c-strtod.texi:
29148         * doc/c-strtold.texi:
29149         * doc/ctime.texi:
29150         * doc/error.texi:
29151         * doc/gcd.texi:
29152         * doc/gnulib-tool.texi:
29153         * doc/inet_ntoa.texi:
29154         * doc/intprops.texi:
29155         * doc/lib-symbol-visibility.texi:
29156         * doc/maintain.texi:
29157         * doc/parse-datetime.texi:
29158         * doc/quote.texi:
29159         * doc/regexprops-generic.texi:
29160         * doc/standards.texi: Remove spurious 'with' in FDL license
29161         template.
29163 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
29165         lstat: fix cross-compilation 'ln -s' problem
29166         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
29167         Have the test program call 'symlink' rather than a separate
29168         script run 'ln -s'; this is more likely to work in
29169         cross-compilation environments.  Reported by Pavel Fedin in:
29170         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
29172 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
29174         gendocs.sh: default to a common CSS style sheet for HTML output
29175         * build-aux/gendocs.sh (htmlarg): Change default value.
29177 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
29179         gnulib-tool: output bold attribute more portably
29180         * gnulib-tool (func_show_module_list): Change hexadecimal
29181         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
29182         encoded numbers as arguments to `printf' is not portable,
29183         and is not claimed by POSIX.  This is the case with FreeBSD.
29185 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29187         qacl: Simplify HP-UX acl_nontrivial check
29188         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
29189         acl_nontrivial. Check if the acl has at most three entries instead (it must
29190         have exactly three entries according to the HP-UX documentation). Ignore
29191         uids and gids as long as an entry is either for a user (i.e., the owner),
29192         a group (i.e., the owning group), or others.
29193         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
29194         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
29196 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
29198         acl: On Linux, check for acls without libacl
29199         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
29200         library function to check for the presence of acls, avoiding a library.
29201         * lib/file-has-acl.c: Include xattr headers if we have them.
29202         (file_has_acl): On Linux, use getxattr().
29203         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
29204         file_has_acl(). Check for xattr headers and getxattr().
29206 2015-04-14  Ángel González  <keisial@gmail.com>
29208         tempname: avoid unused parameter warnings (trivial)
29209         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
29210         (try_nocreate): Likewise.
29212 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
29214         fseeko: fix build failure on NetBSD >= 6 (trivial)
29215         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
29216         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
29218 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29220         gitlog-to-changelog: port to MS-Windows
29221         * build-aux/gitlog-to-changelog (git_dir_option):
29222         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
29223         MS-Windows Perl.  Reported by Eli Zaretskii in:
29224         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
29226 2015-04-07  Karl Berry  <karl@gnu.org>
29228         gendocs: new option --tex for passing args to texi2dvi.
29229         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
29230         (TEXI2DVI): cut to just command name.
29231         (usage): mention new option, and update copyright.
29232         <generate_tex>: use it.
29234 2015-04-07  Karl Berry  <karl@gnu.org>
29236         * config/srclistvars.sh (GETTEXT): new definition.
29237         * config/srclist.txt: use it for gettext .m4 files.
29238         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
29239         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
29240         and continuing into April.
29242 2015-04-07  Daiki Ueno  <ueno@gnu.org>
29244         uniname/uniname-tests: fix failure due to alias
29245         Reported by Jack Howarth in:
29246         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
29247         * tests/uniname/test-uninames.c (name_has_alias): New function.
29248         (test_inverse_lookup): Exclude character name with valid alias,
29249         from randomly generated character names.
29250         (main): Fill unicode_aliases before calling test functions.
29252 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
29254         hash: remove deprecated hash_insert0 function
29255         * lib/hash.h (hash_insert0): Remove deprecated function.
29256         * lib/hash.c (hash_insert0): Likewise.
29258 2015-04-02  Pádraig Brady  <P@draigBrady.com>
29260         mountlist: remove dependency on libmount
29261         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
29262         directly, rather than depending on libmount, which has many
29263         dependencies due to its dependence on libselinux, as detailed at:
29264         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
29265         Note we restrict this to __linux__ as that's probably where this
29266         interface will remain.  If ever porting, it would be best
29267         to first pull the makedev() wrapper from coreutils to a gnulib module.
29268         Note also we don't add a getline dependency to the mountlist module,
29269         as all Linux versions are sufficient.
29271 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29273         stddef: port to pre-C11 GCC on x86
29274         On this platform, max_align_t should have an alignment of 8 even
29275         though the storage alignments of double, long, etc. max out at 4.
29276         Inspired by a comment of Andreas Schwab's here:
29277         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
29278         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
29279         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
29280         * tests/test-stddef.c: Test __alignof__ too, if available.
29282 2015-03-24  Pádraig Brady  <P@draigBrady.com>
29284         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
29285         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
29287 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
29289         yesno: make EOL optional in ENABLE_NLS case also (trival)
29290         * lib/yesno.c (yesno): Check for EOL before replacing.
29291         * tests/test-yesno.sh: Add a test case (test along with gettext).
29293 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29295         fdopendir-tests: test it does not close its arg
29296         * tests/test-fdopendir.c (main): Test that fdopendir does not
29297         close its argument.  From a suggestion by David Grayson in:
29298         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
29300 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
29302         gitlog-to-changelog: trim trailing white space
29303         * build-aux/gitlog-to-changelog (main):
29304         Trim trailing white space from commit message lines.
29305         This is helpful for processing the GNU Emacs repository,
29306         which dates back to 1985 and contains a lot of such lines.
29308         gitlog-to-changelog: new option --ignore-matching
29309         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
29310         Support new option --ignore-matching=PAT, which ignores all
29311         commit messages whose first line matches PAT.
29313 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29315         fdopendir: port better to MinGW
29316         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
29317         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
29318         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
29319         * modules/fdopendir (Depends-on): Add dirfd.
29321 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
29323         fdopendir: fix typo in comment
29324         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
29326 2015-03-09  Eric Blake  <eblake@redhat.com>
29328         error: document all entry points provided
29329         * doc/glibc-functions/error_print_progname.texi
29330         (error_print_progname): Mention the error module.
29331         * doc/glibc-functions/error_at_line.texi (error_at_line):
29332         Likewise.
29333         * doc/glibc-functions/error_message_count.texi
29334         (error_message_count): Likewise.
29335         * doc/glibc-functions/error_one_per_line.texi
29336         (error_one_per_line): Likewise.
29338 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
29340         vasnprintf: pacify clang 3.5.0
29341         Problem reported by Werner Lemberg in:
29342         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
29343         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
29344         The casts aren't needed, since the characters in question are ASCII.
29346 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
29348         glob, etc.: port to MSVC v18 on MS-Windows 8.1
29349         * lib/dirent--.h (GNULIB_defined_opendir):
29350         * lib/dirent.in.h (GNULIB_defined_opendir)
29351         (GNULIB_defined_closedir):
29352         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
29353         #undef only if Gnulib defined it.
29355         poll: port to MSVC v18 on MS-Windows 8.1
29356         Problem reported by Gisle Vanem in:
29357         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
29358         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
29359         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
29360         Add sys_socket.
29362 2015-02-24  Pádraig Brady  <P@draigBrady.com>
29364         tests: support stderr verification with returns_()
29365         * tests/init.sh (returns_): Disable tracing for this wrapper
29366         function, so that stderr of the wrapped command is unchanged,
29367         allowing for verification of the contents.
29369 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
29371         passfd: avoid valgrind uninitalised data warning
29372         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
29373         to include just the fd we've initialized, rather than including
29374         the extra space used for alignment.
29376 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29378         uniwbrk/u32-wordbreaks-tests: fix copyright
29379         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
29381         dup2: doc and test for Android bug
29382         Reported by Kevin Cernekee in:
29383         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
29384         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29385         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
29387 2015-02-23  Kevin Cernekee  <cernekee@google.com>
29389         Replace dup2() on Android
29390         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
29391         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
29392         fails.  Using rpl_dup2() fixes this because it has an explicit test
29393         for this condition.
29395 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
29397         Android doesn't define RLIM_SAVED_*
29398         Portability problem reported by Kevin Cernekee in:
29399         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
29400         * doc/posix-headers/sys_resource.texi (sys/resource.h):
29401         Mention the portability problem.
29402         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
29403         Define if not defined.
29404         * m4/dup2.m4 (gl_FUNC_DUP2):
29405         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29406         Likewise.
29408 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
29410         vasnprintf-posix-tests: use consistent test
29411         * tests/test-vasnprintf-posix.c (test_function):
29412         Use "<" in assert instead of "<=", for consistency with other tests.
29414 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29416         printf, isinf, etc.: noncanonical != NaN
29417         Do not require that isinf, printf, etc. treat noncanonical
29418         values as NaNs.  Instead, require only that they do not crash.
29419         Problem reported by Joseph Myers in:
29420         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
29421         * doc/posix-functions/dprintf.texi (dprintf):
29422         * doc/posix-functions/fprintf.texi (fprintf):
29423         * doc/posix-functions/isfinite.texi (isfinite):
29424         * doc/posix-functions/isinf.texi (isinf):
29425         * doc/posix-functions/isnan.texi (isnan):
29426         * doc/posix-functions/printf.texi (printf):
29427         * doc/posix-functions/snprintf.texi (snprintf):
29428         * doc/posix-functions/sprintf.texi (sprintf):
29429         * doc/posix-functions/vdprintf.texi (vdprintf):
29430         * doc/posix-functions/vfprintf.texi (vfprintf):
29431         * doc/posix-functions/vprintf.texi (vprintf):
29432         * doc/posix-functions/vsnprintf.texi (vsnprintf):
29433         * doc/posix-functions/vsprintf.texi (vsprintf):
29434         Document this.
29435         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
29436         * m4/isinf.m4 (gl_ISINFL_WORKS):
29437         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
29438         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
29439         * tests/test-isfinite.c (test_isfinitel):
29440         * tests/test-isinf.c (test_isinfl):
29441         * tests/test-isnan.c (test_long_double):
29442         * tests/test-isnanl.h (main):
29443         * tests/test-snprintf-posix.h (test_function):
29444         * tests/test-sprintf-posix.h (test_function):
29445         * tests/test-vasnprintf-posix.c (test_function):
29446         * tests/test-vasprintf-posix.c (test_function):
29447         Test only that noncanonical values do not cause crashes, not that
29448         they are treated as NaNs.  In some cases this means a larger
29449         output buffer is needed.
29451 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
29453         fts: remove redundant close() (trivial)
29454         * lib/fts.c (fts_read): Remove redundant call to close().
29455         Spotted by coverity.
29457 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29459         getdtablesize: port better for Android
29460         Problem reported by Kevin Cernekee in:
29461         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
29462         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
29463         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
29464         Instead, just use getrlimit, taking care to avoid Cygwin bug.
29466         poll: fixes for large fds
29467         * lib/poll.c (poll): Don't check directly for NFD too large.
29468         Don't rely on undefined behavior in FD_SET when an arg exceeds
29469         FD_SETSIZE.  Always set revents afterwards, even if to zero.
29470         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
29471         as that makes the test a bit stricter.
29473 2015-02-19  Kevin Cernekee  <cernekee@google.com>
29475         fcntl: Fix cross compiling
29476         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
29477         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
29479 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
29481         dup2, fcntl: cross-compile better for Android
29482         Problem reported by Kevin Cernekee in:
29483         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
29484         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
29485         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
29486         there's little need to cross-compile for older kernels nowadays.
29487         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
29488         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
29490 2015-02-18  Pádraig Brady  <P@draigBrady.com>
29492         getopt: don't crash on memory exhaustion
29493         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
29494         memory exhaustion.  In the _LIBC case we use alloca() as is
29495         already done in glibc, so we don't need to consider the separate
29496         error path in that awkward case.  Also fix a memory leak when
29497         ambiguous options are present.
29498         Reported by Tobias Stoeckmann
29500 2015-02-17  Mike Miller  <mtmiller@ieee.org>
29502         tempname: allow compilation with C++ (trivial)
29503         * lib/tempname.h [C++]: Specify extern "C" linkage.
29504         * lib/tempname.h (try_tempname):
29505         * lib/tempname.c (__try_tempname, __gen_tempname):
29506         Rename 'try' to 'tryfunc'.
29508 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
29510         dup2, fcntl: port to AIX
29511         * m4/dup2.m4 (gl_FUNC_DUP2):
29512         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29513         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
29514         The former works on AIX 7.1 but the latter does not.
29515         Also, this may work better with Android; see:
29516         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
29518 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
29520         getdtablesize, dup2, fcntl: port to Android
29521         Problem reported by Kevin Cernekee in:
29522         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
29523         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
29524         Mention that getdtablesize doesn't work on Android.
29525         * lib/getdtablesize.c: Use getrlimit substitute only if
29526         getdtablesize is declared.  This should suffice for Cygwin
29527         while not breaking Android.
29528         * m4/dup2.m4 (gl_FUNC_DUP2):
29529         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29530         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
29531         standardized but the latter is not, and sysconf works on Android.
29532         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
29533         Also check that getdtablesize is declared.
29534         This removes the need for a special case for Android.
29536 2015-02-16  Kevin Cernekee  <cernekee@google.com>
29538         localename: Implement gl_locale_name_thread_unsafe for Android
29539         * lib/localename.c: Android API level >= 21 supports two hardcoded
29540         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
29541         the internal __locale_t struct.
29543 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
29545         fts: avoid crash when a cycle is added while traversing
29546         This could be triggered by auto-mounting a recursive bind mount.
29547         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
29548         * lib/fts.c (fts_read): Avoid removing the original hash table item
29549         when leaving a directory that caused a cycle, and preserve the FTS_DC
29550         flag.
29552 2015-02-16  Daiki Ueno  <ueno@gnu.org>
29554         uniname/uniname: support character alias
29555         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
29556         Generate one-way mapping from aliases to codepoints in the
29557         generated tables.  Special case variation selectors to reduce
29558         table size.
29559         * lib/uniname/uniname.c (unicode_character_name): Special case
29560         variation selectors.
29561         (unicode_name_character): Special case variation selectors and
29562         their aliases.
29563         * lib/uniname/uninames.h: Regenerate.
29564         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
29565         * modules/uniname/uniname-tests (Files): Add
29566         tests/uniname/NameAliases.txt.
29567         * tests/uniname/test-uninames.c: Mark as static.
29568         (ALIASLEN): Define.
29569         (struct unicode_alias): New struct.
29570         (unicode_aliases): New variable.
29571         (fill_aliases): New function.
29572         (test_alias_lookup): New test function.
29573         (main): Run the 'test_alias_lookup' test if the second argument is
29574         given.
29575         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
29576         second argument.
29578 2015-02-11  Kevin Cernekee  <cernekee@google.com>
29580         Fix FILE struct compatibility with Android API level >= 21
29581         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
29582         __sferror.  Recent versions of Bionic's stdio.h no longer define
29583         __sferror.
29584         * lib/fbufmode.c: Likewise.
29585         * lib/fflush.c: Likewise.
29586         * lib/fpurge.c: Likewise.
29587         * lib/freadable.c: Likewise.
29588         * lib/freadahead.c: Likewise.
29589         * lib/freading.c: Likewise.
29590         * lib/freadptr.c: Likewise.
29591         * lib/freadseek.c: Likewise.
29592         * lib/fseeko.c: Likewise.
29593         * lib/fseterr.c: Likewise.
29594         * lib/fwritable.c: Likewise.
29596         Assume unbroken ungetc() on Android
29597         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
29598         test case passed when running on an Android host, and the code
29599         hasn't really changed since 2009.
29601         getdtablesize: Fix Android build
29602         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
29603         versions have this symbol in the .so library (at least 32-bit
29604         platforms) but are missing the declaration in the header file,
29605         causing the m4 logic to guess incorrectly.
29607         localename: Fix Android build
29608         * modules/localename (Depends-on): Add langinfo.
29610         getugroups: Fix Android build
29611         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
29612         functions.
29614         euidaccess: Fix Android build
29615         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
29616         AT_EACCESS gets declared.
29618         linkat_nofollow: Add fallback case for cross compiling
29619         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
29621         net_if: Handle content-free <net/if.h> system headers
29622         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
29623         struct if_nameindex.  If not, enable the replacement header.
29625         signal_h: Fix Android build
29626         * lib/signal.in.h: Add Android to the list of platforms that declare
29627         pthread_sigmask() in <pthread.h> instead of <signal.h>.
29629         duplocale: Fix Android build of duplocale-tests
29630         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
29631         is included by test-duplocale.c (but not by duplocale.c).
29632         * modules/duplocale-tests (configure.ac): Check for monetary.h.
29633         * tests/test-duplocale.c: Skip test if monetary.h is absent.
29634         * doc/posix-headers/monetary.texi: Add Android to the list of
29635         platforms missing monetary.h.
29637 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29639         tests: avoid recent -Werror=unused-variable regression in test-locale
29640         * tests/test-locale.c (main): Reference the variable to avoid the
29641         "unused variable" warning.
29643 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29645         maint: various whitespace cleanups in tempname
29646         * lib/tempname.c: Normalize spacing and line length.
29647         * lib/tempname.h: Likewise.
29648         * modules/tempname: Likewise.
29650 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29652         tests: provide returns_() to simplify exit status checking
29653         * tests/init.sh (returns_): A new function for use in tests,
29654         to allow for easier checking of return values, where you expect
29655         a command to exit with failure status.  By checking for a particular
29656         exit code, you don't hide any crashes for example.
29658 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29660         mountlist: only use libmount when specified
29661         There are currently many shared libs dependencies introduced by
29662         libmount with associated runtime and virt mem overhead.
29663         Therefore don't enable by default.
29664         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
29666 2015-02-08  Daiki Ueno  <ueno@gnu.org>
29668         uniname/unimame-tests: don't link with -lunistring
29669         * modules/uniname/uniname-tests (Makefile.am): Don't link against
29670         $(LIBUNISTRING).  Document the rationale why we need to
29671         conditionalize the test.
29673 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
29675         fstrcmp: don't assume strlen < INT_MAX
29676         * lib/fstrcmp.c: Include stddef.h and stdint.h.
29677         (uintptr_t): Remove, as we're now assuming stdint.
29678         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
29679         Prefer ptrdiff_t to int when the value could exceed INT_MAX
29680         if the input string is long.
29681         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
29682         uintptr_t to size_t when the underlying value is a pointer casted
29683         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
29684         * modules/fstrcmp (Depends-on): Add stdint.
29686         diffseq: prefer ptrdiff_t to ssize_t
29687         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
29688         ptrdiff_t is the natural type for signed indexes.
29689         On a few older platforms, ssize_t is narrower than size_t.
29691         xalloc: fix typo that suppressed warnings
29692         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
29693         This typo, introduced a couple of years ago, mistakenly suppressed
29694         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
29695         -Wmissing-declarations warnings.
29697         full-read: fix license notice typo
29698         * lib/full-read.h: Remove a stray line in the license notice.
29699         Reported by Sam Ellis in: http://bugs.gnu.org/19808
29701         crypto/gc: fix a -Wswitch warning
29702         Reported by Bruce Korb in:
29703         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
29704         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
29706 2015-02-03  Pádraig Brady  <P@draigBrady.com>
29708         gnulib-tool: fix handling of patch(1) diagnostics
29709         * gnulib-tool: Send diagnostics from patch(1) to stderr,
29710         as otherwise gnulib-tool will reparse that output and attempt
29711         to lookup modules.
29713 2015-02-03  Pádraig Brady  <P@draigBrady.com>
29715         bootstrap: exit immediately upon gnulib-tool failure
29716         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
29717         This was noticed when gnulib-tool exited early due to failure
29718         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
29719         but various confusing errors were then given as the build proceeded.
29721 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
29723         symlinkat: include all required header files
29724         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
29725         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
29726         Reported at https://savannah.gnu.org/bugs/index.php?44151
29727         and by Jack Howarth.
29729 2015-01-29  Pádraig Brady  <P@draigBrady.com>
29731         localename: support Solaris 12 and illumos
29732         * lib/localename.c (gl_locale_name_thread_unsafe): call
29733         getlocalename_l() on newer __sun platforms.
29734         Reported by Alexander Pyhalov.
29735         Fix suggested by Rich Burridge.
29737 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
29739         locale: fix tests on illumos (trivial)
29740         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
29741         so move from global scope to main().
29743 2015-01-24  Daiki Ueno  <ueno@gnu.org>
29745         unictype: avoid undefined left-shift behavior
29746         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
29747         gcc's -fsanitize=shift and running its tests triggered:
29748           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
29749             places cannot be represented in type 'int'
29750         Cast LHS to 'unsigned int' after integer promotion.
29751         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
29752         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
29754 2015-01-20  Daiki Ueno  <ueno@gnu.org>
29756         libunistring: bump version of unitypes dependants
29757         Due to the header file search order, all the headers which depend
29758         on unitypes.h need to be generated, when the preinstalled
29759         libunistring is older.
29760         * modules/unicase/base (configure.ac): Bump minimum version to
29761         0.9.4.
29762         * modules/uniconv/base (configure.ac): Likewise.
29763         * modules/unilbrk/base (configure.ac): Likewise.
29764         * modules/uninorm/base (configure.ac): Likewise.
29765         * modules/unistdio/base (configure.ac): Likewise.
29766         * modules/unistr/base (configure.ac): Likewise.
29767         * modules/uniwbrk/base (configure.ac): Likewise.
29768         * modules/uniwidth/base (configure.ac): Likewise.
29770 2015-01-20  Daiki Ueno  <ueno@gnu.org>
29772         unictype/category-none: fix link with libunistring
29773         Since _UC_CATEGORY_NONE is not a public symbol, it will be
29774         prefixed with "libstring_" when compiled as part of libunistring.
29775         To avoid undefined symbol at link time, increase the minimum
29776         version when the dependant modules are updated.
29777         * modules/unictype/category-none (configure.ac): Bump minimum
29778         version to 0.9.5.
29780 2015-01-20  Daiki Ueno  <ueno@gnu.org>
29782         unitypes: fix build with installed libunistring
29783         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
29784         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
29785         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
29787 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29789         time: port to MinGW32 3.21
29790         Problem reported by Eli Zaretskii in:
29791         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
29792         * lib/time.in.h:
29793         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
29794         * modules/time (Depends-on):
29795         Fall back on unistd.h if the other include files don't define
29796         struct timespec.
29798         update-copyright: apply to self
29799         * build-aux/update-copyright: Fix copyright date.  How ironic!
29801 2015-01-15  Daiki Ueno  <ueno@gnu.org>
29803         libunistring: update to Unicode 7.0.0
29804         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
29805         Manichaean names.
29806         * lib/unictype/joininggroup_name.h: Likewise.
29807         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
29808         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
29809         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
29810         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
29811         (fill_arabicshaping, joining_group_as_c_identifier): Support those
29812         enum values.
29813         (is_property_alphabetic): Accept newly added characters to
29814         cuneiform numeric signs.
29815         (is_property_default_ignorable_code_point): Reject U+0605.
29816         (FIELDLEN): Increase from 120 to 160.
29817         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
29818         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
29819         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
29820         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
29821         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
29822         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
29823         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
29824         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
29825         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
29826         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
29827         U+1E8D0..U+1E8D6.
29828         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
29829         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29830         lib/uniwidth/width.c.
29831         * all generated files under lib/uni* and tests/uni*: Regenerate.
29833 2015-01-14  Daiki Ueno  <ueno@gnu.org>
29835         libunistring: update to Unicode 6.3.0
29836         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
29837         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
29838         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
29839         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
29840         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
29841         Update WB5, WB9, WB10, WB13a, and WB13b.
29842         * tests/uniwbrk/test-uc-wordbreaks.c
29843         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
29844         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
29845         (UC_BIDI_PDI): New enumeration values.
29846         (bidi_category_byname): Support those enum values.
29847         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
29848         dedicated property assigned.
29849         (is_property_case_ignorable): Check 0x0027.
29850         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
29851         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
29852         (output_wbp): Support those enum values.
29853         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
29854         (UC_BIDI_PDI): New enumeration values.
29855         * lib/unictype/bidi_byname.gperf: Add those property names.
29856         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
29857         U+180E, U+1A1B, and U+2066..U+2069.
29858         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29859         lib/uniwidth/width.c.
29860         * all generated files under lib/uni* and tests/uni*: Regenerate.
29862 2015-01-14  Daiki Ueno  <ueno@gnu.org>
29864         libunistring: update to Unicode 6.2.0
29865         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
29866         (unilbrk_table): Adjust table size.
29867         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
29868         for LBP_RI.
29869         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
29870         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
29871         Normalize table index skipping ignored properties.
29872         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
29873         WBP_EXTEND and WBP_FORMAT, which are now computed without using
29874         the table.
29875         * lib/uniwbrk/wbrktable.h: Adjust table size.
29876         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
29877         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
29878         Support rule GB8a.
29879         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
29880         * tests/unigbrk/test-uc-is-grapheme-break.c
29881         (graphemebreakproperty_to_string): Support GBP_RI.
29882         * tests/uniwbrk/test-uc-wordbreaks.c
29883         (wordbreakproperty_to_string): Support WBP_RI.
29884         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
29885         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
29886         (output_lbp): Support LBP_RI.  Adjust some characters changed from
29887         LBP_AL to LBP_ID.
29888         (output_lbp): Support LBP_RI.
29889         (WBP_RI): New enumeration value.
29890         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
29891         (output_wbp): Support WBP_RI.
29892         (GBP_RI): New enumeration value.
29893         (output_gbp_test, fill_org_gbp): Support GBP_RI.
29894         * all generated files under lib/uni* and tests/uni*: Regenerate.
29896 2015-01-14  Daiki Ueno  <ueno@gnu.org>
29898         libunistring: update to Unicode 6.1.0
29899         * lib/gen-uni-tables.c (output_joining_group): Switch to
29900         3-level table to accommodate joining groups defined with higher
29901         codepoint value.  Since there are only 88 groups defined in
29902         Unicode 7.0.0, use 7-bit packed format for level3 entries.
29903         (get_lbp): Update for Unicode 6.1.0.
29904         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
29905         3-level table.
29906         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
29907         joining group name.
29908         * lib/unictype/joininggroup_name.h: Likewise.
29909         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
29910         (unilbrk_table): Adjust table size.
29911         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
29912         for LBP_HL.
29913         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
29914         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
29915         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
29916         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
29917         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
29918         U+302E..U+302F.
29919         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29920         lib/uniwidth/width.c.
29921         * all generated files under lib/uni* and tests/uni*: Regenerate.
29922         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
29924 2015-01-15  Daiki Ueno  <ueno@gnu.org>
29926         uniwbrk/u32-wordbreaks-tests: add conformance test
29927         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
29928         tests/uniwbrk/test-uc-wordbreaks.c,
29929         tests/uniwbrk/test-uc-wordbreaks.sh, and
29930         tests/uniwbrk/WordBreakTest.txt.
29931         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
29932         test-uc-wordbreaks to $(check_PROGRAMS), and define
29933         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
29934         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
29935         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
29937 2015-01-15  Daiki Ueno  <ueno@gnu.org>
29939         uniwbrk: ignore Extended/Format characters at BOL not BOS
29940         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
29941         characters if the previous character property is one of
29942         WBP_NEWLINE, WBP_CR, and WBP_LF.
29944 2015-01-11  Jim Meyering  <meyering@fb.com>
29946         test-strstr.c: avoid a trivial leak
29947         * tests/test-strstr.c (main): Free haystack.
29949         update-copyright: recognize groff's \(co marker
29950         * build-aux/update-copyright (circle_c_re): Also accept
29951         uses of \(co, as found in gzip.1.
29953 2015-01-08  Pádraig Brady  <P@draigBrady.com>
29955         maint.mk: fix compatibility with OS X nm
29956         * top/maint.mk (_gl_tight_scope): Use the -g option to
29957         show exported items rather than the -e option which is
29958         ignored on all platforms except OS X where it gives an error.
29959         Reported by Assaf Gordon.
29961 2015-01-07  KO Myung-Hun  <komh@chollian.net>
29963         localcharset: improve charset detection on OS/2
29964         Use system codepage when appropriate.  Map OS/2 codepages to
29965         GNU canonical charset names if possible.
29966         * lib/config.charset: Don't output aliases if "$os" is os2*.
29967         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
29968         result for OS/2.
29969         (locale_charset) [OS2]: Use system codepage if codeset is omitted
29970         from the locale name which is neither "C" nor "POSIX".
29972 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
29974         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
29975         This reverts the last patch but one, as it shouldn't be needed now
29976         that the typo is fixed.
29977         * lib/count-leading-zeros.h (count_leading_zeros_ll):
29978         * lib/count-trailing-zeros.h:
29979         * lib/count-one-bits.h:
29980         Go back to using 64-bit intrinsics.
29982         count-leading-zeros: fix pragma typos
29983         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
29984         Fix typos in declaration of intrinsics when _MSC_VER.
29986 2015-01-06  Pádraig Brady  <P@draigBrady.com>
29988         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
29989         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
29990         intrinsics in this case.
29991         * lib/count-trailing-zeros.h: Likewise.
29992         * lib/count-one-bits.h: Likewise.
29994 2015-01-06  Daiki Ueno  <ueno@gnu.org>
29996         uniname/uniname: update to Unicode 7.0.0
29997         To accommodate new characters added since Unicode 5.1.0, this
29998         changes the internal representation of codepoint ranges.
29999         Previously, we grouped codepoint ranges by manually assigned 4-bit
30000         tag, which only allowed 16 groups.  This removes the limitation by
30001         switching to binary search on a table.  For the detail rationale
30002         and the benchmark results, see:
30003         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
30004         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
30005         to INDEX, as it no longer represents a codepoint.
30006         (range): New struct.
30007         (main): Switch to intervals list from a bit-pattern based
30008         classification.
30009         * lib/uniname/uninames.h: Regenerate.
30010         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
30011         * modules/uniname/base (configure.ac): Bump minimum version to
30012         0.9.5.
30013         * modules/uniname/uniname (configure.ac): Bump minimum version to
30014         0.9.5.
30016 2015-01-05  Eric Blake  <eblake@redhat.com>
30018         doc: update INSTALL from autoconf
30019         * doc/install.texi: Resync from autoconf.
30020         * doc/INSTALL: Reflect recent autoconf update.
30021         * doc/INSTALL.ISO: Likewise.
30022         * doc/INSTALL.UTF-8: Likewise.
30024         stdio: fix use of PRIdMAX on modern mingw
30025         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
30026         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
30027         to work with modern mingw.
30029 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
30031         pthread: detect git mingw builds with only partial pollution
30032         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
30033         pollution, as seen temporarily in Fedora 21.
30035 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30037         lib-symbol-versions: cache script check
30038         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
30039         Cache the check for linker version scripts.
30040         From a suggestion by Christophe Curis in:
30041         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
30043 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
30045         maint: fix grammar nits in propername (trivial change)
30046         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
30047         and use an adequate verb and tense.
30049 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
30051         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30052         * module/gendocs: Add 'doc/gendocs_template_min'.
30054         * build-aux/gendocs.sh: Change email addresses and upstream URLs
30055         from to Gnulib's.
30056         (scripturl, templateurl): Adjust accordingly.
30058 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30060         gendocs: copyright date and version fix
30061         Reported by Karl Berry in:
30062         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
30063         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
30064         Fix copyright date.
30065         * build-aux/gendocs.sh (scriptversion): Update.
30067 2015-01-01  Karl Berry  <karl@gnu.org>
30069         * doc/install.texi,
30070         * build-aux/mdate-sh,
30071         * build-aux/depcomp,
30072         * build-aux/config.guess,
30073         * build-aux/config.sub,
30074         * build-aux/ar-lib,
30075         * build-aux/compile: revert copyright updates (some from last
30076         year) in slaved files.
30078 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30080         version-etc: new year
30081         * doc/gnulib.texi:
30082         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
30083         * all files: Run 'make update-copyright'.
30085 2014-12-30  Pádraig Brady  <P@draigBrady.com>
30087         xstrtol: ensure errno is reset
30088         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
30089         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
30091         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
30093 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30095         utimens: fix dependency typo
30096         * modules/utimens (Depends-on): Remove 'assure'.
30097         This bug was introduced in the recent 'assure' patch.
30099 2014-12-22  Eric Blake  <eblake@redhat.com>
30101         docs: mention why libgen.h is bad
30102         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
30104 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30106         assure: new module
30107         This works better than 'assert' when compiling with -DNDEBUG,
30108         as it avoids some compiler diagnostics in that case.
30109         Reported by Norihiro Tanaka in:
30110         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
30111         * MODULES.html.sh (func_all_modules): Add 'assure'.
30112         * lib/assure.h, modules/assure: New files.
30113         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
30114         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
30115         Prefer 'assure' to 'assert'.
30116         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
30117         * modules/chdir-long, modules/cycle-check, modules/fchdir:
30118         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
30119         Depend on 'assure'.
30121 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
30123         stdalign: port better to HP compilers
30124         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
30125         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
30127         stdalign: work around Apple GCC 4.0 bug
30128         Reported by David Fang in:
30129         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
30130         * lib/stdalign.in.h (_Alignas):
30131         * m4/stdalign.m4 (gl_STDALIGN_H):
30132         Do not use aligned attribute with GCC 4.0 on Apple.
30134 2014-12-16  Pádraig Brady  <P@draigBrady.com>
30136         getcwd: fix test failure on OS X 10.9
30137         * m4/getcwd-path-max.m4: Avoid the replacement if it
30138         won't be effective due to the PATH_MAX limitation of lstat().
30139         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
30140         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
30141         for this case for use in tests, and also exclude this
30142         case when setting REPLACE_GETCWD.
30143         * tests/test-getcwd.c (test_long_name): Restrict the
30144         tested path length so that lstat() will not be passed
30145         a path greater than PATH_MAX.
30146         Also key a test condition on HAVE_OPENAT_SUPPORT rather
30147         than AT_FDCWD, since the latter is set unconditionally
30148         since Sep 2009 in commit 52c658e9.
30150 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
30152         parse-datetime: avoid a compiler warning with byacc (trivial)
30153         * lib/parse-datetime.y (yylex): Use the same prototype in the
30154         function definition as the declaration, to avoid a -Wstrict-prototypes
30155         warning seen when using byacc.
30157 2014-12-12  Daiki Ueno  <ueno@gnu.org>
30159         unicase/locale-language-tests: fix LOCALE_FR test
30160         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
30161         a French locale with traditional encoding.
30162         Reported by umerqayam in:
30163         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
30165 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
30167         stddef: support C11's max_align_t
30168         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
30169         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
30170         Do not undef, as that might cause max_align_t to be defined twice.
30171         Instead, change use to check for _GL_STDDEF_WINT_T too.
30172         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
30173         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
30174         Check for max_align_t.
30175         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
30176         * modules/stddef-tests (Depends-on): Add stdalign.
30177         * tests/test-stddef.c: Test max_align_t.
30179 2014-12-11  Daiki Ueno  <ueno@gnu.org>
30181         unistd: fix iOS check conditional
30182         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
30183         as 0 or 1 in <TargetConditionals.h>, and the previous check always
30184         yielded true on non-iOS environment.
30185         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
30186         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
30187         they are defined.
30189 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
30191         posixtm: avoid compiler warning in a better way
30192         * lib/posixtm.c (IF_LINT): Remove.
30193         (year, posix_time_parse):
30194         Return true (not 0) if successful.  All callers changed.
30195         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
30197 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30199         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
30200         started with '/' on EMX.
30202 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30204         freopen: workaround freopen() on OS/2 kLIBC
30205         * lib/freopen.c (rpl_freopen): Workaround.
30206         * m4/freopen.m4: Add os2* case.
30208         get_shared_library_fullname: port to EMX
30209         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
30210         on EMX, respectively.
30211         (_DLL_InitTerm): New on EMX.
30212         (get_shared_library_fullname): Implement on EMX.
30214         find_executable: port to EMX
30215         * lib/progreloc.c (find_executable): Implement on EMX.
30217         sched: check struct sched_param in spawn.h as well
30218         * lib/sched.in.h: Include spawn.h on kLIBC.
30219         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
30221 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
30223         bootstrap: Allow perl modules in $buildreq
30224         * build-aux/bootstrap: Add case for perl modules.
30226 2014-12-08  Pádraig Brady  <P@draigBrady.com>
30228         apply _GL_ATTRIBUTE_PURE to some inline functions
30229         clang 3.4.2 flagged these inline functions as pure
30230         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
30231         * lib/sig-handler.h (get_handler): Likewise.
30232         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
30233         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
30235 2014-12-06  Pádraig Brady  <P@draigBrady.com>
30237         vasnprintf: fix potential use after free
30238         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
30239         flagged by clang-analyzer 3.4.2.
30241 2014-12-05  Pádraig Brady  <P@draigBrady.com>
30243         filevercmp, posixtm: avoid compiler warnings with -O3
30244         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
30245         * lib/posixtm.c: (IF_LINT): Define.
30246         (posix_time_parse): Use it to void a "may be used uninitialized"
30247         warning, seen only with -O3.
30249 2014-12-05  Bruno Haible  <bruno@clisp.org>
30251         Fix LDBL80_WORDS macro on big endian platforms.
30252         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
30253         LDBL80_WORDS macro.
30254         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30255         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30256         * tests/test-isfinite.c (test_isfinitel): Likewise.
30257         * tests/test-isinf.c (test_isinfl): Likewise.
30258         * tests/test-isnan.c (test_long_double): Likewise.
30259         * tests/test-isnanl.h (main): Likewise.
30260         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
30261         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
30262         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
30263         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
30264         Reported by Pádraig Brady.
30266 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
30268         git-version-gen: do not print new line characters
30269         * build-aux/git-version-gen: Use printf instead of echo and tr.
30271         gnulib-tool: recognize x:* as an absolute path
30272         * gnulib-tool (func_gnulib_dir): Add ?:* case.
30273         (func_relconcat): Likewise.
30275 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
30277         argp: avoid extraneous translation and mem leak with empty pre doc
30278         * lib/argp-help.c (argp_doc): Never translate the empty string,
30279         when "\v" is the first or last character of the string, as that
30280         has a reserved meaning to return the header info from a po file.
30281         This also fixes a small memory leak in the !post case.
30282         The issue can be seen with this command for example:
30283         LC_MESSAGES=en_US grub2-mknetdir --help
30285 2014-11-27  Daiki Ueno  <ueno@gnu.org>
30287         uniname/uniname-tests: skip if system's libunistring is used
30288         * modules/uniname/uniname-tests (Makefile.am): Skip test if
30289         uniname/uniname module is not compiled.
30291 2014-11-27  Pádraig Brady  <P@draigBrady.com>
30293         printf: fix configure check on big endian systems
30294         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
30296 2014-11-22  Daiki Ueno  <ueno@gnu.org>
30298         pipe-filter-gi, pipe-filter-ii: port to AIX
30299         On AIX 7.1, 'select' is defined as static and cannot be referred
30300         to from inline function.
30301         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
30302         the definition...
30303         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
30304         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
30306 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30308         gitlog-to-changelog: add --until
30309         * build-aux/gitlog-to-changelog: Support new --until option.
30310         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
30312 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
30314         extern-inline: update commentary about GCC bugs
30315         * m4/extern-inline.m4: Add another GCC bug number to comments.
30317 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30319         gen-uni-tables: untabify
30320         * lib/gen-uni-tables.c: Untabify.
30322 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30324         gen-uni-tables: check out-of-range values added to 3-level tables
30325         * lib/gen-uni-tables.c (output_category, output_bidi_category)
30326         (output_joining_type, output_ident_category): Check out-of-range
30327         values added to 3-level tables.
30329 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30331         gen-uni-tables: utilize 'assert'
30332         * lib/gen-uni-tables.c: Include <assert.h>.
30333         (output_category, output_combclass, output_decimal_digit_test)
30334         (output_decimal_digit, output_digit_test, output_digit)
30335         (output_numeric, get_mirror_value, fill_properties)
30336         (fill_property30, is_property_alphabetic)
30337         (is_property_default_ignorable_code_point)
30338         (is_property_uppercase, is_property_lowercase)
30339         (is_property_cased, is_property_case_ignorable)
30340         (is_property_changes_when_lowercased, is_property_iso_control)
30341         (is_property_math, fill_arabicshaping, output_joining_group)
30342         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
30343         (output_wbp, fill_org_gbp, get_decomposition)
30344         (output_decomposition, fill_composition_exclusions)
30345         (debug_output_composition_tables, output_composition_tables)
30346         (redistribute_casefolding_rules, output_casing_rules): Use
30347         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
30348         reporting.
30350 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30352         gen-uni-tables: cosmetic improvements
30353         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
30354         variables specification.
30355         (is_outdigit): Remove unused function.
30357 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
30359         fcntl-h-tests: port to PA-RISC GNU/Linux
30360         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
30362 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30364         fts: port to C89
30365         Problem reported for MSVC 16 by Gisle Vanem in:
30366         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
30367         * lib/fts.c (fts_build): Avoid declaration before statement.
30369 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30371         unistd: port to iOS
30372         Problem reported by André Klitzing in:
30373         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
30374         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
30376 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
30378         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
30379         Problem reported by Alan Modra in:
30380         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
30381         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
30382         Always cast the function arg, reverting this part of the previous
30383         change.
30385 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
30387         obstack: avoid potentially-nonportable function casts
30388         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
30389         Remove, replacing with ...
30390         (call_chunkfun, call_freefun): New static functions.
30391         All uses changed.  Avoid potentially-nonportable casts.
30392         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
30393         (_obstack_begin_worker): Omit last two args, since they
30394         rely on potentially-nonportable casts.  All callers changed.
30395         * lib/obstack.h (_OBSTACK_CAST): New macro.
30396         Use it everywhere the old API used a potentially-nonportable cast.
30397         The new API doesn't cast.
30398         (struct obstack): Use unions rather than requiring
30399         potentially-nonportable casts.
30400         (obstack_chunkfun, obstack_freefun): Return void.
30402 2014-11-03  Alan Modra  <amodra@gmail.com>
30404         obstack: fix macro return values
30405         * lib/obstack.h (obstack_next_free): Return void *.
30406         (obstack_1grow_fast, obstack_blank_fast): Return void.
30407         For __GNUC__ macros:
30408         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
30409         For !__GNUC__ macros:
30410         (obstack_make_room, obstack_grow, obstack_grow0)
30411         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
30413 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30415         obstack: do not assume system-supplied obstack is size_t safe
30416         * m4/obstack.m4: New file.
30417         * modules/obstack (Files): Add it.
30419         obstack: port to platforms that #define __alignof__
30420         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
30421         not if !_LIBC.  We don't know of any platforms that #define
30422         __alignof__, but it might be useful in tests.  Conversely,
30423         glibc assumes GCC.
30425 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30427         linkat: don't unconditionally replace on GNU/Linux
30428         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
30429         was redundant for a few reasons.  It was present to support compiling
30430         on new systems but running on the old narrow window of Linux 2.6.1[67].
30431         It setup and cleaned up test files which weren't actually used.
30432         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
30433         implicit in the following check.
30435 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30437         linkat: wrap to handle symlinks on OS X 10.10
30438         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
30439         but not usable because it doesn't support creating hardlinks
30440         to symlinks.  Therefore add a generic test for this capability
30441         and fallback to our emulation if linkat() fails with ENOTSUP.
30443 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30445         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
30446         * doc/posix-functions/open.texi (open):
30447         * doc/posix-functions/openat.texi (openat):
30448         Document that these functions do not set errno to ELOOP when
30449         a symlink is opened with O_NOFOLLOW.
30451 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30453         obstack: add NEWS entry for recent incompatible changes
30454         * NEWS: Describe recent changes.
30456 2014-10-30  Pádraig Brady  <P@draigBrady.com>
30458         mountlist: don't use libmount to decide on dummy/remote
30459         * lib/mountlist.c (read_file_system_list): Don't use the libmount
30460         routines to determine whether a file system is dummy or remote,
30461         as they're not currently compatible.  For example the remoteness
30462         is determined on file system type (for which the list seems incomplete),
30463         rather than simply checking for a ':' in the device name.
30464         Also libmount currently determines that 'tmpfs' is a dummy file system
30465         even though it has associated storage.
30467 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30469         obstack: prefer __alignof__ to alignof
30470         This is for portability to pre-4.7 GCC when compiling glibc.
30471         See Joseph S. Myers in:
30472         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
30473         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
30474         New macro, defined by including and using <alignof.h>.
30475         (MAX): New macro.
30476         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
30477         Do not use enums as they are not portable to some broken compilers.
30478         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
30480         obstack: prefer alignof to calculating alignments by hand
30481         * lib/obstack.c: Include <stdalign.h>.
30482         (struct fooalign): Remove.
30483         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
30484         * modules/obstack (Depends-on): Add stdalign.
30486 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
30488         obstack: use size_t alignments and check for overflow
30489         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
30490         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
30491         * lib/obstack.h (struct obstack.alignment_mask):
30492         Use _OBSTACK_SIZE_T, not int, for alignments.
30493         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
30494         overflows, e.g., when adding the alignment.
30496 2014-10-29  Alan Modra  <amodra@gmail.com>
30498         obstack: 64-bit obstack support, part 3
30499         This finally enables full 64-bit obstack support.  The glibc
30500         shared library specific code is removed from obstack.c too, and
30501         the error handling code conditionally compiled under control of
30502         another macro, _OBSTACK_NO_ERROR_HANDLER.
30503         * lib/obstack.h: Include string.h earlier.
30504         (_OBSTACK_INTERFACE_VERSION): Define.
30505         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
30506         * lib/obstack.c: Don't include shlib-compat.h.
30507         (OBSTACK_INTERFACE_VERSION): Delete.
30508         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
30509         glibc code is compatible with version 2.  Don't include stdio.h for
30510         __GNU_LIBRARY.
30511         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
30512         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
30513         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
30514         glibc shared library specific source.
30516         obstack: 64-bit obstack support, part 2
30517         This gets us 4G obstack support, without changing ABI
30518         compatibility, apart from possibly introducing some
30519         signed/unsigned comparison warnings in code that uses obstack.h.
30520         a) Replace "int" size parameters, return values, and macro local vars
30521            with _OBSTACK_SIZE_T, an "unsigned int" for now.
30522         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
30523         c) Make all obstack macros checking available room use obstack_room.
30524            "next_free + desired > chunk_limit" may wrap the lhs for chunks
30525            allocated near the top of memory.
30526         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
30527         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
30528         in place of "int" size parameters, return values and local vars.
30529         (_CHUNK_SIZE_T): Define.
30530         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
30531         union use an _OBSTACK_SIZE_T integer type.
30532         For __GNUC__ versions of the following macros...
30533         (obstack_room): Rename local var.
30534         (obstack_make_room): Use obstack_room.
30535         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30536         obstack_int_grow, obstack_blank): Likewise.
30537         (obstack_finish): Use unsigned comparison when comparing aligned
30538         next_free against chunk_limit.
30539         (obstack_free): Cast OBJ to remove possible const qualifier.
30540         For !__GNUC__ versions of the following macros...
30541         (obstack_make_room): Use obstack_room.
30542         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30543         obstack_int_grow, obstack_blank): Likewise.
30544         (obstack_finish): Use unsigned comparision when comparing aligned
30545         next_free against chunk_limit.
30546         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
30547         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
30548         _OBSTACK_SIZE_T.
30549         (_obstack_begin, _obstack_begin_1): Likewise.
30550         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
30551         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
30553         obstack: 64-bit obstack support, part 1
30554         a) Correct calls to alloc function, to use a size_t arg.  "long" is
30555            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
30556            and "size_t" 64 bits.
30557         b) Consolidate _obstack_begin and _obstack_begin1 code.
30558         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
30559         use "size_t" rather than "long".
30560         (_obstack_begin, _obstack_begin1): Likewise.
30561         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
30562         obstack_chunkfun): Update alloc function casts.
30563         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
30564         (chunkfun_type, freefun_type): New typdefs.
30565         (_obstack_begin_worker): Split out from ..
30566         (_obstack_begin, _obstack_begin_1): ..here.
30568         obstack: tidy part 2
30569         a) Don't be concerned about "not polluting the namespace with stddef.h
30570            symbols" in obstack.h, since gnulib string.h includes stddef.h
30571            anyway, and it seems unlikely that anyone would care.
30572         b) Don't roll our own slow memcpy in _obstack_newchunk.
30573         c) Rename obstack_free to _obstack_free.  This makes the naming
30574            consistent with other obstack functions and obviates the need for
30575            __obstack_free.  Ancient obstack.c defined both obstack_free and
30576            _obstack_free.  We continue to do that for _LIBC via an alias.
30577         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
30578            is clever, but nowadays gcc warns on undefined macros.  You'll get
30579            an undefined macro warning if simulating an old gcc with -U__GNUC__
30580            -U__GNUC_MINOR__ -D__GNUC__=1.
30581         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
30582         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
30583         (__obstack_free): Delete, update refs.
30584         (_obstack_free): Rename from obstack_free.
30585         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
30586         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
30587         * lib/obstack.c: Don't include stddef.h.
30588         (COPYING_UNIT): Delete.
30589         (_obstack_begin): Formatting fix.
30590         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
30591         (_obstack_free): Rename from __obstack_free, update alias.  Move
30592         undef of obstack_free to where it is needed.
30594         obstack: tidy part 1
30595         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
30596            to me, and result in overlong lines after later patches.
30597         b) Move error handling code, to avoid a forward declaration and to
30598            simplify later patches in this series.
30599         * lib/obstack.h (struct obstack <temp>): Rename fields of union
30600         and update all uses.
30601         * lib/obstack.c: Include stdlib.h earlier.
30602         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
30603         in file.
30604         (print_and_abort): Remove now redundant forward declaration.
30606 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30608         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
30609         Without this change, in bleeding-edge fileutils Autoconf complains
30610         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
30611         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
30612         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
30613         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
30615 2014-10-24  Daiki Ueno  <ueno@gnu.org>
30617         iconv: avoid false detection of non-working iconv
30618         The INBUF arguments of iconv can be either 'const char **'
30619         or 'char **'.  If CC is g++, the difference causes a compile error
30620         and thus leads to a false detection of non-working iconv.
30621         Reported by Eli Zaretskii and Werner LEMBERG in:
30622         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
30623         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
30624         iconv.  Bump serial number.
30626 2014-10-23  Pádraig Brady  <P@draigBrady.com>
30628         bootstrap: print more diagnostics for missing programs
30629         * build-aux/bootstrap: only suppress stderr when checking for
30630         alternative program names.  This supports programs issuing non
30631         standard error messages.
30633 2014-10-23  Pádraig Brady  <P@draigBrady.com>
30635         bootstrap: only update the gnulib submodule
30636         * build-aux/bootstrap: Restrict the "submodule update" command
30637         to the gnulib path.
30639 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30641         symlinkat: port to AIX 7.1
30642         * doc/posix-functions/symlinkat.texi (symlinkat):
30643         Mention AIX porting problem.
30644         * lib/symlinkat.c: Always include errno.h.
30645         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
30646         * lib/unistd.in.h (symlinkat): Add replacement machinery.
30647         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
30648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
30649         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
30650         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
30651         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
30653         readlinkat: port to AIX 7.1
30654         * doc/posix-functions/readlink.texi (readlink):
30655         * doc/posix-functions/readlinkat.texi (readlinkat):
30656         Mention AIX porting problem.
30657         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
30658         New function.
30659         * lib/unistd.in.h (readlinkat): Add replacement machinery.
30660         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
30661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
30662         * modules/readlinkat (configure.ac): Also compile replacement
30663         if REPLACE_READLINKAT.
30664         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
30666 2014-10-12  Karl Berry  <karl@gnu.org>
30668         * doc/posix-functions/dirname.texi: remove spurious {.
30670 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
30672         basename, dirname: Improve documentation.
30673         * doc/posix-functions/basename.texi: Mention dirname module and
30674         base_name() function.
30675         * doc/posix-functions/dirname.texi: Mention dir_name() and
30676         mdir_name() functions.
30677         Suggested by Werner LEMBERG <wl@gnu.org>.
30679 2014-09-24  Jim Meyering  <meyering@fb.com>
30681         exclude: declare exclude_patopts static
30682         * lib/exclude.c (exclude_patopts): Declare static,
30683         to avoid triggering a -Wmissing-prototypes warning.
30684         The alternative (declaring it in the .h file) would
30685         require publicizing the private "struct patopts".
30687 2014-09-21  Werner Lemberg  <wl@gnu.org>
30689         dirname: support compilation with C++
30690         * lib/dirname.h: Add necessary C linkage declarations.
30692 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30694         qsort_r: include <config.h>
30695         Problem reported by Tom G. Christensen in:
30696         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
30697         * lib/qsort.c [!_LIBC]: Include <config.h> first.
30699 2014-09-16  Dylan Cali  <calid1984@gmail.com>
30701         avltree-list: avoid compiler warnings (trivial)
30702         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30703         -Werror=suggest-attribute=pure.
30704         * lib/gl_array_list.c: Likewise.
30705         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
30706         declaration to avoid -Werror=missing-prototypes.  This is not added
30707         to a header as only exported for tests.  Add (void) to the
30708         check_invariants() call to indicate we're discarding the result
30709         in this context which avoids -Werror=unused-value.  Note we don't
30710         use ignore_value here to avoid a dependency as we know we'll not
30711         be adding __attribute__((warn_unused_result)) to check_invariants().
30712         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
30714 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30716         qsort_r: new module, for GNU-style qsort_r
30717         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
30719 2014-09-15  Werner LEMBERG  <wl@gnu.org>
30721         strerror_r-posix: support compilation with C++
30722         * lib/strerror_r.c: Add necessary C linkage declarations.
30724 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
30726         fcntl-h: fix compilation with Intel C++ compiler (trivial)
30727         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
30729 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
30731         mountlist: use /proc/self/mountinfo when available
30732         Use libmount to propagate device IDs provided by Linux in
30733         /proc/self/mountinfo.  This will give more accurate output when
30734         using df in chroot'ed environments as the device IDs are not
30735         determined by stat() which may be inaccurate within the chroot.
30736         * lib/mountlist.c (read_file_system_list): Use the libmount routines
30737         from util-linux to parse "/proc/self/mountinfo" or fall back to
30738         standard getmntent() processing.
30739         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
30740         getmntent() is used, as is the case on GNU/Linux.
30742 2014-09-07  Eric Wong  <normalperson@yhbt.net>
30744         users.txt: add cmogstored
30745         cmogstored has used gnulib since the beginning in 2012 to support
30746         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
30748 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
30750         Trivial change.
30751         * gnulib-tool: Use same options as build-aux/bootstrap to download
30752         PO files.
30754 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
30756         Trivial change.
30757         * gnulib-tool: Fallback to wget when rsync of PO files fails.
30759 2014-09-04  Eric Blake  <eblake@redhat.com>
30761         maintainer-makefile: add syntax check for useless ';;'
30762         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
30764 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
30766         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
30767         Problem reported by Assaf Gordon in:
30768         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
30769         Apparently Ubuntu is doing some fancy link-time optimization
30770         that doesn't work with -lpthread but does work with -pthread.
30771         Work around the bug by preferring -pthread to -lpthread.
30772         * m4/pthread.m4 (gl_PTHREAD_CHECK):
30773         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
30774         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30775         Treat -pthread like -lpthread.
30777 2014-09-04  Eric Blake  <eblake@redhat.com>
30779         error: drop spurious semicolon
30780         * lib/error.c (__error_at_line): Fix ';;'.
30782 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30784         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
30785         * m4/gnulib-common.m4 (AC_C_RESTRICT):
30786         Override AC_C_RESTRICT unconditionally.
30787         Update from autoconf, incorporating:
30788         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
30789         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
30791 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30793         manywarnings: add GCC 4.9 warnings
30794         Also, make it easier to maintain this in the future.
30795         * build-aux/gcc-warning.spec: Add -Wabi-tag,
30796         -Wconditionally-supported, -Wdelete-incomplete,
30797         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
30798         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
30799         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
30800         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
30801         only for older GCC versions that need them.  Handle
30802         -Wnormalized=nfc specially, so that the 'comm' command used
30803         for maintenance doesn't get confused.
30805 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30807         vasnprintf: fix bugs in width computation
30808         * lib/vasnprintf.c (VASNPRINTF):
30809         Rework previous change, which introduced a bug,
30810         to avoid the warning in a different way.
30811         Avoid undefined behavior if the width arg is less than -INT_MAX.
30812         Avoid unnecessary use of HAS_WIDTH local.
30814 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
30816         vasnprintf: Avoid signed/unsigned comparison warning.
30817         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
30818         compare end addr of generated string w/ maximum end addr.
30820 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
30822         parse-datetime: Avoid pointer difference.
30823         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
30824         instead of calculating difference of pointers.  This removes an
30825         annoying warning, devoid of any use.
30827 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
30829         qsort_r: new module, for GNU-style qsort_r
30830         This works even on FreeBSD, which has an incompatible qsort_r API.
30831         * MODULES.html.sh: Add it.
30832         * doc/glibc-functions/qsort_r.texi: It's now supported.
30833         * lib/qsort.c: New file, taken from glibc with minor changes
30834         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
30835         removed.
30836         * lib/qsort_r.c: New file, compiled only on FreeBSD.
30837         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
30838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
30839         * modules/qsort_r, modules/qsort_r-tests: New files.
30840         * modules/stdlib (Makefile): Set up its defaults.
30841         * tests/test-qsort_r.c: New file.
30843 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
30845         vla: new module
30846         GNU RCS can use this, mostly for documentation I expect.  See:
30847         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
30848         * MODULES.html.sh: Add vla.
30849         * lib/vla.h, modules/vla: New files.
30851 2014-08-07  Daiki Ueno  <ueno@gnu.org>
30853         localename: make gl_locale_name_thread really thread-safe on Windows
30854         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
30855         "glthread/lock.h".
30856         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
30857         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
30859 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
30861         getpass: don't assume struct termios
30862         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
30863         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
30864         * lib/getpass.c (getpass): Port to systems lacking struct termios.
30866         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
30867         Problem reported by Jonas 'Sortie' Termansen in:
30868         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
30869         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
30870         Implement via sysconf for platforms that lack getdtablesize.
30872         vararrays: modernize AC_C_VARARRAYS for C11
30873         This backports a change I recently made to Autoconf.
30874         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
30875         VLAs are not supported, as this is what C11 does.  The old macro
30876         HAVE_C_VARARRAYS is still defined if they are supported, but is
30877         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
30879 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
30881         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
30882         * build-aux/install-reloc (func_create_wrapper): Also wrap
30883         strerror-override, stat, stat.
30885 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30887         sys_select: fix FD_ZERO problem on Solaris 10
30888         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
30889         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
30890         to expand to an expression that invoked memset without necessarily
30891         including <string.h>.  The problem was that the first include
30892         defined _SYS_TIME_H, causing the second include to short-circuit.
30893         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
30894         Also, fix what appears to be a cut-and-paste typo, by replacing
30895         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
30896         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
30898         accept: document Solaris 10 type glitch
30899         * doc/posix-functions/accept.texi (accept): Mention that
30900         Solaris 10 'accept' takes void * last arg, not socklen_t *.
30902 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
30904         extern-inline: port to FreeBSD, DragonFly
30905         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
30906         is present if either __DragonFly__ or __FreeBSD__ is defined.
30907         FreeBSD problem reported by Andrey Borzenkov in:
30908         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
30909         Also, worry about __APPLE__ only if __MACH__ is also defined,
30910         as this is more consistent with the rest of gnulib.
30911         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
30912         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
30914 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30916         regex: Make #if/#ifdef usage consistent for DEBUG
30917         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
30918         of the inconsistent usage of #if and #ifdef as that works with
30919         both Glibc and Gnulib's style.
30921 2014-07-31  Eric Blake  <eblake@redhat.com>
30923         openat-die: use _Noreturn markup
30924         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
30925         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
30926         _Noreturn.
30928 2014-07-30  Eric Blake  <eblake@redhat.com>
30930         test-open: port to cygwin, which lacks Fortify
30931         * tests/test-open.h (ALWAYS_INLINE): New macro.
30932         (__always_inline): Don't abuse internal symbol on non-glibc.
30934 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
30936         localename: Enforce declarations before statements.
30937         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
30938         first statement.
30940 2014-07-18  Jim Meyering  <meyering@fb.com>
30942         test-userspec: don't look up numeric user names
30943         * tests/test-userspec.c: I found a system for which getpwnam("0")
30944         returned a pointer to a non-root user's entry, and that made the
30945         test fail.
30946         (T): Prefix each numeric input with "+", to inhibit lookup.
30948 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
30950         localcharset, localename: MS-Windows support for non-default locales
30951         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
30952         falling back on the default system codepage, try extracting
30953         the codepage from what 'setlocale' returns.  This allows to
30954         take into account changes of the codeset due to non-default
30955         locale set by a previous call to 'setlocale'.
30956         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
30957         Define if not already defined.
30958         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
30959         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
30960         current locale by calling 'setlocale', then converting the
30961         locale name into LCID by calling 'get_lcid'.  This allows to
30962         take into account changes in the current locale from the
30963         default one, in contrast to GetThreadLocale.
30965 2014-07-14  Daiki Ueno  <ueno@gnu.org>
30967         announce-gen: avoid failure when Digest::SHA is installed
30968         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
30969         Digest::SHA1->new in print_checksums fails.
30970         * build-aux/announce-gen (digest_classes): New associative array
30971         for available message digest implementations.
30972         (print_locations): Use it.
30974 2014-07-13  Pádraig Brady  <P@draigBrady.com>
30976         gettext: revert "update macros to version 0.19"
30977         This reverts commit 9b9370ca, as it currently requires that
30978         developers of any project that explicitly uses the gettext module
30979         or implicitly uses it through the utimens-tests or
30980         futimens-tests modules, use gettext >= 0.19.
30981         However there are some stability and availablity issues with
30982         that version at present.  We can reinstate this soon, when stability
30983         is addressed and packages are more readily available.
30985 2014-07-12  Jim Meyering  <meyering@fb.com>
30987         regex: don't deref NULL upon heap allocation failure
30988         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
30989         failure in one more place.
30990         To trigger the segfault, configure grep -with-included-regex,
30991         build it, and run these commands:
30992         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
30993         I discovered this while replying to a private report from
30994         Jens Schleusener about excessive memory consumption by grep
30995         when using a regular expression like the one above.
30997 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
30999         regex: fix memory leak in compiler
31000         Fix by Andreas Schwab in:
31001         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
31002         * lib/regcomp.c (parse_reg_exp): Deallocate partially
31003         constructed tree before returning error.
31005 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31007         announce-gen: avoid perl warnings
31008         * build-aux/announce-gen: add two minor checks to avoid
31009         "use of uninitialized value" warnings when command-line parameters are
31010         missing.
31012 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31014         localename: avoid -Wsuggest-attribute={const,pure} warnings
31015         * lib/localename.c (string_has): Tag internal function as pure.
31016         * lib/localename.h (gl_locale_name_default): Tag extern declaration
31017         as const when appropriate.
31019 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
31021         nl_langinfo: Fix last change.
31022         * lib/nl_langinfo.c (includes): Drop redundant include.
31024 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31026         error: Fix -Wundef warnings in glibc
31027         * lib/error.c [_LIBC]: Define default macros for
31028         glibc.
31029         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
31030         Check _LIBC before STRERROR_R_CHAR_P.
31032         error: Sync from glibc master
31033         * lib/error.c [_LIBC]: Remove INTUSE usage.
31034         (error_tail): Remove unused macro ALLOCA_LIMIT.
31035         Fix potential buffer overflow.  Fix potential NULL dereference
31036         in strcmp.
31038 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
31040         nl_langinfo: fix build under mingw
31041         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
31043 2014-07-09  Andrew D Warshall  <warshall@99main.com>
31045         mountlist: do not classify a bind-mounted dir entry as "dummy"
31046         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
31047         1-argument getmntent() (instead of assuming absence).
31049 2014-07-08  Eric Blake  <eblake@redhat.com>
31051         maint.mk: less syntax-check noise when SIGPIPE is ignored
31052         * top/maint.mk (_sc_header_without_use)
31053         (sc_require_config_h_first): Parse full list.
31055 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
31056             Paul Eggert  <eggert@cs.ucla.edu>
31058         nl_langinfo: CODESET on MS-Windows and more items from localeconv
31059         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
31060         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
31061         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
31062         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
31063         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
31064         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
31065         Include <stdio.h> if Microsoft Windows.
31066         Include <time.h> if !REPLACE_NL_LANGINFO.
31067         (ctype_codeset): New function, taken from rpl_nl_langinfo,
31068         and with improvements for Microsoft Windows.
31069         (rpl_nl_langinfo): Use it.
31070         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
31071         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
31072         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
31073         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
31074         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
31075         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
31076         corresponding values returned by 'localeconv'.  Compute the values
31077         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
31078         'strftime' with a suitable struct tm value.
31080 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31082         Bruno Haible has stepped down as maintainer.
31083         See Karl Berry in:
31084         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
31085         Daiki Ueno has volunteered to maintain libunistring; see:
31086         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
31087         * modules/gen-uni-tables, modules/libunistring:
31088         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
31089         * modules/unicase/base, modules/unicase/cased:
31090         * modules/unicase/empty-prefix-context:
31091         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
31092         * modules/unicase/locale-language, modules/unicase/special-casing:
31093         * modules/unicase/tocasefold, modules/unicase/tolower:
31094         * modules/unicase/totitle, modules/unicase/toupper:
31095         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
31096         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
31097         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
31098         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
31099         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
31100         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
31101         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
31102         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
31103         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
31104         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
31105         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
31106         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
31107         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
31108         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
31109         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
31110         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
31111         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
31112         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
31113         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
31114         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
31115         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
31116         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
31117         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
31118         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
31119         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
31120         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
31121         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
31122         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
31123         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
31124         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
31125         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
31126         * modules/unicase/ulc-casexfrm, modules/unicodeio:
31127         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
31128         * modules/uniconv/u16-conv-to-enc:
31129         * modules/uniconv/u16-strconv-from-enc:
31130         * modules/uniconv/u16-strconv-from-locale:
31131         * modules/uniconv/u16-strconv-to-enc:
31132         * modules/uniconv/u16-strconv-to-locale:
31133         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
31134         * modules/uniconv/u32-strconv-from-enc:
31135         * modules/uniconv/u32-strconv-from-locale:
31136         * modules/uniconv/u32-strconv-to-enc:
31137         * modules/uniconv/u32-strconv-to-locale:
31138         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
31139         * modules/uniconv/u8-strconv-from-enc:
31140         * modules/uniconv/u8-strconv-from-locale:
31141         * modules/uniconv/u8-strconv-to-enc:
31142         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
31143         * modules/unictype/bidicategory-all:
31144         * modules/unictype/bidicategory-byname:
31145         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
31146         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
31147         * modules/unictype/bidiclass-byname:
31148         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
31149         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
31150         * modules/unictype/block-all, modules/unictype/block-list:
31151         * modules/unictype/block-of, modules/unictype/block-test:
31152         * modules/unictype/category-C, modules/unictype/category-Cc:
31153         * modules/unictype/category-Cf, modules/unictype/category-Cn:
31154         * modules/unictype/category-Co, modules/unictype/category-Cs:
31155         * modules/unictype/category-L, modules/unictype/category-LC:
31156         * modules/unictype/category-Ll, modules/unictype/category-Lm:
31157         * modules/unictype/category-Lo, modules/unictype/category-Lt:
31158         * modules/unictype/category-Lu, modules/unictype/category-M:
31159         * modules/unictype/category-Mc, modules/unictype/category-Me:
31160         * modules/unictype/category-Mn, modules/unictype/category-N:
31161         * modules/unictype/category-Nd, modules/unictype/category-Nl:
31162         * modules/unictype/category-No, modules/unictype/category-P:
31163         * modules/unictype/category-Pc, modules/unictype/category-Pd:
31164         * modules/unictype/category-Pe, modules/unictype/category-Pf:
31165         * modules/unictype/category-Pi, modules/unictype/category-Po:
31166         * modules/unictype/category-Ps, modules/unictype/category-S:
31167         * modules/unictype/category-Sc, modules/unictype/category-Sk:
31168         * modules/unictype/category-Sm, modules/unictype/category-So:
31169         * modules/unictype/category-Z, modules/unictype/category-Zl:
31170         * modules/unictype/category-Zp, modules/unictype/category-Zs:
31171         * modules/unictype/category-all, modules/unictype/category-and:
31172         * modules/unictype/category-and-not, modules/unictype/category-byname:
31173         * modules/unictype/category-longname, modules/unictype/category-name:
31174         * modules/unictype/category-none, modules/unictype/category-of:
31175         * modules/unictype/category-or, modules/unictype/category-test:
31176         * modules/unictype/category-test-withtable:
31177         * modules/unictype/combining-class:
31178         * modules/unictype/combining-class-all:
31179         * modules/unictype/combining-class-byname:
31180         * modules/unictype/combining-class-longname:
31181         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
31182         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
31183         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
31184         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
31185         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
31186         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
31187         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
31188         * modules/unictype/digit, modules/unictype/joininggroup-all:
31189         * modules/unictype/joininggroup-byname:
31190         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
31191         * modules/unictype/joiningtype-all:
31192         * modules/unictype/joiningtype-byname:
31193         * modules/unictype/joiningtype-longname:
31194         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
31195         * modules/unictype/mirror, modules/unictype/numeric:
31196         * modules/unictype/property-all, modules/unictype/property-alphabetic:
31197         * modules/unictype/property-ascii-hex-digit:
31198         * modules/unictype/property-bidi-arabic-digit:
31199         * modules/unictype/property-bidi-arabic-right-to-left:
31200         * modules/unictype/property-bidi-block-separator:
31201         * modules/unictype/property-bidi-boundary-neutral:
31202         * modules/unictype/property-bidi-common-separator:
31203         * modules/unictype/property-bidi-control:
31204         * modules/unictype/property-bidi-embedding-or-override:
31205         * modules/unictype/property-bidi-eur-num-separator:
31206         * modules/unictype/property-bidi-eur-num-terminator:
31207         * modules/unictype/property-bidi-european-digit:
31208         * modules/unictype/property-bidi-hebrew-right-to-left:
31209         * modules/unictype/property-bidi-left-to-right:
31210         * modules/unictype/property-bidi-non-spacing-mark:
31211         * modules/unictype/property-bidi-other-neutral:
31212         * modules/unictype/property-bidi-pdf:
31213         * modules/unictype/property-bidi-segment-separator:
31214         * modules/unictype/property-bidi-whitespace:
31215         * modules/unictype/property-byname:
31216         * modules/unictype/property-case-ignorable:
31217         * modules/unictype/property-cased:
31218         * modules/unictype/property-changes-when-casefolded:
31219         * modules/unictype/property-changes-when-casemapped:
31220         * modules/unictype/property-changes-when-lowercased:
31221         * modules/unictype/property-changes-when-titlecased:
31222         * modules/unictype/property-changes-when-uppercased:
31223         * modules/unictype/property-combining:
31224         * modules/unictype/property-composite:
31225         * modules/unictype/property-currency-symbol:
31226         * modules/unictype/property-dash:
31227         * modules/unictype/property-decimal-digit:
31228         * modules/unictype/property-default-ignorable-code-point:
31229         * modules/unictype/property-deprecated:
31230         * modules/unictype/property-diacritic:
31231         * modules/unictype/property-extender:
31232         * modules/unictype/property-format-control:
31233         * modules/unictype/property-grapheme-base:
31234         * modules/unictype/property-grapheme-extend:
31235         * modules/unictype/property-grapheme-link:
31236         * modules/unictype/property-hex-digit:
31237         * modules/unictype/property-hyphen:
31238         * modules/unictype/property-id-continue:
31239         * modules/unictype/property-id-start:
31240         * modules/unictype/property-ideographic:
31241         * modules/unictype/property-ids-binary-operator:
31242         * modules/unictype/property-ids-trinary-operator:
31243         * modules/unictype/property-ignorable-control:
31244         * modules/unictype/property-iso-control:
31245         * modules/unictype/property-join-control:
31246         * modules/unictype/property-left-of-pair:
31247         * modules/unictype/property-line-separator:
31248         * modules/unictype/property-logical-order-exception:
31249         * modules/unictype/property-lowercase, modules/unictype/property-math:
31250         * modules/unictype/property-non-break:
31251         * modules/unictype/property-not-a-character:
31252         * modules/unictype/property-numeric:
31253         * modules/unictype/property-other-alphabetic:
31254         * modules/unictype/property-other-default-ignorable-code-point:
31255         * modules/unictype/property-other-grapheme-extend:
31256         * modules/unictype/property-other-id-continue:
31257         * modules/unictype/property-other-id-start:
31258         * modules/unictype/property-other-lowercase:
31259         * modules/unictype/property-other-math:
31260         * modules/unictype/property-other-uppercase:
31261         * modules/unictype/property-paired-punctuation:
31262         * modules/unictype/property-paragraph-separator:
31263         * modules/unictype/property-pattern-syntax:
31264         * modules/unictype/property-pattern-white-space:
31265         * modules/unictype/property-private-use:
31266         * modules/unictype/property-punctuation:
31267         * modules/unictype/property-quotation-mark:
31268         * modules/unictype/property-radical:
31269         * modules/unictype/property-sentence-terminal:
31270         * modules/unictype/property-soft-dotted:
31271         * modules/unictype/property-space:
31272         * modules/unictype/property-terminal-punctuation:
31273         * modules/unictype/property-test, modules/unictype/property-titlecase:
31274         * modules/unictype/property-unassigned-code-value:
31275         * modules/unictype/property-unified-ideograph:
31276         * modules/unictype/property-uppercase:
31277         * modules/unictype/property-variation-selector:
31278         * modules/unictype/property-white-space:
31279         * modules/unictype/property-xid-continue:
31280         * modules/unictype/property-xid-start:
31281         * modules/unictype/property-zero-width, modules/unictype/scripts:
31282         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
31283         * modules/unictype/syntax-c-whitespace:
31284         * modules/unictype/syntax-java-ident:
31285         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
31286         * modules/unigbrk/u16-grapheme-breaks:
31287         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
31288         * modules/unigbrk/u32-grapheme-breaks:
31289         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
31290         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
31291         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
31292         * modules/unigbrk/uc-is-grapheme-break:
31293         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
31294         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
31295         * modules/unilbrk/u16-width-linebreaks:
31296         * modules/unilbrk/u32-possible-linebreaks:
31297         * modules/unilbrk/u32-width-linebreaks:
31298         * modules/unilbrk/u8-possible-linebreaks:
31299         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
31300         * modules/unilbrk/ulc-possible-linebreaks:
31301         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
31302         * modules/uniname/uniname, modules/uninorm/base:
31303         * modules/uninorm/canonical-decomposition:
31304         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
31305         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
31306         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
31307         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
31308         * modules/uninorm/nfkc, modules/uninorm/nfkd:
31309         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
31310         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
31311         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
31312         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
31313         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
31314         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
31315         * modules/unistdio/base, modules/unistdio/u-printf-args:
31316         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
31317         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
31318         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
31319         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
31320         * modules/unistdio/u16-u16-sprintf:
31321         * modules/unistdio/u16-u16-vasnprintf:
31322         * modules/unistdio/u16-u16-vasprintf:
31323         * modules/unistdio/u16-u16-vsnprintf:
31324         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
31325         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
31326         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
31327         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
31328         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
31329         * modules/unistdio/u32-u32-asnprintf:
31330         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
31331         * modules/unistdio/u32-u32-sprintf:
31332         * modules/unistdio/u32-u32-vasnprintf:
31333         * modules/unistdio/u32-u32-vasprintf:
31334         * modules/unistdio/u32-u32-vsnprintf:
31335         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
31336         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
31337         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
31338         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
31339         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
31340         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
31341         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
31342         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
31343         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
31344         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
31345         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
31346         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
31347         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
31348         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
31349         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
31350         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
31351         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
31352         * modules/unistr/u16-check, modules/unistr/u16-chr:
31353         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
31354         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
31355         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
31356         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
31357         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
31358         * modules/unistr/u16-move, modules/unistr/u16-next:
31359         * modules/unistr/u16-prev, modules/unistr/u16-set:
31360         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
31361         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
31362         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
31363         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
31364         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
31365         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
31366         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
31367         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
31368         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
31369         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
31370         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
31371         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
31372         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
31373         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
31374         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
31375         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
31376         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
31377         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
31378         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
31379         * modules/unistr/u32-next, modules/unistr/u32-prev:
31380         * modules/unistr/u32-set, modules/unistr/u32-startswith:
31381         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
31382         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
31383         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
31384         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
31385         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
31386         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
31387         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
31388         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
31389         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
31390         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
31391         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
31392         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
31393         * modules/unistr/u8-check, modules/unistr/u8-chr:
31394         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
31395         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
31396         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
31397         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
31398         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
31399         * modules/unistr/u8-next, modules/unistr/u8-prev:
31400         * modules/unistr/u8-set, modules/unistr/u8-startswith:
31401         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
31402         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
31403         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
31404         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
31405         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
31406         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
31407         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
31408         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
31409         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
31410         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
31411         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
31412         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
31413         * modules/uniwbrk/base, modules/uniwbrk/table:
31414         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
31415         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
31416         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
31417         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
31418         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
31419         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
31420         * modules/uniwidth/width, modules/utf16-ucs4:
31421         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
31422         * modules/utf8-ucs4-unsafe:
31423         Change maintainer from Bruno Haible to Daiki Ueno.
31424         This is my guess at the libunistring modules; please feel free
31425         to fix if I guessed incorrectly.
31426         * modules/accept4, modules/acl, modules/acos, modules/acosf:
31427         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
31428         * modules/areadlink, modules/array-list, modules/array-mergesort:
31429         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
31430         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
31431         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
31432         * modules/binary-io, modules/bison-i18n, modules/btowc:
31433         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
31434         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
31435         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
31436         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
31437         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
31438         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
31439         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
31440         * modules/closedir, modules/concat-filename, modules/copy-file:
31441         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
31442         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
31443         * modules/csharpcomp-script, modules/csharpexec:
31444         * modules/csharpexec-script, modules/ctype, modules/diffseq:
31445         * modules/dprintf, modules/dprintf-posix, modules/dup:
31446         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
31447         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
31448         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
31449         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
31450         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
31451         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
31452         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
31453         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
31454         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
31455         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
31456         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
31457         * modules/findprog, modules/findprog-lgpl, modules/floor:
31458         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
31459         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
31460         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
31461         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
31462         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
31463         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
31464         * modules/freadable, modules/freadahead, modules/freadptr:
31465         * modules/freadseek, modules/freopen, modules/frexp:
31466         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
31467         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
31468         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
31469         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
31470         * modules/ftello, modules/full-read, modules/full-write:
31471         * modules/fwritable, modules/fwriteerror, modules/gcd:
31472         * modules/get-rusage-as, modules/get-rusage-data:
31473         * modules/getdtablesize, modules/getrusage, modules/gettext:
31474         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
31475         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
31476         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
31477         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
31478         * modules/iconv, modules/iconv-h, modules/iconv_open:
31479         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
31480         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
31481         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
31482         * modules/integer_length_ll, modules/ioctl, modules/isatty:
31483         * modules/isblank, modules/isnand, modules/isnand-nolibm:
31484         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
31485         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
31486         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
31487         * modules/javaexec, modules/javaexec-script, modules/javaversion:
31488         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
31489         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
31490         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
31491         * modules/lib-symbol-visibility, modules/libsigsegv:
31492         * modules/linked-list, modules/linkedhash-list, modules/list:
31493         * modules/localcharset, modules/locale, modules/localeconv:
31494         * modules/localename, modules/lock, modules/log, modules/log-ieee:
31495         * modules/log10, modules/log10-ieee, modules/log10f:
31496         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
31497         * modules/log1p, modules/log1p-ieee, modules/log1pf:
31498         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
31499         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
31500         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
31501         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
31502         * modules/logf, modules/logf-ieee, modules/login_tty:
31503         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
31504         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
31505         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
31506         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
31507         * modules/mbscspn, modules/mbsinit, modules/mbslen:
31508         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
31509         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
31510         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
31511         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
31512         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
31513         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
31514         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
31515         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
31516         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
31517         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
31518         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
31519         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
31520         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
31521         * modules/posix_spawn, modules/posix_spawn-internal:
31522         * modules/posix_spawn_file_actions_addclose:
31523         * modules/posix_spawn_file_actions_adddup2:
31524         * modules/posix_spawn_file_actions_addopen:
31525         * modules/posix_spawn_file_actions_destroy:
31526         * modules/posix_spawn_file_actions_init:
31527         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
31528         * modules/posix_spawnattr_getpgroup:
31529         * modules/posix_spawnattr_getschedparam:
31530         * modules/posix_spawnattr_getschedpolicy:
31531         * modules/posix_spawnattr_getsigdefault:
31532         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
31533         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
31534         * modules/posix_spawnattr_setschedparam:
31535         * modules/posix_spawnattr_setschedpolicy:
31536         * modules/posix_spawnattr_setsigdefault:
31537         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
31538         * modules/pow, modules/powf, modules/printf-frexp:
31539         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
31540         * modules/progname, modules/propername, modules/pselect:
31541         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
31542         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
31543         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
31544         * modules/read, modules/readdir, modules/readlink:
31545         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
31546         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
31547         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
31548         * modules/relocatable-script, modules/remainder:
31549         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
31550         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
31551         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
31552         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
31553         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
31554         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
31555         * modules/setlocale, modules/sh-quote, modules/shutdown:
31556         * modules/signal, modules/signbit, modules/sigpipe:
31557         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
31558         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
31559         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
31560         * modules/snippet/link-warning, modules/snippet/unused-parameter:
31561         * modules/snprintf, modules/snprintf-posix, modules/spawn:
31562         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
31563         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
31564         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
31565         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
31566         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
31567         * modules/streq, modules/strerror_r-posix, modules/striconv:
31568         * modules/striconveh, modules/striconveha, modules/strncat:
31569         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
31570         * modules/sublist, modules/sys_resource, modules/sys_utsname:
31571         * modules/sys_wait, modules/system-posix, modules/system-quote:
31572         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
31573         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
31574         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
31575         * modules/truncf, modules/truncf-ieee, modules/truncl:
31576         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
31577         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
31578         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
31579         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
31580         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
31581         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
31582         * modules/wait-process, modules/waitpid, modules/wcpcpy:
31583         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
31584         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
31585         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
31586         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
31587         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
31588         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
31589         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
31590         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
31591         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
31592         * modules/write, modules/xconcat-filename, modules/xlist:
31593         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
31594         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
31595         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
31596         * modules/y0, modules/y1, modules/yn:
31597         Remove Bruno Haible as maintainer; if he's the sole maintainer,
31598         change the maintainer to 'all'.  Let's hope someone volunteers.
31600 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
31602         mktime: merge #if/#ifdef usage from glibc
31603         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
31604         as that works with both Glibc's and Gnulib's style.
31605         See thread starting at Siddhesh Poyarekar's bug report at:
31606         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
31608 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
31610         git-version-gen: improve option descriptions
31611         * build-aux/git-version-gen: Mention that --prefix and --fallback
31612         have a mandatory argument.
31614 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
31616         regex: fix memory leak in compiler
31617         Fix by Andreas Schwab in:
31618         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
31619         * lib/regcomp.c (parse_expression): Deallocate partially
31620         constructed tree before returning error.
31622         regex: merge patch from libc
31623         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
31624         Combine __USE_BSD and __USE_SVID into __USE_MISC.
31625         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
31627 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
31629         acl: port to gcc -Wredundant-decls
31630         From a request by Dmitry Antipov in:
31631         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
31632         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
31633         "#ifndef _GL_ACL_H".
31635 2014-06-11  Bruce Korb  <bkorb@gnu.org>
31636         Jim Meyering  <meyering@fb.com>
31638         parse-duration: eliminate 68-year duration limit
31639         * lib/parse-duration.c: Include "intprops.h".
31640         (TIME_MAX): Rename to MAX_DURATION and define to
31641         TYPE_MAXIMUM(time_t).
31642         * modules/parse-duration (Depends-on): Add intprops.
31643         Reported by Jonas 'Sortie' Termansen.
31645 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31647         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
31648         * modules/pthread (Depends-on): Add 'extensions', as it defines
31649         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
31650         (configure.ac-early): New section.
31651         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
31652         it is no longer needed.
31654 2014-06-14  Pádraig Brady  <P@draigBrady.com>
31656         pthread: define thread-safe macros on some platforms
31657         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
31658         for thread-safe operation on some platforms.
31660 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
31662         regex: don't be multithreaded if USE_UNLOCKED_IO.
31663         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
31664         * lib/regex_internal.h: Do not use multithreaded version if
31665         USE_UNLOCKED_IO is defined.  This is a hack, but it works
31666         around a porting bug with coreutils 8.22 on AIX 7.1.
31668 2014-06-11  Daiki Ueno  <ueno@gnu.org>
31670         gettext: update macros to version 0.19
31671         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
31672         depend on gl_EXTERN_INLINE and drop support for older Bison
31673         versions.
31675 2014-06-10  Pádraig Brady  <P@draigBrady.com>
31677         select,poll: fix console handle check on windows 8
31678         lib/poll.c (IsConsoleHandle): Change from testing the lower
31679         2 bits of the handle to the more expensive but accurate syscall.
31680         lib/select.c: Likewise.
31682 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
31684         select: fix waiting on anonymous pipes on MS-Windows
31685         * lib/select.c (rpl_select): Fall back to polling when select()
31686         indicates there is nothing to check, while due to the timeout not
31687         expiring, activity is indicated on one of the handles.
31688         Also clear the TIMEOUT argument if the timer does expire.
31690 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
31692         times: fix to return non constant value on MS-Windows
31693         * lib/times.c (times): Don't use the process creation time,
31694         rather clock() which on windows returns the number of
31695         clock ticks since the process started.
31697 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
31699         isatty: fix to work on windows 8
31700         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
31701         2 bits of the handle to the more expensive but accurate syscall.
31703 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
31705         maint: fix typo in fdl.texi
31706         * doc/fdl.texi: Fix typo (missing '@').
31707         Somehow this was in fdl.texi but not fdl-1.3.texi.
31709 2014-06-06  Ben Walton  <bdwalton@gmail.com>
31711         mountlist: avoid hasmntopt const type warning on solaris
31712         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
31713         with char * instead of const char *.  Passing the constant string
31714         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
31715         to avoid the warning.
31717 2014-06-04  Eric Blake  <eblake@redhat.com>
31719         maintainer-makefile: delete obsolete code
31720         * top/maint.mk (build_aux): Drop old code, as threatened.
31722         maintainer-makefile: avoid spurious error messages
31723         * top/maint.mk (syntax-check): Guard definition and use of
31724         $(shell) by whether Makefile is present.
31726 2014-06-03  Ben Walton  <bdwalton@gmail.com>
31728         rename: avoid unused-but-set-variable compiler warning
31729         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
31730         it is possible that dst_exists may be set but not used.  Mark it with
31731         the unused attribute to avoid compiler warnings.
31733 2014-06-02  Ben Walton  <bdwalton@gmail.com>
31735         rename: mark a label as potentially unused
31736         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
31737         by marking the out label as potentially unused.
31738         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
31740 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31742         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
31743         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
31745 2014-06-02  Ben Walton  <bdwalton@gmail.com>
31747         acl: apply pure attribute to two functions
31748         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
31749         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
31751 2014-06-01  Pádraig Brady  <P@draigBrady.com>
31753         gnulib-common.m4: add _GL_UNUSED_LABEL
31754         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
31755         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
31757 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
31759         dup2, fcntl, fcntl-h: port to AIX 7.1
31760         This fixes some porting problems discovered when testing the latest
31761         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
31762         in grep but it could be important for other applications.
31763         * doc/posix-functions/dup2.texi:
31764         * doc/posix-functions/fcntl.texi:
31765         * doc/posix-headers/fcntl.texi:
31766         Document AIX bugs.
31767         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
31768         Define to 0 if outside 'int' range.
31769         * m4/dup2.m4 (gl_FUNC_DUP2):
31770         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31771         Check for getdtablesize.  If it's available, test a value just
31772         outside its range instead of testing 1000000.  When cross-compiling,
31773         guess that AIX will fail this improved test.
31775 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31777         printf, config.rpath: Port to FreeBSD 10.
31778         Problem reported by Tijl Coosemans in:
31779         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
31780         * build-aux/config.rpath (hardcode_libdir_flag_spec)
31781         (hardcode_direct): Simplify FreeBSD configuration.
31782         (library_names_spec): Don't mishandle FreeBSD 10+.
31783         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
31784         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
31785         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
31786         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
31787         Don't mishandle FreeBSD 10+ when cross-compiling.
31789         ftoastr: work around compiler bug in IBM xlc 12.1
31790         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
31791         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
31792         around a compiler bug in IBM xlc 12.1.0.0: it complains
31793         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
31794         _GL_FLT_PREC_BOUND.'
31796 2014-05-30  Kieran Colford  <colfordk@gmail.com>
31798         valgrind-tests: fixed misleading help message
31799         * m4/valgrind-tests.m4: The help message generated by configure
31800         implied that valgrind was disabled by default, which it wasn't.
31801         Adjusted the help message using s/enable/disable/ to clarify.
31803 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
31805         isfinite, isinf, isnan tests: fix for little-endian PowerPC
31806         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
31807         first double of a PowerPC "double double" pair.
31808         * tests/test-isinf.c (test_isinfl): Likewise.
31809         * tests/test-isnan.c (test_long_double): Likewise.
31810         * tests/test-isnanl.h (main): Likewise.
31811         * tests/test-signbit.c (test_signbitl): Likewise.
31813 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
31815         exclude-tests: port to AIX 7.1
31816         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
31817         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
31818         the regex code uses locks.
31820 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
31822         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
31823         Without this fix, Emacs would sometimes call sigprocmask instead
31824         of pthread_sigmask, which is a no-no in multithreaded applications.
31825         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
31826         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31827         Suppress check for pthread_sigmask working without -lpthread if
31828         the application always links with -lpthread.  Do not link with
31829         $LIBMULTITHREAD if gl_THREADLIB is not defined.
31830         * m4/timer_time.m4 (gl_TIMER_TIME):
31831         Require gl_THREADLIB only if it is defined.  Do not append
31832         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
31834 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
31836         gnulib-tool: wget translations using --no-verbose rather than --quiet
31837         This allows the user to see error messages if any (--quiet hides them)
31838         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
31840 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
31842         gnulib-tool: adjust translation wget to avoid a https redirection
31843         Context: http://translationproject.org/latest/gnulib redirects to
31844            https://translationproject.org/latest/gnulib/
31845         Rationale: if the user falls back to wget, she doesn't have rsync and
31846         is probably in a minimal build environment, where packages such as
31847         'ca-certificates' are missing as well, resulting in a failed (and
31848         difficult to detect since ignored) translation initial fetch.
31849         Consequently let's avoid https if possible, and add the missing
31850         trailing slash.  This also avoids an unnecessary 302 redirection.
31851         * gnulib-tool: Add trailing slash to gnulib URL.
31853 2014-05-22  Pádraig Brady  <P@draigBrady.com>
31855         getlogin_r-tests: check return value rather than errno
31856         * tests/test-getlogin_r.c (main): As per POSIX we should be
31857         verifying the return value from getlogin_r() rather than errno.
31859 2014-05-22  Pádraig Brady  <P@draigBrady.com>
31861         getlogin_r-tests: fix various issues in recent change
31862         * tests/test-getlogin_r.c: Include required headers that were
31863         missed in recent commit eec20b4e.
31864         Also consistently check the errno rather than the return value from
31865         getlogin_r as POSIX only specifies that non zero is returned on error.
31866         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
31868 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
31870         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
31871         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
31872         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
31873         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
31874         * lib/spawn-pipe.c:
31875         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
31876         and then 'int open64(const char *, int, ...);', which means the
31877         declaration for 'open' gets lost if we later '#undef open'.
31878         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
31879         where the compilation reported the non-fatal error "In function
31880         'openat_proc_name' ... warning: implicit declaration of function
31881         'open'".  In this case the error is relatively harmless, but in
31882         other cases it might not be so minor.
31884 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31886         xalloc: don't potentially generate invalid code for xmemdup calls
31887         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
31888         this function can initialize the newly-allocated storage with new
31889         pointers, which means this function is not malloc-like.  See:
31890         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
31892 2014-05-19  Pádraig Brady  <P@draigBrady.com>
31894         getlogin_r-tests: avoid false failure under sudo/ssh etc.
31895         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
31896         changes from commit 97249cf29 to not depend on environment variables.
31898 2014-05-18  Pádraig Brady  <P@draigBrady.com>
31900         getlogin-tests: avoid false failure under cron
31901         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
31902         since that's not what's under test.  Centos 6 was seen to return
31903         EINVAL for ttyname() when run from cron.
31905 2014-05-16  Jim Meyering  <meyering@fb.com>
31907         mbrtowc.m4: fix a comment typo
31908         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
31909         emitted documentation string.
31911 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31913         mbrlen, mbrtowc: fix bug with empty input
31914         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
31915         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
31916         so this is mainly for documentation.
31917         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
31918         (gl_FUNC_MBRTOWC): Use it.
31919         * tests/test-mbrtowc.c (main): Test for the bug.
31921 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
31923         doc: document mbrtowc and mbrlen problem with empty input
31924         * doc/posix-functions/mbrlen.texi (mbrlen):
31925         * doc/posix-functions/mbrtowc.texi (mbrtowc):
31926         Document portability problem when the input string is empty.  See:
31927         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
31929         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
31930         Problem reported by Eli Zaretskii in:
31931         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
31932         * doc/posix-functions/execl.texi (execl):
31933         * doc/posix-functions/execle.texi (execle):
31934         * doc/posix-functions/execlp.texi (execlp):
31935         * doc/posix-functions/execv.texi (execv):
31936         * doc/posix-functions/execve.texi (execve):
31937         * doc/posix-functions/execvp.texi (execvp):
31938         Mention spawn+exit problem on non-Cygwin Windows platforms.
31940 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
31942         getlogin-tests: avoid false failure under sudo/ssh etc.
31943         * modules/getlogin-tests (configure.ac): Check for ttyname().
31944         * tests/test-getlogin.c (main): Don't depend on environment variables
31945         to correlate with getlogin(), since sudo and ssh etc. can tamper
31946         with the LOGNAME and USER env vars.  Instead lookup the name from
31947         the uid associated with the stdin tty.
31949 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31951         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
31952         These were found when building the latest grep snapshot on IRIX 6.5.
31953         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
31954         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
31955         never used later.
31956         * lib/quotearg.c (quoting_options_from_style):
31957         * lib/xstrtol.c (__xstrtol):
31958         Use enum instead of 0, to pacify IRIX 6.5 cc.
31960 2014-04-18  Pádraig Brady  <P@draigBrady.com>
31962         gitlog-to-changelog: revert inclusion of git-log-fix file
31963         * build-aux/git-log-fix: Delete dummy file.
31964         * modules/gitlog-to-changelog: Don't reference (overwrite)
31965         the project specific git-log-fix file.
31967 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
31969         maint.mk: Relax the copyright check to cater for non FSF projects
31970         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
31971         to not require the "Free" suffix after the copyright years.
31973 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
31975         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
31976         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
31977         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
31978         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
31979         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
31981 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
31983         exclude: port to strict C99
31984         Strict C does not allow converting a function pointer to void *
31985         and vice versa.  Pass a pointer to a function pointer instead.
31986         * lib/exclude.c (add_exclude_file):
31987         Pass the address of the function pointer.
31988         (call_addfn): And deference the address here, to match.
31990 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31992         regex: do not depend on malloc-gnu
31993         * modules/regex (Depends-on): Remove malloc-gnu.
31994         It's no longer needed, because of the 2012-12-29 patch
31995         "regex: port to hosts where malloc (0) == NULL".
31996         Reported by Nathan Kennedy in:
31997         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
31999 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
32001         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
32002         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
32003         * doc/posix-functions/expl.texi: Mention the workaround.
32005 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32007         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
32008         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
32009         size to be zero even when the pointer is nonnull.  This
32010         accommodates the use case where P is malloc (0) and *PN is 0 on a
32011         host where malloc (0) yields nonnull.
32013 2014-04-09  Eric Blake  <eblake@redhat.com>
32015         fts: avoid unnecessary strlen calls
32016         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
32018 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32020         fts: avoid unnecessary strlen calls
32021         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
32022         when that can be faster than strlen.
32024 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32026         fts: avoid unnecessary strlen calls
32027         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
32028         (fts_build): Store the length of the dp->d_name entry in a local variable
32029         instead of calling strlen() several times via the above, removed macro.
32030         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
32031         run by ~4%, yet this reduces the execution time by about a third if run
32032         via "ltrace -c rm -rf some-dir".
32034 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32036         obstack: Remove ancient NeXTSTEP gcc support conditional
32037         This change will ease merging with glibc.  The "#if ... __NEXT__"
32038         causes a warning with -Wundef which glibc now enables by default.
32039         Problem reported by Will Newton in
32040         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
32041         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
32042         so go with that.
32043         * lib/obstack.h (__extension__):
32045 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32047         obstack: merge with glibc changes
32048         * lib/obstack.c, lib/obstack.h: Merge from glibc.
32049         This is mostly indenting and commentary changes.
32050         Instances of 'register' have been removed.
32052 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32054         strftime: wrap macros in "do {...} while(0)"
32055         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
32056         this macro in "do {...} while(0)" to prevent false use as a
32057         single statement, e.g., in an un-braced "{}" else-block.
32058         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
32059         (strftime_case_): Remove 'else' after 'goto' - which was the
32060         only non-fatal, un-braced use of one of the above macros.
32061         Spotted by coverity (NESTING_INDENT_MISMATCH).
32063 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32065         modechange: avoid memory leaks for invalid octal modes
32066         * lib/modechange.c (mode_compile): During the parsing of
32067         notations like +40, free the 'mc' buffer for invalid mode
32068         strings like +17777 (greater than the maximum octal mode),
32069         =18 (bad octal mode characters) or u=1 ('affected' with
32070         octal modes).
32071         Reproducer, e.g.:
32072             $ valgrind --leak-check=full chmod +17777 file
32073         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
32074         add notations +40, 00440, etc.".
32075         Spotted by coverity (RESOURCE_LEAK).
32077 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
32079         gitlog-to-changelog: include a dummy git-log-fix file
32080         Problem reported by Nathan Stratton Treadway in:
32081         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
32082         * build-aux/git-log-fix: New file.
32084 2014-03-13  Jim Meyering  <meyering@fb.com>
32086         gitlog-to-changelog: also include the file, git-log-fix
32087         * modules/gitlog-to-changelog (Files): Add git-log-fix.
32088         Reported by Assaf Gordon.
32090 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
32092         regex: port to OS X 10.8.5 en_US.UTF-8 locale
32093         This fixes a bug when ignoring case and when comparing the
32094         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
32095         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
32096         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
32097         titlecase letter is neither lowercase nor uppercase, but
32098         uppercasing the titlecase letter (via towupper) yields the
32099         uppercase letter, so the two letters should match when ignoring case.
32100         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
32101         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
32102         Don't test whether a character is lowercase before uppercasing it.
32104 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
32106         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
32107         This is basically one of the options Bruno Haible proposed in:
32108         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
32109         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
32110         * lib/stdint.in.h: Use it.
32111         * modules/stdint (Depends-on): Add sys_types.
32113 2014-02-26  Pádraig Brady  <P@draigBrady.com>
32115         parse-datetime: fix crash or infloop in TZ="" parsing
32116         * lib/parse-datetime.y (parse_datetime): Break out of the
32117         TZ="" parsing loop once the second significant " is found.
32118         Also skip over any subsequent whitespace to be consistent
32119         with the non TZ= case.
32120         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
32122 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32124         savedir: new symbol for fast-read version
32125         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
32126         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
32127         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
32128         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
32130 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32132         unistd: port readlink to Mac OS X 10.3.9
32133         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
32134         around self-include problem in Mac OS X 10.3.9 when combined with
32135         readlink module.  Problem reported by Klaus Zietler in
32136         <http://bugs.gnu.org/16825>.
32138 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
32140         diffseq: remove TOO_EXPENSIVE heuristic
32141         Problem with diffutils reported by Vincent Lefevre in
32142         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
32143         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
32144         Although appropriate for circa-1993 hardware, these days the heuristic
32145         seems to be more trouble than it's worth.
32146         * lib/diffseq.h: Modernize citations.
32147         (struct context): Remove member too_expensive.
32148         All uses changed.
32149         (struct partition): Remove members lo_minimal, hi_minimal.
32150         All uses changed.
32151         (diag, compareseq): Remove arg find_minimal.  All uses changed.
32152         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
32153         1993 to make 'diff' run faster (but not as well) on large inputs.
32154         These days, computers are fast enough that it's typically better
32155         to run slower but more accurately.
32156         * lib/fstrcmp.c: Remove duplicate comment.
32157         * lib/fstrcmp.c (strcmp_bounded):
32158         * lib/git-merge-changelog.c (compute_differences):
32159         Adjust to diffseq.h changes.
32160         * NEWS: Document the change.
32162         savedir: simplify by using stpcpy
32163         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
32164         (streamsavedir): Use stpcpy instead.
32165         * modules/savedir (Depends-on): Add stpcpy.
32167 2014-02-21  Pádraig Brady  <P@draigBrady.com>
32169         spawn: fix link error on uclibc
32170         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
32171         to incorporate -lrt if needed (on uclibc for example).
32172         * modules/posix_spawn: Reference the substituted LIB.
32174 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
32175         timer: fix uClibc detection of threading
32176         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
32177         enabled in uClibc.
32179 2014-02-21  Eric Blake  <eblake@redhat.com>
32181         maintainer-makefiles: provide AC_PROG_SED for older autoconf
32182         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
32184 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
32186         exclude: add support for posix regexps
32188         This commit adds support for POSIX extended regular expressions
32189         and fixes a long-standing memory leak (pattern buffer was never
32190         freed).  It also implements a new interface function to read
32191         exclude patterns from a FILE, which passes an additional parameter
32192         to its callback function, thereby allowing to preserve its state
32193         between invocations.
32195         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
32196         (pattern_buffer): New struct.
32197         (exclude): New member patbuf.
32198         (exclude_add_pattern_buffer): New function.
32199         (free_exclude_segment): Free regexps.
32200         (free_exclude): Free allocated pattern buffers.
32201         (exclude_patopts): New function.
32202         (file_pattern_matches): Use exclude_patopts.
32203         (add_exclude): support regexps.
32204         (add_exclude_fp): New function.
32205         (add_exclude_file): Rewrite using add_exclude_fp.
32206         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32207         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32208         (add_exclude_fp)
32209         (add_exclude_file): Rewrite using add_exclude_fp.
32210         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32211         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32212         (add_exclude_fp)
32213         (exclude_add_pattern_buffer): New prototypes.
32214         * modules/exclude: Depends on regex and filename.
32216 2014-02-20  Eric Blake  <eblake@redhat.com>
32218         maintainer-makefiles: use $(SED) for syntax check
32219         * modules/maintainer-makefile (configure.ac): Check for sane sed.
32220         * top/maint.mk: Change sed to $(SED).
32222 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
32223             Paul Eggert  <eggert@cs.ucla.edu>
32225         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
32226         Patch based on an idea by Dick Streefland in
32227         <https://savannah.gnu.org/patch/?7892>.
32228         * NEWS: Document this.
32229         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
32230         (direntry_t, comparison_function): New types.
32231         (direntry_cmp_name): New function.
32232         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
32233         (streamsavedir, savedir): New arg OPTION.
32234         (streamsavedir): Simplify memory allocation.
32235         (fdsavedir): Remove.
32236         * lib/savedir.h (enum savedir_option): New type.
32237         (streamsavedir, savedir): New arg OPTION.
32238         (fdsavedir): Remove.
32240 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32242         file-type: add support for doors and other less-common file types
32243         Problem with S_ISDOOR reported by Rich Burridge.
32244         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
32245         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
32246         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
32248 2014-01-23  Eric Blake  <eblake@redhat.com>
32250         pthread: work around winpthread header pollution on mingw
32251         * lib/time.in.h: Move pthread workarounds...
32252         * lib/pthread.in.h: ...here.
32253         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
32254         detect macro pollution on mingw.
32255         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
32257 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32259         qacl: check for fchmod
32260         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
32261         and qset-acl.c both use HAVE_FCHMOD.
32263 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32265         fdopen-tests: port to Tru64
32266         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
32267         descriptor that is not open, as POSIX doesn't specify the
32268         resulting behavior and the test does not work on Tru64.
32269         Problem reported by Steven M. Schweda in:
32270         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
32272         stdalign: port to HP-UX compilers
32273         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
32274         if __HP_cc or __HP_aCC are nonzero.
32276 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32278         strtoimax: port to platforms lacking 'long long'
32279         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
32280         check whether strtoll is declared, which causes the C file to
32281         wrongly report an error.  Problem reported by Steven M. Schweda in:
32282         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
32283         * lib/strtoimax.c (strtoull):
32284         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
32285         (strtoll): Declare only if HAVE_LONG_LONG_INT.
32287 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
32289         relocatable-perl: fix texi syntax
32290         * doc/relocatable-maint.texi: Escape braces.
32292 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
32294         relocatable-perl: like relocatable-script, but for Perl scripts
32295         * build-aux/relocatable.pl.in: Add.
32296         * doc/relocatable-maint.texi: Add documentation.
32297         * modules/relocatable-perl: Add.
32299 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
32301         tests: fix export bug in previous patch
32302         Problem reported by Jim Meyering.
32303         * tests/init.sh (re_shell): New var, which is exported instead of
32304         re_shell_.
32306         tests: simplify porting to Solaris 10 /bin/sh
32307         Some test cases in 'grep' need a shell that groks '$(';
32308         export re_shell_ for their benefit.  Problem reported for 'grep'
32309         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
32310         * tests/init.sh (re_shell_): Export if it's used.
32312 2014-01-06  Eric Blake  <eblake@redhat.com>
32314         md5, sha1, sha256, sha512: support older autoconf
32315         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
32316         for autoconf < 2.63b.
32318         include_next: port to autoconf 2.63
32319         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
32321 2014-01-04  Jim Meyering  <meyering@fb.com>
32323         maint: add a gnulib-local rule to keep non-ascii out of .texi files
32324         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
32325         so that "make sc_maint" will ding anyone who puts non-ascii
32326         in any of gnulib's .texi files.
32328 2014-01-03  Jim Meyering  <meyering@fb.com>
32330         freadable, fwritable, fwriting: declare with the "pure" attribute
32331         * lib/freadable.h (freadable): Declare with the "pure" attribute.
32332         * lib/fwritable.h (fwritable): Likewise.
32333         * lib/fwriting.h (fwriting): Likewise.
32334         Suggested by Bruno Haible.
32336         maint.mk: adapt openat.h-include-without-use test
32337         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
32338         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
32339         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
32340         With this change, running "make sc_maint" in gnulib's top-level
32341         directory now passes for me.
32343 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32345         doc: use ASCII in .texi files where UTF-8 isn't needed
32346         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
32347         * doc/posix-functions/setkey.texi, doc/regex.texi:
32348         Use ASCII input, not UTF-8.
32350 2014-01-02  Jim Meyering  <meyering@fb.com>
32352         freading: declare with the "pure" attribute
32353         * lib/freading.h (freading): Declare with the "pure" attribute.
32355         manywarnings: remove -Wmudflap
32356         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
32357         it is no longer supported in gcc-4.9-to-be.
32359 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32361         relocatable-script: remove unused code
32362         Problem reported by Reuben Thomas in:
32363         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
32364         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
32366 2014-01-01  Jim Meyering  <meyering@fb.com>
32368         maint: fix public-submodule-commit to work with newer git
32369         * top/maint.mk (public-submodule-commit): Remove excess quoting.
32370         We were over-quoting the test arguments, and somewhere prior to
32371         version 1.8.5.2.229, git stopped removing those excess quotes,
32372         which made the test fail, since the unexpanded strings would
32373         always differ; using GIT_TRACE=1 confirmed that the git merge-base
32374         command wasn't even being run.
32376 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32378         doc: update main copyright year
32379         * doc/gnulib.texi: Update copyright date.
32381 2014-01-01  Eric Blake  <eblake@redhat.com>
32383         version-etc: new year
32384         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
32385         * all files: run 'make update-copyright'
32387 2013-12-24  Eric Blake  <eblake@redhat.com>
32389         passfd: give nicer error for recvfd at eof
32390         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
32391         * tests/test-passfd.c (main): Enhance test to cover this.
32393 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32395         gettimeofday: port recent C++ fix to Emacs
32396         Without this further patch, Emacs won't build due to
32397         the portcheck failing.  Also, this simplifies the patch a bit.
32398         * lib/time.in.h (localtime, gmtime): Don't replace unless
32399         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
32400         * lib/time.in.h (localtime, gmtime):
32401         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
32402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32403         * modules/time (time.h):
32404         Don't worry about the possibility of localtime and gmtime
32405         being absent; they're present in all C libraries we know about.
32406         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32407         Don't assume sys_time is present and has been initialized.
32408         Instead, use a hack that should work even if it hasn't been.
32409         Don't use a portcheck for gmtime or localtime; this supports
32410         the hack.
32411         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
32413 2013-12-17  John W. Eaton  <jwe@gnu.org>
32415         gettimeofday: fix C++ crosscompilation
32417         Never replace gmtime and localtime by macros when compiling with
32418         C++, this prevents <ctime> from being included.
32420         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
32421         define gmtime and localtime as preprocessor macros.  Instead
32422         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
32423         REPLACE_LOCALTIME substitutions.
32424         * lib/time.in.h: Declare gmtime and localtime when needed.
32425         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
32426         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
32427         * modules/time: Depend on gettimeofday, and substitute the above
32428         variables in time.h.
32430 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32432         qacl: port to Windows better
32433         See Eli Zaretskii in
32434         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
32435         * lib/file-has-acl.c (acl_access_nontrivial):
32436         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
32437         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
32439 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
32441         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
32442         * lib/gl_openssl.h: Cast void pointers to a specific type.
32444 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32446         open-tests: fix build failure with -Werror=old-style-declaration
32447         * tests/test-open.h: Reorder the inline to avoid the issue.
32449 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32451         md5, sha1, sha256, sha512: fix link error with partial libcrypto
32452         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
32453         init time, so that if early checks find crypto routines,
32454         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
32455         avoiding link failures.
32457 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32459         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
32460         This provides a new way to specify the default for
32461         gl_CRYPTO_CHECK, one that is reflected in the --help message.
32462         Emacs uses this, as well as the old way.
32463         This attempts to implement a suggestion by Pádraig Brady in
32464         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
32465         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
32466         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
32468         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
32469         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
32470         Add support for a new option, --with-openssl=auto, which causes
32471         the library to be used if available and silently ignored if not.
32472         Add support to allow configure.ac to specify its own
32473         default, by setting with_openssl_default before invoking gl_INIT.
32475 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32477         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
32478         Problem reported by Daiki Ueno in:
32479         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
32480         * tests/test-open.h (__always_inline):
32481         New macro, if not already defined.
32482         (test_open): Use it.
32484 2013-12-04  Eric Blake  <eblake@redhat.com>
32486         include_next: minimize code duplication
32487         * modules/include_next (Depends-on): Add absolute-header.
32488         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
32489         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
32491 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32493         getcwd: fix compile error in configure check
32494         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
32496 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32498         regex: suppress core dumps from detection code
32499         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
32500         to suppress core dumps that may well occur on glibc systems.
32501         These core dumps might not be cleaned up automatically, or could
32502         trigger some system core dump handling logic.
32504 2013-12-03  Pádraig Brady  <P@draigBrady.com>
32506         md5, sha1, sha256, sha512: support mandating use of openssl
32507         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
32508         description, to list the now 3 separate options.  also don't
32509         mention the default=no, since this is implicit given the option
32510         is described as --with-openssl rather than --without-openssl.
32511         If projects change the default they're free to document that.
32512         with --with-openssl[=yes] we now error out when the specified
32513         hash algorithm is not available in libcrypto.
32515 2013-12-03  Ivailo  <xakepa10@gmail.com>
32517         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
32518         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
32519         -Wformat-nonliteral checks, as these edge cases are part of the test.
32521 2013-12-03  Eric Blake  <eblake@redhat.com>
32523         regex: avoid glibc deadlock during configure
32524         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
32525         glibc bug 15078 in turn triggers bug 16159.
32526         Reported by Michal Privoznik.
32528 2013-12-02  Pádraig Brady  <P@draigBrady.com>
32530         md5, sha1, sha256, sha512: use openssl routines if available.
32531         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
32532         routines will be used if available, requiring apps to link @LIB_CRYPTO@
32533         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
32534         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
32535         in the standard system location.
32536         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
32537         * m4/sha256.m4: Likewise with SHA256.
32538         * m4/sha512.m4: Likewise with SHA512.
32539         * m4/md5.m4: Likewise with MD5.
32540         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
32541         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
32542         * lib/sha256.h: Likewise with SHA256.
32543         * lib/sha512.h: Likewise with SHA512.
32544         * lib/md5.h: Likewise with MD5.
32545         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
32546         * lib/sha256.c: Likewise with SHA256.
32547         * lib/sha512.c: Likewise with SHA512.
32548         * lib/md5.c: Likewise with MD5.
32549         * modules/crypto/sha1 (Link:): Add the new optional lib.
32550         (Depends-on:): Add dependency on extern-inline.
32551         * modules/crypto/sha256: Likewise.
32552         * modules/crypto/sha512: Likewise.
32553         * modules/crypto/md5: Likewise.
32554         * modules/crypto/sha1-tests: Reference the lib here too.
32555         * modules/crypto/md5-tests: Likewise.
32556         * modules/crypto/gc-des-tests: Likewise.
32557         * modules/crypto/gc-hmac-md5-tests: Likewise.
32558         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32559         * modules/crypto/gc-hmac-sha256-tests: Likewise.
32560         * modules/crypto/gc-hmac-sha512-tests: Likewise.
32561         * modules/crypto/gc-md5-tests: Likewise.
32562         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32563         * modules/crypto/gc-sha1-tests: Likewise.
32564         * modules/crypto/gc-tests: Likewise.
32565         * modules/crypto/hmac-md5-tests: Likewise.
32566         * modules/crypto/hmac-sha1-tests: Likewise.
32567         * modules/crypto/hmac-sha256-tests: Likewise.
32568         * modules/crypto/hmac-sha512-tests: Likewise.
32570 2013-11-29  RV1971  <rv1971@web.de>
32572         base64: (trivial) fix compilation regression on some compilers
32573         * lib/base64.c: Don't return the void function,
32574         instead split to a separate return statement.
32576 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32578         ignore-value: revert previous code change
32579         * lib/ignore-value.h (ignore_value): Use __extension__ and
32580         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
32581         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
32582         Change the comment to try to explain this better.
32584 2013-11-27  Pádraig Brady  <P@draigBrady.com>
32586         selinux-h: improve stub types and add more stub functions
32588         * lib/se-selinux.in.h: Change security_context_t to a typedef
32589         rather than a define, as it's a pointer type and so is better
32590         as a typedef to avoid issues declaring multiple variables
32591         with the comma operator.  Also add stub for string_to_security_class().
32592         * lib/se-context.in.h: Add stub functions for
32593         context_{type,range,role,user}_get().
32595 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32597         ignore-value: prefer GCC version back through 2.0
32598         The code didn't match the comments, so I did a bit of software
32599         archaeology.  GCC 2.0 seems to support __extension__ and
32600         __typeof__, so fix both code and comments to use 2.0.
32601         * lib/ignore-value.h (ignore_value): Use __extension__ and
32602         __typeof__ for GCC 2.0 through 3.3, too.
32604 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
32606         pty: Activate the signature wrapper of forkpty.
32607         The intended preprocessor macro HAVE_FORKPTY is
32608         never defined, yet `lib/forkpty.c' depends on it.
32610         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
32611         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
32612         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
32614 2013-11-18  Jim Meyering  <meyering@fb.com>
32615         and Paul Eggert  <eggert@cs.ucla.edu>
32617         quotearg: don't attempt to store 1 << 31 into an "int"
32618         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
32619         gcc's new -fsanitize=undefined and running its tests triggered some
32620         new test failures due to undefined behavior, all with this diagnostic:
32621           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
32622             cannot be represented in type int
32623         Rather than shifting "1" left to form a mask, shift the bits right and
32624         simply use "1" as the mask.
32626 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
32628         error: depend on stdio
32629         Problem reported by Nikos Mavrogiannopoulos in
32630         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
32631         * modules/error (Depends-on): Add stdio.
32633 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
32635         * doc/relocatable-maint.texi (Supporting Relocation): Improve
32636         wording.
32637         Reported by Reuben Thomas <rrt@sc3d.org>.
32639 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
32641         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
32642         New function and macro, to work around _DARWIN_C_SOURCE problem.
32643         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
32645 2013-11-11  Pádraig Brady  <P@draigBrady.com>
32647         base64: provide a fast path for encoding well sized buffers
32648         Avoid conditionals in the base64 encoding loop,
32649         which was seen to give 60% better throughput.
32650         * lib/base64.c (base64_encode_fast): A new function to be called
32651         when we don't want to NUL terminate, and we have enough space
32652         in the output to encode the given input.
32653         (base64_encode): Call the _fast() version when appropriate.
32654         Also remove a redundant mask with 0x3F on the first encoded byte.
32656 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32658         extern-inline: port better to OS X 10.9
32659         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
32660         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
32661         OS X 10.9, except for g++ where the bug is still present.
32662         See <http://trac.macports.org/ticket/41033>.
32664 2013-11-08  Eric Blake  <eblake@redhat.com>
32666         fpending: fix regression on DragonFly BSD
32667         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
32668         * lib/fpending.h (__fpending): Don't declare twice.
32669         Reported by GW in
32670         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
32672 2013-11-05  Jim Meyering  <meyering@fb.com>
32674         hash: relax license to LGPLv2+, for libguestfs
32675         * modules/hash (License): Change from GPL to LGPLv2+.
32677 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32679         intprops: port to Oracle Studio c99
32680         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
32681         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
32683 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32685         obstack: pacify HP C
32686         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
32687         warning "conversion from pointer to smaller integer" from HP
32688         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
32689         C89 or later nowadays, so cast to void instead of int.  Privately
32690         reported by H.Merijn Brand.  Also, change header to match glibc's,
32691         to make checking against glibc easier.
32693 2013-10-29  Jim Meyering  <meyering@fb.com>
32695         maint.mk: prefer gpgv2 over gpgv
32696         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
32697         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
32698         Reported by Gary Vaughan.
32700 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32702         isnan: port to VAX
32703         Reported by John Klos for NetBSD-5/VAX in
32704         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
32705         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
32706         (FUNC): Use it.
32708 2013-10-28  Jim Meyering  <meyering@fb.com>
32710         gnulib-tool: protect against CDPATH
32711         * gnulib-tool: Many "cd" built-in functions print a directory name
32712         to stdout when CDPATH is set, e.g.,
32713           $ bash -c 'CDPATH=/; cd tmp'
32714           /tmp
32715         Unset it, when possible.  Prompted by a comment from Bruce Korb.
32717         maint.mk: restore functionality removed by recent change...
32718         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
32719         the context of a shallow-cloned gnulib repository: "git describe"
32720         would fail in such a directory.  However, that change made it so
32721         the reported gnulib revision no longer includes the version number
32722         or a commit count, even when run from a full clone.
32723         * top/maint.mk (gnulib-version): Use the full "git describe"
32724         output when possible, e.g., the form above, rather than the
32725         abbreviated, no-tag, no-commit-count string, and fall back to
32726         using a 10-byte hash, rather than the default minimal-length
32727         hash prefix, since while the minimal-length one may be fine today,
32728         it is likely not to be unique for very long.
32730 2013-10-26  Jim Meyering  <meyering@fb.com>
32732         maint.mk: fix "release" target to build _version
32733         This fixes a bug in README-release whereby following the outlined
32734         steps, one would publish a tarball whose programs would report
32735         --version output not consistent with the package version number.
32736         This bug caused grep-2.15 to produce a grep program whose
32737         --version option made it print 2.14.56-1e3d rather than 2.15.
32738         * top/maint.mk (release): Making this target build "_version"
32739         ensures that the new version number is reflected in configure.
32741 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
32743         install-reloc: Support multi-binary installation.
32744         * build-aux/install-reloc: Support installing multiple programs in
32745         one invocation, as done by Automake starting with commit
32746         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
32747         Haible <bruno@clisp.org>, archived at
32748         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
32749         Reported by Sylvain <beuc@gnu.org>.
32751 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32753         selinux-h: Really build without selinux when library is missing.
32754         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
32755         continue without selinux, as already told in the warning message.
32757 2013-10-21  Jim Meyering  <meyering@fb.com>
32759         regex: also remove dependency on HAVE_WCSCOLL
32760         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
32762 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
32764         xfreopen: Fix typo. s/frepoen/freopen/
32765         * lib/xfreopen.c: Fix description.
32766         * modules/xfreopen: Likewise.
32768 2013-10-21  Jim Meyering  <meyering@fb.com>
32770         regex: don't depend on wcscoll
32771         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
32772         It is no longer used.
32774 2013-10-20  Jim Meyering  <meyering@fb.com>
32776         error: add the printf attribute to a static function
32777         * lib/error.c (error_tail): Add the printf attribute, to placate
32778         gcc's -Werror=suggest-attribute=format option.
32780 2013-09-30  Jim Meyering  <meyering@fb.com>
32782         fpending, obstack, strerror-override: use pure+const function attrs
32783         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
32784         * lib/obstack.c (_obstack_allocated_p): Likewise.
32785         * lib/obstack.h (_obstack_memory_used): Likewise.
32786         (_obstack_memory_used): Likewise.
32787         * lib/strerror-override.h (strerror_override): Declare with
32788         the "const" attribute.
32790 2013-10-18  Eric Blake  <eblake@redhat.com>
32792         extern-inline: make safe for -Wundef usage
32793         Reported by Vladimir 'phcoder' Serbinenko in
32794         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
32795         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
32797 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32799         mkfifo-tests, etc.: allow HP-UX 11.11 bug
32800         Problem reported by Daniel Richard G. in
32801         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
32802         * doc/posix-functions/mkfifo.texi (mkfifo):
32803         * doc/posix-functions/mkfifoat.texi (mkfifoat):
32804         * doc/posix-functions/mknod.texi (mknod):
32805         * doc/posix-functions/mknodat.texi (mknodat):
32806         Document the HP-UX 11.11 bug.
32807         * tests/test-mkfifo.h (test_mkfifo):
32808         Allow the HP-UX 11.11 bug.
32810 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
32812         acl: allow cross-compilation to Gentoo
32813         Problem reported by Gabriel Marcano in
32814         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
32815         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
32816         test only whether it links.
32818 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
32820         mgetgroups: remove dependency on realloc-gnu
32821         The dependency violates the comment in realloc-gnu, which
32822         says that tests can't depend on realloc-gnu; some tests depend
32823         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
32824         Problem reported by Daniel Richard G. in
32825         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
32826         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
32827         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
32828         not realloc-gnu.
32830 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
32832         regex-tests: port to HP-UX 11.11
32833         Problem reported by Daniel Richard G. in
32834         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
32835         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
32837 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32839         verify: document some 'assume' pitfalls
32840         * doc/verify.texi (Compile-time Assertions):
32841         Mention that 'assume (E)' can sometimes slow things down.
32842         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
32844 2013-10-10  Eric Blake  <eblake@redhat.com>
32846         strtoumax: fix typo in previous commit.
32847         * modules/strtoumax (Depends-on): Fix typo.
32848         * modules/strtoimax (Depends-on): Likewise.
32850 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32852         strtoumax: port to Solaris 8
32853         This problem was introduced in the recent HP-UX patch.
32854         Reported by Tom G. Christensen in
32855         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
32856         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
32857         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
32859 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
32861         strtoimax, strtoumax: port to HP-UX 11.11
32862         Problem reported by Daniel Richard G. in
32863         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
32864         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
32865         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
32866         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
32867         REPLACE_STRTOUMAX.
32868         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
32869         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
32870         Replace the function if defined as a macro but not as a function.
32871         * modules/inttypes-incomplete (inttypes.h): Substitute
32872         REPLACE_STRTOUMAX.
32873         * modules/strtoumax (configure.ac): Replace strtoumax if
32874         REPLACE_STRTOUMAX.
32876 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
32878         strtoimax: port to HP-UX 11.11
32879         Problem reported by Daniel Richard G.
32880         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
32881         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
32882         they might clash with inttypes.h.
32884 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32886         New module 'count-trailing-zeros'.
32887         * MODULES.html.sh: Mention it.
32888         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
32889         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
32890         * modules/count-trailing-zeros-tests:
32891         * tests/test-count-trailing-zeros.c:
32892         New files.
32894         count-leading-zeros: port to MSC; support types wider than 64 bits
32895         The ideas behind the MSC port are stolen from Emacs.
32896         * lib/count-leading-zeros.h:
32897         Don't include verify.h: it's no longer needed, as types wider than
32898         64 bits are now supported.
32899         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
32900         performance with MSC.  All uses changed.  Do not assume that TYPE
32901         has at most 64 bits.
32902         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
32903         All uses changed.  Fold the subtraction from 31 into the table.
32905         count-one-bits: port to MSC; support types wider than 64 bits
32906         The ideas behind the MSC port are stolen from Emacs.
32907         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
32908         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
32909         Don't include verify.h: it's no longer needed, as types wider than
32910         64 bits are now supported.
32911         (COUNT_ONE_BITS_GENERIC): New macro.
32912         (popcount_supported) [_MSC_VER]: New inline function.
32913         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
32914         performance with MSC.  All uses changed.  Do not assume that TYPE
32915         has at most 64 bits.
32916         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
32918 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
32920         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
32921         * lib/mountlist.c (read_file_system_list): fix leak of directory
32922         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
32924 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32926         tests: improve diagnostic when an assertion fails
32927         * tests/macros.h (ASSERT): Report the assertion that failed.
32929 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
32931         verify: new macro 'assume'
32932         This is taken from Emacs, and should be generally useful.
32933         * doc/verify.texi (assume): Document it.
32934         * lib/verify.h (assume): New macro.
32935         (__has_builtin): Expand to 0 if not defined.
32937 2013-09-26  Eric Blake  <eblake@redhat.com>
32939         dup2, dup3: work around another cygwin crasher
32940         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
32941         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
32942         * tests/test-dup2.c (main): Likewise.
32943         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
32944         * lib/dup3.c (dup3): Likewise.
32945         * doc/posix-functions/dup2.texi (dup2): Document it.
32946         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32948         getdtablesize: work around cygwin issue
32949         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
32950         * modules/getdtablesize (configure.ac): Build replacement.
32951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
32952         * modules/unistd (Makefile.am): Expose the witness.
32953         * lib/unistd.in.h (getdtablesize): Declare replacement.
32954         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
32955         * tests/test-getdtablesize.c (main): Test it.
32956         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
32958 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
32960         pmccabe2html: escaping of special characters
32961         Escape all '<', '>', and '&' in HTML output.
32962         * build-aux/pmccabe2html (html_fnc): Call gsub()
32963         instead of sub() to capture all '<', '>', and '&'.
32964         Neither of '<' and '>' is special in a regexp,
32965         so first arguments to gsub() are corrected. Also,
32966         in replacement strings, ampersand must be escaped.
32967         Finally, '&' must be handled first, then '<' and '>'.
32969 2013-09-24  Eric Blake  <eblake@redhat.com>
32971         manywarnings: enable nicer gcc warning messages
32972         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
32973         some -f options for optimal warnings.
32975 2013-09-21  Jim Meyering  <meyering@fb.com>
32977         timespec: use the new TIMESPEC_RESOLUTION in a few more places
32978         * lib/timespec-add.c (timespec_add): Also replace 999999999
32979         with TIMESPEC_RESOLUTION - 1.
32980         * lib/timespec-sub.c (timespec_sub): Likewise.
32982 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
32984         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
32985         Problem reported by Dagobert Michelsen via Eric Blake in
32986         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
32987         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
32988         not AC_COMPILE_IFELSE.
32990 2013-09-23  Eric Blake  <eblake@redhat.com>
32992         configmake: support new --runstatedir option
32993         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
32994         even if autoconf was too old to provide the command line option.
32995         * modules/configmake (Makefile.am): Propagate it to .h file.
32997 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
32999         ctype, string: depend on extern-inline
33000         This is needed to complete the recent OS X fixes.
33001         Also, fix related documentation as suggested by Eric Blake.
33002         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33003         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
33004         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
33005         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
33006         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
33007         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
33008         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
33009         * doc/posix-functions/toupper.texi:
33010         List the 'ctype' gnulib module.
33011         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
33012         * doc/posix-functions/strncpy.texi:
33013         List the 'string' gnulib module.
33014         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
33015         Add string.
33016         * modules/ctype, modules/string (Depends-on): Add extern-inline.
33018 2013-09-19  Pádraig Brady  <P@draigBrady.com>
33020         userspec: support optional parameters to parse_user_spec()
33021         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
33022         then avoid group processing and treat the full spec as a user.
33023         (parse_with_separator): Allow the USERNAME and GROUPNAME to
33024         be optional params (NULL), in which case they're ignored.
33026 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
33028         timespec: new function make_timespec, and new constants
33029         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
33030         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
33031         (make_timespec): New function.
33032         * lib/dtotimespec.c (dtotimespec):
33033         * lib/timespec-add.c (timespec_add):
33034         * lib/timespec-sub.c (timespec_sub):
33035         * lib/utimens.c (validate_timespec):
33036         * lib/utimensat.c (rpl_utimensat):
33037         Use these new constants and functions.
33039         stdio: OS X port of putc_unlocked + extern inline
33040         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
33041         * doc/posix-functions/putc_unlocked.texi:
33042         * doc/posix-functions/putchar_unlocked.texi:
33043         Document this portability problem.
33045         signal: OS X port of sigaddset etc. + extern inline
33046         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
33047         (sigismember): #undef on problematic Apple platforms.
33048         * doc/posix-functions/sigaddset.texi:
33049         * doc/posix-functions/sigdelset.texi:
33050         * doc/posix-functions/sigemptyset.texi:
33051         * doc/posix-functions/sigfillset.texi:
33052         * doc/posix-functions/sigismember.texi:
33053         Document this portability problem.
33055         extern-inline: do not always suppress extern inline on OS X
33056         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
33057         extern inline on Apple only if the particular compile-time
33058         configuration is known to have the problem.
33059         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
33060         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
33061         other Gnulib modules.
33063         extern-inline: document fixes for ctype and wctype macros
33064         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33065         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
33066         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
33067         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
33068         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
33069         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
33070         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
33071         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
33072         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
33073         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
33074         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
33075         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
33076         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
33077         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
33078         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
33079         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
33080         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
33081         * doc/posix-functions/strncpy.texi:
33082         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
33083         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
33084         Document that Gnulib fixes portability problems with these
33085         functions on OS X 10.8 and earlier when called from plain inline
33086         or extern inline functions.
33088 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
33090         fflush, freadahead, fseeko: Fix for Android
33091         Suggested by Bruno Haible in:
33092         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
33093         * lib/stdio-impl.h: Use local __sfileext definition.
33095 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
33097         pmccabe2html: Portability to other awk versions.
33098         The functions systime() and strftime() are available
33099         in Gawk only.  Properly close two HTML-tags 'style'
33100         and 'span'.
33101         * build-aux/pmccabe2html (BEGIN): Store timing
33102         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
33103         systime() in HTML_COMMENT.
33104         (html_header): Correctly close tag 'style'.
33105         (END): Replace strftime() by CHRONOS_TIME.  Close
33106         tag 'span' correctly, not as 'div'.
33108 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33110         getgroups: statement without effect
33111         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
33112         Change equality conditional to expected assignment.
33114 2013-09-09  Eric Blake  <eblake@redhat.com>
33116         glob: fix compilation
33117         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
33119 2013-09-07  Eric Blake  <eblake@redhat.com>
33121         glob: fix build for platforms without __THROW
33122         * lib/glob.in.h (__THROW): Add definition again.
33124 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
33126         regex-quote: fix buffer access out of bounds
33127         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
33128         * lib/regex-quote.c (regex_quote_spec_pcre):
33129         Fix typo that resulted in an out-of-bounds read.
33131 2013-09-04  Eric Blake  <eblake@redhat.com>
33133         glob: avoid -Wattribute warnings on glibc
33134         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
33135         __THROWNL, not __THROW, on static functions.
33136         * lib/glob.in.h (__THROW): Adjust...
33137         (__THROWNL): ...accordingly.
33139 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33141         headers: check that _GL_INLINE_HEADER_BEGIN is defined
33142         Suggested by Bruce Korb in:
33143         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
33144         * doc/extern-inline.texi (extern inline):
33145         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
33146         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
33147         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
33148         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
33149         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
33150         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
33151         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
33152         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
33153         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
33154         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
33155         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
33156         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
33157         * lib/xtime.h:
33158         Check that _GL_INLINE_HEADER_BEGIN is defined.
33160 2013-08-29  Pádraig Brady  <P@draigBrady.com>
33162         bootstrap: remove the --version requirement from ancillary tools
33163         * build-aux/bootstrap (check_exists): A new refactored function to
33164         determine if a command exists.
33165         (find_tool): Use the new function which does not require the
33166         --version option to be supported.
33167         (check_versions): Use the new function.
33169 2013-08-26  Simon Josefsson  <simon@josefsson.org>
33171         gc: support HMAC-SHA256 and HMAC-SHA512.
33172         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
33173         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
33174         functions.
33175         (gc_hmac_md5): Use symbolic constant.
33176         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
33177         (gc_hmac_sha256, gc_hmac_sha512): New functions.
33178         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
33179         * m4/sha256.m4: Protect against empty expansion.
33180         * m4/sha512.m4: Likewise.
33181         * lib/hmac-sha256.c: New file.
33182         * lib/hmac-sha512.c: Likewise.
33183         * m4/gc-hmac-sha256.m4: Likewise.
33184         * m4/gc-hmac-sha512.m4: Likewise.
33185         * m4/gc-sha256.m4: Likewise.
33186         * m4/gc-sha512.m4: Likewise.
33187         * modules/crypto/gc-hmac-sha256: Likewise.
33188         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33189         * modules/crypto/gc-hmac-sha512: Likewise.
33190         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33191         * modules/crypto/hmac-sha256: Likewise.
33192         * modules/crypto/hmac-sha256-tests: Likewise.
33193         * modules/crypto/hmac-sha512: Likewise.
33194         * modules/crypto/hmac-sha512-tests: Likewise.
33195         * tests/test-gc-hmac-sha256.c: Likewise.
33196         * tests/test-gc-hmac-sha512.c: Likewise
33197         * tests/test-hmac-sha256.c: Likewise.
33198         * tests/test-hmac-sha512.c: Likewise
33200 2013-08-24  Daiki Ueno  <ueno@gnu.org>
33202         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
33203         of AC_CHECK_DECLS.
33205 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33207         selinux-at: omit unnecessary include
33208         * lib/selinux-at.c: Don't include dosname.h; not needed, since
33209         this source file doesn't use its macros, and subsidiary files that
33210         use the macros already include it.
33212 2013-08-21  Eric Blake  <eblake@redhat.com>
33214         d-ino: avoid false negative on symlink
33215         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
33216         Reported by Stephane Chazelas.
33218 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
33220         bootstrap: port to OpenBSD sed
33221         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
33222         does not interpret `-' as a file argument to mean stdin.
33224 2013-08-15  Eric Blake  <eblake@redhat.com>
33226         warnings: minor optimization
33227         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
33229         warnings: check -Wfoo rather than -Wno-foo
33230         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
33231         -Wno-, test if the compiler recognizes the positive form instead.
33233 2013-08-15  Karl Berry  <karl@gnu.org>
33235         * config/srclist-update: add option "doclicense" to placate
33236         pulling *.texi files from Emacs.  Write terse usage
33237         documentation at the top.
33239 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
33241         xvasprintf-tests: port to GCC with hardening flags
33242         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
33243         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
33244         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
33246 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33248         fpending: port to recent Cygwin change to stdio_ext.h
33249         Reported by LRN in
33250         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
33251         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
33252         just declare __fpending unless it's a macro.
33253         A duplicate decl shouldn't hurt.
33254         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
33255         call compiles and links, instead of separately checking for
33256         decl and lib function.
33257         * modules/fpending (configure-ac):
33258         Adjust to fpending.m4's renaming of shell variable.
33260 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33262         sys_time: port to OpenBSD
33263         * lib/sys_time.in.h: Simply delegate to the system's header
33264         in the BSDish cases as well.  Problem reported by Mike Miller in
33265         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
33266         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
33267         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
33268         wider than time_t.
33270 2013-08-09  Pádraig Brady  <P@draigBrady.com>
33272         bootstrap: support checksum utils having -c but not --status
33273         * build-aux/bootstrap: Only look for sha1sum if updating po files.
33274         Add sha1 to the list of supported checksum utils since it's now
33275         supported through adjustments below.
33276         (update_po_files): Remove the use of --status
33277         in a way that will suppress all error messages, but since this is
33278         only used to minimize updates, it shouldn't cause an issue.
33279         Exit early if there is a problem updating the po file checksums.
33280         (find_tool): Remove the check for --version support as this
33281         is optional as per commit 86186b17.  Don't even check for the
33282         presence of the command as if that is needed, it's supported
33283         through configuring prerequisites in bootstrap.conf.
33284         Prompt that when a tool isn't found, one can define an environment
33285         variable to add to the hardcoded search list.
33287 2013-08-05  Jim Meyering  <meyering@fb.com>
33289         regex: port to non-glibc/lock-using systems
33290         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
33291         system with GNULIB_LOCK would fail due to absence of the
33292         included "glthread/lock.h".  This would affect any package
33293         for which the "lock" module is used only by the regex module,
33294         and not explicitly used.
33295         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
33296         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
33297         Add a dependency on the "lock" module.
33299 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33301         localecharset: make locale_charset thread-safe on Mac OS X
33302         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
33303         instead of MB_CUR_MAX.
33305 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33307         gettext: update to version 0.18.3
33308         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
33309         require AC_PROG_SED to allow user to specify custom sed command when
33310         generating en@quot PO file.
33312 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
33314         bootstrap: use correct source when copying build-aux files
33315         * build-aux/bootstrap (gnulib_extra_files): This variable is
33316         relative to upstream gnulib layout, not downstream.
33318 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
33320         tmpdir: fix bug in VMS port
33321         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
33322         See Steven M. Schweda in
33323         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
33325 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33327         tmpdir: port to VMS, to // != /, and to long dirs
33328         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
33329         __secure_getenv, so that we're more like the glibc version.
33330         All uses changed.
33331         (path_search): Don't put slash after directory if __VMS.
33332         Problem reported by Steven M. Schweda in
33333         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
33334         Simplify code to add slash; no need for a loop.
33335         Do not remove trailing slash from "//".
33336         Do not assume dlen <= INT_MAX.
33338 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33340         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
33341         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
33342         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
33343         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
33345         accept4, dup3, pipe2: port to Cygwin
33346         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
33347         * lib/accept4.c (accept4) [O_BINARY]:
33348         * lib/dup3.c (dup3) [O_BINARY]:
33349         * lib/pipe2.c (pipe2) [O_BINARY]:
33350         Use set_binary_mode, not setmode.
33351         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
33352         * modules/binary-io (Depends-on): Remove module indicator.
33353         These last two bits undo the previous change to pipe2 and binary-io.
33355 2013-07-09  Pádraig Brady  <P@draigBrady.com>
33357         mountlist: add support for deallocating returned list entries
33358         * lib/mountlist.c (free_mount_entry): A new exported function
33359         to deallocate a mount list entry.
33360         (read_file_system_list): Refactor to use the new deallocation function.
33361         Suggested by Anton Ovchinnikov.
33363 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
33365         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
33366         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
33367         * lib/stdalign.in.h (_Alignas, _Alignof):
33368         Port to FreeBSD 9.1, and to C11 and C++11.
33369         (_Alignas): Also support ICC.
33370         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
33371         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
33373 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33375         fnmatch: don't goto over declaration
33376         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
33377         undefined behavior for goto over a declaration.
33378         Problem reported by Charlie Brown in
33379         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
33381         pipe2: decouple from binary-io a bit
33382         This is for Emacs, which needs pipe2 but not binary-io.
33383         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
33384         * modules/binary-io (Depends-on): Add module indicator.
33386 2013-07-03  Eric Blake  <eblake@redhat.com>
33388         mgetgroups: relax license to LGPLv2+
33389         * modules/getugroups (License): Change from GPLv3+.
33390         * modules/mgetgroups (License): Likewise.
33391         * modules/getgroups (License): Change from LGPLv3+.
33393         xalloc-oversized: relax license to LGPLv2+
33394         * modules/xalloc-oversized (License): Change from GPLv3+.
33396         nproc: relax license to LGPLv2+
33397         * modules/nproc (License): Change from LGPLv3+.
33399         bootstrap: honor --no-git
33400         * build-aux/bootstrap: Don't even try to use git when user is
33401         pointing to a static checkout.
33403 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33405         ignore-value: port to gcc -pedantic
33406         * lib/ignore-value.h (ignore_value):
33407         Port to gcc -pedantic, by using __extension__.
33408         Reindent as per usual gnulib style nowadays.
33409         Simplify GCC version check.
33411 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33413         extern-inline: port to gcc -std=c89
33414         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33415         Do not use __gnu_inline__ if pedantic and pre-C99.
33417 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33419         doc: document extern-inline
33420         * doc/extern-inline.texi: New file.
33421         * doc/gnulib.texi (alloca-opt): Include it.
33422         * m4/extern-inline.m4: Move some comments to documentation,
33423         and others closer to what they describe.
33425         doc: chatter less
33426         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
33427         (updated-stamp): Use it.  This causes 'make' to output just
33428         one file name rather than zillions.
33430         fflush, fseeko: port to musl cross-compiles
33431         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
33432         on some implementation that (1) is not known to be buggy,
33433         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
33434         cross-compiled to so we can't easily check for lack of
33435         conformance.  This is for cross-compiling to musl.
33436         Reported by Rich Felker in
33437         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
33438         * m4/fclose.m4 (gl_FUNC_FCLOSE):
33439         * m4/fflush.m4 (gl_FUNC_FFLUSH):
33440         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
33441         Adjust to above change.
33442         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
33443         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
33444         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
33445         known not to work, or unknown.
33447 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33449         msvc-inval: port to mingw-w64
33450         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
33451         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
33452         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
33454 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
33456         getcwd-lgpl: port to Tru64
33457         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
33458         Problem reported by Steven M. Schweda in
33459         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
33461         tests: port large-fd POSIX spawn tests to OS X
33462         Problem reported by Daiki Ueno in
33463         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
33464         * tests/test-posix_spawn_file_actions_addclose.c:
33465         * tests/test-posix_spawn_file_actions_adddup2.c:
33466         * tests/test-posix_spawn_file_actions_addopen.c:
33467         Include <limits.h>, for OPEN_MAX, if available.
33468         (big_fd): New static function.
33469         (main): Use it.
33471 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
33473         tests/nap.h: use an adaptive delay to avoid ctime update issues
33474         The recent change in nap.h (5191133e) decreased the probability of lost
33475         races to about a third, however such problems could still be observed
33476         in virtual machines and openSUSE's OBS.
33477         Before, nap() detected the needed time once empirically and then used
33478         that delay (together with a small correction multiplier) in further
33479         calls.  This problem has been reported and discussed several times,
33480         including guesses about possible kernel issues:
33481         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
33482         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
33483         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
33484         http://bugs.gnu.org/12820
33485         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
33486         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
33487         Now, nap() avoids the race alltogether by verifying on a reference
33488         file whether a timestamp difference has happened.
33489         * tests/nap.h (nap_fd): Define file descriptor variable for the
33490         witness file.
33491         (nap_works): Change return value to bool.  Change passing
33492         the old file's status by value instead of by reference as this function
33493         does no longer update that timestamp; rename the function argument from
33494         st to old_st.  Remove the local variables cdiff and mdiff because that
33495         function now returns true/false instead of the precise delay.
33496         (guess_delay): Remove function.
33497         (clear_tmp_file): Add new function to close and unlink the witness file.
33498         (nap): Instead of re-using the delay which has been calculated during
33499         the first call, avoid the race by actually verifying that a timestamp
33500         difference can be observed on the current file system.  Use an adaptive
33501         approach for the delay to minimize execution time.  Assert that the
33502         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
33503         = 2^31 - 1 = 2.1s.
33504         Use atexit to call clear_tmp_file when the process terminates.
33506 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
33508         sig2str: port to C++
33509         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
33510         Reported by Daniel J Sebald in
33511         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
33513 2013-05-30  Eric Blake  <eblake@redhat.com>
33515         docs: mention cygwin shortcoming in <sys/un.h>
33516         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
33518         vasnprintf: silence mingw compiler warning
33519         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
33521 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33523         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
33524         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
33525         This fixes a porting bug I recently reintroduced in regex, and
33526         some other instances that I discovered while testing the fix.
33527         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
33528         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
33529         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
33530         with an empty argument if this is a pedantic pre-C99 GCC.
33531         * lib/verify.h: Do not use _Static_assert if this is a pedantic
33532         pre-C11 GCC.
33534         regex: adapt to locking regime instead of depending on pthread
33535         Instead of depending on pthread, adapt to whatever thread
33536         modules are in use.  Problem reported by Ludovic Courtès in
33537         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
33538         and by Mats Erik Andersson in
33539         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
33540         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
33541         Support either the 'lock' module, or the 'pthread' module, or
33542         no module.
33543         (lock_lock, lock_unlock): New macros.
33544         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
33545         * modules/lock, modules/pthread (configure.ac): Add module indicator.
33546         * modules/regex (Depends-on): Remove pthread.
33548 2013-05-22  Eric Blake  <eblake@redhat.com>
33550         getgroups: document portability issues
33551         * doc/glibc-functions/initgroups.texi (initgroups): Mention
33552         multithread safety.
33553         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
33554         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
33555         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
33556         getugroups.
33557         * doc/posix-functions/getgroups.texi (getgroups): Mention
33558         multithread safety and mgetgroups.
33560 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
33562         test-lchown, test-chown: also skip test if chown fails with EPERM
33563         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
33564         skip this test, to handle FAT file systems.
33565         * tests/test-chown.h (test_chown): Likewise.
33567 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33569         regex: fix dfa race in multithreaded uses
33570         Problem reported by Ludovic Courtès in
33571         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
33572         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
33573         New macros.  All uses of __libc_lock_define, __libc_lock_init
33574         changed to use the first two of these.
33575         (__libc_lock_lock, __libc_lock_unlock): New macros, for
33576         non-glibc platforms.
33577         (struct re_dfa_t): Define the lock unconditionally.
33578         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
33579         '#ifdef _LIBC"s.
33580         * modules/regex (Depends-on): Add pthread, if we use the
33581         included regex.
33583         * lib/regcomp.c: Do actions that are not needed for glibc,
33584         but may be needed elsewhere.
33585         (regfree, re_compile_internal): Destroy the lock.
33586         (re_compile_internal): Check for lock-initialization failure.
33588         malloca: port to compilers that reject size-zero arrays
33589         This fixes a bug introduced in my previous patch.
33590         * lib/malloca.c (struct preliminary_header): Use an int
33591         rather than a character array of size int; that's simpler.
33592         (struct header): Remove, replacing with ...
33593         (union header): New type.  This avoids the need for declaring a
33594         character array of size zero, which is not allowed on some platforms.
33595         All uses changed.
33597 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
33599         parse-datetime, tests: don't use "string" + int
33600         Recent versions of 'clang' complain about C source code that
33601         uses expressions of the form '"string literal" + integer',
33602         I guess on the theory that it's confusing for readers who are
33603         used to C++.  On those grounds I suppose it's OK to make this
33604         minor style change.
33605         * lib/parse-datetime.y (parse_datetime):
33606         * tests/test-fchdir.c (main):
33607         * tests/test-snprintf-posix.h (test_function):
33608         * tests/test-snprintf.c (main):
33609         * tests/test-vasnprintf-posix.c (test_function):
33610         * tests/test-vasnprintf.c (test_function):
33611         * tests/test-vsnprintf.c (main):
33612         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
33613         Rewrite '"str" + E' to '&"str"[E]'.
33615 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33617         argmatch: port to C++
33618         * lib/argmatch.h [__cplusplus]: Add extern "C".
33620         argp: typo fix
33621         * lib/argp-help.c: Typo in comment.
33623 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
33625         manywarnings: update for GCC 4.8.0
33626         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
33627         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
33628         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
33629         -Wmissing-noreturn, as they are duplicates of other warnings.
33630         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
33631         was documented to be flaky in earlier versions of GCC.
33633         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
33634         * tests/test-spawn.c (main):
33635         * tests/test-sys_socket.c (main):
33636         * tests/test-sys_wait.c (main):
33637         Don't have a switch value that isn't covered by a case.
33639         getaddrinfo-tests: port --enable-gcc-warnings to clang
33640         * tests/test-getaddrinfo.c (simple):
33641         Avoid casts from looser to stricter-aligned pointers.
33643         thread: port --enable-gcc-warnings to clang
33644         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
33645         Include <signal.h>, to pacify a warning about pthread_sigmask.
33647         stdio: use __REDIRECT for fwrite, fwrite_unlocked
33648         * lib/stdio.in.h (fwrite):
33649         When working around bug 11959, use __REDIRECT rather than '#define
33650         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
33651         fix the -Wunused-value issue with clang, and it works with GCC too.
33652         Problem with targeting reported by Eric Blake in
33653         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
33654         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
33655         debugging the fwrite issue.
33657         stdio: port --enable-gcc-warnings to clang
33658         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
33659         since the GCC workaround for fwrite does not pacify clang.
33661         sig2str: port --enable-gcc-warnings to clang
33662         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
33664         obstack: port --enable-gcc-warnings to clang
33665         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
33666         Avoid casts from looser to stricter-aligned pointers.
33668         memchr2: port --enable-gcc-warnings to clang
33669         * lib/memchr2.c (memchr2):
33670         Avoid casts from looser to stricter-aligned pointers.
33672         mbsstr: port --enable-gcc-warnings to clang
33673         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
33674         Avoid casts from looser to stricter-aligned pointers.
33676         malloca: port --enable-gcc-warnings to clang
33677         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
33678         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
33680         inttostr: port --enable-gcc-warnings to clang
33681         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
33683         warnings: port to clang
33684         Problem reported by Daniel P. Berrange via Eric Blake in
33685         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
33686         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
33687         (gl_WARN_ADD): Use it.
33689 2013-05-11  Jim Meyering  <meyering@fb.com>
33691         quotearg: do not read beyond end of buffer
33692         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
33693         end of an ARG for which no length was specified.  With an N-byte
33694         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
33695         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
33696         via coreutils' misc/sort-debug-keys.sh test and detected by running
33697         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
33698         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
33699         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
33700         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
33701         characters correctly."
33703 2013-05-11  Daiki Ueno  <ueno@gnu.org>
33705         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
33706         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
33707         compilation target is Mac OS X 10.6.
33708         Problem reported by parafin and Andoni Morales in
33709         <http://savannah.gnu.org/bugs/?37844> and
33710         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
33712 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33714         mkdir-p: remove assumptions about umask and mode
33715         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
33716         umask is 0, or that MODE is a subset of MODE_BITS.
33718 2013-05-10  Eric Blake  <eblake@redhat.com>
33720         maint.mk: catch more abuse of HAVE_DECL in syntax-check
33721         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
33723 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
33725         deps: require Automake >= 1.9.6 in generated Makefile fragments
33727         That is the same minimal version required in the DEPENDENCIES file.
33728         Moreover, the old code generated a requirement of Automake >= 1.5,
33729         and that is an insanely outdated version.
33731         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
33732         * tests/havelib/rpathlx/Makefile.am: Likewise.
33733         * tests/havelib/rpathly/Makefile.am: Likewise.
33734         * tests/havelib/rpathlyx/Makefile.am: Likewise.
33735         * tests/havelib/rpathlz/Makefile.am: Likewise.
33736         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
33737         * tests/havelib/rpathx/Makefile.am: Likewise.
33738         * tests/havelib/rpathy/Makefile.am: Likewise.
33739         * tests/havelib/rpathz/Makefile.am: Likewise.
33741 2013-05-08  Eric Blake  <eblake@redhat.com>
33743         bootstrap: AC_INIT may have more than four parameters
33744         * build-aux/bootstrap (extract_package_name): Correctly extract
33745         non-empty tarname field.  Avoid range in regex.
33746         Based on a report by Sami Kerola <kerolasa@iki.fi>.
33748 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
33750         qacl: port to MS-Windows port of GNU Emacs
33751         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
33752         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
33753         port of GNU Emacs.  Problem reported by Eli Zaretskii in
33754         <http://bugs.gnu.org/14295#14>.
33756 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
33758         acl: include quote.h
33759         * lib/copy-acl.c: Include quote.h.
33760         * lib/set-acl.c: Likewise.
33762 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
33764         fchownat, renameat, unlinkat: update statat dependencies
33765         These modules use statat and lstatat, not fstatat; so depend on
33766         the statat module, which was split out recently from fstatat.
33767         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
33768         * modules/renameat: Likewise.  Also delete fstat.
33769         URL: http://bugs.gentoo.org/468790
33771 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
33773         Assume gnulib is checked out from Git, not CVS
33775         In fact, access to the gnulib repository through CVS has been
33776         disabled, or more precisely, got broken and was never restored; see:
33777         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
33779         Note that support for CVS is not removed completely and unthinkingly
33780         by this change: only support for CVS checkouts of gnulib itself is
33781         removed.  For example, the 'bootstrap' script still cater to .cvsingore
33782         files and CVS directories, for the benefit of those poor gnulib clients
33783         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
33785         * gnulib-tool: Simplify accordingly.
33786         * posix-modules: Likewise.
33787         * MODULES.html.sh: Likewise.
33788         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
33789         repository.
33790         * doc/gnulib-intro.texi: Likewise.
33791         * doc/gnulib-readme.texi: Likewise.
33792         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
33793         sample '.gitignore' file rather than a sample '.cvsignore'.
33794         * NEWS: Update.
33795         * m4/extensions.m4: While at it, remove a comment mistakenly referring
33796         to "CVS Autoconf" rather than "git Autoconf".
33798 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
33800         utimensat-tests, etc.: try to fix some races
33801         Problem reported by Bernhard Voelker in
33802         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
33803         I don't know whether this patch fixes that race condition, but it
33804         fixes *some* race conditions, so it should be a win.
33805         * modules/chown-tests (Depends-on):
33806         * modules/fchownat-tests (Depends-on):
33807         * modules/fdutimensat-tests (Depends-on):
33808         * modules/futimens-tests (Depends-on):
33809         * modules/lchown-tests (Depends-on):
33810         * modules/stat-time-tests (Depends-on):
33811         * modules/utimens-tests (Depends-on):
33812         * modules/utimensat-tests (Depends-on):
33813         Depend on nanosleep, not usleep.
33814         * modules/chown-tests (test_chown_LDADD):
33815         * modules/lchown-tests (test_lchown_LDADD):
33816         * modules/stat-time-tests (test_stat_time_LDADD):
33817         New macro.
33818         * modules/fchownat-tests (test_fchownat_LDADD):
33819         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
33820         * modules/futimens-tests (test_futimens_LDADD):
33821         * modules/utimens-tests (test_utimens_LDADD):
33822         * modules/utimensat-tests (test_utimensat_LDADD):
33823         Add $(LIB_NANOSLEEP).
33824         * modules/stat-time-tests (Files): Add tests/nap.h.
33825         * tests/nap.h: Include <limits.h>, for INT_MAX.
33826         (lt_mtime): Remove.
33827         (diff_timespec): New function.
33828         (get_stat): Rename from get_mtime.  All callers changed.
33829         (nap_works): Determine the needed delay by inspecting the
33830         file system's timestamp jumps; this should be more reliable.
33831         Look at both mtime and ctime, and take the maximum of the two jumps.
33832         (nap_works, guess_delay):
33833         Return a nanosecond count, not a microsecond count.
33834         All callers changed.
33835         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
33836         failure.
33837         (nap): Multiply the guess by 1.125, to accommodate the case where
33838         the file system's clock is a bit slower than nanosleep's clock.
33839         * tests/test-stat-time.c (BASE): New macro.
33840         Include nap.h.
33841         (nap): Remove; nap.h now defines this.  This removes a duplicate
33842         implementation of 'nap'.
33844         utimens, utimensat: work around Solaris UTIME_OMIT bug
33845         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
33846         Linux kernel 2.6.32 does.  Work around it in the same way.
33847         * doc/posix-functions/futimens.texi (futimens):
33848         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
33849         * lib/utimens.c (fdutimens, lutimens):
33850         * lib/utimensat.c (rpl_utimensat): Work around the bug.
33852         gettext: now it's your responsibility to add -I$(top_builddir)/intl
33853         Formerly, it was your responsibility to do this for all Makefile.ams
33854         other than Gnulib's.  Now it's your responsibility to do it for
33855         Gnulib's Makefile.am, too.
33856         * NEWS: Document this.
33857         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
33859         acl: include errno.h to get errno
33860         Reported by Daiki Ueno in
33861         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
33862         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
33864 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
33866         tests: don't assume getdtablesize () <= 10000000
33867         * modules/cloexec-tests:
33868         * modules/dup2-tests:
33869         * modules/dup3-tests:
33870         * modules/nonblocking-tests:
33871         * modules/posix_spawn_file_actions_addclose-tests:
33872         * modules/posix_spawn_file_actions_adddup2-tests:
33873         * modules/posix_spawn_file_actions_addopen-tests:
33874         * modules/unistd-safer-tests:
33875         Depend on the getdtablesize module.
33876         * tests/test-cloexec.c:
33877         * tests/test-dup-safer.c:
33878         * tests/test-dup2.c:
33879         * tests/test-dup3.c:
33880         * tests/test-fcntl.c:
33881         * tests/test-nonblocking.c:
33882         * tests/test-posix_spawn_file_actions_addclose.c:
33883         * tests/test-posix_spawn_file_actions_adddup2.c:
33884         * tests/test-posix_spawn_file_actions_addopen.c:
33885         Don't assume getdtablesize () <= 10000000.
33887 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
33889         extern-inline: work around bug in Sun c99
33890         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
33891         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
33893 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
33895         qacl: new module, broken out from the acl module
33896         This is for GNU Emacs, which wants the acl functions but does
33897         not want 'error' invoked when they fail.
33898         * lib/acl-internal.h: Do not include error.h, quote.h.
33899         (ENOSYS, ENOTSUP): Remove; no longer needed.
33900         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
33901         * lib/acl.h: Include <stdbool.h>.
33902         (acl_errno_valid): New function.
33903         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
33904         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
33905         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
33906         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
33907         (ACL_INTERNAL_INLINE): Remove; no longer needed.
33908         * lib/file-has-acl.c (file_has_acl):
33909         * lib/qcopy-acl.c (qcopy_acl):
33910         * lib/qset-acl.c (qset_acl):
33911         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
33912         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
33913         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
33914         lib/file-has-acl.c, m4/acl.m4 to qacl module.
33915         Add lib/set-acl.c.
33916         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
33917         Add qacl.
33918         (configure.ac): Move gl_FUNC_ACL to qacl module.
33919         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
33920         Rename set-mode-acl.c to set-acl.c.
33921         * lib/acl-errno-valid.c: New file.
33922         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
33923         copy_acl function remains in copy-acl.c.
33924         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
33925         (_): Remove; not needed.
33926         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
33927         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
33928         * modules/qacl: New file, moved from the old modules/acl.
33929         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
33930         Remove set-mode-acl.c, copy-acl.c.
33931         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
33933         alignof, intprops, malloca: port better to IBM's C compiler
33934         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
33935         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
33936         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
33938 2013-04-25  Daiki Ueno  <ueno@gnu.org>
33940         wctype-h: fix gettext link error on mingw
33941         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
33942         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
33943         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
33944         rpl_towupper and rpl_towupper.
33946 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
33948         regex-tests, regex: allow glibc re_search behavior
33949         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
33950         re_search input data to make the multi-character collating element
33951         in it clearly visible, and treat re_search return code 0 as valid.
33952         * m4/regex.m4 (gl_REGEX): Likewise.
33954 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33956         stdalign: doc fix
33957         * doc/posix-headers/stdalign.texi (stdalign.h):
33958         Gnulib doesn't support '_Alignof expr'.
33960 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
33962         stdalign: port to stricter ISO C11
33963         ISO C11 says that _Alignof's operand must be a parenthesized type.
33964         Problem reported by Eli Zaretskii in
33965         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
33966         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
33967         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
33969 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
33971         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
33972         Problem reported by Marco Atzeri in
33973         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
33974         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
33975         Simply delegate to the system <sys/select.h> in this case too.
33976         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
33977         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
33978         be needed on Solaris either.
33979         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
33980         Simply delegate to the system <sys/time.h> in this case.
33982 2013-03-19  Karl Berry  <karl@gnu.org>
33984         * build-aux/gnupload: check for erroneous (with gnupload) use of
33985         ftp-upload.gnu.org, tweak help.
33987 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33989         copy-file, rpmatch: fix problems found by cppcheck
33990         Reported by Arno Onken in
33991         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
33992         * lib/rpmatch.c (try): Fix memory leak.
33993         * lib/copy-file.c: Include "ignore-value.h".
33994         (qcopy_file_preserving): Ignore chown value.
33995         * modules/copy-file (Depends-on): Add ignore-value.
33997 2013-01-27  Jim Meyering  <jim@meyering.net>
33999         prefix-gnulib-mk: give better diagnostics
34000         * build-aux/prefix-gnulib-mk: Don't just "die".
34001         Give better diagnostics upon failure.
34003 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
34005         putenv: port to Solaris 10
34006         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
34007         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
34008         is not what is wanted here.
34009         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
34010         declaration, not for its existence.
34012 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
34014         mktime: fix configure typo
34015         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
34017 2013-03-12  Eric Blake  <eblake@redhat.com>
34019         regex-tests: skip UTF-8 test on mingw
34020         * modules/regex-tests (Depends-on): Add localcharset.
34021         * tests/test-regex.c (main): Use it to skip test on mingw.
34023 2013-03-11  Eric Blake  <eblake@redhat.com>
34025         tests: make it easier to bypass alarm time in debugger
34026         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
34027         * tests/test-memmem.c (main): Likewise.
34028         * tests/test-passfd.c (main): Likewise.
34029         * tests/test-ptsname.c (main): Likewise.
34030         * tests/test-ptsname_r.c (main): Likewise.
34031         * tests/test-strcasestr.c (main): Likewise.
34032         * tests/test-strstr.c (main): Likewise.
34034         regex: port to mingw's recent addition of undeclared alarm
34035         * doc/posix-functions/alarm.texi (alarm): Document that alarm
34036         exists but still doesn't work in newer mingw.
34037         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
34038         not existence.  Ensure SIGALRM is not trapped.
34039         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
34040         * m4/regex.m4 (gl_REGEX): Likewise.
34041         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
34042         * tests/test-regex.c (main): Use correct probe for alarm.
34044         putenv: avoid compilation warning on mingw
34045         * lib/putenv.c (_unsetenv): Protect variable declaration.
34046         (putenv): Fix indentation.
34048 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
34050         unistd: don't prevent Tru64 Unix from using gnulib strtod.
34051         * lib/unistd.in.h: be careful not to include un-needed system
34052         stdlib.h from here, because that prevents gnulib stdlib.h from
34053         defining rpl_strtod correctly.
34055 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
34057         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
34058         changesets, but for the 'precision 0' test.
34059         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34060         round-to-even, since POSIX says rounding is implementation-defined
34061         and OS X 10.8.2 rounds 1.51 to 1 here.
34063         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
34064         changeset.
34065         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34066         round-to-even, since POSIX says rounding is implementation-defined
34067         and OS X 10.8.2 rounds 1.5 to 1 here.
34069 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34071         vasnprintf-posix-tests: allow rounding 1.5 to 1
34072         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
34073         round-to-even, since POSIX says rounding is implementation-defined
34074         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
34075         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
34077         bootstrap: port to FreeBSD
34078         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
34079         that treat '--' differently.  Reported by Mats Erik Andersson in
34080         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
34082 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
34084         regex: rename remaining __attribute calls to __attribute__.
34085         2012-02-25 changed definition of __attribute, but left some uses
34086         unchanged, preventing compilation of regex module on most non-gcc
34087         environments.
34088         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
34089         (lookup_collation_sequence_value, build_range_exp)
34090         (build_collating_symbol): Set attributes with newly renamed
34091         __attribute__ decorator.
34092         * lib/regex_internal.c (re_string_peek_byte_case)
34093         (re_node_set_compare, re_node_set_contains): Likewise.
34094         * lib/regexec.c (acquire_init_state_context): Likewise.
34096 2013-03-06  Bruno Haible  <bruno@clisp.org>
34098         execute: Revert last change, but use a different condition.
34099         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
34100         on Windows.
34102 2013-03-05  Eric Blake  <eblake@redhat.com>
34104         execute: drop dead code
34105         * lib/execute.c (nonintr_close, nonintr_open): Delete.
34107 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
34109         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
34110         * m4/non-recursive-gnulib-prefix-hack.m4
34111         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
34112         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
34113         <http://bugs.gnu.org/10305#237>.
34115 2013-03-04  Eric Blake  <eblake@redhat.com>
34117         test-getsockopt: avoid compiler warning
34118         * tests/test-getsockopt.c (includes): Ensure close is declared.
34120 2013-03-02  Bruno Haible  <bruno@clisp.org>
34122         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
34123         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
34125 2013-03-02  Bruno Haible  <bruno@clisp.org>
34127         gettext: Update to version 0.18.2.
34128         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
34129         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
34130                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
34132 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34134         regex: merge patches from libc
34136         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34137         * lib/regex_internal.h (__attribute__): Rename from __attribute.
34138         All uses changed.
34139         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
34140         (re_string_wchar_at, re_string_elem_size_at):
34141         Mark function as possibly unused.
34143         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
34144         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
34145         elements compare against the byte sequence of it, not its name.
34147 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34149         putenv: port better to native Windows
34150         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34151         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
34152         (_unsetenv): Use _putenv if available.
34153         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
34154         a bit less likely to cause damage.
34155         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34156         Fix the wrong value with SetEnvironmentVariable.
34157         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
34158         code better.
34160 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34162         regex: ignore old-style-definition warnings
34163         * lib/regex.c: Add pragma to ignore these warnings.
34164         Problem reported for GNU tar by Pavel Raiskup.
34166 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34168         getcwd: support coreutils better
34169         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
34170         but this might not be correct in coreutils, which disables
34171         the raw decl checks.  Problem reported by Nagendra in
34172         <http://bugs.gnu.org/10305#192>.
34173         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
34174         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34175         Test the getcwd function, not any macro, since getcwd.c wants the
34176         function.
34177         * m4/getcwd.m4 (gl_FUNC_GETCWD):
34178         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
34179         compile, as might happen if there's a macro but no function.
34181         strtod: support coreutils better
34182         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
34183         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
34184         disables the raw decl checks.  This assumes there is an underlying
34185         strtod, but that's a safe assumption these days.
34186         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
34188         mountlist: port to HP NonStop
34189         Reported by Joachim Schmitz in
34190         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
34191         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
34192         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
34194 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
34196         extern-inline: avoid compilation error with HP-UX cc
34197         Reported by Richard Lloyd in
34198         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
34199         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34200         Suppress extern inline with HP-UX cc.  This should be safe,
34201         though it may hurt performance.  Perhaps someone with some HP-UX
34202         experience can come up with a higher-performance fix.
34204 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34206         putenv: fix heap corruption with mixed putenv/_putenv
34207         Problem reported by Michael Goffioul in
34208         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
34209         * lib/putenv.c (putenv) [HAVE__PUTENV]:
34210         Rely on _putenv to allocate the new environment.
34211         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34212         * modules/putenv (configure.ac): Use it.
34214 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
34216         unsetenv etc.: port to Solaris 11 + GNU Emacs
34217         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
34218         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
34219         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
34220         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
34221         idea but is too painful to fix right now), and without this gnulib
34222         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
34223         compiling unsetenv.c on Solaris 11.  Fix the problem for
34224         unsetenv.c, and fix other similar occurrences.
34226 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34228         secure_getenv: fix C++ declaration typo
34229         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
34230         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
34231         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
34233 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
34235         careadlinkat: stop exporting careadlinkatcwd
34236         Only Emacs used it directly, and Emacs no longer needs it.
34237         * NEWS: Document this simplification.
34238         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
34239         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
34240         for readlink.
34241         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
34242         Don't include stdlib.h; no longer needed.
34243         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
34244         * lib/relocwrapper.c: Adjust comment to match new dependencies.
34245         * modules/areadlink (Depends-on): Add readlink.
34246         (Maintainer): Add self.
34247         * modules/careadlinkat (Depends-on): Remove readlink.
34249         extensions: port better to HP-UX
34250         This is merged from git Autoconf.
34251         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34252         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
34253         so that it's compatible with the value used when compiling.
34255         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
34256         Problem reported by Mats Erik Andersson in
34257         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
34258         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34259         openpty function exists, not merely when we intend to replace it.
34260         This corrects the 2013-01-31 patch, which mistakenly defined
34261         HAVE_OPENPTY even on hosts that lacked it.
34263 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34265         secure_getenv: fix include typo
34266         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
34268         secure_getenv: port better to FreeBSD and Solaris
34269         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
34270         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
34271         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
34272         This works better on BSDish platforms.
34273         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
34274         Test for issetugid if __secure_getenv is missing.
34276 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
34278         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
34279         Some of these changes are merged in from git Autoconf.
34280         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34281         When deciding whether to define _XOPEN_SOURCE, inspect the
34282         preprocessor macro __hpux instead of the more-heavyweight
34283         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
34284         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
34285         as the key for __EXTENSIONS__.
34287         unistd: avoid namespace pollution on non-glibc systems
34288         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
34289         This avoids namespace pollution on non-glibc systems, by causing
34290         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
34291         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
34292         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
34294 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34296         tmpdir: use secure_getenv
34297         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
34298         Define to secure_getenv, not getenv.
34299         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
34300         as that's now secure_getenv's job.
34301         * modules/tmpdir (Depends-on): Add secure_getenv.
34303         tempname: use secure_getenv
34304         * lib/tempname.c (__secure_getenv) [!_LIBC]:
34305         Define to secure_getenv, not getenv.
34306         * modules/tempname (Depends-on):
34307         Add secure_getenv.
34309         secure_getenv: new module
34310         * MODULES.html.sh (Extra functions based on ANSI C 89):
34311         Add secure_getenv.
34312         * doc/glibc-functions/secure_getenv.texi: New file.
34313         * doc/gnulib.texi: Include it.
34314         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
34315         New files.
34316         * lib/stdlib.in.h (secure_getenv): New decl.
34317         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
34318         * modules/stdlib (stdlib.h):
34319         Add secure_getenv checks.
34321 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
34323         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
34324         Reported for OS X 10.8.2 by Assaf Gordon in
34325         <http://bugs.gnu.org/13516>.
34326         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
34327         !HAVE_OPENAT && !HAVE_FDOPENDIR.
34328         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
34329         so that they can be kept in sync more easily.  Avoid PATH_MAX
34330         test on the Hurd.  Sync from test-getcwd.c for errno tests after
34331         mkdir or chdir failure.
34332         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
34333         lib/getcwd.c.
34334         (test_abort_bug): Do not test for the deep directory bug unless we
34335         have openat support.  Avoid PATH_MAX test on the Hurd.
34337         regex-tests, regex: fix bug: memset undeclared
34338         * tests/test-regex.c: Don't include regex.h twice.  Include
34339         string.h, to declare memset.  Christensen's report also mentioned
34340         this issue.
34341         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
34342         test-regex.c, to avoid future problems like this.  Remove
34343         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
34344         twice.
34346         regex-tests: fix link errors on older Solaris
34347         These need to link with @LIBINTL@ to get libintl_gettext.
34348         Problem reported by Tom G. Christensen in
34349         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
34350         * modules/regex-tests (test_regex_LDADD): New macro.
34352 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
34354         regex-tests: new module
34355         * modules/regex-tests, tests/test-regex.c: New files.
34357         regex: fix off-by-one error in configure test
34358         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
34360 2013-01-31  Eric Blake  <eblake@redhat.com>
34362         regex: avoid infinite configure test
34363         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
34365 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
34367         openpty: fix bug where HAVE_OPENPTY wasn't defined
34368         See the thread starting at:
34369         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
34370         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34371         openpty function exists, not merely when we intend to replace it.
34373 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
34375         sys_time: port to Solaris 2.6
34376         There is a circularity problem on Solaris 2.6, where <time.h> includes
34377         <sys/time.h> for struct timespec.  The include nesting is gnulib
34378         <time.h>, system <time.h>, gnulib <sys/time.h>, system
34379         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
34380         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
34381         <sys/siginfo.h>; the last, innermost file needs struct
34382         timestruc_t, which is defined in <sys/time.h>, which has not been
34383         fully parsed.  Problem reported by Tom G. Christensen in
34384         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
34385         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
34386         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
34387         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
34388         uses split double-inclusion guards.
34390 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
34392         regex: test for buffer overrun
34393         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
34394         for the just-fixed regex bug.
34396 2013-01-29  Andreas Schwab  <schwab@suse.de>
34398         regex: fix buffer overrun in regexp matcher [BZ #15078]
34399         * lib/regexec.c (extend_buffers): Add parameter min_len.
34400         (check_matching): Pass minimum needed length.
34401         (clean_state_log_if_needed): Likewise.
34402         (get_subexp): Likewise.
34404 2013-01-28  Pádraig Brady  <P@draigBrady.com>
34406         mountlist: don't consider "devtmpfs" as dummy
34407         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
34408         as there is storage associcated with it.
34410 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
34412         futimens-tests, utimens-tests: Depend on gettext.
34413         This works around a problem introduced in my 2013-01-12 patch,
34414         which added @LIBINTL@ to these modules.
34415         * modules/futimens-tests (Depends-on):
34416         * modules/utimens-tests (Depends-on): Add gettext.
34418 2013-01-26  Eric Blake  <eblake@redhat.com>
34420         test-getpeername: fix typo
34421         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
34423 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
34425         bootstrap: remove the need for a sorted .gitignore file
34426         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
34427         rename to insert_if_absent(), so that we don't need or generate
34428         a sorted .gitignore file.  We do require a .gitignore with no
34429         existing duplicate entries and enforce that.
34430         (sort_patterns): Remove this function as we now use the simpler
34431         technigue of inserting blacklist entries at the top of the file,
34432         assuming gnulib won't be inserting !whitelist entries.
34434 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34436         readlinkat: don't depend on gl_FUNC_OPENAT
34437         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
34438         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
34439         renameat.m4, symlinkat.m4; but one thing at a time.
34441         statat: new module, split out from fstatat
34442         GNU Emacs needs the POSIX-specified fstatat, but not the
34443         gnulib-specified statat and lstat.  Split the latter two into a
34444         new module 'statat'.
34445         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
34446         * lib/openat.h, lib/statat.c (STATAT_INLINE):
34447         Rename from FSTATAT_INLINE. All uses changed.
34448         * modules/fstatat (Files): Remove lib/statat.c.
34449         (gl_MODULE_INDICATOR([fstatat])): Remove.
34450         (lib_SOURCES): Remove.
34451         (Maintainer): Add self.
34452         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
34453         * tests/test-fstatat.c (BASE): Don't define if already defined.
34454         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
34456 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34458         tests: don't assume fd 99 is closed
34459         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
34460         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
34461         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
34462         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
34463         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
34464         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
34465         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
34466         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
34467         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
34468         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
34469         * tests/test-fwrite.c, tests/test-getpeername.c:
34470         * tests/test-getsockname.c, tests/test-getsockopt.c:
34471         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
34472         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
34473         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
34474         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
34475         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
34476         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
34477         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
34478         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
34479         * tests/test-unlinkat.c, tests/test-unlockpt.c:
34480         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
34481         Close file descriptor 99, instead of assuming it's already closed.
34483 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
34485         stpncpy: port to OS X 10.8
34486         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
34487         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
34489 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34491         unistd: port to recent mingw
34492         * lib/unistd.in.h: Remove special invocation convention for mingw,
34493         which breaks for the latest mingw version.  See John W. Eaton in
34494         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
34496         largefile: port better to Mac OS X 10.5
34497         This patch is backported from Autoconf git.
34498         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
34499         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
34500         with ino_t size being different for configuration time versus
34501         build/run time.  Problem reported by PHO in
34502         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
34504 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34506         doc: clarify -Werror
34507         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
34508         clarify that it's intended for developers, not for ordinary builds,
34509         and mention --enable-gcc-warnings as one possible use.
34511 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
34513         stdint: fix build with Android's Bionic fox x86
34514         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
34515         was already included as _SSIZE_T_DEFINED_ might also be defined
34516         in include/machine/_types.h, which is included by stdio.h
34518 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
34520         net_if-tests: port to Solaris 7 + GCC 3.4.6
34521         Problem reported by Tom G. Christensen in
34522         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
34523         * tests/test-net_if.c (ni): Move to next the code that uses it,
34524         so that it's declared only if needed.
34526 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
34528         net_if-tests: port to older Solaris
34529         Problem reported by Tom G. Christensen in
34530         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34531         * modules/net_if-tests (NET_IF_LIB): New substitution.
34532         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
34533         (HAVE_IF_NAMEINDEX): New C macro.
34534         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
34536         system-quote-tests: port to older Solaris
34537         Problem reported by Tom G. Christensen in
34538         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34539         * tests/test-system-quote-child.c (fopen, fread): Undef.
34541         c-xvasprintf etc.: fix link errors on older Solaris
34542         These need to link with @LIBINTL@ to get libintl_gettext.
34543         Problem reported by Tom G. Christensen in
34544         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34545         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
34546         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
34547         * modules/futimens-tests (test_futimens_LDADD):
34548         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
34550 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34552         locale: port to Solaris 2.6 and 7 + GNU gettext
34553         * lib/locale.in.h: Just include_next <locale.h> when
34554         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
34555         when combining the localename module with GNU gettext 0.18.2.
34556         Problem reported by Tom G. Christensen in
34557         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
34559 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34561         stdlib: port to Solaris 2.6
34562         Also, the code worked on Solaris 7 through 9 only by accident.
34563         Problem reported by Tom G. Christensen in
34564         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
34565         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
34566         simply include the system stdlib.h.
34567         * lib/getopt.in.h (__need_system_stdlib_h):
34568         * lib/pthread.in.h (__need_system_stdlib_h):
34569         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
34570         Define when including <stdlib.h>, to avoid problems at least for
34571         the pthread case on Solaris 2.6 and 7.  These .h files can get by
34572         with the system stdlib.h.
34574 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
34576         doc: update main copyright year
34577         * doc/gnulib.texi: Update copyright date.
34579         doc: improve ISO 8601 discussion
34580         * doc/parse-datetime.texi (Combined date and time of day items):
34581         Specify more carefully what formats are supported and what is
34582         done with excess precision.
34584 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
34586         doc: avoid small caps
34587         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
34588         they're more trouble than they're worth.  Suggested by Karl Berry
34589         in <http://bugs.gnu.org/13360>.
34591         regex: conform to strict C
34592         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
34593         From Aharon Robbins.
34595         gnulib-tool: fix incompatibility with autopoint 0.18.2
34596         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
34597         Problem reported by Tom G. Christensen in
34598         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
34600 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34602         fprintftime: bring back and reword fwrite comment
34603         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
34605         stdio: remove now-unnecessary stdio.c
34606         Since stdio.in.h no longer uses inline functions, we no longer
34607         need to compile the extern versions.
34608         * lib/stdio.c: Remove.
34609         * modules/stdio (Files): Remove lib/stdio.c.
34610         (lib_SOURCES): Remove.
34612         unicodeio: depend on stdio, not ignore-value
34613         * lib/unicodeio.c: Do not include ignore-value.h.
34614         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
34615         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
34617         fprintftime: depend on stdio, not ignore-value
34618         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
34619         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
34620         since the stdio module arranges to silence that warning now.
34621         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
34623 2012-10-04  Simon Josefsson  <simon@josefsson.org>
34625         stdint-tests: Fix expanded-before-required-warning.
34626         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
34628 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34630         fwrite: silence __wur only for older glibc versions
34631         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
34632         This will help us remove this workaround some time in the far future.
34634 2013-01-03  Eric Blake  <eblake@redhat.com>
34636         fwrite: silence __wur without using inline
34637         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
34638         just gcc, and in a way that avoids inline issues.
34639         * modules/stdio (Depends-on): Drop extern-inline.
34641 2013-01-03  Jim Meyering  <jim@meyering.net>
34643         update-copyright: avoid copyright notice date corruption
34644         Given a sequence of copyright year numbers in which the final
34645         one was a two-digit number that happened to be a substring of
34646         a preceding four-digit year number, we would mistakenly update
34647         the substring (from two- to four-digit) rather than the two-digit
34648         number at the end, which, combined with the addition of the current
34649         4-digit year number would yield two 5-digit year numbers, e.g.,
34650         here, it would convert the first "99" to "1999, 2013" rather than
34651         the final one:
34652           1991, 99
34653           11999, 20131, 1999
34654         * build-aux/update-copyright: Tighten a regexp.
34655         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
34656         Reported by Joseph Myers in
34657         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
34659 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34661         regex: omit needless signed-pointer casts
34662         * lib/regcomp.c (build_charclass, build_charclass_op):
34663         Use char *, not unsigned char *, for class name and extra.
34664         The char values are always nonnegative so there's no need to
34665         insist on unsigned char * here, and using char * removes the need
34666         for casts.  Reported by Aharon Robbins in
34667         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34669         regex: support Gawk, which never uses alloca
34670         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
34671         Do not include in this case.  Gawk doesn't supply a substitute
34672         alloca.h and doesn't need one.
34674         regex: port __libc_lock_define usage to C89
34675         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
34676         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
34677         does not conform to C89, as it has an empty macro argument.
34678         Reported by Aharon Robbins in
34679         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34681 2013-01-01  Eric Blake  <eblake@redhat.com>
34683         maint: update all copyright year number ranges
34684         Run "make update-copyright".
34686         version-etc: bump copyright year reported in --version
34687         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
34689 2012-12-31  Eric Blake  <eblake@redhat.com>
34691         sigprocmask-tests: skip test if pid is unexpectedly large
34692         * tests/test-sigprocmask.c (main): Add range check.
34694         git-version-gen: avoid test -z portability glitch
34695         * build-aux/git-version-gen: Prefer portable test spelling, since
34696         git-version-gen is run on more than just developer machines.
34698 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
34700         git-version-gen: add --fallback option to use if git is not present
34701         * build-aux/git-version-gen: Add support for the new option --fallback,
34702         which comes into play when there is no $tarball_version_file and
34703         git is not working.
34704         (scriptversion): Update.
34706         maint.mk: handle missing git with more grace
34707         * top/maint.mk (no-submodule-changes, public-submodule-commit):
34708         Quietly proceed if git is not present.
34710 2012-12-31  Eric Blake  <eblake@redhat.com>
34712         dup2: work around cygwin bug
34713         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
34714         * lib/dup2.c (rpl_dup2): Work around it.
34715         * doc/posix-functions/dup2.texi (dup2): Document it.
34717 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
34719         regex: remove unnecessary dependency on localcharset.h
34720         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
34721         hasn't been needed for years.
34722         * modules/regex (Depends-on): Remove localcharset.
34724         regex: revert single-byte change
34725         * lib/regexec.c (check_node_accept_bytes): Revert previous change
34726         to this function.  This was alredy fixed in a different way, at
34727         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
34728         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
34729         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
34731         regex: simplify based on Gawk version
34732         * lib/regex_internal.c (re_dfa_add_node): Simplify.
34733         Reported by Aharon Robbins in
34734         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34736 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34738         regex: check that pattern char is single-byte
34739         Reported by Aharon Robbins in
34740         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34741         * lib/regexec.c (check_node_accept_bytes):
34742         Return 0 if the pattern string has a multibyte character here.
34744         regex: implement rational ranges
34745         Reported by Aharon Robbins in
34746         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34747         * lib/regcomp.c (build_range_exp) [!_LIBC]:
34748         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
34749         Implement rational ranges.
34751         regex: avoid redefining __wctype
34752         Reported by Aharon Robbins in
34753         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34754         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
34755         #undef before defining.
34757         regex: port to hosts where malloc (0) == NULL
34758         Reported by Aharon Robbins in
34759         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34760         * lib/regex_internal.c (re_node_set_alloc):
34761         Don't assume that malloc (0) yields nonnull.
34762         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
34763         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
34764         * modules/regex (Files): Add m4/eealloc.m4.
34766         regex: port to C89
34767         Reported by Aharon Robbins in
34768         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34769         * lib/regcomp.c (init_word_char): Declaration before statement.
34771         regex: merge glibc changes
34772         Also, copy the license wording from glibc.  This simplifies
34773         merging changes.  gnulib-tool will change the wording to GPL as
34774         appropriate, when importing it to other packages.  The only
34775         glibc change made since the last merge, which needs merging, is:
34776         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
34777         * lib/regex_internal.h (gettext): Remove use of INTUSE.
34779         * users.txt: Add Emacs.
34781         doc: omit mention of version when not needed
34782         * doc/gnulib-intro.texi (Portability and Application Code):
34783         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
34784         Don't mention particular dates or versions when not necessary, so
34785         that the documentation won't go out of date so quickly.
34787         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
34789 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
34791         bootstrap: pass --force to autoreconf.
34792         * build-aux/bootstrap (AUTORECONFFLAGS): New.
34793         Add "--force" so that Automake's ylwrap and other such tools
34794         be updated at each bootstrap invocation.
34795         Use it.
34797 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
34799         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
34800         The earlier patch forgot to update one of the #if conditions, causing
34801         a problem on Debian testing i386 reported by Mats Erik Andersson
34802         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
34803         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
34804         (__argp_fmtstream_puts, argp_fmtstream_puts)
34805         (__argp_fmtstream_write, argp_fmtstream_write)
34806         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
34808         * doc/gnulib-readme.texi: Minor fixups.
34809         (Portability guidelines): Modernize URLs.  Remove some repetition.
34810         (Indent with spaces not TABs): Reword to avoid too-long lines.
34811         Remove some '@ifset standalone' stuff that isn't used.
34813         * doc/gnulib-readme.texi (Portability guidelines):
34814         ctype.h, not ctime.h.
34816         Correct name of POSIX.1-2001.
34817         * doc/posix-functions/fgetc.texi (fgetc):
34818         * doc/posix-functions/fgets.texi (fgets):
34819         * doc/posix-functions/fread.texi (fread):
34820         * doc/posix-functions/fscanf.texi (fscanf):
34821         * doc/posix-functions/getc.texi (getc):
34822         * doc/posix-functions/getchar.texi (getchar):
34823         * doc/posix-functions/scanf.texi (scanf):
34824         POSIX.1-2001, not POSIX-2001.
34826         doc: move README into manual
34827         * README: Move contents to new file doc/gnulib-readme.texi.
34828         Replace with a one-line summary.
34829         * doc/gnulib.texi (Brief Overview): New section,
34830         with old intro preface.  Include gnulib-readme.texi for contents.
34831         (Philosophy): Rename from "Introduction", since this
34832         section no longer introduces the rest.  Write a new preface.
34833         * doc/gnulib-readme.texi: New file, with the old contents of
34834         README texinfo-ized.  This way, the README info appears
34835         in the online and printed manual.
34837 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
34839         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
34840         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
34841         c_vasprintf() prototype.
34843 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
34845         c-vasprintf: Fix "empty declaration" warning reported by GCC.
34846         * lib/c-vasprintf.h: Remove stray semicolon.
34848 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34850         gettext: avoid obsolete macro AM_PROG_MKDIR_P
34851         It is obsolete and is planned to be removed from Automake 1.14; see
34852         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
34853         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
34854         (installdirs-data, installdirs-data-yes):
34855         Use $(MKDIR_P), not $(mkdir_p).
34856         * m4/intl.m4 (AM_INTL_SUBDIR):
34857         * m4/po.m4 (AM_PO_SUBDIRS):
34858         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
34860 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
34862         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
34863         On this platform, we are not optimizing but we are using
34864         the substitute for extern inlines, so compile as if
34865         C99-style extern inline, or a substitute, is available.
34866         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
34867         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
34868         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
34869         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
34870         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
34871         Declare as ARGP_FS_EI, not as extern.
34872         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
34873         (__option_is_short, _option_is_end, __option_is_end)
34874         [!_LIBC && __USE_EXTERN_INLINES]:
34875         Declare as ARGP_EI, not as extern.
34877 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
34879         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
34880         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
34881         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
34882         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
34883         ...), as the latter is fatal with older Autoconfs.
34884         Problem reported and fix suggested by Eric Blake in thread starting at
34885         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
34887 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
34889         AC_PROG_MKDIR_P: don't workaround if not buggy
34890         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
34891         Define only for Autoconf versions before 2.62.
34892         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
34893         undocumented m4_PACKAGE_VERSION, for consistency with the
34894         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
34895         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
34896         was introduced in 2.62.
34898 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
34900         New 'c-*printf' modules for formatted output in C locale.
34902         New module 'c-vasnprintf'.
34903         * modules/c-vasnprintf: New file.
34904         * lib/c-vasnprintf.c: New file.
34905         * lib/c-vasnprintf.h: New file.
34907         New module 'c-snprintf'.
34908         * modules/c-snprintf: New file.
34909         * modules/c-snprintf-tests: New file.
34910         * lib/c-snprintf.c: New file.
34911         * lib/c-snprintf.h: New file.
34912         * tests/test-c-snprintf.c: New file.
34913         * tests/test-c-snprintf.sh: New file.
34915         New module 'c-vsnprintf'.
34916         * modules/c-vsnprintf: New file.
34917         * modules/c-vsnprintf-tests: New file.
34918         * lib/c-vsnprintf.c: New file.
34919         * lib/c-vsnprintf.h: New file.
34920         * tests/test-c-vsnprintf.c: New file.
34921         * tests/test-c-vsnprintf.sh: New file.
34923         New module 'c-vasprintf'.
34924         * modules/c-vasprintf: New file.
34925         * modules/c-vasprintf-tests: New file.
34926         * lib/c-asprintf.c: New file.
34927         * lib/c-vasprintf.c: New file.
34928         * lib/c-vasprintf.h: New file.
34929         * tests/test-c-vasprintf.c  +: New file.
34930         * tests/test-c-vasprintf.sh: New file.
34932         New module 'c-xvasprintf'.
34933         * modules/c-xvasprintf: New file.
34934         * modules/c-xvasprintf-tests: New file.
34935         * lib/c-xasprintf.c: New file.
34936         * lib/c-xvasprintf.c: New file.
34937         * lib/c-xvasprintf.h: New file.
34938         * tests/test-c-xvasprintf.c: New file.
34939         * tests/test-c-xvasprintf.sh: New file.
34941 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34943         argp: better 'inline'
34944         Use extern-inline module to declare extern inline functions.
34945         This avoids some bogus warning diagnostics.  Problem discovered
34946         when modifying GNU tar to use the manywarnings module.
34947         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
34948         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
34949         Define based on extern-inline.
34950         * modules/argp (Depends-on): Add extern-inline.
34952 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34954         filemode, sys_stat: Handle MPX files a la AIX.
34955         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
34956         * lib/sys_stat.in.h (S_ISMPX): New macro.
34957         * tests/test-sys_stat.c: Add tests for MPX files.
34959 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34961         x-to-1: honor $PERL
34962         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
34963         a chance to use his preferred version of Perl.  This is typically
34964         required by Darwin users whose default /usr/bin/perl does not have all
34965         the libraries required by help2man, and who need to use their MacPorts
34966         installation of Perl instead.
34968 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
34970         gnu-web-doc-update: add all the new files, even in new directories
34971         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
34972         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
34973         Use it.
34974         (main): Don't use cvsutils to get the list of unknown files,
34975         just add all the existing files and directories.
34977 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
34979         gnu-web-doc-update: improve --help
34980         * build-aux/gnu-web-doc-update: Move comments into --help.
34982 2012-12-07  Eric Wong  <normalperson@yhbt.net>
34984         mountlist: recognize more "dummy" file systems
34985         * lib/mountlist.c (ME_DUMMY_0):
34986         Add these dummy FS names to the list:
34987         - "debugfs" virtual filesystem for kernel debugging
34988         - "devpts" PTY slave filesystem
34989         - "devtmpfs" device filesystem on top of tmpfs/ramfs
34990         - "fusectl" control filesystem for FUSE
34991         - "mqueue" enumerates POSIX message queues
34992         - "rpc_pipefs" kernel <-> userspace bridge for NFS
34993         - "sysfs" is for exporting kernel objects
34994         - "devfs" device filesystem for Linux 2.4 and FreeBSD
34996 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
34998         extern-inline: avoid incompatibility with Darwin Libc
34999         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
35000         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
35001         Problem reported by Akim Demaille in
35002         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
35004 2012-12-11  Simon Josefsson  <simon@josefsson.org>
35006         gnupload: Work with GnuPG using gpg-agent (for smartcards).
35007         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
35008         let it handle password prompting.
35010 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
35012         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
35013         * lib/canonicalize.c (canonicalize_filename_mode):
35014         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
35015         fetching the current directory.  Don't overrun the beginning of
35016         rpath if there's no slashes after the MS-Windows drive letter.
35018 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
35020         maint.mk: avoid extra forks
35021         * top/maint.mk (_cfg_mk): The GNU make manual documents that
35022         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
35023         So use that instead of "$(shell test -f FILE && echo FILE)".
35025 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
35027         vasnprintf: fix ASCII_ONLY typo
35028         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35029         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35030         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35031         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
35032         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
35034 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
35036         list, oset, xlist, xoset: fix extern inline issue with C99
35037         This was introduced by my recent changes for 'inline'.
35038         Problem reported for gettext by Daiki Ueno in
35039         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
35040         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
35041         (gl_list_nx_create, gl_list_size, gl_list_node_value)
35042         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
35043         (gl_list_previous_node, gl_list_get_at)
35044         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
35045         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
35046         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
35047         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
35048         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
35049         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
35050         (gl_list_iterator_free, gl_sortedlist_search)
35051         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
35052         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
35053         (gl_sortedlist_remove):
35054         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
35055         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
35056         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
35057         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
35058         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
35059         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
35060         (gl_list_add_at, gl_sortedlist_add):
35061         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
35062         Wrap these extern decls inside "#if 0", because they are implemented
35063         as inline functions, and extern inline is not what's wanted here.
35064         It would simplify these .h files to remove the extern decls entirely,
35065         although a downside would be less-clear separation between
35066         specification and implementation.
35068 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
35070         sys_stat: no 'static inline'
35071         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
35072         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
35074         extern-inline: no 'static inline'
35075         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35076         Do not require AC_C_INLINE.
35077         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
35078         'static inline', for older compilers.
35080         snippet/warn-on-use: no 'static inline'
35081         * build-aux/snippet/warn-on-use.h:
35082         Remove unnecessary 'inline' in comment.
35084         rbtree-list, rbtreehash-list: no 'static inline'
35085         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
35086         * lib/gl_anytree_list2.h (node_at):
35087         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
35088         (gl_oset_first, add_nodes_to_buckets):
35089         Now static, not static inline.
35091         regex: no 'static inline'
35092         * lib/regex_internal.c (calc_state_hash):
35093         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
35094         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
35095         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
35096         Now static, not static inline.
35097         (inline) [__GNUC__ < 3 && _LIBC]:
35098         Remove macro; no longer needed.
35100         xvasprintf: no 'static inline'
35101         * lib/xvasprintf.c (xstrcat):
35102         Now static, not static inline.
35103         * m4/xvasprintf.m4 (gl_XVASPRINTF):
35104         Do not require AC_C_INLINE.
35106         parse-datetime, parse-duration: no 'static inline'
35107         * lib/parse-datetime.y (to_uchar):
35108         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
35109         (scale_n_add):
35110         Now static, not static inline.
35111         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
35112         * modules/parse-duration (configure.ac):
35113         Do not require AC_C_INLINE.
35115         getaddrinfo: no 'static inline'
35116         * lib/getaddrinfo.c (validate_family):
35117         Now static, not static inline.
35118         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
35119         Do not require AC_C_INLINE.
35121         ftruncate, fts, lstat, openat, raise: no 'static inline'
35122         * lib/ftruncate.c (chsize_nothrow):
35123         * lib/fts.c (opendirat, diropen):
35124         * lib/lstat.c (orig_lstat):
35125         * lib/openat.c (orig_openat):
35126         * lib/raise.c (raise_nothrow):
35127         Now static, not static inline.
35128         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
35129         * m4/fts.m4 (gl_FUNC_FTS_CORE):
35130         * m4/lstat.m4 (gl_PREREQ_LSTAT):
35131         * m4/openat.m4 (gl_PREREQ_OPENAT):
35132         * m4/raise.m4 (gl_PREREQ_RAISE):
35133         Do not require AC_C_INLINE.
35135         fflush, stat: no 'static inline'
35136         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35137         (clear_ungetc_buffer, disable_seek_optimization)
35138         (restore_seek_optimization, update_fpos_cache):
35139         * lib/stat.c (orig_stat):
35140         Now static, not static inline.
35141         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
35142         (update_fpos_cache):
35143         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
35144         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
35145         * m4/stat.m4 (gl_PREREQ_STAT):
35146         Do not require AC_C_INLINE.
35148         error, filevercmp: no 'static inline'
35149         * lib/error.c (is_open, flush_stdout):
35150         * lib/filevercmp.c (order):
35151         Now static, not static inline.
35152         * m4/error.m4 (gl_PREREQ_ERROR):
35153         * modules/filevercmp (configure.ac):
35154         Do not require AC_C_INLINE.
35156         dup, execute, fatal-signal, etc.: no 'static inline'
35157         * lib/dup.c (dup_nothrow):
35158         * lib/execute.c (nonintr_close, nonintr_open):
35159         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
35160         * lib/fopen.c (orig_fopen):
35161         * lib/freadseek.c (freadptrinc):
35162         * lib/freopen.c (orig_freopen):
35163         * lib/fstat.c (orig_fstat, fstat_nothrow):
35164         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
35165         (get_rusage_as_via_iterator):
35166         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
35167         * lib/getdtablesize.c (_setmaxstdio_nothrow):
35168         * lib/isatty.c (_isatty_nothrow):
35169         * lib/open.c (orig_open):
35170         * lib/read.c (read_nothrow):
35171         * lib/sigprocmask.c (signal_nothrow):
35172         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
35173         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
35174         * lib/wait-process.c (unregister_slave_subprocess):
35175         * lib/write.c (write_nothrow):
35176         Now static, not static inline.
35177         * lib/spawn-pipe.c (nonintr_open): Define only if
35178         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
35179         * m4/dup.m4 (gl_PREREQ_DUP):
35180         * m4/execute.m4 (gl_EXECUTE):
35181         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
35182         * m4/fopen.m4 (gl_PREREQ_FOPEN):
35183         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
35184         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
35185         * m4/fstat.m4 (gl_PREREQ_FSTAT):
35186         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
35187         * m4/isatty.m4 (gl_PREREQ_ISATTY):
35188         * m4/open.m4 (gl_PREREQ_OPEN):
35189         * m4/read.m4 (gl_PREREQ_READ):
35190         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
35191         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
35192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
35193         * m4/wait-process.m4 (gl_WAIT_PROCESS):
35194         * m4/write.m4 (gl_PREREQ_WRITE):
35195         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
35196         Do not require AC_C_INLINE.
35198         c-strtod, memcoll, readutmp: no 'static inline'
35199         * lib/c-strtod.c (c_locale):
35200         * lib/memcoll.c (strcoll_loop):
35201         * lib/readutmp.c (desirable_utmp_entry):
35202         Now static, not static inline.
35203         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
35204         * m4/memcoll.m4 (gl_MEMCOLL):
35205         * m4/readutmp.m4 (gl_READUTMP):
35206         Do not require AC_C_INLINE.
35208         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
35209         * lib/arctwo.c (to_uchar):
35210         * lib/md4.c (set_uint32):
35211         * lib/md5.c (set_uint32):
35212         * lib/sha1.c (set_uint32):
35213         * lib/sha256.c (set_uint32):
35214         * lib/sha512.c (set_uint64):
35215         Now static, not static inline.  This is a bit simpler, and doesn't
35216         affect performance with GCC and default optimization.
35217         * m4/arctwo.m4 (gl_ARCTWO):
35218         * m4/md4.m4 (gl_MD4):
35219         * m4/md5.m4 (gl_MD5):
35220         * m4/sha1.m4 (gl_SHA1):
35221         * m4/sha256.m4 (gl_SHA256):
35222         * m4/sha512.m4 (gl_SHA512):
35223         Do not require AC_C_INLINE.
35225         cond, lock, thread: better 'inline'
35226         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
35227         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
35228         New macros.  Use them instead of static inline, for header functions.
35229         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
35230         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35231         * lib/glthread/lock.c (gl_waitqueue_init)
35232         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35233         * lib/glthread/thread.c (get_current_thread_handle):
35234         Change 'static inline' to 'inline'.
35235         * lib/glthread/cond.h, lib/glthread/thread.h:
35236         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35237         * m4/cond.m4 (gl_COND):
35238         * m4/lock.m4 (gl_PREREQ_LOCK):
35239         * m4/thread.m4 (gl_THREAD):
35240         Do not require AC_C_INLINE.
35241         * modules/cond, modules/thread (Depends-on): Add extern-inline.
35243         chdir-long, cycle-check, savewd: better 'inline'
35244         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
35245         (find_non_slash):
35246         * lib/cycle-check.c (is_zero_or_power_of_two):
35247         * lib/savewd.c (savewd_delegating):
35248         Change 'static inline' to 'inline'.
35249         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
35250         Replace all remaining uses of 'static inline' with it.
35251         * lib/savewd.h:
35252         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35253         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
35254         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35255         * m4/savewd.m4 (gl_SAVEWD):
35256         Do not require AC_C_INLINE.
35257         * modules/savewd (Depends-on): Add extern-inline.
35259         base32, base64: no need for 'inline'
35260         * lib/base32.c (to_uchar, get_8, decode_8):
35261         * lib/base64.c (to_uchar, get_4, decode_4):
35262         Change 'static inline' to 'inline'.
35263         * m4/base32.m4 (gl_PREREQ_BASE32):
35264         * m4/base64.m4 (gl_PREREQ_BASE64):
35265         Do not require AC_C_INLINE.
35267         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
35268         * lib/gl_array_oset.c (gl_array_nx_add_at):
35269         (gl_array_remove_at):
35270         * lib/gl_linkedhash_list.c (hash_resize_after_add)
35271         (add_to_bucket, remove_from_bucket):
35272         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
35273         Change 'static inline' to 'static', as it's simpler to omit
35274         'inline' unless there's a significant performance advantage.
35276         list, oset, xlist, xoset, xsublist: simplify via extern inline
35277         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
35278         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
35279         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
35280         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
35281         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
35282         New macro.  Replace all uses of 'static inline' with it.
35283         [HAVE_INLINE]: Implement functions as *_INLINE functions,
35284         instead of as macros FOO that are defined to static inline
35285         functions FOO_inline.
35286         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
35287         * lib/gl_xsublist.c:
35288         Reimplement from scratch, by defining the corresponding *_INLINE
35289         macro and including the corresponding .h file.  This is simpler.
35290         * modules/list, modules/oset, modules/xlist, modules/xoset:
35291         (Files): Remove m4/gl_list.m4.
35292         (configure.ac): Remove gl_LIST.
35293         * m4/gl_list.m4: Remove.
35294         * modules/list, modules/oset, modules/xlist, modules/xoset:
35295         * modules/xsublist:
35296         (Depends-on): Depend on extern-inline, not inline.
35298         xalloc: better 'inline'
35299         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
35300         New macro.  Replace all uses of 'static inline' with it.
35301         (static_inline): Remove.
35302         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
35303         Let 'extern inline' do the work automatically, instead of doing
35304         it by hand.
35305         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
35306         Remove.  All uses removed.
35307         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
35309         gethrxtime: better 'inline'
35310         * lib/xtime.c: New file.
35311         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
35312         * lib/xtime.h (XTIME_INCLUDE):
35313         New macros.  Replace all uses of 'static inline' with them.
35314         * lib/gethrxtime.c (gethrxtime): Define only if
35315         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
35316         this source file is now always compiled, because of the extern inline.
35317         * lib/gethrxtime.h, lib/xtime.h:
35318         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35319         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
35320         if gethrtime works, as they're not needed in that case.
35321         (gl_XTIME): Do not require AC_C_INLINE.
35322         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
35323         compiled now.  Move the check into gl_GETHRXTIME.
35324         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
35325         (Depends-on): Add extern-inline.
35326         (configure.ac): gethrxtime is always compiled now.
35327         (lib_SOURCES): Add gethrxtime.c.
35329         wctype-h: better 'inline'
35330         * lib/wctype-h.c: New file.
35331         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
35332         New macro.  Replace all uses of 'static inline' with it.
35333         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35334         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
35335         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
35336         (Depends-on): Add extern-inline.
35338         unistd: better 'inline'
35339         * lib/unistd.c: New file.
35340         * lib/unistd.in.h (_GL_UNISTD_INLINE):
35341         New macro.  Replace all uses of 'static inline' with it.
35342         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35343         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
35344         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
35345         (Depends-on): Add extern-inline.
35347         sys_socket: better 'inline'
35348         * lib/sys_socket.c: New file.
35349         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
35350         New macro.  Replace all uses of 'static inline' with it.
35351         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35352         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
35353         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
35354         (Depends-on): Add extern-inline.
35356         stdio: better 'inline'
35357         * lib/stdio.c: New file.
35358         * lib/stdio.in.h (_GL_STDIO_INLINE):
35359         New macro.  Replace all uses of 'static inline' with it.
35360         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35361         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
35362         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
35363         (Depends-on): Add extern-inline.
35365         sigaction: better 'inline'
35366         * lib/sig-handler.c: New file.
35367         * lib/sig-handler.h (SIG_HANDLER_INLINE):
35368         New macro.  Replace all uses of 'static inline' with it.
35369         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35370         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
35371         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
35372         (Depends-on): Add extern-inline.
35374         selinux-h: better 'inline'
35375         * lib/se-context.c, lib/se-selinux.c: New files.
35376         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
35377         * lib/se-context.in.h (SE_CONTEXT_INLINE):
35378         New macro.  Replace all uses of 'static inline' with it.
35379         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35380         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
35381         New macro.  Replace all uses of 'static inline' with it.
35382         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35383         * modules/selinux-h (Files, lib_SOURCES):
35384         Add lib/se-context.c, lib/se-selinux.c.
35385         (Depends-on): Add extern-inline.
35386         (configure.ac): Do not require AC_C_INLINE.
35388         pthread: better 'inline'
35389         * lib/pthread.c: New file.
35390         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
35391         New macro.  Replace all uses of 'static inline' with it.
35392         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35393         * m4/pthread.m4 (gl_PTHREAD_CHECK):
35394         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
35395         * modules/pthread (Files): Add lib/pthread.c.
35396         (Depends-on): Add extern-inline.
35398         math: better 'inline'
35399         * lib/math.c: New file.
35400         * lib/math.in.h (_GL_MATH_INLINE):
35401         New macro.  Replace all uses of 'static inline' with it.
35402         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35403         * m4/math_h.m4 (gl_MATH_H):
35404         Do not require AC_C_INLINE.
35405         * modules/math (Files, lib_SOURCES):
35406         Add lib/math.c.
35407         (Depends-on): Add extern-inline.
35409         count-one-bits: better 'inline'
35410         * lib/count-one-bits.c: New file.
35411         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
35412         New macro.  Replace all uses of 'static inline' with it.
35413         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35414         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
35415         Do not require AC_C_INLINE.
35416         * modules/count-one-bits (Files, lib_SOURCES):
35417         Add lib/count-one-bits.c.
35418         (Depends-on): Add extern-inline.
35420         count-leading-zeros: better 'inline'
35421         * lib/count-leading-zeros.c: New file.
35422         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
35423         New macro.  Replace all uses of 'static inline' with it.
35424         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35425         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
35426         Do not require AC_C_INLINE.
35427         * modules/count-leading-zeros (Files, lib_SOURCES):
35428         Add lib/count-leading-zeros.c.
35429         (Depends-on): Add extern-inline.
35431         bitrotate: better 'inline'
35432         * lib/bitrotate.c: New file.
35433         * lib/bitrotate.h (BITROTATE_INLINE):
35434         New macros.
35435         Replace all uses of 'static inline' with them.
35436         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35437         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
35438         (Depends-on): Add extern-inline.
35439         (configure.ac): Do not require AC_C_INLINE.
35441 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
35443         maint.mk: avoid gratuitous failure
35444         Reported by Stefano Lattarini in
35445         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
35446         * top/maint.mk (public-submodule-commit): Quote more safely.
35448 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
35450         canonicalize, canonicalize-lgpl: support MS-Windows file names
35451         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
35452         for test cases, which it'd be nice to add at some point.
35453         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
35454         * lib/canonicalize.c (canonicalize_filename_mode):
35455         * lib/canonicalize-lgpl.c (__realpath):
35456         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
35457         slash is at the beginning of the file name.  Use ISSLASH, instead
35458         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
35459         the first character with '/'.  Test for
35460         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
35461         with a drive letter.
35462         * lib/canonicalize.c (SLASHES): New macro.
35463         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
35465 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
35467         fts: introduce FTS_VERBATIM
35468         * lib/fts_.h (FTS_VERBATIM): New bit flag.
35469         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
35470         * lib/fts.c (fts_open): Honor it.
35472 2012-11-09  Pádraig Brady  <P@draigBrady.com>
35474         getlogin-tests: allow errno == ENXIO
35475         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35476         with errno == ENXIO (No controlling tty).
35477         getlogin_r-tests: Likewise. Also allow errno == ENOENT
35478         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
35479         with errno == ENOENT.  This was reported to happen in various
35480         situations on GNU/Linux.
35482 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
35484         getlogin-tests: allow errno == ENOENT
35485         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35486         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
35487         when running a test in an Emacs shell buffer.
35489 2012-11-08  Jim Meyering  <jim@meyering.net>
35491         tests/nap.h: avoid warning about unused variable
35492         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
35494         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
35495         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
35496         white space before each of the special-cased file names, to avoid
35497         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
35498         in http://bugs.gnu.org/12830.
35500 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
35502         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
35503         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
35504         fails with errno == EBADF when fd is opened with O_PATH.
35505         Reported by Jim Meyering in
35506         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
35507         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35508         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
35510 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
35512         test-utimens: speed up by taking shorter naps
35513         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
35514         New functions.
35515         (nap): Use them, to do a better job of guessing the delay.
35516         On Fedora 17 with ext4 atop md atop hard disks, this made
35517         test-utimens run 10x faster, because the test napped for
35518         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
35519         <http://bugs.gnu.org/12820#11>.
35521 2012-11-07  Jim Meyering  <jim@meyering.net>
35523         mountlist.c: fix a compilation failure
35524         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
35525         I introduced while transforming commit v0.0-7683-g613bcb6
35527 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35529         errno: port to LynxOS 178 2.2.2
35530         Problem reported by Joel Brobecker in
35531         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
35532         * doc/posix-headers/errno.texi (errno.h): Document this.
35533         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
35534         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
35535         Supply a string for EILSEQ.
35536         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
35538 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35540         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
35541         Linux kernel 2.6.39 introduced O_PATH (see
35542         <http://lwn.net/Articles/433854/>) and this is a better fallback
35543         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
35544         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35545         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
35546         * lib/fcntl.in.h (O_ACCMODE):
35547         * tests/test-fcntl-h.c (main):
35548         Do not reject O_ACCMODE merely because it has more than the
35549         minimal number of bits, as POSIX allows extensions here.
35551 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
35553         mountlist: do not classify a bind-mounted dir entry as "dummy"
35554         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
35555         the "none"-testing clause.
35556         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
35557         exception for bind-mounted directories.
35559 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
35561         quote: provide a means to escape strings with nul characters
35562         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
35563         (quote, quote_n): Rename formal arguments for consistency with
35564         quotearg.
35566 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35568         test-raise: don't assume 199 is an invalid signal
35569         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
35571         sh-quote-tests: port to Solaris 9
35572         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
35573         Problem reported by Dagobert Michelsen in
35574         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
35576 2012-10-28  Jim Meyering  <jim@meyering.net>
35578         maint.mk: rename a new configurable variable
35579         * top/maint.mk (_gl_translatable_string_re): Rename from
35580         translation-markers: _gl_ prefix to insulate from user Makefile code,
35581         and the _re suffix to inform that it's a regular expression.
35583 2012-10-26  Eric Blake  <eblake@redhat.com>
35585         maint.mk: let packages tweak sc_po_check pattern
35586         * top/maint.mk (sc_po_check): Add translation-markers, to allow
35587         finding files with other translation markers.
35589 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35591         euidaccess: speed up 'configure' on GNU hosts
35592         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
35593         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
35594         it's needed only in this case.  Use AC_CHECK_DECLS, not
35595         AC_CHECK_DECLS_ONCE.
35596         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
35597         or AC_REQUIRE for AC_FUNC_GETGROUPS.
35599         * lib/regexec.c (re_search_internal): Fix grammar in comment.
35601 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
35603         fchmodat, fchownat, fstatat: port to non-inlining compilers
35604         Problem reported for FreeBSD 9 by Jim Meyering in
35605         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
35606         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
35607         New files, which define FCHMODAT_INLINE etc.
35608         * lib/fchmodat.c (FCHMODAT_INLINE):
35609         * lib/fchownat.c (FCHOWNAT_INLINE):
35610         * lib/fstatat.c (FSTATAT_INLINE):
35611         Remove, as chmodat.c etc. now do this.
35612         * modules/fchmodat (Files): Add lib/chmodat.c.
35613         * modules/fchownat (Files): Add lib/chownat.c.
35614         * modules/fstatat (Files): Add lib/statat.c.
35616 2012-10-15  Jim Meyering  <jim@meyering.net>
35618         fchmodat.c, fchownat.c: compile-impeding typos
35619         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
35620         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
35621         Introduced in commit v0.0-7636-gd202279.
35623 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
35625         fcntl-h: support GNU flags like O_IGNORE_CTTY
35626         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
35627         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
35628         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
35629         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
35630         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
35631         Define to 0 if not already defined.
35632         * tests/test-fcntl-h.c: Test these new flags.
35634 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35636         faccessat, etc.: support AT_FDCWD-only use
35637         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
35638         this function only if its first argument is AT_FDCWD.
35639         Emacs wants faccessat for AT_EACCESS but not for any first-arg
35640         values other than AT_FDCWD, so it doesn't want all the openat
35641         machinery with fchdir etc.
35642         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
35643         * modules/fstatat, modules/mkdirat, modules/openat (Files):
35644         * modules/unlinkat (Files):
35645         Remove lib/openat-priv.h, as at-internal supplies this file.
35646         Removing this file here allows us to support programs like Emacs
35647         that avoid at-internal.
35649         faccessat: speed up 'configure' on mainstream hosts
35650         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
35651         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
35652         since it's only on unusual platforms that we need to check for
35653         'access', and it's better not to slow 'configure' down on all
35654         platforms.
35656         faccessat: port to Solaris 10
35657         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
35658         Needed on Solaris 10, which doesn't have AT_EACCESS,
35659         so we need the Gnulib fcntl.h, which defines it.
35661 2012-10-14  Pádraig Brady  <P@draigBrady.com>
35662         canonicalize: fix C89 compilation
35663         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
35664         declarations so C89 is supported.  Also remove the comment
35665         referencing memorty allocation as the suggested feature could
35666         not be implemented as suggested.
35667         Reported by Michael Goffioul.
35669 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35671         group-member: omit unnecessary dependencies
35672         This is for Emacs, which has its own allocator and where we
35673         don't want to use xalloc.
35674         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
35675         since we no longer use xmalloc.  Do not include stdbool.h, since
35676         the changes below happen to remove the only use of bool.
35677         (GROUPBUF_SIZE): New constant.
35678         (struct group_info): Remove n_groups member.  Add groupbuf member.
35679         This lets us get the groups without using malloc, usually.
35680         (free_group_info, get_group_info): Adjust to this.
35681         (get_group_info): Return the number of groups found, or -1 on error.
35682         Use plain malloc not xmalloc, and treat its failure as if there
35683         are no groups, as the user already loses in case of error.
35684         (group_member): Simplify, based on changes to get_group_info.
35685         * modules/group-member (Depends-on): Remove dependencies on
35686         xalloc and stdbool.  Add dependency on xalloc-oversized.
35688 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
35690         gethrxtime: port to C++
35691         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
35693 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35695         ptsname: fix macro-name typo
35696         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
35698 2012-10-03  Simon Josefsson  <simon@josefsson.org>
35700         inttostr: Relax license.
35701         * modules/inttostr (License): Change from LGPL to LGPLv2+.
35703 2012-10-03  Eric Blake  <eblake@redhat.com>
35705         ptsname_r: support ptys returned by FreeBSD posix_openpt
35706         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
35707         lives in /dev/pts/.
35709 2012-10-02  Eric Blake  <eblake@redhat.com>
35711         pselect: reject invalid file descriptors
35712         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
35713         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
35714         * modules/pselect (Depends-on): Add dup2.
35715         * doc/posix-functions/pselect.texi (pselect): Document this.
35717         select: reject invalid file descriptors
35718         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
35719         * lib/select.c (rpl_select) [!win32]: Work around it.
35720         * modules/select (Depends-on): Add dup2.
35721         * doc/posix-functions/select.texi (select): Document this.
35723         select: enhance test
35724         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
35725         New functions.
35726         (test_function): Enhance test.
35727         (do_select_bad_fd): Avoid any stale errno values.
35729         ptsname: reject invalid file descriptors
35730         http://www.austingroupbugs.net/view.php?id=503
35731         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
35732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
35733         * modules/stdlib (Makefile.am): Replace witness.
35734         * lib/stdlib.in.h (ptsname): Allow for replacement.
35735         * modules/ptsname (configure.ac): Trigger replacement.
35736         * doc/posix-functions/ptsname.texi (ptsname): Document this.
35738 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
35740         hash-pjw-bare: new module
35741         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
35742         * lib/hash-pjw-bare.h: Likewise.
35743         * modules/hash-pjw-bare: New file.
35744         * MODULES.html.sh (Misc): Add it.
35746 2012-10-02  Eric Blake  <eblake@redhat.com>
35748         manywarnings: cater to more gcc infelicities
35749         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
35750         -Wuninitialized without -O.
35752 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
35754         select, poll tests: Make setsockopt invocation effective.
35755         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
35756         the bind() call.
35757         * tests/test-select.h (open_server_socket): Likewise.
35759 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35761         sockets, sys_stat: restore AC_C_INLINE
35762         This undoes the 2012-09-22 patch.
35763         * m4/sockets.m4 (gl_SOCKETS):
35764         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
35765         Restore AC_C_INLINE, since MSVC requires __inline or _inline
35766         and does not support plain 'inline'.  Reported by Bruno Haible in
35767         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
35769 2012-09-30  Bruno Haible  <bruno@clisp.org>
35771         localeconv tests: Avoid test failure on OpenIndiana.
35772         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
35773         skip the 'grouping' and 'mon_grouping' tests.
35774         Reported by Jim Meyering.
35776 2012-09-30  Bruno Haible  <bruno@clisp.org>
35778         havelib: Follow libtool developments.
35779         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
35780         Suggested by Simon Josefsson.
35782 2012-09-29  Jim Meyering  <meyering@redhat.com>
35784         fstatat.c: fix a compile-impeding typo
35785         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
35786         Introduced in commit v0.0-7636-gd202279.
35787         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
35789 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
35791         extern-inline: provide a -Wundef safe config.h
35792         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
35793         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
35794         to produce a -Wundef warning free config.h.
35796 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
35798         hash-pjw: relax license to LGPLv2+
35799         * modules/hash-pjw (License): Relax, with consent of author.
35801 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
35803         maint.mk: fix strict vs. lazy variable issues with RELEASE
35804         * top/maint.mk (_equal): New function.
35805         (member_check): Strip the result to avoid spurious spaces.
35806         (url_dir_list): Do not use ifeq, which is strict, as it will
35807         require RELEASE_TYPE to be defined.
35808         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
35809         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
35810         (announcement_Cc_alpha,announcement_mail_headers_alpha)
35811         (announcement_Cc_beta,announcement_mail_headers_beta)
35812         (announcement_Cc_stable,announcement_mail_headers_stable): these.
35813         (release): Do not depend on $(release-type), as it forces its
35814         evaluation.  Bounce to it.
35816 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
35818         maint.mk: formatting changes
35819         * top/maint.mk: Indent bodies of if's.
35821 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
35823         maint.mk: factor the validation of RELEASE_TYPE
35824         With help from Jim Meyering.
35825         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
35826         * top/maint.mk (_empty, _sp): Move their definition earlier.
35827         (member-check, release-type): New.
35828         Use the latter instead of $(RELEASE_TYPE).
35829         Remove now useless local checks.
35831 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
35833         maint.mk: provide "make upload" to ease uploading
35834         See
35835         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
35836         Do not depend simply on the current $(VERSION), as there may have been
35837         new commits since the tarball generation.  Rather, rely on $(RELEASE),
35838         as "make release-commit" already does.
35840         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
35841         "make TYPE".
35843         * top/maint.mk (upload_command, upload, release): New.
35844         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
35845         (VERSION): first word of $(RELEASE) is always right.
35846         (emit_upload_commands): Adjust.
35847         * top/README-release: Update.
35849 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
35851         maint.mk: silent rules
35852         With help from Stefano Lattarini.
35853         * top/maint.mk (writable-files): Use $(AM_V_GEN).
35854         (announcement): Use $(AM_V_at).
35856 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
35858         localename: port gl_locale_name_thread_unsafe to FreeBSD
35859         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
35860         and use the simpler FreeBSD implementation on Mac OS X as well.
35861         Original idea suggested by Ed Maste in
35862         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
35864 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35866         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
35867         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
35868         * lib/mbuiter.c, lib/xsize.c: New files.
35869         * lib/binary-io.h (BINARY_IO_INLINE):
35870         * lib/eealloc.h (EEALLOC_INLINE):
35871         * lib/mbfile.h (MBFILE_INLINE):
35872         * lib/mbiter.h (MBITER_INLINE):
35873         * lib/mbuiter.h (MBUITER_INLINE):
35874         * lib/xsize.h (XSIZE_INLINE):
35875         New macros.
35876         Replace all uses of 'static inline' with them.
35877         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35878         * m4/eealloc.m4 (gl_EEALLOC):
35879         * m4/mbfile.m4 (gl_MBFILE):
35880         * m4/mbiter.m4 (gl_MBITER):
35881         * m4/xsize.m4 (gl_XSIZE):
35882         Do not require AC_C_INLINE.
35883         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
35884         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
35885         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
35886         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
35887         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
35888         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
35889         * modules/binary-io, modules/eealloc, modules/mbfile:
35890         * modules/mbiter, modules/mbuiter:
35891         (Depends-on): Add extern-inline.
35893         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
35894         * lib/pipe-filter-aux.c: New file.
35895         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
35896         Replace all uses of 'static inline' with it.
35897         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35898         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
35899         (filter_retcode): No real need for inline here.
35900         * modules/pipe-filter-gi, modules/pipe-filter-ii:
35901         (Files): Add lib/pipe-filter-aux.c.
35902         (Depends-on): Add extern-inline.
35903         (configure.ac): Do not require AC_C_INLINE.
35904         (lib_SOURCES): Add pipe-filter-aux.c.
35906         fdutimensat: omit unnecessary AC_C_INLINE
35907         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
35909         fchmodat, fchownat, fstatat: use extern-inline
35910         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
35911         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
35912         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
35913         New macros.
35914         * lib/openat.h:
35915         Replace all uses of 'static inline' with them.
35916         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35917         * modules/fchmodat, modules/fchownat, modules/fstatat:
35918         * modules/openat-h:
35919         (Depends-on):
35920         Add extern-inline.
35921         (configure.ac): Remove AC_C_INLINE.
35923         acl, mbchar, priv-set: use extern-inline
35924         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
35925         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
35926         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
35927         New macros.
35928         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
35929         Replace all uses of 'static inline' with it.
35930         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35931         * m4/acl.m4 (gl_FUNC_ACL):
35932         * m4/mbchar.m4 (gl_MBCHAR):
35933         * m4/priv-set.m4 (gl_PRIV_SET):
35934         Remove AC_C_INLINE, since 'inline' is no longer used directly.
35935         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
35936         Add extern-inline.
35938         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
35939         * m4/sockets.m4 (gl_SOCKETS):
35940         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
35941         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
35942         environments where it's already guaranteed to work, so we needn't
35943         check for it at 'configure'-time.
35945         tls-tests: omit unnecessary 'inline'
35946         * tests/test-tls.c (perhaps_yield): No longer inline.
35947         Simplicity and portability trump efficiency in test cases.
35949         utimens-tests: avoid unnecessary 'inline'
35950         * modules/fdutimensat-tests (configure.ac):
35951         * modules/futimens-tests (configure.ac):
35952         * modules/utimens-tests (configure.ac):
35953         * modules/utimensat-tests (configure.ac):
35954         Remove AC_C_INLINE.
35955         * tests/test-utimens-common.h (ctime_compare):
35956         No longer inline.  Simplicity and portability trump efficiency here.
35958         misc: don't limit commentary to inline functions
35959         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
35960         * lib/xalloc-oversized.h, lib/xsize.h:
35961         Contrast macros to functions in general, not just to inline functions,
35962         when the commentary does not apply only to inline functions.
35964 2012-09-20  Jim Meyering  <meyering@redhat.com>
35966         non-recursive-gnulib-prefix-hack: new module
35967         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
35968         the file that originated in Bison.
35969         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
35970         largely copied from a snippet that resided in bison's configure.ac.
35971         * modules/non-recursive-gnulib-prefix-hack: New file.
35972         * MODULES.html.sh (Support for maintaining and releasing projects):
35973         Add it.
35975 2012-09-18  Jim Meyering  <meyering@redhat.com>
35977         maint.mk: generalize _gl_tight_scope for non-recursive make
35978         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
35979         that *.h would describe additional .h files in the directory
35980         specified by $(_gl_TS_dir).  I.e., add this...
35981         (_gl_TS_other_headers): New variable.
35983         maint.mk: exempt trailing blanks found in "binary" files
35984         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
35985         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
35986         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
35988 2012-09-17  Jim Meyering  <meyering@redhat.com>
35990         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
35991         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
35992         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
35993         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
35995 2012-09-17  Jim Meyering  <meyering@redhat.com>
35997         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
35998         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
35999         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
36000         It is not in the same category as "exit (0)" or "exit (1)", and
36001         besides, I know of no symbolic name for that 77.  Reported by
36002         Richard W.M. Jones in
36003         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36005 2012-09-17  Jim Meyering  <meyering@redhat.com>
36007         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
36008         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
36009         all uses of #define, not just those that start in column 1.
36010         Richard W.M. Jones reported a false positive in
36011         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36013 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36015         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
36016         * lib/localcharset.c (locale_charset) [DARWIN7]:
36017         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
36018         as these two values are incompatible.  Problem reported by Max Horn.
36019         For more discussion, please see
36020         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
36022         doc: document sticky-EOF issue
36023         * doc/posix-functions/fgetc.texi (fgetc):
36024         * doc/posix-functions/fgets.texi (fgets):
36025         * doc/posix-functions/fread.texi (fread):
36026         * doc/posix-functions/fscanf.texi (fscanf):
36027         * doc/posix-functions/getc.texi (getc):
36028         * doc/posix-functions/getchar.texi (getchar):
36029         * doc/posix-functions/scanf.texi (scanf):
36030         Mention that glibc and default Solaris do not conform to
36031         C99 and POSIX-2001 or later, with respect to how getchar
36032         etc. behave when feof reports nonzero.
36034 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36036         poll: fix poll(0, NULL, msec)
36037         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
36038         but nfd is 0.  In that case poll should behave like select.
36040 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36041             Paolo Bonzini  <bonzini@gnu.org>
36043         poll: fix for systems that can't recv() on a non-socket
36044         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
36045         is readable.  In this case POLLHUP will not be supported.
36046         * doc/posix-functions/poll.texi: Document this.
36048 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
36050         poll/select: document portability problems not fixed by Gnulib.
36051         * doc/posix-functions/poll.texi: poll does not work well on
36052         pipes under Windows.  It has the same limitations as select on
36053         BeOS.
36054         * doc/posix-functions/select.texi: select does not work well
36055         on pipes under Windows.
36057 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
36059         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
36060         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
36061         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
36062         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
36064 2012-09-06  Eric Blake  <eblake@redhat.com>
36066         net_if: give more details about the bug being fixed
36067         * doc/posix-headers/net_if.texi: Add clarification.
36069 2012-09-05  Eric Blake  <eblake@redhat.com>
36071         net_if: new module
36072         * modules/net_if: New module, borrowing ideas from netinet_in.
36073         * m4/net_if_h.m4: New file.
36074         * lib/net_if.in.h: Likewise.
36075         * doc/posix-headers/net_if.texi (net/if.h): Document it.
36076         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36077         * tests/test-net_if.c: Make function checks conditional.
36078         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
36080 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
36082         readutmp: fix non-portable UT_PID use
36083         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
36084         Use `UT_PID (u) > 0' as absolute condition.
36086 2012-09-04  Jim Meyering  <meyering@redhat.com>
36088         fts: reduce two or more trailing spaces to just one, usually
36089         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
36090         or more slashes, trim all but the final one.  But if a name consists
36091         solely of two slashes, don't modify it.  If it consists solely of
36092         three or more slashes, strip all but one.
36094         This is part of the solution to a minor problem with rm:
36095         it would print a bogus ELOOP diagnostic when failing to remove
36096         the slash-decorated name of a symlink-to-directory:
36098             $ mkdir d && ln -s d s && env rm -r s/
36099             rm: cannot remove 's': Too many levels of symbolic links
36101         With the change below and a trivial don't-trim-trailing-slashes
36102         adjustment to remove.c, it does this:
36104             $ env rm -r s/
36105             rm: cannot remove 's/': Not a directory
36107         Improved by: Eric Blake
36109         fts: when there is no risk of overlap, use memcpy, not memmove
36110         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
36112 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36114         stdbool: be more compatible with mixed C/C++ compiles
36115         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
36116         Define to bool, true, false, respectively, as GCC's builtin
36117         stdbool.h does.  Problem reported by Michael Goffioul in
36118         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
36120 2012-08-28  Jim Meyering  <meyering@redhat.com>
36122         revert last change: it was not needed
36123         * tests/test-vc-list-files-git.sh: There's already a test for
36124         a working git, just below.
36126 2012-08-28  Jim Meyering  <meyering@redhat.com>
36128         tests: test-vc-list-files-git.sh: skip if git is not available
36129         * tests/test-vc-list-files-git.sh: Skip this test when git is
36130         not available.
36132 2012-08-26  Bruno Haible  <bruno@clisp.org>
36134         gnulib-tool: Remove no-op option --no-changelog.
36135         * gnulib-tool (func_usage): Don't mention --no-changelog.
36136         (do_changelog): Remove variable.
36137         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36139 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36141         doc: remove fdl-1.2.texi
36142         It is no longer used or maintained, and its use of @acronym
36143         is problematic.  See the thread containing
36144         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
36145         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
36146         * doc/old-licenses/fdl-1.2.texi: Remove.
36148         execinfo: port to FreeBSD
36149         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
36150         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
36151         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
36152         * modules/execinfo (Link): Add $(LIB_EXECINFO).
36154 2012-08-23  Jim Meyering  <meyering@redhat.com>
36156         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
36157         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
36158         to placate gcc's -Wold-style-declaration.
36160 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36162         doc: do not use @acronym
36163         * doc/inet_ntoa.texi (inet_ntoa):
36164         * doc/parse-datetime.texi (Seconds since the Epoch)
36165         (Specifying time zone rules):
36166         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
36167         Don't use @acronym.  Problem reported by John Darlington in
36168         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
36170 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36172         stdnoreturn: port to newer GCCs
36173         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
36174         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
36175         Problem reported by Jim Meyering in
36176         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
36177         Also, rename the 'test' function to a void a clash with the
36178         already-supplied 'main' function; this fixes a bug that incorrectly
36179         rejected GCC 4.7.1's <stdnoreturn.h>.
36180         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
36181         Document GCC problem.
36183 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
36185         pipe-filter: fix comment typo
36186         * lib/pipe-filter.h: Mention correct function.
36188 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36190         execinfo: new module
36191         This is for Emacs.  Currently, it provides a no-effect stub
36192         on all platforms where it does not already work.
36193         It already works on glibc-based systems, and on Solaris 11.
36194         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
36195         New files.
36196         * doc/glibc-headers/execinfo.texi (execinfo.h):
36197         * MODULES.html.sh (Misc): Document it.
36199 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36201         extern-inline: support old GCC 'inline'
36202         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
36203         if available.  This applies to GCC versions 2.7 through 4.2, or
36204         when newer GCC is using -fgnu89-inline.  The goal is to address
36205         some of the performance issues mentioned by Bruno Haible in
36206         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
36208 2012-08-20  Eric Blake  <eblake@redhat.com>
36210         maint.mk: avoid redundant file name in message
36211         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
36212         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
36213         (sc_makefile_path_separator_check): Remove bogus $(ME).
36215 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
36217         timer-time: fix link order when static linking on glibc
36218         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36219         _after_ -lrt so that it's significant.
36221 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36223         timespec: omit unnecessary AC_C_INLINE
36224         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
36226         stat-time: omit unnecessary AC_C_INLINE
36227         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36228         Do not require AC_C_INLINE.
36230         ignore-value: omit unnecessary AC_C_INLINE
36231         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
36233         sys_select: avoid 'static inline'
36234         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
36236         mktime: avoid 'static inline'
36237         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
36238         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
36240 2012-08-19  Bruno Haible  <bruno@clisp.org>
36242         gnulib-tool: Improve coding style.
36243         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
36244         func_emit_lib_Makefile_am.
36245         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36247 2012-08-19  Bruno Haible  <bruno@clisp.org>
36249         gnulib-tool: Fix indentation.
36250         * gnulib-tool (func_import): Fix indentation.
36252 2012-08-19  Bruno Haible  <bruno@clisp.org>
36254         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
36255         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
36256         on the list of removed files.
36258 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36260         test-parse-datetime: avoid glibc leap-second glitch
36261         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
36262         with the 2012 rules.  Problem reported by Bruce Dubbs in
36263         <http://bugs.gnu.org/12206>.
36265 2012-08-14  Bruno Haible  <bruno@clisp.org>
36267         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
36268         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
36269         from argument.
36270         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36272 2012-08-14  Eric Blake  <eblake@redhat.com>
36274         ldexp: relax license
36275         * modules/ldexp (License): Trivial relax, since the module only
36276         provides a permissively licensed m4 file.
36278 2012-08-13  Bruno Haible  <bruno@clisp.org>
36280         gnulib-tool: Fix persistence of --witness-c-macro option.
36281         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
36282         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36284 2012-08-11  Eric Blake  <eblake@redhat.com>
36286         count-leading-zeros: use a lookup table on non-gcc compilers
36287         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
36288         alternate implementation, suggested by Jim Meyering.
36290 2012-08-10  Eric Blake  <eblake@redhat.com>
36292         count-leading-zeros: new module
36293         * modules/count-leading-zeros: New module.
36294         * m4/count-leading-zeros.m4: New file.
36295         * lib/count-leading-zeros.h: Likewise.
36296         * modules/count-leading-zeros-tests: New test.
36297         * tests/test-count-leading-zeros.c: New file.
36298         * MODULES.html.sh (Integer arithmetic functions): Document it.
36300 2012-08-07  Simon Josefsson  <simon@josefsson.org>
36301             Jim Meyering  <meyering@redhat.com>
36303         maintainer-makefile: Fix syntax error with dash.
36304         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
36305         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
36307 2012-08-05  Jim Meyering  <meyering@redhat.com>
36309         extern-inline: also ignore -Wmissing-declarations
36310         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
36311         required with gcc-4.8.0-to-be.
36313         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
36314         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
36315         for /error ?([^,]*)/.  This avoids false-positives for strings like
36316         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
36318 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
36320         gnumakefile: better interaction with Automake-NG
36321         * modules/gnumakefile [Makefile.am]: The makefiles generated by
36322         Automake-NG always contain a definition of VPATH, even in non-VPATH
36323         builds (its value being simply '.' in that case).  So, in the
36324         'clean-GNUmakefile' rule, to determine whether running under a
36325         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
36326         '$(VPATH)' expands to the empty string.
36328 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
36330         base64: Use extern C scope in header file, for C++.
36331         * lib/base64.h: Add C++ namespace protection.
36333 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
36335         stat-time, timespec, u64: support naive out-of-dir builds
36336         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
36337         Use '#include "foo.h"', not '#include <foo.h>', when including
36338         one's own interface.  This works better when configuring with
36339         out-of-directory builds, since packages need not add an
36340         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
36342 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
36344         utimens: use extern-inline
36345         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
36346         * lib/utimens.h: Add copyright notice, since this is now large enough
36347         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36348         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
36349         * modules/utimens (Depends-on): Add extern-inline.
36351         u64: use extern-inline
36352         * lib/u64.c: New file.
36353         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36354         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
36355         * modules/u64 (Files): Add lib/u64.c.
36356         (Depends-on): Add extern-inline.
36357         (configure.ac): No need to require AC_C_INLINE, since extern-inline
36358         does that now.
36359         (lib_SOURCES): Add u64.c.
36361         timespec: use extern-inline
36362         * lib/timespec.c: New file.
36363         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36364         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
36365         * modules/timespec (Files): Add lib/timespec.c.
36366         (Depends-on): Add extern-inline.
36367         (lib_SOURCES): Add timespec.c.
36369         stat-time: use extern-inline
36370         * lib/stat-time.c: New file.
36371         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36372         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
36373         * modules/stat-time (Files): Add lib/stat-time.c.
36374         (Depends-on): Add extern-inline.
36375         (lib_SOURCES): Add stat-time.c.
36377         extern-inline: new module
36378         * modules/extern-inline, m4/extern-inline.m4: New files.
36379         This is for better support of 'extern inline' a la ISO C99,
36380         with a portable alternative on compilers that do not support
36381         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
36382         of the Emacs executable, when compiled with debugging disabled,
36383         which is a typical way that Emacs is built while developing.
36385 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
36387         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
36388         * build-aux/do-release-commit-and-tag: Move variable definitions
36389         together.
36390         ($branch): Instead of defaulting to "master", default to the current
36391         branch (as gnu-web-doc-update does).
36392         (help): Display the current values of the option arguments.
36393         * top/maint.mk (release-commit): New.
36394         * top/README-release: Simplify the corresponding step.
36396 2012-07-30  Eric Blake  <eblake@redhat.com>
36398         passfd: fix comment on recvfd
36399         * lib/passfd.c (recvfd): Fix comment.
36400         Reported by Jann Horn <jannhorn@googlemail.com>.
36402 2012-07-30  Jim Meyering  <meyering@redhat.com>
36404         maint.mk: avoid a sub-shell
36405         * top/maint.mk (release-prep): Remove unneeded sub-shell.
36407 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36409         maint.mk: use silent-rules support from Automake
36410         * top/maint.mk (news-check, vc-diff-check, announcement)
36411         (no-submodule-changes, alpha beta stable, release-prep)
36412         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
36414 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36416         maint.mk: provide a web-manual-update target
36417         * top/maint.mk: here.
36418         * top/README-release: Use it to simplify the web manual update step.
36420 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36422         README-release: shorten the circuit to post a news
36423         * top/README-release: Point directly to the news submission form.
36425 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36427         gnu-web-doc-update: fix --help
36428         * build-aux/gnu-web-doc-update: The information "top level" was written
36429         twice.
36431 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36433         maint.mk: absolute VPATH issue
36434         * top/maint.mk (release-prep): Help Git find .git/.
36435         From Jim Meyering.
36437 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36439         gitlog-to-changelog: fix previous change
36440         * build-aux/gitlog-to-changelog: Fix condition.
36441         Add missing ";".
36443 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36445         gitlog-to-changelog: don't expect .git to be in $srcdir
36446         Reported by Bruno Haible.
36447         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
36448         * build-aux/gitlog-to-changelog (&git_dir_option): New.
36449         Use it.
36451 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36453         maint.mk: absolute VPATH build fix
36454         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
36455         $(srcdir) is not a parent of $(builddir).
36457 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
36459         clean-temp: Fix memory leak.
36460         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
36461         'files' members of tmpdir.
36463 2012-07-27  Jim Meyering  <meyering@redhat.com>
36465         maint.mk: new rule: refresh-gnulib-patches
36466         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
36467         Use this rule to refresh them.
36468         * top/maint.mk (refresh-gnulib-patches): New rule.
36470 2012-07-24  Bruno Haible  <bruno@clisp.org>
36472         gnulib-tool: Fix handling of inctests variable.
36473         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
36474         Reported by Nick Bowler <nbowler@elliptictech.com>.
36476 2012-07-22  Bruno Haible  <bruno@clisp.org>
36478         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
36479         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
36480         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36481         Remove exemption for getpass.h.
36482         Suggested by Eric Blake.
36484 2012-07-20  Eric Blake  <eblake@redhat.com>
36486         verify: document conflict with -Wnested-externs
36487         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
36489         maint.mk: forbid exit(-1)
36490         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
36492 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
36494         fsusage: port back to Solaris
36495         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
36496         error (fsd not declared) on Solaris 10.  Reported privately by
36497         Andrew Borodin.
36499 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
36501         gnu-web-doc-update: fix error messages
36502         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
36504         gnu-web-doc-update: check the requirements.
36505         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
36506         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
36507         * build-aux/bootstrap (find_tool): Comment change.
36509 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
36511         maint.mk: minor simplication.
36512         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
36513         for default values.
36515 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
36517         gitlog-to-changelog: VPATH build issues
36518         If builddir is not a subdirectory of srcdir, running git from it will
36519         fail.
36520         * build-aux/gitlog-to-changelog (--srcdir): New option.
36522 2012-07-15  Bruno Haible  <bruno@clisp.org>
36524         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
36525         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
36526         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
36527         Remove exemption for fpending.h.
36528         Suggested by Eric Blake.
36530 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36532         pthread_sigmask: fix bug on FreeBSD 9
36533         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
36534         Include string.h.
36535         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
36536         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
36537         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
36538         but pthread_sigmask (1729, NULL, NULL) returns zero.
36539         See <http://bugs.gnu.org/11884>.
36540         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
36541         by inspecting whether the main call changed the old mask.
36543 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
36545         README-release: make it more legible
36546         * top/README-release: Improve typography slightly.
36548 2012-07-15  Jim Meyering  <meyering@redhat.com>
36550         maint: require that each sc_... command start with "@"
36551         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
36552         "make sc_maint" helps us avoid this nit.
36554 2012-07-15  Jim Meyering  <meyering@redhat.com>
36556         maint.mk: add leading "@" to quiet new "make syntax-check" rule
36557         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
36559 2012-07-13  Eric Blake  <eblake@redhat.com>
36561         maint.mk: new syntax check for HAVE_DECL checks
36562         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
36563         * cfg.mk
36564         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36565         Exempt some false positives.
36566         Based on a report by Karel Zak.
36568         argp: make HAVE_DECL usage consistent
36569         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
36570         macros, not whether they are defined.
36571         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
36572         convention with other declaration checks.
36573         Reported by Karel Zak, with suggestions from Paul Eggert.
36575         stat-time: relax license to LGPLv2+
36576         * modules/stat-time (License): Relax, with consent of all authors.
36578         strndup: fix m4 usage error
36579         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
36580         defined, to either 0 or 1.
36581         Reported by Karel Zak.
36583 2012-07-11  Jim Meyering  <meyering@redhat.com>
36585         maint: enable the sc_avoid_if_before_free syntax-check rule
36586         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
36587         (if_before_free_offenders_): Define.
36588         (if_before_free_basename_re_): Define.
36589         Exempt current files with useless if-before-free.
36591 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
36593         gettext: do not assume '#define ... defined ...' behavior
36594         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
36595         Do not use '#define FOO ... defined BAR ...', as the C standard says
36596         it's not portable to expect that this works after macro expansion.
36597         Problem reported for gzip by Steven M. Schweda in
36598         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
36600 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
36602         getloadavg: clean out old Emacs and Autoconf cruft
36603         See Glenn Morris in <http://bugs.gnu.org/11905>.
36604         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
36605         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
36606         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
36607         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
36609 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
36611         bootstrap: let warn be like tests/init.sh's warn_
36612         Reported by Jim Meyering.
36613         * build-aux/bootstrap (warn): Remove, replaced by...
36614         (warnf_, warn_): these.
36615         Adjust callers.
36616         Shorten messages that no longer fit in 80 columns.
36618 2012-07-09  Bruno Haible  <bruno@clisp.org>
36620         getopt: Simplify after Emacs changed.
36621         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
36622         (gl_GETOPT_IFELSE): Remove macro.
36624 2012-07-09  Jim Meyering  <meyering@redhat.com>
36626         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
36627         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
36629         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
36630         Bugs in both of those conspired to make the
36631         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
36632         _sc_search_regexp's handling of non-empty $in_files would filter
36633         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
36634         choice of in_files value meant there would be no match in most
36635         projects, due to the presence of two or more Makefile.in files.
36636         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
36637         Fix a bug in how a non-empty $$in_files was processed:
36638         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
36639         in spite of the name, it's a regexp, not a list of file names.
36641 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
36643         getloadavg, getopt: fix commentary re configure.in
36644         Autoconf is deprecating the name 'configure.in', so change it to
36645         to the new name 'configure.ac' in a couple of places.
36646         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
36647         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
36648         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
36649         Emacs has renamed it to configure.ac, and it no longer refers
36650         to these macros anyway.
36652         timespec: mark functions with const attributes
36653         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
36654         Mark with _GL_ATTRIBUTE_CONST.
36656 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
36658         canonicalize[-lgpl]: handle "guessing" values when cross-building
36659         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36660         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
36661         matches "*yes" instead of just "yes".  Regression introduced in commit
36662         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
36664 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
36665             Bruno Haible  <bruno@clisp.org>
36667         canonicalize: make the right guess when cross-compiling to GNU
36668         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
36669         determine whether cross-compiling to glibc systems, so as to
36670         include GNU/Hurd.
36672 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
36674         timespec-sub: avoid duplicate include
36675         * lib/timespec-sub.c: Do not include <config.h> twice.
36676         Reported by Juanma Barranquero.
36678 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
36680         bootstrap: use a more consistent error reporting scheme
36681         * build-aux/bootstrap (warn, die): New.
36682         Use them.
36684 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
36686         sys_time: allow too-wide tv_sec
36687         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
36688         timeval even if tv_sec is wider than time_t.  This allows
36689         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
36690         as without this patch gnulib replaces struct timeval
36691         and OpenBSD futimes therefore has a type mismatch.
36692         * doc/posix-headers/sys_time.texi: Mention this.
36694         pthread: check for both pthread_create and pthread_join
36695         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
36696         alter the check so that it tests for both pthread_create and
36697         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
36698         Suggested by Bruno Haible and Richard Yao in
36699         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
36701         parse-datetime: doc tuneup
36702         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
36703         spacing issues.
36705 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
36707         do-release-commit-and-tag: fix the previous commit
36708         * build-aux/do-release-commit-and-tag: Actually the test was right,
36709         but the comment and the error message were misleading.
36710         Fix comment, and improve error message.
36711         Perform check first, so that NEWS is not modified uselessly.
36713         do-release-commit-and-tag: fix typo
36714         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
36715         _not_ start with a stub.
36717 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
36719         pthread: check for pthread_create, not pthread_join
36720         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
36721         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
36722         pthread_join in libc.  I hope this removes the need for all the
36723         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
36724         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
36726 2012-07-04  Jim Meyering  <meyering@redhat.com>
36728         parse-datetime: fix failure to diagnose invalid input
36729         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
36730         rather than diagnosing the invalid input.  Now it reports this:
36731         date: invalid date '\260'
36732         * lib/parse-datetime.y (to_uchar): Define.
36733         (yylex): Don't sign-extend "other" bytes.
36734         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
36735         Thanks to Bruno Haible for the patch to this file.
36736         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
36737         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
36739 2012-07-03  Jim Meyering  <meyering@redhat.com>
36741         bootstrap: do not require now-removed build-aux/missing
36742         Now that build-aux/missing is, er, missing, bootstrap would
36743         silently fail.
36744         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
36745         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
36746         no longer part of gnulib.
36747         Diagnose the failure.
36749 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
36751         alloca: add support for HP NonStop TNS/E native
36752         * lib/alloca.in.h (alloca): Support the new host.
36753         From a suggestion by Joachim Schmitz in
36754         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
36756 2012-07-02  Pádraig Brady  <P@draigBrady.com>
36758         fsusage: remove code not needed on non GNU/Linux systems.
36760         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
36761         Don't include headers no longer needed in this case.
36762         * lib/fsusage.c [STAT_STATVFS &&
36763         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
36764         STAT_STATFS2_FRSIZE to exclude code not used in this case.
36766 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36768         fsusage: include files needed for glibc 2.6 fallback
36769         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
36770         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
36771         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
36772         Problem reported by Ludovic Courtès in
36773         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
36775         fsusage: avoid needless check on GNU/Linux
36776         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
36777         on GNU/Linux systems, since it can't possibly work.
36779 2012-07-01  Bruno Haible  <bruno@clisp.org>
36781         log: Fix an autoconf >= 2.64 warning.
36782         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
36783         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
36785 2012-06-28  Bruno Haible  <bruno@clisp.org>
36787         log10f: Fix possible configuration problem.
36788         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
36789         $LOGF_LIBM.
36790         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
36792 2012-06-28  Bruno Haible  <bruno@clisp.org>
36794         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
36795         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
36796         not gl_cv_func_unlink_works.
36797         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
36799 2012-06-27  Eric Blake  <eblake@redhat.com>
36801         config: drop scripts that automake says are not independent
36802         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
36803         * build-aux/elisp-comp: Delete.
36804         * build-aux/missing: Likewise.
36805         * build-aux/ylwrap: Likewise.
36806         * modules/elisp-comp: Likewise.
36807         * MODULES.html.sh: Drop mention of elisp-comp.
36808         * NEWS: Mention this.
36810 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
36812         root-uid: new module
36813         This is for portability to Tandem's NonStop Kernel.
36814         * lib/root-uid.h, modules/root-uid: New files.
36815         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
36816         * lib/write-any-file.c, tests/test-sethostname2.c:
36817         Include "root-uid.h".
36818         * lib/euidaccess.c (euidaccess):
36819         * lib/pt_chown.c (main):
36820         * lib/unlinkdir.c (cannot_unlink_dir):
36821         * lib/write-any-file.c (can_write_any_file):
36822         * m4/mknod.m4 (gl_FUNC_MKNOD):
36823         * tests/test-sethostname2.c (geteuid, main):
36824         Don't assume ROOT_UID == 0.
36825         * modules/euidaccess (Depends-on):
36826         * modules/pt_chown (Depends-on):
36827         * modules/sethostname-tests (Depends-on):
36828         * modules/unlinkdir (Depends-on):
36829         * modules/write-any-file (Depends-on):
36830         Add root-uid.
36832         regex: use locale-independent comparison for codeset name
36833         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
36834         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
36835         for codeset name.
36836         * lib/regex_internal.h: Do not include <strings.h>, since we
36837         no longer use strcasecmp.
36838         * modules/regex (Depends-on): Remove strcase.
36840 2012-06-23  Bruno Haible  <bruno@clisp.org>
36842         getopt-posix: No longer guarantee that option processing is resettable.
36843         * doc/posix-functions/getopt.texi: Drop description of problem with
36844         internal state. Fix info about mingw and msvc9.
36845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
36846         option processing by getopt(). Run three test programs instead of one.
36847         Simplify cross-compilation guess.
36848         * NEWS: Mention the change.
36849         Reported by Rich Felker <dalias@aerifal.cx>.
36851 2012-06-26  Bruno Haible  <bruno@clisp.org>
36853         argp, regex: Ensure strcasecmp gets declared.
36854         * lib/argp-help.c: Include <strings.h>.
36855         * lib/regex_internal.h: Likewise.
36856         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
36858 2012-06-24  Bruno Haible  <bruno@clisp.org>
36860         ptsname_r: Make it consistent with ptsname on AIX.
36861         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
36862         implementation as for OSF/1.
36863         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
36864         a pty master.
36866         ptsname_r: Make it consistent with ptsname on OSF/1.
36867         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
36868         OSF/1.
36870 2012-06-24  Bruno Haible  <bruno@clisp.org>
36872         ttyname_r: Fix result on OSF/1, Solaris.
36873         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
36875 2012-06-24  Bruno Haible  <bruno@clisp.org>
36877         ptsname_r: Add support for Solaris.
36878         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
36879         Solaris.
36881         ptsname_r: Fix test failure on native Windows.
36882         * modules/ptsname_r (Depends-on): Add isatty.
36884         ptsname_r: Fix test failures on IRIX, Solaris.
36885         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
36886         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
36887         accordingly.
36888         * lib/ptsname_r.c: Include <fcntl.h>.
36889         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
36890         set errno if fd is invalid.
36891         * tests/test-isatty.c (main): Update comments.
36893 2012-06-24  Bruno Haible  <bruno@clisp.org>
36895         ptsname test: Extend test.
36896         * tests/test-ptsname.c: Include <errno.h>.
36897         (main): Test behaviour with invalid file descriptor.
36899 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36901         time: fix obsolete comment
36902         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
36903         reference to HAVE_STRUCT_TIMESPEC in comment.
36905 2012-06-23  Bruno Haible  <bruno@clisp.org>
36907         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
36908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
36909         does not handle abbreviated long options with equivalent
36910         disambiguations, set gl_replace_getopt to yes.
36911         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
36913 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
36915         time_r: fix typo that always overrode localtime_r decl
36916         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
36917         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
36918         not in a standard include.
36920 2012-06-22  Bruno Haible  <bruno@clisp.org>
36922         Write "Mac OS X" instead of "MacOS X".
36923         * README: Write "Mac OS X" instead of "MacOS X".
36924         * build-aux/bootstrap: Likewise.
36925         * build-aux/install-reloc: Likewise.
36926         * lib/acl-internal.h: Likewise.
36927         * lib/acl_entries.c: Likewise.
36928         * lib/argp-ba.c: Likewise.
36929         * lib/argp-pv.c: Likewise.
36930         * lib/config.charset: Likewise.
36931         * lib/copy-acl.c: Likewise.
36932         * lib/csharpexec.c: Likewise.
36933         * lib/euidaccess.c: Likewise.
36934         * lib/fbufmode.c: Likewise.
36935         * lib/fflush.c: Likewise.
36936         * lib/file-has-acl.c: Likewise.
36937         * lib/filemode.h: Likewise.
36938         * lib/fpurge.c: Likewise.
36939         * lib/freadable.c: Likewise.
36940         * lib/freadahead.c: Likewise.
36941         * lib/freading.c: Likewise.
36942         * lib/freadptr.c: Likewise.
36943         * lib/freadseek.c: Likewise.
36944         * lib/fseeko.c: Likewise.
36945         * lib/fseterr.c: Likewise.
36946         * lib/fsusage.c: Likewise.
36947         * lib/fwritable.c: Likewise.
36948         * lib/fwriting.c: Likewise.
36949         * lib/get-rusage-as.c: Likewise.
36950         * lib/get-rusage-data.c: Likewise.
36951         * lib/getdomainname.c: Likewise.
36952         * lib/idpriv-drop.c: Likewise.
36953         * lib/idpriv-droptemp.c: Likewise.
36954         * lib/localcharset.c: Likewise.
36955         * lib/locale.in.h: Likewise.
36956         * lib/localename.c: Likewise.
36957         * lib/mbsrtowcs-state.c: Likewise.
36958         * lib/nproc.c: Likewise.
36959         * lib/passfd.c: Likewise.
36960         * lib/posix_openpt.c: Likewise.
36961         * lib/printf-parse.c: Likewise.
36962         * lib/progreloc.c: Likewise.
36963         * lib/safe-read.h: Likewise.
36964         * lib/safe-write.h: Likewise.
36965         * lib/sched.in.h: Likewise.
36966         * lib/set-mode-acl.c: Likewise.
36967         * lib/signal.in.h: Likewise.
36968         * lib/stdint.in.h: Likewise.
36969         * lib/stdio-impl.h: Likewise.
36970         * lib/stdlib.in.h: Likewise.
36971         * lib/strtod.c: Likewise.
36972         * lib/sys_select.in.h: Likewise.
36973         * lib/tcgetsid.c: Likewise.
36974         * lib/unistd.in.h: Likewise.
36975         * lib/unlockpt.c: Likewise.
36976         * lib/vasnprintf.c: Likewise.
36977         * lib/vma-iter.c: Likewise.
36978         * lib/wcsrtombs-state.c: Likewise.
36979         * m4/acl.m4: Likewise.
36980         * m4/acosl.m4: Likewise.
36981         * m4/asinl.m4: Likewise.
36982         * m4/atanl.m4: Likewise.
36983         * m4/c-stack.m4: Likewise.
36984         * m4/cosl.m4: Likewise.
36985         * m4/expl.m4: Likewise.
36986         * m4/extensions.m4: Likewise.
36987         * m4/fdatasync.m4: Likewise.
36988         * m4/fmal.m4: Likewise.
36989         * m4/frexp.m4: Likewise.
36990         * m4/frexpf.m4: Likewise.
36991         * m4/frexpl.m4: Likewise.
36992         * m4/fsusage.m4: Likewise.
36993         * m4/getdomainname.m4: Likewise.
36994         * m4/getloadavg.m4: Likewise.
36995         * m4/getopt.m4: Likewise.
36996         * m4/gettext.m4: Likewise.
36997         * m4/gnulib-common.m4: Likewise.
36998         * m4/intdiv0.m4: Likewise.
36999         * m4/intlmacosx.m4: Likewise.
37000         * m4/largefile.m4: Likewise.
37001         * m4/ldexpl.m4: Likewise.
37002         * m4/link-follow.m4: Likewise.
37003         * m4/locale-ar.m4: Likewise.
37004         * m4/locale-fr.m4: Likewise.
37005         * m4/locale-ja.m4: Likewise.
37006         * m4/locale-tr.m4: Likewise.
37007         * m4/locale-zh.m4: Likewise.
37008         * m4/locale_h.m4: Likewise.
37009         * m4/lock.m4: Likewise.
37010         * m4/logl.m4: Likewise.
37011         * m4/mathfunc.m4: Likewise.
37012         * m4/minus-zero.m4: Likewise.
37013         * m4/mktime.m4: Likewise.
37014         * m4/mmap-anon.m4: Likewise.
37015         * m4/multiarch.m4: Likewise.
37016         * m4/nanosleep.m4: Likewise.
37017         * m4/nocrash.m4: Likewise.
37018         * m4/poll.m4: Likewise.
37019         * m4/printf-frexpl.m4: Likewise.
37020         * m4/printf.m4: Likewise.
37021         * m4/signbit.m4: Likewise.
37022         * m4/sinl.m4: Likewise.
37023         * m4/sqrtl.m4: Likewise.
37024         * m4/strerror_r.m4: Likewise.
37025         * m4/tanl.m4: Likewise.
37026         * m4/threadlib.m4: Likewise.
37027         * m4/ttyname_r.m4: Likewise.
37028         * m4/unlink.m4: Likewise.
37029         * m4/visibility.m4: Likewise.
37030         * m4/wcwidth.m4: Likewise.
37031         * tests/minus-zero.h: Likewise.
37032         * tests/test-alloca-opt.c: Likewise.
37033         * tests/test-copy-acl.sh: Likewise.
37034         * tests/test-copy-file.sh: Likewise.
37035         * tests/test-fdatasync.c: Likewise.
37036         * tests/test-file-has-acl.sh: Likewise.
37037         * tests/test-flock.c: Likewise.
37038         * tests/test-fsync.c: Likewise.
37039         * tests/test-localename.c: Likewise.
37040         * tests/test-malloca.c: Likewise.
37041         * tests/test-nonblocking-pipe.h: Likewise.
37042         * tests/test-nonblocking-socket.h: Likewise.
37043         * tests/test-openpty.c: Likewise.
37044         * tests/test-posix_openpt.c: Likewise.
37045         * tests/test-ptsname.c: Likewise.
37046         * tests/test-ptsname_r.c: Likewise.
37047         * tests/test-sameacls.c: Likewise.
37048         * tests/test-select.h: Likewise.
37049         * tests/test-set-mode-acl.sh: Likewise.
37050         * tests/test-snprintf-posix.h: Likewise.
37051         * tests/test-sprintf-posix.h: Likewise.
37052         * tests/test-strtod.c: Likewise.
37053         * tests/test-time.c: Likewise.
37054         * tests/test-vasnprintf-posix.c: Likewise.
37055         * tests/test-vasprintf-posix.c: Likewise.
37056         * doc/acl-resources.txt: Likewise.
37057         * doc/**/*.texi: Likewise.
37058         Reported by Max Horn <max@quendi.de>.
37060 2012-06-22  Bruno Haible  <bruno@clisp.org>
37062         grantpt: Relax requirement regarding invalid file descriptors.
37063         * lib/grantpt.c: Don't include <fcntl.h>.
37064         (grantpt): Don't verify the validity of the file descriptor.
37065         * modules/grantpt (Depends-on): Remove fcntl-h.
37066         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
37067         file descriptors.
37068         * doc/posix-functions/grantpt.texi: Document more platforms on which
37069         grantpt succeeds for invalid file descriptors.
37070         Reported by Rich Felker <dalias@aerifal.cx>.
37072 2012-06-22  Bruno Haible  <bruno@clisp.org>
37074         fbufmode test: Don't test unportable behaviour.
37075         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
37076         (main): Invoke it three times.
37077         Reported by Szabolcs Nagy <nsz@port70.net>
37078         and Rich Felker <dalias@aerifal.cx>.
37080 2012-06-21  Bruno Haible  <bruno@clisp.org>
37082         gnulib-tool: Refactor inctests variable.
37083         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
37084         (func_modules_transitive_closure,
37085         func_modules_transitive_closure_separately,
37086         func_import, func_create_testdir): Update.
37088         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
37089         * gnulib-tool: Accept option --without-tests.
37090         (func_usage): Document --without-tests option. Rearrange.
37091         (inctests): Normalize according to the mode.
37092         * NEWS: Mention the change.
37093         Suggested by Simon Josefsson.
37095 2012-06-21  Bruce Korb  <bkorb@gnu.org>
37097         parse-duration test: Avoid spurious output.
37098         * tests/test-parse-duration.sh: Reindent with leading tabs.
37100 2012-06-21  Jim Meyering  <meyering@redhat.com>
37102         maint: disable the strncpy prohibition
37103         * cfg.mk: Do not prohibit strncpy here.
37105 2012-06-21  Bruno Haible  <bruno@clisp.org>
37107         nonblocking: Avoid compilation error on mingw64.
37108         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
37109         fscanf.
37110         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
37111         * modules/vfscanf (configure.ac): Likewise.
37112         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
37113         definition only if stdio.h has prepared it.
37114         Reported by Daniel P. Berrange <berrange@redhat.com>.
37116 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
37118         gnulib-tool: Use readlink if it is available.
37119         * gnulib-tool (func_readlink): Choose function more appropriately.
37121 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37123         posixtm-tests: port to buggy compiler
37124         Problem reported by Simon Josefsson in
37125         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
37126         * modules/posixtm-tests (Depends-on): Add stdint.
37127         * tests/test-posixtm.c (struct posixtm_test.t_expected):
37128         Now of type int_least64_t, not int64_t, both because that's
37129         what INT64_C returns and because int_least64_t works even
37130         on 72-bit hosts.
37131         (T): Use INT64_C on constants outside the traditional int range,
37132         to work around compiler bug noted by Simon.
37134         mktime: fix integer overflow in 'configure'-time test
37135         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
37136         after integer overflow.  Problem reported by Rich Felker in
37137         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
37138         Also, don't look for further instances of a bug if we've already
37139         found one instance; this helps 'configure' run faster.
37141 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
37143         tmpfile, clean-temp: Fix invocation of GetVersionEx.
37144         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
37145         GetVersionEx correctly.
37146         * lib/clean-temp.c (supports_delete_on_close): Likewise.
37148 2012-06-20  Bruno Haible  <bruno@clisp.org>
37150         fdopen: Allow implementations that don't reject invalid fd arguments.
37151         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
37152         succeeds.
37153         Reported by Rich Felker <dalias@aerifal.cx>.
37155 2012-06-20  Simon Josefsson  <simon@josefsson.org>
37157         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
37158         bring in LIBINTL.
37160 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37162         init.sh: do not rely on autoupated PWD
37163         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
37164         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
37165         Although Nelson's bug was not necessarily fixed by this patch,
37166         it seems wise to make the change for safety.
37167         * tests/init.sh (path_prepend_): Do not rely on PWD updating
37168         automagically after 'cd'; this is not reliable on older shells.
37169         (setup_): Fail if we cannot cd to temporary directory.
37171 2012-06-19  Bruno Haible  <bruno@clisp.org>
37173         stat, fstat: Avoid warnings on mingw64.
37174         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
37175         redefining.
37176         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
37177         Reported by Daniel P. Berrange <berrange@redhat.com>.
37179 2012-06-19  Bruno Haible  <bruno@clisp.org>
37181         stdioext: Add support for musl libc.
37183         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
37184         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
37186         * m4/fseterr.m4: New file.
37187         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
37188         function exists.
37189         * modules/fseterr (Files): Add m4/fseterr.m4.
37190         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
37191         __fseterr does not exist.
37192         (Makefile.am): Remove fseterr.c from lib_SOURCES.
37194         * lib/freadable.h: Update comment.
37196         * lib/fwritable.h: Update comment.
37198         * lib/freading.h: Update comment.
37200         * lib/fwriting.h: Update comment.
37202         * m4/freadahead.m4: New file.
37203         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
37204         that function exists.
37205         * modules/freadahead (Files): Add m4/freadahead.m4.
37206         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
37207         __freadahead does not exist.
37208         (Makefile.am): Remove freadahead.c from lib_SOURCES.
37210         * m4/freadptr.m4: New file.
37211         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
37212         function exists.
37213         * modules/freadptr (Files): Add m4/freadptr.m4.
37214         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
37215         __freadptr does not exist.
37216         (Makefile.am): Remove freadptr.c from lib_SOURCES.
37218         * m4/freadseek.m4: New file.
37219         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
37220         exists.
37221         * modules/freadseek (Files): Add m4/freadseek.m4.
37222         (configure.ac): Invoke gl_FUNC_FREADSEEK.
37224         * lib/fpurge.c (fpurge): Update comment.
37226         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
37228 2012-06-19  Bruno Haible  <bruno@clisp.org>
37230         *printf-posix: Put more info into config.log.
37231         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
37232         exit code into config.log.
37234 2012-06-19  Bruno Haible  <bruno@clisp.org>
37236         getopt-gnu: Fix exit code overflow in autoconf test.
37237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
37238         to keep them below < 128.
37240 2012-06-17  Jim Meyering  <meyering@redhat.com>
37242         maint.mk: fix typo in code to derive GPG key at release time
37243         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
37245 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
37247         regex: avoid warning when pointers are not long
37248         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
37249         and uintptr_t, not long, for portability to hosts where pointers and
37250         long have different sizes.  Issue noted by Daniel P. Berrange in
37251         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
37252         and fix suggested by Bruno Haible in
37253         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
37255 2012-06-17  Bruno Haible  <bruno@clisp.org>
37257         dummy: Relicense into the public domain.
37258         * modules/dummy (License): Set to "public domain".
37259         Suggested by Reuben Thomas.
37261 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37263         announce-gen: VPATH issues
37264         * build-aux/announce-gen (--srcdir): New option, used to trim the
37265         $srcdir part of the path from $builddir to NEWS.
37266         * top/maint.mk (announcement): Adjust.
37268 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37270         gnu-web-doc-update: VPATH builds
37271         * build-aux/gnu-web-doc-update (--builddir): New option.
37272         Revamp the handling of options.
37273         Prefer $(...) to `...`.
37274         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
37275         the template, and it is GNU mktemp specific.
37276         Prefer set -e to long series of &&.
37277         Restore the initial git branch, not "master".
37278         Properly initialize submodules (don't rely only on bootstrap).
37279         Do not reconfigure blindly, use config.status.
37280         * top/README-release: Update instructions for gnu-web-doc-update.
37282 2012-06-11  Jim Meyering  <meyering@redhat.com>
37284         maint.mk: revert most of the previous change re "all these"
37285         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
37286         For rationale, see the discussion at
37287         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
37289 2012-06-10  Karl Berry  <karl@gnu.org>
37291         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
37293         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
37295 2012-06-10  Bruce Korb  <bkorb@gnu.org>
37297         parse-duration: Relicense under LGPLv2+.
37298         * modules/parse-duration (License): Change to LGPLv2+.
37300 2012-06-10  Jim Meyering  <meyering@redhat.com>
37302         maint.mk: prohibit common grammar error: "all these"
37303         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
37304         the list of prohibited word sequences.  It should be "all of these".
37305         * lib/tempname.c (__gen_tempname): Fix one of them.
37307 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37309         do-release-commit-and-tag: support VPATH builds
37310         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
37311         (noteworthy): Defined earlier to factor its value.
37312         (noteworthy_stub): New.
37313         Use it to factor.
37314         (help_version): Split into...
37315         (help, version): these.
37316         Adjust the option processing part.
37317         Support "--option=value" in addition to "--option value".
37318         (builddir): New.
37319         (--builddir): New option.
37320         * top/README-release: Document this.
37321         Reword slightly so that the reader cannot understand that he
37322         has to do these steps before calling do-release-commit-and-tag.
37324 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37326         readme-release: also require announce-gen and maintainer-makefile
37327         * modules/readme-release (Depends-on): here.
37328         * modules/announce-gen, modules/do-release-commit-and-tag,
37329         modules/gnu-web-doc-update, modules/maintainer-makefile
37330         (Description): Point to readme-release.
37332 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37334         maint.mk: fix VPATH issues.
37335         * top/maint.mk (news-check): GNU Make understand $< very well.
37336         (release-prep): NEWS is in $(srcdir).
37338 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
37340         readme-release: require the promoted modules.
37341         * modules/readme-release (Depends-on): Add
37342         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
37343         in this text.
37345 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37346             Bruno Haible  <bruno@clisp.org>
37348         error, strerror-override: Support mingw64 from Fedora 17.
37349         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
37350         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
37351         EINPROGRESS.
37352         * lib/strerror-override.h (strerror_override): Test it.
37353         * lib/strerror-override.c (strerror_override): Likewise.
37354         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
37356 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37357             Bruno Haible  <bruno@clisp.org>
37359         error, strerror-override: Support mingw64 from Fedora 17.
37360         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
37361         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
37362         * lib/strerror-override.h (strerror_override): Test it.
37363         * lib/strerror-override.c (strerror_override): Likewise.
37365 2012-06-03  Bruno Haible  <bruno@clisp.org>
37367         error, strerror-override: Support new errno values from POSIX:2008.
37368         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
37369         ENOTRECOVERABLE.
37370         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
37371         platforms.
37372         * lib/strerror-override.c (strerror_override): Conditionalize the
37373         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
37374         * lib/strerror-override.h (strerror_override): Declare also if
37375         GNULIB_defined_EOWNERDEAD is defined.
37376         * tests/test-errno.c (e130, e131): New variables.
37377         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
37378         ENOTRECOVERABLE.
37379         Reported by Paolo Bonzini.
37381 2012-05-31  Jim Meyering  <meyering@redhat.com>
37383         savewd: add missing dependency on sys_wait module
37384         * modules/savewd (Depends-on): Add sys_wait, needed at least
37385         for MSVC.  Report and suggested change by Michael Goffioul.
37387 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
37389         system-quote-tests: port to CentOS 5
37390         Problem reported by Tom G. Christensen in
37391         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
37392         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
37394 2012-05-29  Jim Meyering  <meyering@redhat.com>
37396         maint: fix typos in comments and ChangeLog
37397         Culprits identified and fixed mostly automatically using these commands:
37398         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
37399         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
37400         using http://github.com/lyda/misspell-check
37401         * ChangeLog: Fix typos.
37402         * doc/solaris-versions: Likewise.
37403         * lib/regexec.c (re_search_stub): Likewise.
37404         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37406 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37408         manywarnings: remove duplicate -Wmultichar entry
37409         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
37410         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
37411         so keep the entry marked as documented.
37413 2012-05-27  Karl Berry  <karl@gnu.org>
37415         * config/srclist.txt (mktime.c): remove last libc sync,
37416         perhaps just temporarily.
37418 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37420         regex: don't assume uint64_t or uint32_t
37421         * lib/regcomp.c (init_word_char): Don't assume that the types
37422         uint64_t and uint32_t exist.  The C standard doesn't guarantee
37423         them, and on some 32-bit compilers there is no uint64_t.
37424         Problem reported by Gianluigi Tiesi in
37425         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
37427 2012-05-25  Jim Meyering  <meyering@redhat.com>
37429         maint.mk: add strncpy-prohibiting syntax-check rule
37430         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
37432 2012-05-24  Jim Meyering  <meyering@redhat.com>
37434         maint.mk: compute $(gpg_key_ID) more portably
37435         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
37436         That use of sed is not portable to some fringe systems.
37437         Reported by Paul Eggert in
37438         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
37440 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
37442         mktime: sync from glibc
37443         * config/srclist.txt: Uncomment mktime.c.
37444         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
37445         First, indent with tabs, since glibc uses tabs and doesn't want to
37446         change and we'd rather be identical to glibc.  Also, two small
37447         coding changes:
37448         (isdst_differ): Use &&, not &, as && is the usual style.
37449         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
37450         for clarity.
37452 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37454         announce-gen: du -h is more portable than du --human
37455         * build-aux/announce-gen (sizes): Invoke du with -h instead
37456         of --human.  Accept leading white space in its output.
37458 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37460         announce-gen: Improve diagnostics.
37461         * build-aux/announce-gen: When parsing command line options,
37462         prefer "announce-gen: option --release-type requires an argument"
37463         to "Option release-type requires an argument".
37465 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37467         maint.mk: gpg_key_ID: use sed more portably
37468         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
37469         the closing brace.
37470         (refresh-po): Fuse two sed invocations into one.
37472 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
37474         gitlog-to-changelog: support the log message format used in Bison.
37475         * build-aux/gitlog-to-changelog: Support --strip-tab and
37476         --strip-cherry-picked.
37478 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37480         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
37481         the rest of the current time slice to another thread in the current
37482         process. So if the thread that feeds the file decscriptor we're
37483         polling is not in the current process, we get busy-waiting.
37484         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
37485         Patch from Theodore Leblond.
37486         * lib/select.c: Split polling out of the loop that sets the output
37487         fd_sets.  Check for zero result and loop if the wait timeout is
37488         infinite.
37490 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37492         select: Fix build error on IRIX 6.5.
37493         * lib/select.c: Include stddef.h for NULL.
37495 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37497         gc: fix libgcrypt detection on older machines.
37498         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
37499         copyright years because the file has been distributed every year
37500         since it was created.
37502 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37504         crypto: fix bug in large buffer handling
37505         Problem reported by Serge Belyshev for glibc in
37506         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
37507         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
37508         * lib/md4.c (md4_process_block):
37509         * lib/md5.c (md5_process_block):
37510         * lib/sha1.c (sha1_process_block):
37511         * lib/sha256.c (sha256_process_block):
37512         Don't assume the buffer length is less than 2**32.
37513         * lib/sha512.c (sha512_process_block): Likewise.
37514         Here, the bug is present only in the rare case where the host does
37515         not support uint64_t or where size_t is wider than 64 bits.
37516         Use u64size to work around the problems.
37517         * lib/u64.h (u64size): New macro.
37519 2012-05-15  Pádraig Brady  <P@draigBrady.com>
37521         fsusage: fix block size returned on older Linux 2.6
37523         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
37524         which is available since Linux 2.6.
37525         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
37526         when the member is available so it can be used as a fallback.
37527         * doc/posix-functions/statvfs.texi: Mention the hang issue
37528         on Linux < 2.6.36.
37530 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37532         bootstrap: suppress stderr chatter
37533         * build-aux/bootstrap (insert_sorted_if_absent, main program):
37534         Omit unnecessary chatter to stderr.  The main program chatter
37535         was there only inadvertantly.
37537         bootstrap: .gitignore files created by autopoint, libtool
37538         I ran into this problem when bootstrapping the latest diffutils.
37539         After './bootstrap', 'git status' reported lots of untracked files
37540         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
37541         autopoint and do not need to be version-controlled.
37542         * build-aux/bootstrap: Put into .gitignore the files that
37543         autopoint and libtool create, by keeping track of files that exist
37544         after but not before these programs are run.
37545         (version_controlled_file): Move up.  2nd arg is now full file
37546         name, not base name; this is more convenient.  Put CVS at the end,
37547         as it's now somewhat deprecated.
37549 2012-05-14  Jim Meyering  <meyering@redhat.com>
37551         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
37552         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
37553         definition.  Reported by Bruno Haible.
37555 2012-05-13  Bruno Haible  <bruno@clisp.org>
37556             Paul Eggert  <eggert@cs.ucla.edu>
37558         binary-io: Define set_binary_mode function.
37559         * lib/binary-io.h (set_binary_mode): New function.
37560         (SET_BINARY): Define in terms of set_binary_mode.
37561         * modules/binary-io (configure.ac): Require AC_C_INLINE.
37562         * tests/test-binary-io.c (main): Accept an argument, and test either
37563         set_binary_mode or SET_BINARY depending on the argument.
37564         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
37565         argument. Clean up also t-bin-out0.tmp.
37567 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
37569         bootstrap: take advantage of POSIX shell features
37571         The 'bootstrap' script offered by Gnulib script already uses POSIX
37572         shell features (like $((...)) arithmetic expansions) that are not
37573         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
37574         means that bootstrap must already be run using a proper POSIX shell,
37575         which will thus provide more features, like ${var#pattern} parameter
37576         expansion or inversion of a command exit status with '!'.  We can
37577         thus use these features to improve the clarity and the performances
37578         of the bootstrap script.
37580         Suggested by Eric Blake.
37582         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
37583         of sed/expr plus command substitutions, to save some forks.  While
37584         we are at it, prefer the POSIX $(...) form of command substitution,
37585         rather than the legacy form `...` (since the former is visually
37586         clearer and interacts better with quoting), and prefer the idiom:
37587           "if ! CMD; then ACTION ..."
37588         over the idiom:
37589           "if CMD; then :; else ACTION ..."
37590         which was required by legacy Bourne shells not supporting '!'.
37592 2012-05-12  Bruno Haible  <bruno@clisp.org>
37594         system-quote: Add more comments.
37595         * lib/system-quote.h: Add more comments about wilcards and limitations.
37596         Suggested by Eli Zaretskii <eliz@gnu.org>.
37598         sh-quote, system-quote: Add comments about wildcards.
37599         * lib/sh-quote.h: Clarify what happens with wildcard characters.
37600         * lib/system-quote.h: Likewise.
37601         Reported by Eli Zaretskii <eliz@gnu.org>.
37603 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
37605         fsusage: check for GNU/Linux statvfs problem dynamically
37606         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
37607         Define STAT_STATFS2_BSIZE too, since in this case the code now
37608         checks dynamically whether statvfs is reliable, falling back on
37609         Linux-style statfs otherwise.
37610         (statvfs_works): New function, for dynamically testing statvfs.
37611         (get_fs_usage) [STAT_STATVFS]: Use it.
37612         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
37613         statvfs on GNU/Linux hosts, since it's now done dynamically.
37615 2012-05-10  Bruno Haible  <bruno@clisp.org>
37617         system-quote, execute, spawn-pipe: Escape '?' on Windows.
37618         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
37619         '?' character.
37620         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
37621         * tests/test-system-quote-main.c (check_all): Check also strings like
37622         "??????????".
37623         Reported by Eli Zaretskii <eliz@gnu.org>.
37625 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
37627         _Noreturn: port config.h to gcc -Wundef
37628         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
37629         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
37630         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
37632 2012-05-10  Bruno Haible  <bruno@clisp.org>
37634         system-quote: Refactor.
37635         * lib/system-quote.h (system_quote_copy): Fix comment.
37636         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
37637         New functions, extracted from system_quote_copy.
37638         (system_quote_length, system_quote_copy): Use these functions.
37639         Reported by Paul Eggert.
37641 2012-05-08  Bruno Haible  <bruno@clisp.org>
37643         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
37644         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
37646 2012-05-08  Bruno Haible  <bruno@clisp.org>
37648         Tests for module 'system-quote'.
37649         * modules/system-quote-tests: New file.
37650         * tests/test-system-quote.sh: New file.
37651         * tests/test-system-quote-main.c: New file.
37652         * tests/test-system-quote-child.c: New file.
37654         New module 'system-quote'.
37655         * lib/system-quote.h: New file.
37656         * lib/system-quote.c: New file.
37657         * modules/system-quote: New file.
37659 2012-05-08  Bruno Haible  <bruno@clisp.org>
37661         sh-quote: Make C++ safe and allow multiple inclusion.
37662         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
37663         declarations in extern "C".
37665 2012-05-08  Bruno Haible  <bruno@clisp.org>
37667         sh-quote tests: Make tests stricter.
37668         * tests/test-sh-quote.c (check_one): Check the return value of
37669         shell_quote_copy.
37670         (main): Check a string with a CR character. Check a string that
37671         contains UCHAR_MAX.
37673 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
37675         warnings.m4: provide a means to specify the program to compile.
37676         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
37677         (gl_WARN_ADD): here.
37678         Use gl_AS_VAR_APPEND.
37679         Support an argument to specify the program to compile.
37680         (gl_WARN_ADD): Accept an argument to specify the program to compile.
37681         AC_SUBST the WARN_CFLAGS when they are used.
37682         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
37683         leave this to gl_WARN_ADD.
37685 2012-05-08  Eric Blake  <eblake@redhat.com>
37687         doc: recommendations on gettext version
37688         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
37689         choice between versions.
37690         * DEPENDENCIES (gettext): Cover both approaches.
37692 2012-05-08  Jim Meyering  <meyering@redhat.com>
37694         init.sh: explain why EXEEXT support uses aliases rather than functions
37695         * tests/init.sh: Add a comment.
37697         init.sh: don't let bash aliases interfere with tests
37698         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
37699         is bash.  This avoids problems for those who alias standard commands to
37700         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
37701         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
37703 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
37705         stdint: be more consistent with glibc, SunOS libc
37706         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
37707         (gl_int_fast16_t, gl_uint_fast16_t)
37708         (gl_int_fast32_t, gl_uint_fast32_t)
37709         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
37710         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
37711         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
37712         Be consistent with glibc by default, and with SunOS 5.10 and later
37713         if __sun is defined.  This lessens the likelihood of clashes if
37714         code compiled for older hosts is combined with code compiled for
37715         newer ones.  Problem reported by Niels Möller in
37716         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
37718 2012-05-07  Eric Blake  <eblake@redhat.com>
37720         isatty: relax license to LGPLv2+
37721         * modules/isatty (License): Relax license.
37723 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37725         stat-size: comment fix
37726         * lib/stat-size.h: Remove obsolete comment about indenting.
37728 2012-05-06  Bruno Haible  <bruno@clisp.org>
37730         Tests for module 'sh-quote'.
37731         * modules/sh-quote-tests: New file.
37732         * tests/test-sh-quote.c: New file.
37734 2012-05-06  Bruno Haible  <bruno@clisp.org>
37736         sh-quote: Improve shell_quote_argv's signature.
37737         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
37738         * lib/sh-quote.c (shell_quote_argv): Likewise.
37740 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37742         stdint: document issues with int_fast8_t etc.
37743         * doc/posix-headers/stdint.texi (stdint.h): Say that other
37744         stdint.h substitutes may define these types differently.  See
37745         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
37747 2012-05-05  Bruno Haible  <bruno@clisp.org>
37749         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
37750         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
37751         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
37752         or 'guessing no (mishandles large arguments)'.
37754 2012-05-05  Bruno Haible  <bruno@clisp.org>
37756         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
37757         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
37758         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
37759         set gl_cv_func_link_follows_symlink to "guessing no".
37761 2012-05-05  Bruno Haible  <bruno@clisp.org>
37763         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
37764         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
37765         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
37766         "guessing no".
37767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
37769 2012-05-05  Bruno Haible  <bruno@clisp.org>
37771         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
37772         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
37773         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
37774         set gl_cv_struct_dirent_d_ino to "guessing yes".
37776 2012-05-05  Bruno Haible  <bruno@clisp.org>
37778         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
37779         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
37780         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
37781         "guessing yes".
37783 2012-05-05  Bruno Haible  <bruno@clisp.org>
37785         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
37786         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
37787         compiling to a glibc system, set gl_cv_func_signbit and
37788         gl_cv_func_signbit_gcc to "guessing yes".
37790 2012-05-05  Bruno Haible  <bruno@clisp.org>
37792         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
37793         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
37794         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
37795         to "guessing yes".
37796         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
37797         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
37799 2012-05-05  Bruno Haible  <bruno@clisp.org>
37801         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
37802         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
37803         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
37804         gl_cv_func_realpath_works to "guessing yes".
37806 2012-05-05  Bruno Haible  <bruno@clisp.org>
37808         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
37809         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
37810         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
37812 2012-05-04  Bruno Haible  <bruno@clisp.org>
37814         Tweak last commit.
37815         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
37816         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37818 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
37820         unistd_h: make it easier to avoid sys_types_h
37821         This is useful for Emacs, which has its own method of porting to
37822         Windows, and which therefore does not need the sys_types_h module.
37823         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
37824         code moved here from gl_SYS_TYPES_H.
37825         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
37826         using the code directly.
37827         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
37828         gl_SYS_TYPES_H.
37829         * modules/sys_types (Files):
37830         * modules/unistd (Files): Add m4/off_t.m4.
37832 2012-05-03  Bruno Haible  <bruno@clisp.org>
37834         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
37835         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
37836         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
37837         "guessing yes" or "guessing no".
37838         (gl_FUNC_LSTAT): Update.
37839         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
37840         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37841         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
37843 2012-05-03  Bruno Haible  <bruno@clisp.org>
37845         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
37846         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
37847         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
37848         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
37849         cross-compiling, choose the first alternative on glibc systems.
37850         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
37852 2012-05-03  Bruno Haible  <bruno@clisp.org>
37854         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
37855         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
37856         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
37858 2012-05-03  Bruno Haible  <bruno@clisp.org>
37860         chown: Avoid "guessing no" when cross-compiling to glibc systems.
37861         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
37863 2012-05-03  Bruno Haible  <bruno@clisp.org>
37865         Avoid "guessing no" guesses when cross-compiling to glibc systems.
37866         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
37867         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
37868         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
37869         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
37870         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
37871         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
37872         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
37873         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
37874         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
37875         compiling to glibc systems, set gl_cv_func_chown_slash_works,
37876         gl_cv_func_chown_ctime_works to "guessing yes".
37877         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
37878         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
37879         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
37880         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
37881         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
37882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
37883         compiling to glibc systems, set gl_cv_func_open_directory_works to
37884         "guessing yes".
37885         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
37886         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
37887         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
37888         "guessing yes".
37889         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
37890         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
37891         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
37892         compiling to glibc systems, set gl_cv_func_floorf_ieee to
37893         "guessing yes".
37894         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
37895         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
37896         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
37897         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
37898         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
37899         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
37900         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
37901         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
37902         "guessing yes".
37903         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
37904         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
37905         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
37906         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
37907         "guessing yes".
37908         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
37909         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
37910         "guessing yes".
37911         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
37912         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
37913         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
37914         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
37915         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
37916         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
37917         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
37918         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
37919         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
37920         compiling to glibc systems, set gl_cv_func_log10f_ieee to
37921         "guessing yes".
37922         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
37923         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
37924         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
37925         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
37926         "guessing yes".
37927         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
37928         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
37929         "guessing yes".
37930         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
37931         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
37932         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
37933         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
37934         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
37935         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
37936         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
37937         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
37938         compiling to glibc systems, set gl_cv_func_mkfifo_works to
37939         "guessing yes".
37940         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
37941         compiling to glibc systems, set gl_cv_func_mknod_works to
37942         "guessing yes".
37943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
37944         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
37945         "guessing yes".
37946         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
37947         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
37948         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
37949         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
37950         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
37951         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
37952         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
37953         compiling to glibc systems, set gl_cv_func_svid_putenv to
37954         "guessing yes".
37955         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
37956         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
37957         "guessing yes".
37958         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
37959         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
37960         "guessing yes".
37961         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
37962         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
37963         to "guessing yes".
37964         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
37965         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
37966         to "guessing yes".
37967         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
37968         compiling to glibc systems, set gl_cv_func_rmdir_works to
37969         "guessing yes".
37970         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
37971         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
37972         gl_cv_func_unlink_parent_fails to "guessing yes".
37973         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
37974         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
37975         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
37976         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
37977         gl_cv_func_rename_dest_works to "guessing yes".
37978         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
37979         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
37980         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
37981         compiling to glibc systems, set gl_cv_func_roundf_ieee to
37982         "guessing yes".
37983         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
37984         compiling to glibc systems, set gl_cv_func_roundl_ieee to
37985         "guessing yes".
37986         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
37987         compiling to glibc systems, set gl_cv_func_setenv_works to
37988         "guessing yes".
37989         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
37990         compiling to glibc systems, set gl_cv_func_unsetenv_works to
37991         "guessing yes".
37992         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
37993         compiling to glibc systems, set gl_cv_func_sleep_works to
37994         "guessing yes".
37995         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
37996         compiling to glibc systems, set gl_cv_func_stat_file_slash to
37997         "guessing yes".
37998         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
37999         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
38000         "guessing yes".
38001         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
38002         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
38003         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
38004         compiling to glibc systems, set gl_cv_func_truncf_ieee to
38005         "guessing yes".
38006         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
38007         compiling to glibc systems, set gl_cv_func_truncl_ieee to
38008         "guessing yes".
38009         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
38010         compiling to glibc systems, set gl_cv_func_usleep_works to
38011         "guessing yes".
38012         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
38013         compiling to glibc systems, set gl_cv_func_futimesat_works to
38014         "guessing yes".
38016 2012-05-03  Bruno Haible  <bruno@clisp.org>
38018         Say "guessing yes" or "guessing no" when cross-compiling.
38019         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
38020         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
38021         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
38022         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
38023         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
38024         am_cv_func_working_getline to "guessing yes" or "guessing no".
38025         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
38026         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
38027         (gl_FUNC_MEMMEM): When cross-compiling, set
38028         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
38029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
38030         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
38031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
38032         set gl_cv_func_strcasestr_works_always to "guessing yes" or
38033         "guessing no".
38034         (gl_FUNC_STRCASESTR): When cross-compiling, set
38035         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
38036         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
38037         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
38038         (gl_FUNC_STRSTR): When cross-compiling, set
38039         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
38040         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
38041         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
38042         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
38043         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
38045 2012-05-01  Bruno Haible  <bruno@clisp.org>
38047         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
38048         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
38049         * build-aux/reloc-ldflags: Likewise.
38050         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
38052 2012-05-01  Bruno Haible  <bruno@clisp.org>
38054         gnulib-tool: Remove transitional code.
38055         * gnulib-tool: Don't warn about --import with 0 arguments any more.
38056         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38058 2012-05-01  Bruno Haible  <bruno@clisp.org>
38060         getcwd: Fix misindentation.
38061         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
38063 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
38065         exclude: process exclude and include directives in order
38066         This restores the pre-2009 behavior, and is part of a fix of a
38067         grep bug reported by Quentin Arce in
38068         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
38069         * lib/exclude.c (struct exclude): Remove 'tail' member.
38070         (new_exclude_segment): Prepend the new segment instead of appending.
38071         Return void, since that's now more convenient.
38072         (file_pattern_matches): Renamed from excluded_file_pattern_p.
38073         (file_name_matches): Renamed from excluded_file_name_p.
38074         (file_pattern_matches, file_name_matches):
38075         Return true if the pattern matches, not if it excludes.
38076         All callers changed.
38077         (excluded_file_name): Process the list in reverse order;
38078         since the list is now reversed this restores the pre-2009 behavior.
38079         (add_exclude): Adjust to new reversed-order list.  Use local var
38080         rather than macro, for clarity.
38081         * tests/test-exclude7.sh: Adjust to corrected behavior.
38083         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
38084         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
38085         it's not possible here.  Handle the case of \ at end of pattern
38086         without dumping core.
38087         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
38089         _Noreturn: future-proof non-GNU and non-MSVC compilers
38090         * build-aux/snippet/_Noreturn.h (_Noreturn):
38091         * m4/gnulib-common.m4 (gl_COMMON_BODY):
38092         Do not define _Noreturn if __STDC_VERSION__ indicates this is
38093         C11 or later.  This is more likely to work with random future C
38094         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
38095         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
38097         exclude: handle wildcards with FNM_EXTMATCH
38098         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
38099         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
38100         comment that "has wildcards" really means "has or may have
38101         wildcards".  Simplify by avoiding the need to call strcspn.
38103 2012-04-29  Bruno Haible  <bruno@clisp.org>
38105         gnulib-tool: Fix list of authors.
38106         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
38108 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
38110         bootstrap: support Automake-NG in $buildreq
38111         * bootstrap (check_versions): Handle automake and aclocal from
38112         Automake-NG specially.  They can be specified as respectively
38113         the "automake-ng" and "aclocal-ng" requirements.
38115 2012-04-25  Eric Blake  <eblake@redhat.com>
38117         bootstrap: only force latest Makefile.in.in for gettext module
38118         * build-aux/bootstrap (with_gettext): Only install latest
38119         Makefile.in.in for projects requesting bleeding edge gettext.
38121 2012-04-22  Bruno Haible  <bruno@clisp.org>
38123         doc: Mention reason for replacement on glibc/Linux systems.
38124         * doc/posix-functions/dprintf.texi: Mention the problem with special
38125         'long double' values.
38126         * doc/posix-functions/fprintf.texi: Likewise.
38127         * doc/posix-functions/printf.texi: Likewise.
38128         * doc/posix-functions/snprintf.texi: Likewise.
38129         * doc/posix-functions/sprintf.texi: Likewise.
38130         * doc/posix-functions/vdprintf.texi: Likewise.
38131         * doc/posix-functions/vfprintf.texi: Likewise.
38132         * doc/posix-functions/vprintf.texi: Likewise.
38133         * doc/posix-functions/vsnprintf.texi: Likewise.
38134         * doc/posix-functions/vsprintf.texi: Likewise.
38135         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
38136         platforms with F_DUPFD_CLOEXEC problems.
38137         * doc/posix-functions/glob.texi: Mention which platforms are affected
38138         by the problem with symbolic links.
38139         * doc/posix-functions/linkat.texi: Mention the problem with
38140         AT_SYMLINK_FOLLOW on Linux.
38142 2012-04-22  Bruno Haible  <bruno@clisp.org>
38144         pwrite: Don't replace on all platforms.
38145         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
38147 2012-04-22  Bruno Haible  <bruno@clisp.org>
38149         rint* tests: Avoid gcc warnings.
38150         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
38151         * tests/test-rintf.c (INFINITY, NAN): Likewise.
38152         * tests/test-rintl.c (INFINITY, NAN): Likewise.
38154 2012-04-21  Bruno Haible  <bruno@clisp.org>
38156         users.txt: Update.
38157         * users.txt: Add freedink, wdiff. Update URLs for projects that have
38158         switched from CVS to git, bzr, or svn.
38160 2012-04-21  Bruno Haible  <bruno@clisp.org>
38162         Large File Support for native Windows platforms.
38164         * m4/largefile.m4 (gl_LARGEFILE): New macro.
38165         * modules/largefile (configure.ac): Require gl_LARGEFILE.
38167         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
38168         type.
38169         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
38170         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
38171         * doc/posix-headers/sys_types.texi: Mention the effect of the
38172         'largefile' module.
38174         * lib/fcntl.in.h: Add comments about off_t.
38175         * modules/fcntl-h (Depends-on): Add sys_types.
38177         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
38178         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
38179         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
38180         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
38181         * modules/unistd (Depends-on): Add sys_types.
38182         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
38184         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
38185         instead of lseek.
38186         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
38187         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
38188         * modules/lseek (Depends-on): Add sys_types.
38190         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
38191         msvc-nothrow.h.
38192         (SetFileSize): New function.
38193         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
38194         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
38195         if Large File Support is requested.
38196         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
38197         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
38199         * lib/stdio.in.h: Add comments about off_t.
38200         * modules/stdio (Depends-on): Add sys_types.
38202         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
38203         instead of ftello.
38204         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
38205         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
38206         (gl_PREREQ_FTELLO): New macro.
38207         * modules/ftello (Depends-on): Add sys_types.
38208         (configure.ac): Incoke gl_PREREQ_FTELLO.
38210         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
38211         instead of fseeko.
38212         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
38213         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
38214         (gl_PREREQ_FSEEKO): New macro.
38215         * modules/fseeko (Depends-on): Add sys_types.
38216         (configure.ac): Invoke gl_PREREQ_FSEEKO.
38218         * lib/sys_stat.in.h: Add comments about off_t.
38219         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
38220         64-bit integer for st_size in 'struct stat'.
38221         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
38222         Define _GL_WINDOWS_64_BIT_ST_SIZE.
38223         * modules/sys_stat (Depends-on): Add sys_types.
38224         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
38226         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
38227         instead of stat or _stat.
38229         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
38230         'struct _stati64' instead of fstat and 'struct stat'.
38231         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
38232         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
38234         Reported by Ray Satiro <raysatiro@yahoo.com>.
38236 2012-04-19  Eric Blake  <eblake@redhat.com>
38238         bootstrap: accommodate older libtool
38239         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
38240         Reported by Daniel P. Berrange.
38242 2012-04-19  Jim Meyering  <meyering@redhat.com>
38244         announce-gen: avoid failure due to lack of Digest::SHA1
38245         Even with the preferred Digest::SHA available, this script
38246         would fail when the backup module, Digest::SHA1, was not installed.
38247         * build-aux/announce-gen: Quote the conditional use of "use".
38248         Reported by Reuben Thomas in:
38249         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
38251         bootstrap: don't let a user's CDPATH setting affect this script
38252         When CDPATH is set, cd will sometimes generate output.
38253         When "cd" is run in a subshell whose output matters, that
38254         surprising-to-some output can cause malfunction.
38255         Unsetting CDPATH turns off this shell "feature."
38256         * build-aux/bootstrap (CDPATH): Unset.
38257         Reported by Reuben Thomas in:
38258         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
38259         and inspired by his patch here:
38260         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
38262 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
38263         and Jim Meyering  <meyering@redhat.com>
38265         maint.mk: catch "see @xref{}" and similar
38266         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
38267         prohibit "See also @xref{", "Also see @pxref{", and similar.
38269 2012-04-16  Jim Meyering  <meyering@redhat.com>
38271         bootstrap: really use gnulib's po/Makefile.in.in
38272         * build-aux/bootstrap: Correct the source file name in previous change.
38273         Reported by Akim Demaille.
38275         configmake: correct minor inconsistency in Makefile rule
38276         * modules/configmake (Makefile.am): All other rules like this one
38277         run the final "mv -f ..." in the same backslash-continued command
38278         as the one that does everything else.  This one put the mv -f ...
38279         command on a separate, non-backslash-continued line.
38280         Make it like the others.
38282         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
38283         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
38284         the one from gettext.  Reported by Akim Demaille.
38286 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
38288         Fix recursion of install-* into po directories.
38289         Bison's install-pdf bug reported by Hans Aberg at
38290         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
38291         * build-aux/po/Makefile.in.in (install-dvi, install-html)
38292         (install-info, install-pdf, install-ps): New targets.
38294 2012-04-16  Jim Meyering  <meyering@redhat.com>
38296         maint: avoid spurious "make sc_maint" failure
38297         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
38298         exempt all *.class file names, for lib/javaversion.class.
38300 2012-04-15  Bruno Haible  <bruno@clisp.org>
38302         lseek: Make configure test independent of environment.
38303         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
38304         Windows, we know that lseek() on pipes is broken; skip the runtime
38305         test.
38307 2012-04-14  Bruno Haible  <bruno@clisp.org>
38309         stat: Bypass buggy override in mingw64.
38310         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
38311         * lib/stat.c (stat) [mingw64]: Define to _stat.
38312         * doc/posix-functions/stat.texi: Mention mingw64 bug.
38314 2012-04-14  Bruno Haible  <bruno@clisp.org>
38316         pathmax: Fix compilation error on MSVC 9.
38317         * modules/pathmax (Depends-on): Add unistd.
38319 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38321         README: document pointer comparison assumption
38322         * README (Portability guidelines): Document assumption about
38323         pointer comparisons, in response to a recent bug-gnulib comment by
38324         Jeffrey Kegler.
38326 2012-04-12  Bruno Haible  <bruno@clisp.org>
38328         Tests for module 'getrusage'.
38329         * modules/getrusage-tests: New file.
38330         * tests/test-getrusage.c: New file.
38332         New module 'getrusage'.
38333         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
38334         warn-on-use.h.
38335         (getrusage): New declaration.
38336         * lib/getrusage.c: New file.
38337         * m4/getrusage.m4: New file.
38338         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
38339         is declared.
38340         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
38341         HAVE_GETRUSAGE.
38342         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
38343         snippet/c++defs, snippet/warn-on-use.
38344         (Makefile.am): Update generation of sys/resource.h. Substitute
38345         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
38346         * modules/getrusage: New file.
38347         * doc/posix-functions/getrusage.texi: Mention the new module.
38349 2012-04-12  Bruno Haible  <bruno@clisp.org>
38351         Tests for module 'sys_resource'.
38352         * modules/sys_resource-tests: New file.
38353         * tests/test-sys_resource.c: New file.
38355         New module 'sys_resource'.
38356         * lib/sys_resource.in.h: New file.
38357         * m4/sys_resource_h.m4: New file.
38358         * modules/sys_resource: New file.
38359         * doc/posix-headers/sys_resource.texi: Mention the new module.
38361 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
38363         ioctl: Fix compilation error on mingw.
38364         * lib/ioctl.c: Include <windows.h>.
38365         Also reported by Ray Satiro <raysatiro@yahoo.com>.
38367 2012-04-04  Jim Meyering  <meyering@redhat.com>
38369         regex: correct #pragma guard expression
38370         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
38371         not 4.3.  Correct its cpp guard expression.
38373 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38375         regex: remove unnecessary type punning
38376         Problem reported by Vladimir Serbinenko in
38377         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
38378         * lib/regex.h (struct re_pattern_buffer): Change the type of
38379         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
38380         Fix comment to match code.
38381         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
38382         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
38383         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
38384         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
38385         (set_regs):
38386         Omit no-longer-necessary casts.
38388 2012-04-03  Bruno Haible  <bruno@clisp.org>
38390         Tests for module 'ilogbl'.
38391         * modules/ilogbl-tests: New file.
38392         * tests/test-ilogbl.c: New file.
38394         New module 'ilogbl'.
38395         * lib/math.in.h (ilogbl): New declaration.
38396         * lib/ilogbl.c: New file.
38397         * m4/ilogbl.m4: New file.
38398         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
38399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
38400         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
38401         Split sed invocation, to avoid the limit of 100 substitutions of
38402         HP-UX 'sed'.
38403         * modules/ilogbl: New file.
38404         * tests/test-math-c++.cc: Check the declaration of ilogbl.
38405         * doc/posix-functions/ilogbl.texi: Mention the new module.
38407 2012-04-03  Bruno Haible  <bruno@clisp.org>
38409         Tests for module 'ilogbf'.
38410         * modules/ilogbf-tests: New file.
38411         * tests/test-ilogbf.c: New file.
38413         New module 'ilogbf'.
38414         * lib/math.in.h (ilogbf): New declaration.
38415         * lib/ilogbf.c: New file.
38416         * m4/ilogbf.m4: New file.
38417         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
38418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
38419         REPLACE_ILOGBF.
38420         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
38421         REPLACE_ILOGBF.
38422         * modules/ilogbf: New file.
38423         * tests/test-math-c++.cc: Check the declaration of ilogbf.
38424         * doc/posix-functions/ilogbf.texi: Mention the new module.
38426 2012-04-03  Bruno Haible  <bruno@clisp.org>
38428         Tests for module 'ilogb'.
38429         * modules/ilogb-tests: New file.
38430         * tests/test-ilogb.c: New file.
38431         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
38432         tests/test-logb-ieee.h.
38434         New module 'ilogb'.
38435         * lib/math.in.h (ilogb): New declaration.
38436         * lib/ilogb.c: New file.
38437         * m4/ilogb.m4: New file.
38438         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
38439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
38440         REPLACE_ILOGB.
38441         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
38442         REPLACE_ILOGB.
38443         * modules/ilogb: New file.
38444         * tests/test-math-c++.cc: Check the declaration of ilogb.
38445         * doc/posix-functions/ilogb.texi: Mention the new module.
38447 2012-04-03  Bruno Haible  <bruno@clisp.org>
38449         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
38450         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
38451         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
38452         (main): Check their values.
38453         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
38454         problem.
38456 2012-04-03  Bruno Haible  <bruno@clisp.org>
38458         Tests for module 'logbl-ieee'.
38459         * modules/logbl-ieee-tests: New file.
38460         * tests/test-logbl-ieee.c: New file.
38462         New module 'logbl-ieee'.
38463         * modules/logbl-ieee: New file.
38465         Tests for module 'logb-ieee'.
38466         * modules/logb-ieee-tests: New file.
38467         * tests/test-logb-ieee.c: New file.
38469         New module 'logb-ieee'.
38470         * modules/logb-ieee: New file.
38472         Tests for module 'logbf-ieee'.
38473         * modules/logbf-ieee-tests: New file.
38474         * tests/test-logbf-ieee.c: New file.
38475         * tests/test-logb-ieee.h: New file.
38477         New module 'logbf-ieee'.
38478         * modules/logbf-ieee: New file.
38480 2012-04-03  Bruno Haible  <bruno@clisp.org>
38482         Tests for module 'logbl'.
38483         * modules/logbl-tests: New file.
38484         * tests/test-logbl.c: New file.
38486         New module 'logbl'.
38487         * lib/math.in.h (logbl): New declaration.
38488         * lib/logbl.c: New file.
38489         * m4/logbl.m4: New file.
38490         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
38491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
38492         REPLACE_LOGBL.
38493         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
38494         REPLACE_LOGBL.
38495         * modules/logbl: New file.
38496         * tests/test-math-c++.cc: Check the declaration of logbl.
38497         * doc/posix-functions/logbl.texi: Mention the new module.
38499 2012-04-02  Bruno Haible  <bruno@clisp.org>
38501         Tests for module 'logbf'.
38502         * modules/logbf-tests: New file.
38503         * tests/test-logbf.c: New file.
38505         New module 'logbf'.
38506         * lib/math.in.h (logbf): New declaration.
38507         * lib/logbf.c: New file.
38508         * m4/logbf.m4: New file.
38509         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
38510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
38511         REPLACE_LOGBF.
38512         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
38513         REPLACE_LOGBF.
38514         * modules/logbf: New file.
38515         * tests/test-math-c++.cc: Check the declaration of logbf.
38516         * doc/posix-functions/logbf.texi: Mention the new module.
38518 2012-04-02  Bruno Haible  <bruno@clisp.org>
38520         logb tests: More tests.
38521         * tests/test-logb.h: New file, based on tests/test-logb.c and
38522         tests/test-frexp.h.
38523         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
38524         (main): Just invoke test_function.
38525         * modules/logb-tests (Files): Add tests/test-logb.h,
38526         tests/minus-zero.h, tests/randomd.c.
38527         (Makefile.am): Add randomd.c to test_logb_SOURCES.
38529         logb: Provide replacement and workarounds.
38530         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
38531         is 1.
38532         * lib/logb.c: New file.
38533         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
38534         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
38535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
38536         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
38537         * modules/logb (Files): Add lib/logb.c.
38538         (Depends-on): Add isfinite, frexp, isnand.
38539         (configure.ac): Compile the replacement code logb.c if needed.
38540         * tests/test-math-c++.cc: Check the declaration of logb.
38541         * doc/posix-functions/logb.texi: Mention the replacement and the bug
38542         with subnormal numbers.
38544 2012-04-02  Bruno Haible  <bruno@clisp.org>
38546         log10* tests: Speed up.
38547         * tests/test-log10.h (test_function): Reduce amount of random numbers
38548         to test.
38550 2012-04-01  Bruno Haible  <bruno@clisp.org>
38552         logf-ieee: Fix test whether logf works.
38553         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
38555 2012-04-01  Bruno Haible  <bruno@clisp.org>
38557         log10l: Work around log10l-ieee test failure on IRIX 6.5.
38558         * lib/log10l.c: Include <float.h>
38559         (log10l): On IRIX, normalize the +Infinity value.
38560         * modules/log10l (Depends-on): Add 'float'.
38561         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
38562         +Infinity.
38564         log10f-ieee: Work around test failure on NetBSD 5.1.
38565         * m4/log10f-ieee.m4: New file.
38566         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
38567         test whether log10f works with a negative argument. Replace it if not.
38568         * lib/log10f.c (log10f): For negative arguments, return NaN.
38569         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
38570         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
38571         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
38573         log10f-ieee: Work around test failure on Solaris 9.
38574         * modules/log10f-ieee (Depends-on): Add log10-ieee.
38575         (configure.ac): Require gl_FUNC_LOG10F.
38577         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
38578         * m4/log10-ieee.m4: New file.
38579         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
38580         whether log10 works with a negative argument. Replace it if not.
38581         * lib/log10.c (log10): For negative arguments, return NaN.
38582         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
38583         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
38584         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
38586         Tests for module 'log10l-ieee'.
38587         * modules/log10l-ieee-tests: New file.
38588         * tests/test-log10l-ieee.c: New file.
38590         New module 'log10l-ieee'.
38591         * modules/log10l-ieee: New file.
38593         Tests for module 'log10-ieee'.
38594         * modules/log10-ieee-tests: New file.
38595         * tests/test-log10-ieee.c: New file.
38597         New module 'log10-ieee'.
38598         * modules/log10-ieee: New file.
38600         Tests for module 'log10f-ieee'.
38601         * modules/log10f-ieee-tests: New file.
38602         * tests/test-log10f-ieee.c: New file.
38603         * tests/test-log10-ieee.h: New file.
38605         New module 'log10f-ieee'.
38606         * modules/log10f-ieee: New file.
38608 2012-04-01  Bruno Haible  <bruno@clisp.org>
38610         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
38611         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
38612         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
38613         workaround.
38614         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
38615         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
38616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
38617         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
38618         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
38619         (Depends-on): Update conditions.
38620         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
38621         IRIX 6.5, OSF/1 5.1 problems.
38623 2012-04-01  Bruno Haible  <bruno@clisp.org>
38625         log10f: Work around OSF/1 5.1 bug.
38626         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
38627         * lib/log10f.c (log10f): If logf exists, use it and provide just the
38628         workaround.
38629         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
38630         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
38631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
38632         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
38633         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
38634         (Depends-on): Update conditions.
38635         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
38637 2012-04-01  Bruno Haible  <bruno@clisp.org>
38639         log10: Work around OSF/1 5.1 bug.
38640         * lib/math.in.h (log10): New declaration.
38641         * lib/log10.c: New file.
38642         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
38643         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
38644         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
38645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
38646         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
38647         * modules/log10 (Files): Add lib/log10.c.
38648         (Depends-on): Add math.
38649         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
38650         * tests/test-math-c++.cc: Check the declaration of log10.
38651         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
38653 2012-03-31  Bruno Haible  <bruno@clisp.org>
38655         log10l tests: More tests.
38656         * modules/log10l-tests (Files): Add tests/test-log10l.h,
38657         tests/minus-zero.h, tests/randoml.c.
38658         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
38659         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
38660         (main): Invoke test_function.
38662         log10f tests: More tests.
38663         * modules/log10f-tests (Files): Add tests/test-log10.h,
38664         tests/minus-zero.h, tests/randomf.c.
38665         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
38666         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
38667         (main): Invoke test_function.
38669         log10 tests: More tests.
38670         * tests/test-log10.h: New file.
38671         * modules/log10-tests (Files): Add tests/test-log10.h,
38672         tests/minus-zero.h, tests/randomd.c.
38673         (Makefile.am): Add randomd.c to test_log10_SOURCES.
38674         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
38675         (main): Invoke test_function.
38677 2012-03-31  Simon Josefsson  <simon@josefsson.org>
38679         fflush: Fix syntax error.
38680         * lib/fflush.c: Include unused-parameter.h, needed for
38681         _GL_UNUSED_PARAMETER.
38682         * modules/fflush (Depends-on): Add snippet/unused-parameter.
38684 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38686         regex: pacify GCC when compiling GRUB
38687         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
38688         a diagnostic.  Reported by Vladimir Serbinenko in
38689         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
38691 2012-03-29  Eric Blake  <eblake@redhat.com>
38693         stdio: don't assume gets any more
38694         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
38695         support.
38696         * modules/stdio (Makefile.am): Likewise.
38697         * lib/stdio-read.c (gets): Likewise.
38698         * tests/test-stdio-c++.cc: Likewise.
38699         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
38700         * lib/stdio.in.h (gets): Make warning occur in more places.
38701         * doc/posix-functions/gets.texi (gets): Update documentation.
38702         Reported by Christer Solskogen.
38704         maint.mk: fix syntax checks without exclusions
38705         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
38706         Reported by Daniel P. Berrange.
38708         strerror_r: avoid compiler warning
38709         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
38710         level.
38712         fflush: avoid compiler warning
38713         * lib/fflush.c (update_fpos_cache): Mark variables that are
38714         potentially unused.
38716 2012-03-25  Bruno Haible  <bruno@clisp.org>
38718         Tests for module 'localeconv'.
38719         * modules/localeconv-tests: New file.
38720         * tests/test-localeconv.c: New file.
38722         New module 'localeconv'.
38723         * lib/locale.in.h (localeconv): New declaration.
38724         * lib/localeconv.c: New file.
38725         * m4/localeconv.m4: New file.
38726         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
38727         REPLACE_LOCALECONV.
38728         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
38729         REPLACE_LOCALECONV.
38730         * modules/localeconv: New file.
38731         * modules/nl_langinfo (Depends-on): Add localeconv.
38732         * modules/human (Depends-on): Likewise.
38733         * doc/posix-functions/localeconv.texi: Mention the new module.
38735 2012-03-25  Bruno Haible  <bruno@clisp.org>
38737         locale: Provide a complete 'struct lconv'.
38738         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
38739         'struct lconv' does not contain int_p_cs_precedes.
38740         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
38741         * doc/posix-headers/locale.texi: Update.
38743         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
38744         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
38745         * doc/posix-headers/locale.texi: Update.
38747         locale: Provide a working 'struct lconv'.
38748         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
38749         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
38750         'struct lconv' does not even contain decimal_point.
38751         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
38752         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
38753         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
38754         * doc/posix-headers/locale.texi: Mention the problems with
38755         'struct lconv'.
38756         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
38758 2012-03-24  Bruno Haible  <bruno@clisp.org>
38760         Enable common subexpression optimization in GCC.
38761         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
38762         macros.
38763         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
38764         GCC attribute 'const'.
38765         (uc_locale_language): Declare with GCC attribute 'pure'.
38766         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
38767         with GCC attribute 'const'.
38768         * lib/unictype.in.h (uc_is_general_category_withtable,
38769         uc_combining_class, uc_combining_class_name,
38770         uc_combining_class_long_name, uc_bidi_class_name,
38771         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
38772         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
38773         uc_decimal_value, uc_digit_value, uc_numeric_value,
38774         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
38775         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
38776         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
38777         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
38778         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
38779         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
38780         Declare with GCC attribute 'const'.
38781         (uc_general_category_name, uc_general_category_long_name,
38782         uc_general_category_byname, uc_general_category,
38783         uc_is_general_category, uc_combining_class_byname,
38784         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
38785         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
38786         Declare with GCC attribute 'pure'.
38787         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
38788         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
38789         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
38790         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
38791         with GCC attribute 'pure'.
38792         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
38793         'const'.
38794         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
38795         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
38796         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
38797         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
38798         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
38799         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
38800         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
38801         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
38802         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
38803         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
38804         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
38805         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
38806         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
38807         GCC attribute 'pure'.
38808         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
38809         'const'.
38810         * lib/uniwidth.in.h (uc_width): Simplify declaration.
38811         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
38812         u32_strwidth): Declare with GCC attribute 'pure'.
38814         Enable common subexpression optimization in GCC.
38815         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
38816         (alphasort): Declare with GCC attribute 'pure'.
38817         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
38818         (atoll): Declare with GCC attribute 'pure'.
38819         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38820         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38821         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
38822         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
38823         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
38824         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
38825         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
38827 2012-03-24  Bruno Haible  <bruno@clisp.org>
38829         gnulib-tool: Avoid unintended error output from 'cmp'.
38830         * gnulib-tool (func_add_file, func_update_file, func_import): Use
38831         "cmp -s", not "cmp > /dev/null".
38833 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
38835         gnulib-tool: fix imprecise comments w.r.t. an automake bug
38837         It's not just Automake versions < 1.9b that creates an empty
38838         pkgdatadir at installation time if pkgdata_DATA is specified
38839         to empty; modern automake versions do this as well, at least
38840         until automake 1.11.4 (not yet released at the moment of writing,
38841         but soon to appear).  That behaviour was generally considered a
38842         feature rather than a bug, at least until this discussion:
38843         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
38845         See also automake bugs #10997 and #11030.
38847         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
38848         reference to relevant automake bug numbers.
38849         (func_emit_tests_Makefile_am): Likewise.
38851 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
38853         announce-gen: use Digest::SHA when possible
38854         * build-aux/announce-gen: Use Digest::SHA when possible, falling
38855         back to Digest::SHA1 if necessary.
38857 2012-03-20  Jim Meyering  <meyering@redhat.com>
38859         tests: avoid gcc warnings about argv vs. const initializers
38860         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
38861         warnings about discarding 'const' qualifier from pointer target type.
38862         * tests/test-posix_spawn2.c (main): Likewise.
38864 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
38866         README-release: simplify slightly
38867         * top/README-release: Run "git checkout master" only once.
38869 2012-03-15  Mark Wielaard  <mark@klomp.org>
38871         git-merge-changelog: add specific example on how to use with hg.
38872         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
38874 2012-03-18  Mark Wielaard  <mark@klomp.org>
38876         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
38878 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
38880         git-version-gen: don't let "prefix" envvar cause trouble
38881         * build-aux/git-version-gen (prefix): Initialize properly,
38882         so as not to use a value specified via the environment.
38883         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
38885 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38887         regex: diagnose too-large repeat counts in EREs
38888         Previously, the code did not diagnose the too-large repeat count
38889         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
38890         as if it were 'b\{1000000000}', which is unexpected.
38891         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
38892         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
38893         is a reasonable one for this problem.  Another option would be to
38894         create a new REG_OVERFLOW error for repeat counts that are too large.
38895         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
38896         count is too large, so that the caller can distinguish the two cases.
38897         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
38898         "Too large" return code, and that repeat counts are one example of this.
38900 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38902         doc: some glibc x32 integer width issues
38903         * doc/posix-headers/sys_types.texi (sys/types.h):
38904         * doc/posix-headers/time.texi (time.h):
38905         Mention that glibc x32 does not conform to POSIX in a couple of
38906         areas related to integer widths.
38908 2012-03-15  Bruno Haible  <bruno@clisp.org>
38910         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
38911         * lib/fma.c (VOLATILE): New macro.
38912         (FUNC): Use it to work around a GCC compiler bug.
38914 2012-03-13  Bruno Haible  <bruno@clisp.org>
38916         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
38917         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
38918         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
38919         REPLACE_HYPOTL to 1.
38920         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
38922 2012-03-13  Bruno Haible  <bruno@clisp.org>
38924         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
38925         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
38926         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
38927         REPLACE_REMAINDERL to 1.
38928         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
38929         bug.
38931 2012-03-13  Bruno Haible  <bruno@clisp.org>
38933         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
38934         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
38935         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
38936         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
38937         too big rounding errors.
38938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
38939         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
38940         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
38941         (Depends-on): Update conditions.
38942         * tests/test-sqrtl.c (my_ldexpl): New function.
38943         (main): Add test of a particular value.
38944         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
38946 2012-03-13  Pádraig Brady  <P@draigBrady.com>
38948         doc: Update timer_* platform portability notes.
38949         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
38950         that always return ENOSYS.
38951         * doc/posix-functions/timer_delete.texi: Likewise.
38952         * doc/posix-functions/timer_gettime.texi: Likewise.
38953         * doc/posix-functions/timer_settime.texi: Likewise.
38955 2012-03-13  Bruno Haible  <bruno@clisp.org>
38957         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
38958         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
38959         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
38960         REPLACE_CBRTL to 1.
38961         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
38963 2012-03-13  Bruno Haible  <bruno@clisp.org>
38965         remainderl: Avoid compilation error on AIX >= 5.2.
38966         * lib/math.in.h (remainderl): Undefine macro from the system header.
38968 2012-03-13  Bruno Haible  <bruno@clisp.org>
38970         Avoid compilation errors with MSVC option -fp:strict.
38971         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
38972         * lib/cbrtf.c: Likewise.
38973         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38975 2012-03-12  Bruno Haible  <bruno@clisp.org>
38977         uninorm: Don't crash in out-of-memory conditions.
38978         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
38979         gracefully.
38980         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
38981         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
38983 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
38985         quote: fix syntax-check
38986         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
38987         also exports quote_quoting_options.
38989 2012-03-12  Simon Josefsson  <simon@josefsson.org>
38991         Collapse list of copyright years to ranges.  See
38992         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
38993         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
38994         build-aux/csharpexec.sh.in, build-aux/gnupload,
38995         build-aux/install-reloc, build-aux/javacomp.sh.in,
38996         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
38997         build-aux/move-if-change, build-aux/reloc-ldflags,
38998         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
39000 2012-03-11  Bruno Haible  <bruno@clisp.org>
39002         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39003         * m4/log2f-ieee.m4: New file.
39004         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
39005         whether log2f works with a minus zero argument. Replace it if not.
39006         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
39007         (Depends-on): Add log2-ieee.
39008         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
39009         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
39011         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39012         * m4/log2-ieee.m4: New file.
39013         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
39014         whether log2 works with a minus zero argument. Replace it if not.
39015         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
39016         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
39017         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
39019         Tests for module 'log2l-ieee'.
39020         * modules/log2l-ieee-tests: New file.
39021         * tests/test-log2l-ieee.c: New file.
39023         New module 'log2l-ieee'.
39024         * modules/log2l-ieee: New file.
39026         Tests for module 'log2-ieee'.
39027         * modules/log2-ieee-tests: New file.
39028         * tests/test-log2-ieee.c: New file.
39030         New module 'log2-ieee'.
39031         * modules/log2-ieee: New file.
39033         Tests for module 'log2f-ieee'.
39034         * modules/log2f-ieee-tests: New file.
39035         * tests/test-log2f-ieee.c: New file.
39036         * tests/test-log2-ieee.h: New file.
39038         New module 'log2f-ieee'.
39039         * modules/log2f-ieee: New file.
39041 2012-03-11  Bruno Haible  <bruno@clisp.org>
39043         Tests for module 'log2l'.
39044         * modules/log2l-tests: New file.
39045         * tests/test-log2l.c: New file.
39047         New module 'log2l'.
39048         * lib/math.in.h (log2l): New declaration.
39049         * lib/log2l.c: New file.
39050         * m4/log2l.m4: New file.
39051         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
39052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
39053         REPLACE_LOG2L.
39054         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
39055         REPLACE_LOG2L.
39056         * modules/log2l: New file.
39057         * tests/test-math-c++.cc: Check the declaration of log2l.
39058         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
39059         and OSF/1 problems.
39061 2012-03-11  Bruno Haible  <bruno@clisp.org>
39063         Tests for module 'log2f'.
39064         * modules/log2f-tests: New file.
39065         * tests/test-log2f.c: New file.
39067         New module 'log2f'.
39068         * lib/math.in.h (log2f): New declaration.
39069         * lib/log2f.c: New file.
39070         * m4/log2f.m4: New file.
39071         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
39072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
39073         REPLACE_LOG2F.
39074         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
39075         REPLACE_LOG2F.
39076         * modules/log2f: New file.
39077         * tests/test-math-c++.cc: Check the declaration of log2f.
39078         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
39079         and OSF/1 and Cygwin problems.
39081 2012-03-11  Bruno Haible  <bruno@clisp.org>
39083         Tests for module 'log2'.
39084         * modules/log2-tests: New file.
39085         * tests/test-log2.c: New file.
39086         * tests/test-log2.h: New file.
39088         New module 'log2'.
39089         * lib/math.in.h (log2): New declaration.
39090         * lib/log2.c: New file.
39091         * m4/log2.m4: New file.
39092         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
39093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
39094         REPLACE_LOG2.
39095         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
39096         REPLACE_LOG2.
39097         * modules/log2: New file.
39098         * tests/test-math-c++.cc: Check the declaration of log2.
39099         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
39100         and OSF/1 and Cygwin problems.
39102 2012-03-11  Bruno Haible  <bruno@clisp.org>
39104         exp2* tests: More tests.
39105         * tests/test-exp2.h (test_function): Test all integral arguments that
39106         don't need to overflow or denormalized numbers.
39107         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
39108         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
39109         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
39111 2012-03-10  Bruno Haible  <bruno@clisp.org>
39113         log1pl-ieee: Work around test failure on AIX 7.1.
39114         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
39116         log1pl-ieee: Work around test failure on IRIX 6.5.
39117         * m4/log1pl-ieee.m4: New file.
39118         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
39119         test whether log1pl works with a minus zero argument. Replace it if
39120         not.
39121         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
39122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
39123         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
39124         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
39125         (Depends-on): Update conditions.
39126         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39127         m4/signbit.m4.
39128         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
39129         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
39131         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
39132         * m4/log1pf-ieee.m4: New file.
39133         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
39134         test whether log1pf works with a minus zero argument. Replace it if
39135         not.
39136         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
39137         m4/signbit.m4.
39138         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
39139         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
39141         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
39142         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
39143         (configure.ac): Require gl_FUNC_LOG1PF.
39145         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
39146         * m4/log1p-ieee.m4: New file.
39147         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
39148         whether log1p works with a minus zero argument. Replace it if not.
39149         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
39150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
39151         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
39152         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
39153         (Depends-on): Update conditions.
39154         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39155         m4/signbit.m4.
39156         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
39157         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
39159         Tests for module 'log1pl-ieee'.
39160         * modules/log1pl-ieee-tests: New file.
39161         * tests/test-log1pl-ieee.c: New file.
39163         New module 'log1pl-ieee'.
39164         * modules/log1pl-ieee: New file.
39166         Tests for module 'log1p-ieee'.
39167         * modules/log1p-ieee-tests: New file.
39168         * tests/test-log1p-ieee.c: New file.
39170         New module 'log1p-ieee'.
39171         * modules/log1p-ieee: New file.
39173         Tests for module 'log1pf-ieee'.
39174         * modules/log1pf-ieee-tests: New file.
39175         * tests/test-log1pf-ieee.c: New file.
39176         * tests/test-log1p-ieee.h: New file.
39178         New module 'log1pf-ieee'.
39179         * modules/log1pf-ieee: New file.
39181 2012-03-10  Bruno Haible  <bruno@clisp.org>
39183         Tests for module 'log1pl'.
39184         * modules/log1pl-tests: New file.
39185         * tests/test-log1pl.c: New file.
39187         New module 'log1pl'.
39188         * lib/math.in.h (log1pl): New declaration.
39189         * lib/log1pl.c: New file.
39190         * m4/log1pl.m4: New file.
39191         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
39192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
39193         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
39194         * modules/log1pl: New file.
39195         * tests/test-math-c++.cc: Check the declaration of log1pl.
39196         * doc/posix-functions/log1pl.texi: Mention the new module.
39198 2012-03-10  Bruno Haible  <bruno@clisp.org>
39200         Tests for module 'log1pf'.
39201         * modules/log1pf-tests: New file.
39202         * tests/test-log1pf.c: New file.
39204         New module 'log1pf'.
39205         * lib/math.in.h (log1pf): New declaration.
39206         * lib/log1pf.c: New file.
39207         * m4/log1pf.m4: New file.
39208         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
39209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
39210         REPLACE_LOG1PF.
39211         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
39212         REPLACE_LOG1PF.
39213         * modules/log1pf: New file.
39214         * tests/test-math-c++.cc: Check the declaration of log1pf.
39215         * doc/posix-functions/log1pf.texi: Mention the new module.
39217 2012-03-10  Bruno Haible  <bruno@clisp.org>
39219         log1p tests: More tests.
39220         * tests/test-log1p.h: New file.
39221         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
39222         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
39223         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
39224         (main): Invoke test_function.
39226         log1p: Provide replacement for Minix and MSVC.
39227         * lib/math.in.h (log1p): New declaration.
39228         * lib/log1p.c: New file.
39229         * m4/log1p.m4: New file.
39230         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
39231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
39232         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
39233         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
39234         (Depends-on): Add math, isnand, log, round.
39235         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
39236         HAVE_LOG1P is 0.
39237         * tests/test-math-c++.cc: Check the declaration of log1p.
39238         * doc/posix-functions/log1p.texi: Mention the replacement.
39240 2012-03-10  Bruno Haible  <bruno@clisp.org>
39242         math tests: Small simplification.
39243         * tests/test-exp.h (test_function): Use the same err_bound for
39244         'double' on platforms with sizeof (long double) == sizeof (double)
39245         than on platforms with sizeof (long double) > sizeof (double).
39246         * tests/test-exp2.h (test_function): Likewise.
39247         * tests/test-expm1.h (test_function): Likewise.
39248         * tests/test-log.h (test_function): Likewise.
39250 2012-03-10  Bruno Haible  <bruno@clisp.org>
39252         Fix some comments.
39253         * lib/expl.c: Fix an ambiguous comment.
39254         * lib/expm1.c: Likewise.
39255         * lib/expm1l.c: Likewise.
39256         * lib/exp2.c: Likewise.
39257         * lib/exp2l.c: Likewise.
39259 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
39261         regex: allow inclusion of <regex.h> before <limits.h>
39262         Without this patch, portable programs had to include <limits.h> before
39263         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
39264         I ran into this problem with a test version of GNU grep on Solaris 8.
39265         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
39266         This is done conditionally so that this change can be merged
39267         back to glibc.
39268         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
39269         using the included regex.
39271         fts: depend on fdopendir
39272         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
39273         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
39274         problem was introduced when fdopendir was split out.
39276 2012-03-10  Bruno Haible  <bruno@clisp.org>
39278         Remove unused variables.
39279         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
39280         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
39282 2012-03-10  Bruno Haible  <bruno@clisp.org>
39284         isnanf-nolibm: Fix last commit.
39285         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
39287         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
39288         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
39290 2012-03-10  Bruno Haible  <bruno@clisp.org>
39292         logf-ieee: Work around test failure on NetBSD 5.1.
39293         * m4/logf-ieee.m4: New file.
39294         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
39295         whether logf works with a negative argument. Replace it if not.
39296         * lib/logf.c (logf): For negative arguments, return NaN.
39297         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
39298         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
39299         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
39301         logf-ieee: Work around test failure on Solaris 9.
39302         * modules/logf-ieee (Depends-on): Add log-ieee.
39303         (configure.ac): Require gl_FUNC_LOGF.
39305         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39306         * m4/log-ieee.m4: New file.
39307         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
39308         log works with a negative argument. Replace it if not.
39309         * lib/log.c (log): For negative arguments, return NaN.
39310         * modules/log-ieee (Files): Add m4/log-ieee.m4.
39311         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
39312         * doc/posix-functions/log.texi: Mention the log-ieee module.
39314         Tests for module 'logl-ieee'.
39315         * modules/logl-ieee-tests: New file.
39316         * tests/test-logl-ieee.c: New file.
39318         New module 'logl-ieee'.
39319         * modules/logl-ieee: New file.
39321         Tests for module 'log-ieee'.
39322         * modules/log-ieee-tests: New file.
39323         * tests/test-log-ieee.c: New file.
39325         New module 'log-ieee'.
39326         * modules/log-ieee: New file.
39328         Tests for module 'logf-ieee'.
39329         * modules/logf-ieee-tests: New file.
39330         * tests/test-logf-ieee.c: New file.
39331         * tests/test-log-ieee.h: New file.
39333         New module 'logf-ieee'.
39334         * modules/logf-ieee: New file.
39336 2012-03-10  Bruno Haible  <bruno@clisp.org>
39338         log: Fix bug introduced on 2012-03-09.
39339         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
39341 2012-03-10  Pádraig Brady  <P@draigBrady.com>
39343         timer-time: link explicitly with pthreads on glibc
39344         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
39345         to support static linking, when newer glibc is
39346         detected, as that contains pthread emulation of
39347         POSIX timer functions where required.
39348         * modules/timer-time: Depend on threadlib to
39349         pull in the appropriate library to link.
39351 2012-03-10  Bruno Haible  <bruno@clisp.org>
39353         log* tests: More tests.
39354         * tests/test-log.h: New file.
39355         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
39356         (main): Invoke test_function.
39357         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
39358         (main): Invoke test_function.
39359         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
39360         (main): Invoke test_function.
39361         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39362         tests/randomd.c.
39363         (Makefile.am): Add randomd.c to test_log_SOURCES.
39364         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39365         tests/randomf.c.
39366         (Makefile.am): Add randomf.c to test_logf_SOURCES.
39367         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39368         tests/randoml.c.
39369         (Depends-on): Add 'float'.
39370         (Makefile.am): Add randoml.c to test_logl_SOURCES.
39372 2012-03-09  Bruno Haible  <bruno@clisp.org>
39374         logl: Work around OSF/1 5.1 bug.
39375         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
39376         * lib/logl.c (logl): If logl exists, use it and provide just the
39377         workaround.
39378         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
39379         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
39380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
39381         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
39382         * modules/logl (configure.ac): Consider REPLACE_LOGL.
39383         (Depends-on): Update conditions.
39384         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
39386 2012-03-09  Bruno Haible  <bruno@clisp.org>
39388         logf: Work around OSF/1 5.1 bug.
39389         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
39390         * lib/logf.c (logf): If logf exists, use it and provide just the
39391         workaround.
39392         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
39393         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
39394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
39395         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
39396         * modules/logf (configure.ac): Consider REPLACE_LOGF.
39397         (Depends-on): Update conditions.
39398         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
39400 2012-03-09  Bruno Haible  <bruno@clisp.org>
39402         log: Work around OSF/1 5.1 bug.
39403         * lib/math.in.h (log): New declaration.
39404         * lib/log.c: New file.
39405         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
39406         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
39407         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
39408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
39409         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
39410         * modules/log (Files): Add lib/log.c.
39411         (Depends-on): Add math.
39412         (configure.ac): If REPLACE_LOG is 1, compile an override.
39413         * tests/test-math-c++.cc: Check the declaration of log.
39414         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
39416 2012-03-09  Jim Meyering  <meyering@redhat.com>
39418         readtokens.c: adjust wording in a comment
39419         * lib/readtokens.c: Insert omitted "that" in a comment.
39421 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39423         modechange: add notations +40, 00440, etc.
39424         * lib/modechange.c (mode_compile): Support new notations
39425         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
39427 2012-03-08  Bruno Haible  <bruno@clisp.org>
39429         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
39430         * m4/exp2l-ieee.m4: New file.
39431         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
39432         test whether exp2l works with a NaN argument and with a negative
39433         infinity argument. Replace it if not.
39434         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
39435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
39436         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
39437         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
39438         (Depends-on): Update conditions.
39439         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
39440         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
39441         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
39443         Tests for module 'exp2l-ieee'.
39444         * modules/exp2l-ieee-tests: New file.
39445         * tests/test-exp2l-ieee.c: New file.
39447         New module 'exp2l-ieee'.
39448         * modules/exp2l-ieee: New file.
39450         Tests for module 'exp2-ieee'.
39451         * modules/exp2-ieee-tests: New file.
39452         * tests/test-exp2-ieee.c: New file.
39454         New module 'exp2-ieee'.
39455         * modules/exp2-ieee: New file.
39457         Tests for module 'exp2f-ieee'.
39458         * modules/exp2f-ieee-tests: New file.
39459         * tests/test-exp2f-ieee.c: New file.
39460         * tests/test-exp2-ieee.h: New file.
39462         New module 'exp2f-ieee'.
39463         * modules/exp2f-ieee: New file.
39465 2012-03-08  Bruno Haible  <bruno@clisp.org>
39467         Tests for module 'exp2l'.
39468         * modules/exp2l-tests: New file.
39469         * tests/test-exp2l.c: New file.
39471         New module 'exp2l'.
39472         * lib/math.in.h (exp2l): New declaration.
39473         * lib/exp2l.c: New file.
39474         * lib/expl-table.c: New file, extracted from lib/expl.c.
39475         * lib/expl.c (gl_expl_table): New declaration.
39476         (expl): Remove expl_table. Update reference.
39477         * m4/exp2l.m4: New file.
39478         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
39479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
39480         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
39481         * modules/exp2l: New file.
39482         * modules/expl (Files): Add lib/expl-table.c.
39483         (configure.ac): Compile also expl-table.c.
39484         * tests/test-math-c++.cc: Check the declaration of exp2l.
39485         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
39486         problem.
39488 2012-03-08  Bruno Haible  <bruno@clisp.org>
39490         Tests for module 'exp2f'.
39491         * modules/exp2f-tests: New file.
39492         * tests/test-exp2f.c: New file.
39494         New module 'exp2f'.
39495         * lib/math.in.h (exp2f): New declaration.
39496         * lib/exp2f.c: New file.
39497         * m4/exp2f.m4: New file.
39498         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
39499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
39500         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
39501         * modules/exp2f: New file.
39502         * tests/test-math-c++.cc: Check the declaration of exp2f.
39503         * doc/posix-functions/exp2f.texi: Mention the new module and the
39504         IRIX problem.
39506 2012-03-08  Bruno Haible  <bruno@clisp.org>
39508         Tests for module 'exp2'.
39509         * modules/exp2-tests: New file.
39510         * tests/test-exp2.c: New file.
39511         * tests/test-exp2.h: New file.
39513         New module 'exp2'.
39514         * lib/math.in.h (exp2): New declaration.
39515         * lib/exp2.c: New file.
39516         * m4/exp2.m4: New file.
39517         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
39518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
39519         REPLACE_EXP2.
39520         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
39521         REPLACE_EXP2.
39522         * modules/exp2: New file.
39523         * tests/test-math-c++.cc: Check the declaration of exp2.
39524         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
39525         and OpenBSD problems.
39527 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39529         savedir: fix comment typo
39530         * lib/savedir.c (savedirstream): Fix typo in comment.
39532 2012-03-08  Bruno Haible  <bruno@clisp.org>
39534         test-readtokens.c: use const; remove unwarranted cast
39535         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
39537 2012-03-08  Bruno Haible  <bruno@clisp.org>
39539         fmal: Avoid compilation error on AIX.
39540         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
39541         AIX 5.2..7.1.
39543 2012-03-08  Bruno Haible  <bruno@clisp.org>
39545         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
39546         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
39547         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
39548         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
39549         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
39550         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
39551         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
39553 2012-03-08  Bruno Haible  <bruno@clisp.org>
39555         remainderf: Override buggy system function on IRIX 6.5.
39556         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
39557         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
39558         when it exists.
39559         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
39561 2012-03-08  Jim Meyering  <meyering@redhat.com>
39563         test-readtokens.c: avoid const-related compilation warnings
39564         * tests/test-readtokens.c: Avoid const-related compilation warnings.
39566 2012-03-07  Jim Meyering  <meyering@redhat.com>
39567             Bruno Haible  <bruno@clisp.org>
39569         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
39570         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
39571         tests/randomd.c.
39572         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
39573         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
39574         tests/randoml.c.
39575         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
39577 2012-03-07  Bruno Haible  <bruno@clisp.org>
39579         expm1l: Avoid compilation error on AIX.
39580         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
39581         AIX 5.2..7.1.
39583 2012-03-07  Bruno Haible  <bruno@clisp.org>
39585         expm1l: Don't override undeclared system function on IRIX 6.5.
39586         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
39587         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
39588         it exists. Set HAVE_DECL_EXPM1L.
39589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
39590         HAVE_EXPM1L.
39591         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
39592         HAVE_EXPM1L.
39593         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
39595 2012-03-07  Bruno Haible  <bruno@clisp.org>
39597         remainderl: Don't override undeclared system function on IRIX 6.5.
39598         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
39599         HAVE_REMAINDERL.
39600         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
39601         declared when it exists. Set HAVE_DECL_REMAINDERL.
39602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
39603         not HAVE_REMAINDERL.
39604         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
39605         HAVE_REMAINDERL.
39606         * doc/posix-functions/remainderl.texi: Mention missing declaration
39607         problem.
39609 2012-03-07  Bruno Haible  <bruno@clisp.org>
39611         rintf: Don't override undeclared system function on IRIX 6.5.
39612         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
39613         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
39614         exists. Set HAVE_DECL_RINTF.
39615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
39616         HAVE_RINTF.
39617         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
39618         HAVE_RINTF.
39619         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
39621 2012-03-07  Bruno Haible  <bruno@clisp.org>
39623         roundl: Avoid compilation error on AIX.
39624         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
39625         AIX 5.2..7.1.
39627 2012-03-07  Bruno Haible  <bruno@clisp.org>
39629         roundl: Don't override undeclared system function on IRIX 6.5.
39630         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
39631         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
39632         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
39633         * modules/roundl (configure.ac): For replacement code, test
39634         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
39635         (Depends-on): Update conditions.
39636         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
39638 2012-03-07  Bruno Haible  <bruno@clisp.org>
39640         roundf: Don't override undeclared system function on IRIX 6.5.
39641         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
39642         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
39643         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
39644         * modules/roundf (configure.ac): For replacement code, test
39645         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
39646         (Depends-on): Update conditions.
39647         * modules/roundf-ieee (Depends-on): Update conditions.
39648         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
39650 2012-03-07  Bruno Haible  <bruno@clisp.org>
39652         round: Don't override undeclared system function on IRIX 6.5.
39653         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
39654         argument.
39655         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
39656         also when it is not declared. Set HAVE_ROUND. For replacement code,
39657         test HAVE_ROUND, not HAVE_DECL_ROUND.
39658         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
39659         not HAVE_DECL_ROUND.
39660         (Depends-on): Update conditions.
39661         * modules/round-ieee (Depends-on): Update conditions.
39662         * doc/posix-functions/round.texi: Mention the IRIX problem.
39664 2012-03-07  Bruno Haible  <bruno@clisp.org>
39666         copysignf: Don't override undeclared system function on IRIX 6.5.
39667         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
39668         HAVE_COPYSIGNF.
39669         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
39670         declared when it exists. Set HAVE_DECL_COPYSIGNF.
39671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
39672         not HAVE_COPYSIGNF.
39673         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
39674         HAVE_COPYSIGNF.
39675         * doc/posix-functions/copysignf.texi: Mention missing declaration
39676         problem.
39678 2012-03-07  Jim Meyering  <meyering@redhat.com>
39680         readtokens: add tests
39681         * modules/readtokens-tests: New file.
39682         * tests/test-readtokens.c: New file.
39684 2012-03-07  Jim Meyering  <meyering@redhat.com>
39686         quotearg: the module must now include quote.h
39687         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
39688         So must the module.
39689         * modules/quotearg (Files): Add quote.h.
39691 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
39693         readtokens: avoid core dumps with unusual calling patterns
39694         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
39695         * lib/readtokens.c: Include limits.h.
39696         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
39697         (readtoken): Don't cache the delimiters; the cache code was buggy
39698         if !delim && saved_delim, or if the new n_delim differs from the old.
39699         Also, it wasn't thread-safe.
39701 2012-03-07  Bruno Haible  <bruno@clisp.org>
39703         quote: Adhere to common module description layout.
39704         * modules/quote (Makefile.am): Add back empty section.
39706 2012-03-06  Akim Demaille  <demaille@gostai.com>
39708         quote: fuse into quotearg
39709         This patch is made for the benefit of Bison.
39710         quote does not leave the choice of the quoting style to the user.
39711         quoting_style provides poor customizability, yet quoting_options,
39712         which is very rich, is hidden inside quotearg.c.  So in order to
39713         allow quote customization, move its implementation to quotearg.c.
39714         * lib/quote.c: Remove.
39715         * modules/quote: Adjust.
39716         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
39717         warning: provide all the members of literal structs.
39718         (quote_quoting_options): New.
39719         (quote, quote_n): Import implementation from quote.c.
39720         * lib/quote.h: Import the comments from quote.c.
39721         (quote_quoting_options): New.
39723 2012-03-06  Bruno Haible  <bruno@clisp.org>
39725         Tests for module 'expm1l-ieee'.
39726         * modules/expm1l-ieee-tests: New file.
39727         * tests/test-expm1l-ieee.c: New file.
39729         New module 'expm1l-ieee'.
39730         * modules/expm1l-ieee: New file.
39732         Tests for module 'expm1f-ieee'.
39733         * modules/expm1f-ieee-tests: New file.
39734         * tests/test-expm1f-ieee.c: New file.
39736         New module 'expm1f-ieee'.
39737         * modules/expm1f-ieee: New file.
39739         Tests for module 'expm1-ieee'.
39740         * modules/expm1-ieee-tests: New file.
39741         * tests/test-expm1-ieee.c: New file.
39742         * tests/test-expm1-ieee.h: New file.
39744         New module 'expm1-ieee'.
39745         * modules/expm1-ieee: New file.
39746         * m4/expm1-ieee.m4: New file.
39747         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
39748         whether expm1 works with a minus zero argument. Replace it if not.
39749         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
39750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
39751         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
39752         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
39753         (Depends-on): Update conditions.
39754         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
39755         AIX problem.
39757 2012-03-06  Bruno Haible  <bruno@clisp.org>
39759         Work around expm1f bug on IRIX 6.5.
39760         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
39761         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
39762         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
39763         not work.
39764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
39765         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
39766         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
39767         (Depends-on): Update conditions.
39768         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
39770 2012-03-06  Bruno Haible  <bruno@clisp.org>
39772         Tests for module 'expm1l'.
39773         * modules/expm1l-tests: New file.
39774         * tests/test-expm1l.c: New file.
39776         New module 'expm1l'.
39777         * lib/math.in.h (expm1l): New declaration.
39778         * lib/expm1l.c: New file.
39779         * m4/expm1l.m4: New file.
39780         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
39781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
39782         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
39783         * modules/expm1l: New file.
39784         * tests/test-math-c++.cc: Check the declaration of expm1l.
39785         * doc/posix-functions/expm1l.texi: Mention the new module.
39787 2012-03-06  Bruno Haible  <bruno@clisp.org>
39789         Tests for module 'expm1f'.
39790         * modules/expm1f-tests: New file.
39791         * tests/test-expm1f.c: New file.
39793         New module 'expm1f'.
39794         * lib/math.in.h (expm1f): New declaration.
39795         * lib/expm1f.c: New file.
39796         * m4/expm1f.m4: New file.
39797         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
39798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
39799         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
39800         * modules/expm1f: New file.
39801         * tests/test-math-c++.cc: Check the declaration of expm1f.
39802         * doc/posix-functions/expm1f.texi: Mention the new module.
39804 2012-03-06  Bruno Haible  <bruno@clisp.org>
39806         Tests for module 'expm1'.
39807         * modules/expm1-tests: New file.
39808         * tests/test-expm1.c: New file.
39809         * tests/test-expm1.h: New file.
39811         New module 'expm1'.
39812         * lib/math.in.h (expm1): New declaration.
39813         * lib/expm1.c: New file.
39814         * m4/expm1.m4: New file.
39815         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
39816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
39817         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
39818         * modules/expm1: New file.
39819         * tests/test-math-c++.cc: Check the declaration of expm1.
39820         * doc/posix-functions/expm1.texi: Mention the new module.
39822 2012-03-06  Bruno Haible  <bruno@clisp.org>
39824         math: Ensure declarations of math functions.
39825         * modules/acosf (Depends-on): Add 'extensions'.
39826         * modules/asinf (Depends-on): Likewise.
39827         * modules/atan2f (Depends-on): Likewise.
39828         * modules/atanf (Depends-on): Likewise.
39829         * modules/cbrt (Depends-on): Likewise.
39830         * modules/cbrtf (Depends-on): Likewise.
39831         * modules/cbrtl (Depends-on): Likewise.
39832         * modules/copysignf (Depends-on): Likewise.
39833         * modules/copysignl (Depends-on): Likewise.
39834         * modules/cosf (Depends-on): Likewise.
39835         * modules/coshf (Depends-on): Likewise.
39836         * modules/expf (Depends-on): Likewise.
39837         * modules/fabsf (Depends-on): Likewise.
39838         * modules/fabsl (Depends-on): Likewise.
39839         * modules/fmaf (Depends-on): Likewise.
39840         * modules/fmal (Depends-on): Likewise.
39841         * modules/fmodf (Depends-on): Likewise.
39842         * modules/fmodl (Depends-on): Likewise.
39843         * modules/frexpf (Depends-on): Likewise.
39844         * modules/frexpl (Depends-on): Likewise.
39845         * modules/hypot (Depends-on): Likewise.
39846         * modules/hypotf (Depends-on): Likewise.
39847         * modules/hypotl (Depends-on): Likewise.
39848         * modules/ldexpf (Depends-on): Likewise.
39849         * modules/ldexpl (Depends-on): Likewise.
39850         * modules/log10f (Depends-on): Likewise.
39851         * modules/log10l (Depends-on): Likewise.
39852         * modules/log1p (Depends-on): Likewise.
39853         * modules/logb (Depends-on): Likewise.
39854         * modules/logf (Depends-on): Likewise.
39855         * modules/modff (Depends-on): Likewise.
39856         * modules/modfl (Depends-on): Likewise.
39857         * modules/powf (Depends-on): Likewise.
39858         * modules/remainderf (Depends-on): Likewise.
39859         * modules/remainderl (Depends-on): Likewise.
39860         * modules/rintf (Depends-on): Likewise.
39861         * modules/rintl (Depends-on): Likewise.
39862         * modules/sinf (Depends-on): Likewise.
39863         * modules/sinhf (Depends-on): Likewise.
39864         * modules/sqrtf (Depends-on): Likewise.
39865         * modules/tanf (Depends-on): Likewise.
39866         * modules/tanhf (Depends-on): Likewise.
39867         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
39868         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
39869         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
39870         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
39871         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
39872         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
39873         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
39874         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
39875         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
39876         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
39877         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
39878         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
39879         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
39880         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
39881         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
39882         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
39883         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
39884         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
39885         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
39886         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
39887         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
39888         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
39889         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
39890         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
39891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
39892         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
39893         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
39894         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
39895         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
39896         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
39897         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
39898         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
39899         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
39900         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
39901         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
39902         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
39903         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
39904         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
39905         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
39906         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
39907         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
39909 2012-03-06  Bruno Haible  <bruno@clisp.org>
39911         math: Update module names in warnings.
39912         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39913         tanl): Use specific module name in warn-on-use warning.
39915 2012-03-06  Bruno Haible  <bruno@clisp.org>
39917         expl: Simplify computation.
39918         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
39920 2012-03-05  Bruno Haible  <bruno@clisp.org>
39922         exp* tests: More tests.
39923         * tests/test-exp.h: New file.
39924         * tests/test-exp.c: Include <float.h> and test-exp.h.
39925         (main): Invoke test_function.
39926         * tests/test-expf.c: Include <float.h> and test-exp.h.
39927         (main): Invoke test_function.
39928         * tests/test-expl.c: Include <float.h> and test-exp.h.
39929         (main): Invoke test_function.
39930         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
39931         (Makefile.am): Add randomd.c to test_exp_SOURCES.
39932         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
39933         (Makefile.am): Add randomf.c to test_expf_SOURCES.
39934         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
39935         (Depends-on): Add 'float'.
39936         (Makefile.am): Add randoml.c to test_expl_SOURCES.
39938         expl: Fix precision of computed result.
39939         * lib/expl.c: Completely rewritten.
39940         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
39941         (Maintainer): Add me.
39942         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
39944 2012-03-05  Bruno Haible  <bruno@clisp.org>
39946         cbrt* tests: More tests.
39947         * tests/test-cbrt.h: New file.
39948         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
39949         (main): Invoke test_function.
39950         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
39951         (main): Invoke test_function.
39952         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
39953         (main): Invoke test_function.
39954         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
39955         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
39956         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
39957         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
39958         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
39959         (Depends-on): Add 'float'.
39960         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
39962 2012-03-05  Bruno Haible  <bruno@clisp.org>
39964         hypot* tests: More tests.
39965         * tests/test-hypot.h: New file, partially extracted from
39966         tests/test-hypotl.c.
39967         * tests/test-hypot.c: Include test-hypot.h.
39968         (main): Invoke test_function.
39969         * tests/test-hypotf.c: Include test-hypot.h.
39970         (main): Invoke test_function.
39971         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
39972         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
39973         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
39974         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
39975         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
39976         tests/randomf.c.
39977         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
39978         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
39979         tests/randoml.c.
39980         (Depends-on): Add 'fpucw', 'float'.
39981         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
39983 2012-03-05  Bruno Haible  <bruno@clisp.org>
39985         fpucw: Doc about FreeBSD.
39986         * lib/fpucw.h: Mention FreeBSD in comments.
39988 2012-03-04  Bruno Haible  <bruno@clisp.org>
39990         sqrt* tests: More tests.
39991         * tests/test-sqrt.h: New file.
39992         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
39993         (main): Invoke test_function.
39994         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
39995         (main): Invoke test_function.
39996         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
39997         (main): Invoke test_function.
39998         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
39999         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
40000         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
40001         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
40002         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
40003         (Depends-on): Add 'float'.
40004         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
40006 2012-03-04  Bruno Haible  <bruno@clisp.org>
40008         remainder* tests: More tests.
40009         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
40010         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
40011         (main): Invoke test_function.
40012         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
40013         (main): Invoke test_function.
40014         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
40015         (main): Invoke test_function.
40016         * modules/remainder-tests (Files): Add tests/test-remainder.h,
40017         tests/randomd.c.
40018         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
40019         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
40020         tests/randomf.c.
40021         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
40022         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
40023         tests/randoml.c.
40024         (Depends-on): Add 'float'.
40025         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
40027 2012-03-04  Bruno Haible  <bruno@clisp.org>
40029         remainder, remainderf, remainderl: Fix computation for large quotients.
40030         * lib/remainder.c: Completely rewritten.
40031         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
40032         USE_FLOAT.
40033         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
40034         USE_LONG_DOUBLE.
40035         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
40036         isnand, isinf. Remove round, fma.
40037         * modules/remainderf (Files): Add lib/remainder.c.
40038         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
40039         Remove roundf, fmaf.
40040         * modules/remainderl (Files): Add lib/remainder.c.
40041         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
40042         isinf. Remove roundl, fmal.
40043         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
40044         REMAINDER_LIBM.
40045         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
40046         REMAINDERF_LIBM.
40047         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
40048         REMAINDERL_LIBM.
40050 2012-03-04  Bruno Haible  <bruno@clisp.org>
40052         fmod* tests: More tests.
40053         * tests/test-fmod.h (my_ldexp): New function.
40054         (test_function): Reduce amount of random numbers to test. Add tests
40055         of very large quotients x / y.
40056         * tests/test-fmod.c (MAX_EXP): New macro.
40057         * tests/test-fmodf.c (MAX_EXP): Likewise.
40058         * tests/test-fmodl.c (MAX_EXP): Likewise.
40060 2012-03-04  Bruno Haible  <bruno@clisp.org>
40062         fmod, fmodl: Fix computation for large quotients x / y.
40063         * lib/fmod.c: Completely rewritten.
40064         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
40065         USE_LONG_DOUBLE.
40066         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
40067         isnand. Remove fma.
40068         * modules/fmodl (Files): Add lib/fmod.c.
40069         (Depends-on): Add float, isfinite, signbit, fabsl,
40070         frexpl, ldexpl, isnanl. Remove fma.
40071         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
40072         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
40074 2012-03-03  Bruno Haible  <bruno@clisp.org>
40076         fmod* tests: More tests.
40077         * tests/test-fmod.h: New file.
40078         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
40079         (main): Invoke test_function.
40080         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
40081         (main): Invoke test_function.
40082         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
40083         (main): Invoke test_function.
40084         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
40085         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
40086         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
40087         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
40088         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
40089         (Depends-on): Add 'float'.
40090         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
40092 2012-03-03  Bruno Haible  <bruno@clisp.org>
40094         rint* tests: More tests.
40095         * tests/test-rint.h: New file, partially extracted from
40096         tests/test-rintl.c.
40097         * tests/test-rint.c: Include test-rint.h.
40098         (main): Invoke test_function.
40099         * tests/test-rintf.c: Include test-rint.h.
40100         (main): Invoke test_function.
40101         * tests/test-rintl.c: Include test-rint.h.
40102         (main): Invoke test_function.
40103         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
40104         (Makefile.am): Add randomd.c to test_rint_SOURCES.
40105         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
40106         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
40107         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
40108         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
40110 2012-03-03  Bruno Haible  <bruno@clisp.org>
40112         modf* tests: More tests.
40113         * tests/test-modf.h: New file.
40114         * tests/test-modf.c: Include <float.h> and test-modf.h.
40115         (main): Invoke test_function.
40116         * tests/test-modff.c: Include <float.h> and test-modf.h.
40117         (main): Invoke test_function.
40118         * tests/test-modfl.c: Include <float.h> and test-modf.h.
40119         (main): Invoke test_function.
40120         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
40121         (Makefile.am): Add randomd.c to test_modf_SOURCES.
40122         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
40123         (Makefile.am): Add randomf.c to test_modff_SOURCES.
40124         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
40125         (Depends-on): Add 'float'.
40126         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
40128 2012-03-03  Bruno Haible  <bruno@clisp.org>
40130         fabs* tests: More tests.
40131         * tests/test-fabs.h: New file, partially extracted from
40132         tests/test-fabsl.c.
40133         * tests/test-fabs.c (RANDOM): New macro.
40134         * tests/test-fabsf.c (RANDOM): New macro.
40135         * tests/test-fabsl.c (RANDOM): New macro.
40136         * modules/fabs-tests (Files): Add tests/randomd.c.
40137         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
40138         * modules/fabsf-tests (Files): Add tests/randomf.c.
40139         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
40140         * modules/fabsl-tests (Files): Add tests/randoml.c.
40141         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
40143 2012-03-03  Bruno Haible  <bruno@clisp.org>
40145         ldexp* tests: More tests.
40146         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
40147         * tests/test-ldexp.c (RANDOM): New macro.
40148         * tests/test-ldexpf.c (RANDOM): New macro.
40149         * tests/test-ldexpl.c (RANDOM): New macro.
40150         * modules/ldexp-tests (Files): Add tests/randomd.c.
40151         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
40152         * modules/ldexpf-tests (Files): Add tests/randomf.c.
40153         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
40154         * modules/ldexpl-tests (Files): Add tests/randoml.c.
40155         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
40157 2012-03-03  Bruno Haible  <bruno@clisp.org>
40159         frexp* tests: More tests.
40160         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
40161         * tests/test-frexp.c (RANDOM): New macro.
40162         * tests/test-frexpf.c (RANDOM): New macro.
40163         * tests/test-frexpl.c (RANDOM): New macro.
40164         * modules/frexp-tests (Files): Add tests/randomd.c.
40165         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
40166         * modules/frexpf-tests (Files): Add tests/randomf.c.
40167         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
40168         * modules/frexpl-tests (Files): Add tests/randoml.c.
40169         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
40171 2012-03-03  Bruno Haible  <bruno@clisp.org>
40173         Support for pseudo-random numbers in tests.
40174         * tests/randomf.c: New file.
40175         * tests/randomd.c: New file.
40176         * tests/randoml.c: New file.
40177         * tests/macros.h (randomf, randomd, randoml): New declarations.
40179 2012-03-03  Bruno Haible  <bruno@clisp.org>
40181         frexp* tests: Refactor.
40182         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
40183         * tests/test-frexp.c: Include and use it.
40184         * tests/test-frexpf.c: Likewise.
40185         * tests/test-frexpl.c: Likewise.
40186         * modules/frexp-tests (Files): Add tests/test-frexp.h.
40187         * modules/frexpf-tests (Files): Likewise.
40188         * modules/frexpl-tests (Files): Likewise.
40190 2012-03-02  Jim Meyering  <meyering@redhat.com>
40192         maint: don't specify XZ_OPT=-9ev in dist-related rule
40193         Using xz's -9 option is warranted only if you have a very large
40194         tarball (see xz's documentation for the sizes vs. presets), and
40195         requires 64MiB of memory at decompression time.
40196         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
40197         Automake's default of just "-e" is fine.  Override on a
40198         per-package basis by setting XZ_OPT e.g., in cfg.mk.
40200 2012-03-01  Eric Blake  <eblake@redhat.com>
40202         maint.mk: allow announcement for non-gnulib project
40203         * maint.mk (announcement): Skip gnulib version if not used.
40205 2012-03-01  Jim Meyering  <meyering@redhat.com>
40207         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
40208         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
40209         envvar settings cannot interfere.  Otherwise, setting envvars like
40210         prohibit=foo require=bar, etc. would cause spurious test failures.
40212 2012-03-01  Eric Blake  <eblake@redhat.com>
40214         maint.mk: add per-line exclusions to prohibitions
40215         * maint.mk (_sc_search_regexp): Add $exclude parameter.
40216         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
40217         (sc_const_long_option): Use it.
40219 2012-03-01  Bruno Haible  <bruno@clisp.org>
40221         Tests for module 'expl-ieee'.
40222         * modules/expl-ieee-tests: New file.
40223         * tests/test-expl-ieee.c: New file.
40225         New module 'expl-ieee'.
40226         * modules/expl-ieee: New file.
40228         Tests for module 'exp-ieee'.
40229         * modules/exp-ieee-tests: New file.
40230         * tests/test-exp-ieee.c: New file.
40232         New module 'exp-ieee'.
40233         * modules/exp-ieee: New file.
40235         Tests for module 'expf-ieee'.
40236         * modules/expf-ieee-tests: New file.
40237         * tests/test-expf-ieee.c: New file.
40238         * tests/test-exp-ieee.h: New file.
40240         New module 'expf-ieee'.
40241         * modules/expf-ieee: New file.
40243 2012-02-29  Bruno Haible  <bruno@clisp.org>
40245         cbrtl-ieee: Work around test failure on IRIX 6.5.
40246         * m4/cbrtl-ieee.m4: New file.
40247         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
40248         test whether cbrtl works with a minus zero argument. Replace it if not.
40249         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
40250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
40251         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
40252         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
40253         (Depends-on): Update conditions.
40254         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
40255         m4/signbit.m4.
40256         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
40257         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
40258         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
40260         Tests for module 'cbrtl-ieee'.
40261         * modules/cbrtl-ieee-tests: New file.
40262         * tests/test-cbrtl-ieee.c: New file.
40264         New module 'cbrtl-ieee'.
40265         * modules/cbrtl-ieee: New file.
40267         Tests for module 'cbrt-ieee'.
40268         * modules/cbrt-ieee-tests: New file.
40269         * tests/test-cbrt-ieee.c: New file.
40271         New module 'cbrt-ieee'.
40272         * modules/cbrt-ieee: New file.
40274         Tests for module 'cbrtf-ieee'.
40275         * modules/cbrtf-ieee-tests: New file.
40276         * tests/test-cbrtf-ieee.c: New file.
40277         * tests/test-cbrt-ieee.h: New file.
40279         New module 'cbrtf-ieee'.
40280         * modules/cbrtf-ieee: New file.
40282 2012-02-29  Bruno Haible  <bruno@clisp.org>
40284         cbrtf: Work around bug in IRIX 6.5 system function.
40285         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
40286         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
40287         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
40288         work.
40289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
40290         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
40291         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
40292         (Depends-on): Update conditions.
40293         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
40295 2012-02-29  Bruno Haible  <bruno@clisp.org>
40297         Tests for module 'cbrtl'.
40298         * modules/cbrtl-tests: New file.
40299         * tests/test-cbrtl.c: New file.
40301         New module 'cbrtl'.
40302         * lib/math.in.h (cbrtl): New declaration.
40303         * lib/cbrtl.c: New file.
40304         * m4/cbrtl.m4: New file.
40305         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
40306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
40307         HAVE_DECL_CBRTL.
40308         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
40309         HAVE_DECL_CBRTL.
40310         * modules/cbrtl: New file.
40311         * tests/test-math-c++.cc: Check the declaration of cbrtl.
40312         * doc/posix-functions/cbrtl.texi: Mention the new module.
40314 2012-02-29  Bruno Haible  <bruno@clisp.org>
40316         Tests for module 'cbrtf'.
40317         * modules/cbrtf-tests: New file.
40318         * tests/test-cbrtf.c: New file.
40320         New module 'cbrtf'.
40321         * lib/math.in.h (cbrtf): New declaration.
40322         * lib/cbrtf.c: New file.
40323         * m4/cbrtf.m4: New file.
40324         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
40325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
40326         HAVE_DECL_CBRTF.
40327         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
40328         HAVE_DECL_CBRTF.
40329         * modules/cbrtf: New file.
40330         * tests/test-math-c++.cc: Check the declaration of cbrtf.
40331         * doc/posix-functions/cbrtf.texi: Mention the new module.
40333 2012-02-29  Bruno Haible  <bruno@clisp.org>
40335         cbrt: Provide replacement on MSVC and Minix.
40336         * lib/math.in.h (cbrt): New declaration.
40337         * lib/cbrt.c: New file.
40338         * m4/cbrt.m4: New file.
40339         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
40340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
40341         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
40342         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
40343         (Depends-on): Add dependencies.
40344         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
40345         * tests/test-math-c++.cc: Check the declaration of cbrt.
40346         * doc/posix-functions/cbrt.texi: Mention that the module provides a
40347         replacement.
40349 2012-02-29  Bruno Haible  <bruno@clisp.org>
40351         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
40352         * m4/hypotl-ieee.m4: New file.
40353         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
40354         test whether hypotl works with mixed NaN and Infinity arguments.
40355         Replace it if not.
40356         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
40357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
40358         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
40359         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
40360         (Depends-on): Update conditions.
40361         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
40362         (Depends-on): Add hypot-ieee.
40363         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
40364         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
40366         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
40367         * m4/hypotf-ieee.m4: New file.
40368         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
40369         test whether hypotf works with mixed NaN and Infinity arguments.
40370         Replace it if not.
40371         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
40372         (Depends-on): Add hypot-ieee.
40373         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
40374         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
40376         hypot-ieee: Work around test failure on OSF/1 and native Windows.
40377         * lib/math.in.h (hypot): New declaration.
40378         * lib/hypot.c: New file.
40379         * m4/hypot-ieee.m4: New file.
40380         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
40381         whether hypot works with mixed NaN and Infinity arguments. Replace it
40382         if not.
40383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
40384         REPLACE_HYPOT.
40385         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
40386         * modules/hypot (Files): Add lib/hypot.c.
40387         (Depends-on): Add dependencies.
40388         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
40389         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
40390         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
40391         * tests/test-math-c++.cc: Check the declaration of hypot.
40392         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
40394         Tests for module 'hypotl-ieee'.
40395         * modules/hypotl-ieee-tests: New file.
40396         * tests/test-hypotl-ieee.c: New file.
40398         New module 'hypotl-ieee'.
40399         * modules/hypotl-ieee: New file.
40401         Tests for module 'hypot-ieee'.
40402         * modules/hypot-ieee-tests: New file.
40403         * tests/test-hypot-ieee.c: New file.
40405         New module 'hypot-ieee'.
40406         * modules/hypot-ieee: New file.
40408         Tests for module 'hypotf-ieee'.
40409         * modules/hypotf-ieee-tests: New file.
40410         * tests/test-hypotf-ieee.c: New file.
40411         * tests/test-hypot-ieee.h: New file.
40413         New module 'hypotf-ieee'.
40414         * modules/hypotf-ieee: New file.
40416 2012-02-29  Bruno Haible  <bruno@clisp.org>
40418         Remove unused variables.
40419         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
40420         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40421         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
40422         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40424 2012-02-29  Eric Blake  <eblake@redhat.com>
40426         termios: fix pid_t always, not just for tcgetsid
40427         * doc/posix-headers/termios.texi (termios.h): Mention problem.
40428         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
40429         just when building tcgetsid.
40431 2012-02-29  Bruno Haible  <bruno@clisp.org>
40433         Tests for module 'hypotl'.
40434         * modules/hypotl-tests: New file.
40435         * tests/test-hypotl.c: New file.
40437         New module 'hypotl'.
40438         * lib/math.in.h (hypotl): New declaration.
40439         * lib/hypotl.c: New file.
40440         * m4/hypotl.m4: New file.
40441         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
40443         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
40444         * modules/hypotl: New file.
40445         * tests/test-math-c++.cc: Check the hypotl declaration.
40446         * doc/posix-functions/hypotl.texi: Mention the new module.
40448 2012-02-29  Eric Blake  <eblake@redhat.com>
40450         tcgetsid: fix cygwin header bug
40451         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
40453         docs: update cygwin progress
40454         * doc/posix-functions/llround.texi (llround): Added in cygwin
40455         1.7.8.
40456         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
40457         * doc/glibc-functions/program_invocation_name.texi
40458         (program_invocation_name): Likewise.
40459         * doc/glibc-functions/program_invocation_short_name.texi
40460         (program_invocation_short_name): Likewise.
40461         * doc/glibc-functions/madvise.texi (madvise): Likewise.
40462         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
40463         Likewise.
40464         * doc/posix-functions/pthread_spin_destroy.texi
40465         (pthread_spin_destroy): Added in cygwin 1.7.10.
40466         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
40467         Likewise.
40468         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
40469         Likewise.
40470         * doc/posix-functions/pthread_spin_trylock.texi
40471         (pthread_spin_trylock): Likewise.
40472         * doc/posix-functions/pthread_spin_unlock.texi
40473         (pthread_spin_unlock): Likewise.
40474         * doc/posix-functions/pthread_setschedprio.texi
40475         (pthread_setschedprio): Likewise.
40476         * doc/posix-functions/pthread_attr_getstack.texi
40477         (pthread_attr_getstack): Likewise.
40478         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
40479         (pthread_attr_getstackaddr): Likewise.
40480         * doc/glibc-functions/pthread_getattr_np.texi
40481         (pthread_getattr_np): Likewise.
40482         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
40483         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
40484         * doc/posix-functions/clock_settime.texi (clock_settime):
40485         Likewise.
40486         * doc/posix-functions/pthread_attr_getguardsize.texi
40487         (pthread_attr_getguardsize): Likewise.
40488         * doc/posix-functions/pthread_attr_setguardsize.texi
40489         (pthread_attr_setguardsize): Likewise.
40490         * doc/posix-functions/pthread_attr_setstack.texi
40491         (pthread_attr_setstack): Likewise.
40492         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
40493         (pthread_attr_setstackaddr): Likewise.
40494         * doc/posix-functions/clock_getcpuclockid.texi
40495         (clock_getcpuclockid): Likewise.
40496         * doc/posix-functions/pthread_getcpuclockid.texi
40497         (pthread_getcpuclockid): Likewise.
40498         * doc/glibc-functions/error.texi (error): Likewise.
40499         * doc/glibc-functions/error_at_line.texi (error_at_line):
40500         Likewise.
40501         * doc/glibc-functions/error_message_count.texi
40502         (error_message_count): Likewise.
40503         * doc/glibc-functions/error_one_per_line.texi
40504         (error_one_per_line): Likewise.
40505         * doc/glibc-functions/error_print_progname.texi
40506         (error_print_progname): Likewise.
40507         * doc/posix-functions/pthread_condattr_getclock.texi
40508         (pthread_condattr_getclock): Likewise.
40509         * doc/posix-functions/pthread_condattr_setclock.texi
40510         (pthread_condattr_setclock): Likewise.
40511         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
40512         Likewise.
40513         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
40514         * doc/glibc-functions/getpt.texi (getpt): Likewise.
40515         * doc/glibc-functions/get_current_dir_name.texi
40516         (get_current_dir_name): Likewise.
40517         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
40518         Likewise.
40519         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
40520         wrong return type.
40521         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
40522         1.7.11.
40524 2012-02-29  Bruno Haible  <bruno@clisp.org>
40526         Tests for module 'hypotf'.
40527         * modules/hypotf-tests: New file.
40528         * tests/test-hypotf.c: New file.
40530         New module 'hypotf'.
40531         * lib/math.in.h (hypotf): New declaration.
40532         * lib/hypotf.c: New file.
40533         * m4/hypotf.m4: New file.
40534         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
40536         REPLACE_HYPOTF.
40537         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
40538         REPLACE_HYPOTF.
40539         * modules/hypotf: New file.
40540         * tests/test-math-c++.cc: Check the hypotf declaration.
40541         * doc/posix-functions/hypotf.texi: Mention the new module.
40543         hypot: Prepare for hypotf module.
40544         * m4/hypot.m4: New file.
40545         * modules/hypot (Files): Add m4/hypot.m4.
40546         (configure.ac): Invoke gl_FUNC_HYPOT.
40548 2012-02-29  Bruno Haible  <bruno@clisp.org>
40550         hypot tests: More tests.
40551         * tests/test-hypot.c: Include <float.h>.
40552         (main): Add tests about overflow and underflow.
40554 2012-02-29  Bruno Haible  <bruno@clisp.org>
40556         math code: Add comments.
40557         * lib/acosl.c: Add comment about related glibc source files.
40558         * lib/asinl.c: Likewise.
40559         * lib/atanl.c: Likewise.
40560         * lib/expl.c: Likewise.
40561         * lib/logl.c: Likewise.
40562         * lib/sincosl.c: Likewise.
40563         * lib/sinl.c: Likewise.
40564         * lib/tanl.c: Likewise.
40565         * lib/trigl.c: Likewise.
40566         * lib/cosl.c: Likewise. Fix comments.
40568 2012-02-28  Bruno Haible  <bruno@clisp.org>
40570         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
40571         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
40572         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
40573         HUGE_VALL are defined.
40574         (numeric_equald): Renamed from numeric_equal.
40575         (numeric_equalf, numeric_equall): New functions.
40576         (main): Check also HUGE_VALF, HUGE_VALL.
40577         * modules/math-tests (Files): Add tests/macros.h.
40578         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
40579         HUGE_VALL.
40581 2012-02-28  Bruno Haible  <bruno@clisp.org>
40583         doc: Move ISO C11 feature notes into POSIX chapters.
40584         * doc/posix-functions/aligned_alloc.texi: Renamed from
40585         doc/glibc-functions/aligned_alloc.texi.
40586         * doc/posix-functions/quick_exit.texi: Renamed from
40587         doc/glibc-functions/quick_exit.texi.
40588         * doc/posix-headers/uchar.texi: Renamed from
40589         doc/glibc-headers/uchar.texi.
40590         * doc/posix-functions/c16rtomb.texi: Renamed from
40591         doc/glibc-functions/c16rtomb.texi.
40592         * doc/posix-functions/c32rtomb.texi: Renamed from
40593         doc/glibc-functions/c32rtomb.texi.
40594         * doc/posix-functions/mbrtoc16.texi: Renamed from
40595         doc/glibc-functions/mbrtoc16.texi.
40596         * doc/posix-functions/mbrtoc32.texi: Renamed from
40597         doc/glibc-functions/mbrtoc32.texi.
40598         * doc/gnulib.texi: Update.
40599         (Glibc uchar.h): Remove section.
40600         Suggested by Eric Blake.
40602 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
40604         stdnoreturn: port to MSVC better
40605         MSVC standard headers use __declspec(noreturn), so #define noreturn
40606         to empty on that platform.  Reported by Bruno Haible in
40607         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
40608         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
40609         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
40611 2012-02-28  Bruno Haible  <bruno@clisp.org>
40613         doc: Mention new glibc headers and functions.
40614         * doc/glibc-headers/uchar.texi: New file.
40615         * doc/glibc-functions/aligned_alloc.texi: New file.
40616         * doc/glibc-functions/c16rtomb.texi: New file.
40617         * doc/glibc-functions/c32rtomb.texi: New file.
40618         * doc/glibc-functions/clock_adjtime.texi: New file.
40619         * doc/glibc-functions/fanotify_init.texi: New file.
40620         * doc/glibc-functions/fanotify_mark.texi: New file.
40621         * doc/glibc-functions/inet6_opt_append.texi: New file.
40622         * doc/glibc-functions/inet6_opt_find.texi: New file.
40623         * doc/glibc-functions/inet6_opt_finish.texi: New file.
40624         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
40625         * doc/glibc-functions/inet6_opt_init.texi: New file.
40626         * doc/glibc-functions/inet6_opt_next.texi: New file.
40627         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
40628         * doc/glibc-functions/inet6_rth_add.texi: New file.
40629         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
40630         * doc/glibc-functions/inet6_rth_init.texi: New file.
40631         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
40632         * doc/glibc-functions/inet6_rth_segments.texi: New file.
40633         * doc/glibc-functions/inet6_rth_space.texi: New file.
40634         * doc/glibc-functions/login.texi: New file.
40635         * doc/glibc-functions/mbrtoc16.texi: New file.
40636         * doc/glibc-functions/mbrtoc32.texi: New file.
40637         * doc/glibc-functions/name_to_handle_at.texi: New file.
40638         * doc/glibc-functions/ntp_gettimex.texi: New file.
40639         * doc/glibc-functions/open_by_handle_at.texi: New file.
40640         * doc/glibc-functions/prlimit.texi: New file.
40641         * doc/glibc-functions/process_vm_readv.texi: New file.
40642         * doc/glibc-functions/process_vm_writev.texi: New file.
40643         * doc/glibc-functions/recvmmsg.texi: New file.
40644         * doc/glibc-functions/scandirat.texi: New file.
40645         * doc/glibc-functions/sendmmsg.texi: New file.
40646         * doc/glibc-functions/setns.texi: New file.
40647         * doc/glibc-functions/timespec_get.texi: New file.
40648         * doc/gnulib.texi: Include them.
40649         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
40650         sections.
40651         Reported by Eric Blake.
40653 2012-02-28  Bruno Haible  <bruno@clisp.org>
40655         Avoid compilation errors with MSVC option -fp:strict.
40656         * lib/floor.c: Use MSVC specific pragma fenv_access.
40657         * lib/ceil.c: Likewise.
40658         * lib/trunc.c: Likewise.
40659         * lib/round.c: Likewise.
40660         * lib/rint.c: Likewise.
40661         * lib/fma.c: Likewise.
40662         * lib/integer_length.c: Likewise.
40663         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40664         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40665         * tests/test-floor2.c: Likewise.
40666         * tests/test-floorf2.c: Likewise.
40667         * tests/test-ceil2.c: Likewise.
40668         * tests/test-ceilf2.c: Likewise.
40669         * tests/test-trunc2.c: Likewise.
40670         * tests/test-truncf2.c: Likewise.
40671         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40673 2012-02-27  Bruno Haible  <bruno@clisp.org>
40675         Tests for module 'sqrtl-ieee'.
40676         * modules/sqrtl-ieee-tests: New file.
40677         * tests/test-sqrtl-ieee.c: New file.
40679         New module 'sqrtl-ieee'.
40680         * modules/sqrtl-ieee: New file.
40682         Tests for module 'sqrt-ieee'.
40683         * modules/sqrt-ieee-tests: New file.
40684         * tests/test-sqrt-ieee.c: New file.
40686         New module 'sqrt-ieee'.
40687         * modules/sqrt-ieee: New file.
40689         Tests for module 'sqrtf-ieee'.
40690         * modules/sqrtf-ieee-tests: New file.
40691         * tests/test-sqrtf-ieee.c: New file.
40692         * tests/test-sqrt-ieee.h: New file.
40694         New module 'sqrtf-ieee'.
40695         * modules/sqrtf-ieee: New file.
40697 2012-02-27  Bruno Haible  <bruno@clisp.org>
40699         remainderl-ieee: Work around test failure on OSF/1.
40700         * m4/remainderl-ieee.m4: New file.
40701         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
40702         present, test whether remainderl works with a zero second argument.
40703         Replace it if not.
40704         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
40705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
40706         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
40707         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
40708         (Depends-on): Update conditions.
40709         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
40710         (Depends-on): Add remainder-ieee.
40711         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
40712         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
40713         module.
40715         remainderf-ieee: Work around test failure on OSF/1.
40716         * m4/remainderf-ieee.m4: New file.
40717         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
40718         present, test whether remainderf works with a zero second argument.
40719         Replace it if not.
40720         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
40721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
40722         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
40723         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
40724         (Depends-on): Update conditions.
40725         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
40726         (Depends-on): Add remainder-ieee.
40727         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
40728         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
40729         module.
40731         remainder-ieee: Work around test failure on OSF/1.
40732         * m4/remainder-ieee.m4: New file.
40733         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
40734         present, test whether remainder works with a zero second argument.
40735         Replace it if not.
40736         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
40737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
40738         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
40739         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
40740         (Depends-on): Update dependencies.
40741         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
40742         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
40743         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
40745         Tests for module 'remainderl-ieee'.
40746         * modules/remainderl-ieee-tests: New file.
40747         * tests/test-remainderl-ieee.c: New file.
40749         New module 'remainderl-ieee'.
40750         * modules/remainderl-ieee: New file.
40752         Tests for module 'remainder-ieee'.
40753         * modules/remainder-ieee-tests: New file.
40754         * tests/test-remainder-ieee.c: New file.
40756         New module 'remainder-ieee'.
40757         * modules/remainder-ieee: New file.
40759         Tests for module 'remainderf-ieee'.
40760         * modules/remainderf-ieee-tests: New file.
40761         * tests/test-remainderf-ieee.c: New file.
40762         * tests/test-remainder-ieee.h: New file.
40764         New module 'remainderf-ieee'.
40765         * modules/remainderf-ieee: New file.
40767 2012-02-27  Bruno Haible  <bruno@clisp.org>
40769         modff, modfl: Fix configure syntax error.
40770         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
40771         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40773 2012-02-27  Bruno Haible  <bruno@clisp.org>
40775         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
40776         * m4/fmodl-ieee.m4: New file.
40777         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
40778         whether fmodl works with zero arguments. Replace it if not.
40779         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
40780         (Depends-on): Add fmod-ieee.
40781         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
40782         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
40784         fmodf-ieee: Work around test failure on OSF/1.
40785         * m4/fmodf-ieee.m4: New file.
40786         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
40787         whether fmodf works with zero arguments. Replace it if not.
40788         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
40789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
40790         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
40791         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
40792         (Depends-on): Update dependencies.
40793         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
40794         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
40795         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
40797         fmodf-ieee: Work around test failure on MSVC 9.
40798         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
40799         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
40801         fmod-ieee: Work around test failures on OSF/1, mingw.
40802         * m4/fmod-ieee.m4: New file.
40803         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
40804         whether fmod works with zero arguments. Replace it if not.
40805         * lib/math.in.h (fmod): New declaration.
40806         * lib/fmod.c: New file.
40807         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
40808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
40809         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
40810         * modules/fmod (Files): Add lib/fmod.c.
40811         (Depends-on): Add math, isinf, trunc, fma.
40812         (configure.ac): Arrange to compile lib/fmod.c if needed.
40813         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
40814         m4/signbit.m4.
40815         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
40816         * tests/test-math-c++.cc: Check the declaration of fmod.
40817         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
40819         fmodl-ieee: Fix test failures.
40820         * lib/fmodl.c (fmodl): Treat Inf specially.
40821         * modules/fmodl (Depends-on): Add isinf.
40823         Tests for module 'fmodl-ieee'.
40824         * modules/fmodl-ieee-tests: New file.
40825         * tests/test-fmodl-ieee.c: New file.
40827         New module 'fmodl-ieee'.
40828         * modules/fmodl-ieee: New file.
40830         Tests for module 'fmod-ieee'.
40831         * modules/fmod-ieee-tests: New file.
40832         * tests/test-fmod-ieee.c: New file.
40834         New module 'fmod-ieee'.
40835         * modules/fmod-ieee: New file.
40837         Tests for module 'fmodf-ieee'.
40838         * modules/fmodf-ieee-tests: New file.
40839         * tests/test-fmodf-ieee.c: New file.
40840         * tests/test-fmod-ieee.h: New file.
40842         New module 'fmodf-ieee'.
40843         * modules/fmodf-ieee: New file.
40845 2012-02-27  Bruno Haible  <bruno@clisp.org>
40847         Tests for module 'rintl-ieee'.
40848         * modules/rintl-ieee-tests: New file.
40849         * tests/test-rintl-ieee.c: New file.
40851         New module 'rintl-ieee'.
40852         * modules/rintl-ieee: New file.
40854         Tests for module 'rint-ieee'.
40855         * modules/rint-ieee-tests: New file.
40856         * tests/test-rint-ieee.c: New file.
40858         New module 'rint-ieee'.
40859         * modules/rint-ieee: New file.
40861         Tests for module 'rintf-ieee'.
40862         * modules/rintf-ieee-tests: New file.
40863         * tests/test-rintf-ieee.c: New file.
40864         * tests/test-rint-ieee.h: New file.
40866         New module 'rintf-ieee'.
40867         * modules/rintf-ieee: New file.
40869 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
40871         regex: re_search etc. should return -2 when memory exhausted
40872         This bug was uncovered when testing 'grep'.  Without the fix,
40873         re_search and friends return -1 when memory is exhausted, but -1
40874         means no match, and this causes grep to falsely report no-match
40875         instead of memory-exhaustion.  See
40876         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
40877         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
40878         trouble; this can occur if re_search_internal ran out of memory.
40880 2012-02-26  Bruno Haible  <bruno@clisp.org>
40882         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
40883         * m4/modfl-ieee.m4: New file.
40884         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
40885         whether modfl works with Inf. Replace it if not.
40886         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
40887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
40888         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
40889         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
40890         (Depends-on): Update dependencies.
40891         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
40892         m4/signbit.m4.
40893         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
40894         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
40896         modfl-ieee: Fix dependencies.
40897         * modules/modfl-ieee (Depends-on): Add modf-ieee.
40899         modfl-ieee: Fix test failures.
40900         * lib/modfl.c (modfl): Treat NaN and Inf specially.
40901         * modules/modfl (Depends-on): Add isfinite, isinf.
40903         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
40904         * m4/modff-ieee.m4: New file.
40905         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
40906         whether modff works with NaN and Inf. Replace it if not.
40907         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
40908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
40909         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
40910         * modules/modff (configure.ac): Consider REPLACE_MODFF.
40911         (Depends-on): Update dependencies.
40912         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
40913         m4/signbit.m4.
40914         (Depends-on): Add modf-ieee.
40915         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
40916         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
40918         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
40919         * m4/modf-ieee.m4: New file.
40920         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
40921         whether modf works with NaN and Inf. Replace it if not.
40922         * lib/math.in.h (modf): New declaration.
40923         * lib/modf.c: New file.
40924         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
40925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
40926         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
40927         * modules/modf (Files): Add lib/modf.c.
40928         (Depends-on): Add math, isfinite, trunc, isinf.
40929         (configure.ac): Addrange to compile lib/modf.c if needed.
40930         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
40931         m4/signbit.m4.
40932         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
40933         * tests/test-math-c++.cc: Check the declaration of modf.
40934         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
40936         Tests for module 'modfl-ieee'.
40937         * modules/modfl-ieee-tests: New file.
40938         * tests/test-modfl-ieee.c: New file.
40940         New module 'modfl-ieee'.
40941         * modules/modfl-ieee: New file.
40943         Tests for module 'modf-ieee'.
40944         * modules/modf-ieee-tests: New file.
40945         * tests/test-modf-ieee.c: New file.
40947         New module 'modf-ieee'.
40948         * modules/modf-ieee: New file.
40950         Tests for module 'modff-ieee'.
40951         * modules/modff-ieee-tests: New file.
40952         * tests/test-modff-ieee.c: New file.
40953         * tests/test-modf-ieee.h: New file.
40955         New module 'modff-ieee'.
40956         * modules/modff-ieee: New file.
40958 2012-02-26  Bruno Haible  <bruno@clisp.org>
40960         Tests for module 'fabsl-ieee'.
40961         * modules/fabsl-ieee-tests: New file.
40962         * tests/test-fabsl-ieee.c: New file.
40964         New module 'fabsl-ieee'.
40965         * modules/fabsl-ieee: New file.
40967         Tests for module 'fabs-ieee'.
40968         * modules/fabs-ieee-tests: New file.
40969         * tests/test-fabs-ieee.c: New file.
40971         New module 'fabs-ieee'.
40972         * modules/fabs-ieee: New file.
40974         Tests for module 'fabsf-ieee'.
40975         * modules/fabsf-ieee-tests: New file.
40976         * tests/test-fabsf-ieee.c: New file.
40977         * tests/test-fabs-ieee.h: New file.
40979         New module 'fabsf-ieee'.
40980         * modules/fabsf-ieee: New file.
40982 2012-02-26  Bruno Haible  <bruno@clisp.org>
40984         Tests for module 'fmal-ieee'.
40985         * modules/fmal-ieee-tests: New file.
40986         * tests/test-fmal-ieee.c: New file.
40988         New module 'fmal-ieee'.
40989         * modules/fmal-ieee: New file.
40991         Tests for module 'fma-ieee'.
40992         * modules/fma-ieee-tests: New file.
40993         * tests/test-fma-ieee.c: New file.
40995         New module 'fma-ieee'.
40996         * modules/fma-ieee: New file.
40998         Tests for module 'fmaf-ieee'.
40999         * modules/fmaf-ieee-tests: New file.
41000         * tests/test-fmaf-ieee.c: New file.
41001         * tests/test-fma-ieee.h: New file.
41003         New module 'fmaf-ieee'.
41004         * modules/fmaf-ieee: New file.
41006 2012-02-26  Bruno Haible  <bruno@clisp.org>
41008         Tests for module 'ldexpl-ieee'.
41009         * modules/ldexpl-ieee-tests: New file.
41010         * tests/test-ldexpl-ieee.c: New file.
41012         New module 'ldexpl-ieee'.
41013         * modules/ldexpl-ieee: New file.
41015         Tests for module 'ldexp-ieee'.
41016         * modules/ldexp-ieee-tests: New file.
41017         * tests/test-ldexp-ieee.c: New file.
41019         New module 'ldexp-ieee'.
41020         * modules/ldexp-ieee: New file.
41022         Tests for module 'ldexpf-ieee'.
41023         * modules/ldexpf-ieee-tests: New file.
41024         * tests/test-ldexpf-ieee.c: New file.
41025         * tests/test-ldexp-ieee.h: New file.
41027         New module 'ldexpf-ieee'.
41028         * modules/ldexpf-ieee: New file.
41030 2012-02-26  Bruno Haible  <bruno@clisp.org>
41032         Refactor frexp*-ieee tests.
41033         * tests/test-frexp-ieee.h: New file.
41034         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
41035         (main): Just call test_function.
41036         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
41037         (main): Just call test_function.
41038         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
41039         (main): Just call test_function.
41040         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
41041         * modules/frexp-ieee-tests (Files): Likewise.
41042         * modules/frexpl-ieee-tests (Files): Likewise.
41044         Tests for module 'frexpl-ieee'.
41045         * modules/frexpl-ieee-tests: New file.
41046         * tests/test-frexpl-ieee.c: New file.
41048         New module 'frexpl-ieee'.
41049         * modules/frexpl-ieee: New file.
41051         Tests for module 'frexp-ieee'.
41052         * modules/frexp-ieee-tests: New file.
41053         * tests/test-frexp-ieee.c: New file.
41055         New module 'frexp-ieee'.
41056         * modules/frexp-ieee: New file.
41058         Tests for module 'frexpf-ieee'.
41059         * modules/frexpf-ieee-tests: New file.
41060         * tests/test-frexpf-ieee.c: New file.
41062         New module 'frexpf-ieee'.
41063         * modules/frexpf-ieee: New file.
41065 2012-02-26  Bruno Haible  <bruno@clisp.org>
41067         roundl-ieee tests: More tests.
41068         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41069         (main): Add tests for [MX] shaded specification in POSIX.
41070         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41071         (Depends-on): Add isnanl-nolibm.
41073         round-ieee tests: More tests.
41074         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41075         (main): Add tests for [MX] shaded specification in POSIX.
41076         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41077         (Depends-on): Add isnand-nolibm.
41079         roundf-ieee tests: More tests.
41080         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41081         (main): Add tests for [MX] shaded specification in POSIX.
41082         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41083         (Depends-on): Add isnanf-nolibm.
41085         truncl-ieee tests: More tests.
41086         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41087         (main): Add tests for [MX] shaded specification in POSIX.
41088         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41089         (Depends-on): Add isnanl-nolibm.
41091         trunc-ieee tests: More tests.
41092         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41093         (main): Add tests for [MX] shaded specification in POSIX.
41094         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41095         (Depends-on): Add isnand-nolibm.
41097         truncf-ieee tests: More tests.
41098         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41099         (main): Add tests for [MX] shaded specification in POSIX.
41100         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41101         (Depends-on): Add isnanf-nolibm.
41103         ceill-ieee tests: More tests.
41104         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41105         (main): Add tests for [MX] shaded specification in POSIX.
41106         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41107         (Depends-on): Add isnanl-nolibm.
41109         ceil-ieee tests: More tests.
41110         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41111         (main): Add tests for [MX] shaded specification in POSIX.
41112         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41113         (Depends-on): Add isnand-nolibm.
41115         ceilf-ieee tests: More tests.
41116         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41117         (main): Add tests for [MX] shaded specification in POSIX.
41118         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41119         (Depends-on): Add isnanf-nolibm.
41121         floorl-ieee tests: More tests.
41122         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41123         (main): Add tests for [MX] shaded specification in POSIX.
41124         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41125         (Depends-on): Add isnanl-nolibm.
41127         floor-ieee tests: More tests.
41128         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41129         (main): Add tests for [MX] shaded specification in POSIX.
41130         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41131         (Depends-on): Add isnand-nolibm.
41133         floorf-ieee tests: More tests.
41134         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41135         (main): Add tests for [MX] shaded specification in POSIX.
41136         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41137         (Depends-on): Add isnanf-nolibm.
41139 2012-02-26  Bruno Haible  <bruno@clisp.org>
41141         fpieee: More comments.
41142         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
41144 2012-02-25  Bruno Haible  <bruno@clisp.org>
41146         Tests for module 'log10l'.
41147         * modules/log10l-tests: New file.
41148         * tests/test-log10l.c: New file.
41149         * tests/test-math-c++.cc: Check the declaration of log10l.
41151         New module 'log10l'.
41152         * lib/math.in.h (log10l): New declaration.
41153         * lib/log10l.c: New file.
41154         * m4/log10l.m4: New file.
41155         * modules/log10l: New file.
41156         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
41157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
41158         HAVE_DECL_LOG10L.
41159         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
41160         HAVE_DECL_LOG10L.
41161         * doc/posix-functions/log10l.texi: Mention the new module.
41163 2012-02-25  Bruno Haible  <bruno@clisp.org>
41165         fmodl, remainder*: Avoid wrong results due to rounding errors.
41166         * lib/fmodl.c (fmodl): Correct the result if it is not within the
41167         expected bounds.
41168         * lib/remainderf.c (remainderf): Likewise.
41169         * lib/remainder.c (remainder): Likewise.
41170         * lib/remainderl.c (remainderl): Likewise.
41172 2012-02-25  Bruno Haible  <bruno@clisp.org>
41174         Tests for module 'remainderl'.
41175         * modules/remainderl-tests: New file.
41176         * tests/test-remainderl.c: New file.
41177         * tests/test-math-c++.cc: Check the declaration of remainderl.
41179         New module 'remainderl'.
41180         * lib/math.in.h (remainderl): New declaration.
41181         * lib/remainderl.c: New file.
41182         * m4/remainderl.m4: New file.
41183         * modules/remainderl: New file.
41184         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
41185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
41186         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
41187         HAVE_REMAINDERL.
41188         * doc/posix-functions/remainderl.texi: Mention the new module.
41190 2012-02-25  Bruno Haible  <bruno@clisp.org>
41192         Tests for module 'remainderf'.
41193         * modules/remainderf-tests: New file.
41194         * tests/test-remainderf.c: New file.
41195         * tests/test-math-c++.cc: Check the declaration of remainderf.
41197         New module 'remainderf'.
41198         * lib/math.in.h (remainderf): New declaration.
41199         * lib/remainderf.c: New file.
41200         * m4/remainderf.m4: New file.
41201         * modules/remainderf: New file.
41202         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
41203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
41204         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
41205         HAVE_REMAINDERF.
41206         * doc/posix-functions/remainderf.texi: Mention the new module.
41208 2012-02-25  Bruno Haible  <bruno@clisp.org>
41210         remainder: Support for MSVC.
41211         * lib/math.in.h (remainder): New declaration.
41212         * lib/remainder.c: New file.
41213         * m4/remainder.m4: New file.
41214         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
41215         (Depends-on): Add math, round, fma.
41216         (configure.ac): Use results of gl_FUNC_REMAINDER.
41217         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
41218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
41219         HAVE_DECL_REMAINDER.
41220         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
41221         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
41222         * tests/test-math-c++.cc: Check the declaration of remainder.
41223         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
41224         problems are fixed.
41226 2012-02-25  Bruno Haible  <bruno@clisp.org>
41228         Tests for module 'fmodl'.
41229         * modules/fmodl-tests: New file.
41230         * tests/test-fmodl.c: New file.
41231         * tests/test-math-c++.cc: Check the declaration of fmodl.
41233         New module 'fmodl'.
41234         * lib/math.in.h (fmodl): New declaration.
41235         * lib/fmodl.c: New file.
41236         * m4/fmodl.m4: New file.
41237         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
41238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
41239         REPLACE_FMODL.
41240         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
41241         REPLACE_FMODL.
41242         * modules/fmodl: New file.
41243         * doc/posix-functions/fmodl.texi: Mention the new module.
41245 2012-02-25  Bruno Haible  <bruno@clisp.org>
41247         Tests for module 'modfl'.
41248         * modules/modfl-tests: New file.
41249         * tests/test-modfl.c: New file.
41250         * tests/test-math-c++.cc: Check the declaration of modfl.
41252         New module 'modfl'.
41253         * lib/math.in.h (modfl): New declaration.
41254         * lib/modfl.c: New file.
41255         * m4/modfl.m4: New file.
41256         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
41257         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
41258         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
41259         * modules/modfl: New file.
41260         * doc/posix-functions/modfl.texi: Mention the new module.
41262 2012-02-25  Bruno Haible  <bruno@clisp.org>
41264         Tests for module 'fabsl'.
41265         * modules/fabsl-tests: New file.
41266         * tests/test-fabsl.c: New file.
41267         * tests/test-math-c++.cc: Check the declaration of fabsl.
41269         New module 'fabsl'.
41270         * lib/math.in.h (fabsl): New declaration.
41271         * lib/fabsl.c: New file.
41272         * m4/fabsl.m4: New file.
41273         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
41274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
41275         REPLACE_FABSL.
41276         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
41277         REPLACE_FABSL.
41278         * modules/fabsl: New file.
41279         * doc/posix-functions/fabsl.texi: Mention the new module.
41281 2012-02-25  Bruno Haible  <bruno@clisp.org>
41283         fabs tests: More tests.
41284         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
41285         (zero): New variable.
41286         (main): Add tests for signed zero.
41287         * modules/fabs-tests (Files): Add tests/minus-zero.h.
41289         fabsf tests: More tests.
41290         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
41291         (zero): New variable.
41292         (main): Add tests for signed zero.
41293         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
41295 2012-02-24  Bruno Haible  <bruno@clisp.org>
41297         atanl: Provide function definition on MSVC.
41298         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
41299         function pointer.
41300         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
41302 2012-02-24  Bruno Haible  <bruno@clisp.org>
41304         acosl: Provide function definition on MSVC.
41305         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
41306         function pointer.
41307         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
41309 2012-02-24  Bruno Haible  <bruno@clisp.org>
41311         asinl: Provide function definition on MSVC.
41312         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
41313         function pointer.
41314         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
41316 2012-02-24  Bruno Haible  <bruno@clisp.org>
41318         tanl: Provide function definition on MSVC.
41319         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
41320         function pointer.
41321         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
41323 2012-02-24  Bruno Haible  <bruno@clisp.org>
41325         cosl: Provide function definition on MSVC.
41326         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
41327         function pointer.
41328         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
41330 2012-02-24  Bruno Haible  <bruno@clisp.org>
41332         sinl: Provide function definition on MSVC.
41333         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
41334         function pointer.
41335         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
41337 2012-02-24  Bruno Haible  <bruno@clisp.org>
41339         logl: Provide function definition on MSVC.
41340         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
41341         function pointer.
41342         * lib/math.in.h (logl): Undefine if it does not exist as a function.
41344 2012-02-24  Bruno Haible  <bruno@clisp.org>
41346         expl: Provide function definition on MSVC.
41347         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
41348         function pointer.
41349         * lib/math.in.h (expl): Undefine if it does not exist as a function.
41351 2012-02-24  Bruno Haible  <bruno@clisp.org>
41353         sqrtl: Provide function definition on MSVC.
41354         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
41355         a function pointer.
41356         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
41358 2012-02-24  Bruno Haible  <bruno@clisp.org>
41360         ceill: Provide function definition on MSVC.
41361         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
41362         used as a function pointer.
41363         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
41365 2012-02-24  Bruno Haible  <bruno@clisp.org>
41367         floorl: Provide function definition on MSVC.
41368         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
41369         used as a function pointer.
41370         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
41372 2012-02-24  Bruno Haible  <bruno@clisp.org>
41374         ceilf: Provide function definition on MSVC.
41375         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
41376         used as a function pointer.
41377         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
41379 2012-02-24  Bruno Haible  <bruno@clisp.org>
41381         floorf: Provide function definition on MSVC.
41382         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
41383         used as a function pointer.
41384         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
41386 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41388         stdnoreturn: new module
41389         This implements a replacement for C11's <stdnoreturn.h>.
41390         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
41391         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
41392         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
41393         * tests/test-stdnoreturn.c: New files.
41395 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
41397         regex: fix false multibyte matches in some regular expressions
41398         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
41399         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
41400         * lib/regex_internal.c (re_string_skip_chars):
41401         Fix miscomputation of remain_len that may cause incomplete
41402         multi-byte character and false match.
41404 2012-02-24  Jim Meyering  <meyering@redhat.com>
41406         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
41407         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
41408         uses with "==" *before* the call, e.g., 0 == strcmp (...)
41409         Remove now-unnecessary str''cmp obfuscation.
41410         Suggested by Akim Demaille.
41412 2012-02-24  Bruno Haible  <bruno@clisp.org>
41414         streq: Rename macro.
41415         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
41416         * NEWS: Mention the change.
41417         * lib/mbrtowc.c (mbrtowc): Update.
41418         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
41419         * lib/wcwidth.c (wcwidth): Update.
41420         Suggested by Akim Demaille and Jim Meyering.
41422 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41424         regex: fix typo in definition of MIN
41425         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
41426         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
41428 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41429             Bruno Haible  <bruno@clisp.org>
41431         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
41432         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
41433         entries into a stack-allocated buffer directly.
41434         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
41436 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41437             Bruno Haible  <bruno@clisp.org>
41439         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
41441          - There were several instances of this pattern:
41443              for (;;) {
41444                n = acl (f, GETACLCNT, 0, NULL);
41445                [ allocate an array A of size N ]
41446                if (acl (f, GETACL, n, a) == n)
41447                  break;
41448              }
41450            This loop might never terminate if some other process is constantly
41451            manipulating the file's ACL.  The loop should be rewritten to
41452            terminate.
41454          - The acl (... GETACLNT ...) call is merely an optimization; its value
41455            is merely a hint as to how big to make the array.  A better
41456            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
41457            and just guess a reasonably-big size, growing the size and trying
41458            again if it's not large enough.  This guarantees termination, and
41459            saves a system call.
41461         * lib/acl-internal.h: Include <limits.h>.
41462         (MIN, SIZE_MAX): New macros.
41463         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
41464         a stack-allocated buffer, and use malloc if it does not fit. Don't
41465         use GETACLCNT.
41466         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41468 2012-02-19  Bruno Haible  <bruno@clisp.org>
41470         acl: Fix endless loop on Solaris with vxfs.
41471         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
41472         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
41473         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41474         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
41475         * tests/test-sameacls.c (main)[Solaris]: Likewise.
41476         Reported by Bill Jones in
41477         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
41479 2012-02-19  Bruno Haible  <bruno@clisp.org>
41481         acl: Fix copy-acl test failure on Solaris 11.0.
41482         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
41483         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
41484         that this function returns 0 in some more cases.
41486 2012-02-19  Bruno Haible  <bruno@clisp.org>
41488         acl: Update doc references.
41489         * doc/acl-resources.txt: Update links to Solaris documentation.
41491 2012-02-19  Bruno Haible  <bruno@clisp.org>
41493         Fix test failure in many locales on Solaris 11.
41494         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
41495         'tr' arguments.
41496         * tests/test-pipe-filter-ii1.c (main): Likewise.
41497         * build-aux/bootstrap (check_versions): Run 'tr' command with range
41498         expressions in the C locale.
41499         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41500         * m4/host-os.m4 (gl_HOST_OS): Likewise.
41502 2012-02-19  Bruno Haible  <bruno@clisp.org>
41504         gnulib-tool: Improve usage message.
41505         * gnulib-tool (func_usage): Move doc of --help and --version to the
41506         section "Operation modes".
41508 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
41510         README-release: make it easier to execute commands
41511         * top/README-release: break commands out on to separate lines.
41513 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
41515         GNUmakefile: simplify detection of unconfigured trees
41516         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
41517         whether the tree make is being run from is already configured or
41518         not.  Related simplifications.
41520 2012-02-13  Simon Josefsson  <simon@josefsson.org>
41522         * gnulib-tool (func_usage): Document --help and --version.
41524 2012-02-11  Jim Meyering  <meyering@redhat.com>
41526         bootstrap: don't exit 0 upon gnulib-tool failure
41527         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
41528         its exit status, not 0.
41530 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
41532         README-release: various improvements
41533         * top/README-release: Give a command to push changes for the
41534         release.  Add "distcheck" to list of other pre-release checks.
41535         Fix instance of "make stable" which should be "make TYPE".
41537 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
41539         maint: replace FSF snail-mail addresses with URLs
41540         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
41541         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
41542         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
41543         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
41544         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
41545         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
41546         * lib/check-version.c, lib/check-version.h, lib/config.charset:
41547         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
41548         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
41549         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
41550         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
41551         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
41552         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
41553         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
41554         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
41555         * lib/glthread/thread.c, lib/glthread/thread.h:
41556         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
41557         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
41558         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
41559         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
41560         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
41561         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
41562         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
41563         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
41564         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
41565         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
41566         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
41567         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
41568         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
41569         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
41570         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
41571         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
41572         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
41573         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
41574         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
41575         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
41576         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
41577         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
41578         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
41579         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
41580         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
41581         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
41582         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
41583         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
41584         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
41585         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
41586         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
41587         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
41588         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
41589         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
41590         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
41591         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
41592         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
41593         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
41594         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
41595         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
41596         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
41597         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
41598         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
41599         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
41600         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
41601         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
41602         * tests/test-poll.c, tests/test-quotearg-simple.c:
41603         * tests/test-quotearg.c, tests/test-quotearg.h:
41604         * tests/test-round-ieee.c, tests/test-round1.c:
41605         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
41606         * tests/test-roundl-ieee.c, tests/test-roundl.c:
41607         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
41608         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
41609         * tests/test-strerror.c, tests/test-strerror_r.c:
41610         * tests/test-strsignal.c, tests/test-strverscmp.c:
41611         * tests/test-xmemdup0.c:
41612         Replace FSF snail mail addresses with URLs, as per GNU coding
41613         standards.  See glibc bug
41614         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
41616 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41618         README-release: capitalize a word and split a line
41619         * top/README-release: Fix punctuation and spacing.
41621 2012-02-08  Akim Demaille  <demaille@gostai.com>
41623         fatal-signal: use C prototypes (with explicit void).
41624         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41625         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
41627 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41629         regex: spelling fix
41630         * lib/regexec.c: spelling fix
41632         regex: rely on stdint.h for SIZE_MAX
41633         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
41635 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41637         regex: merge glibc changes
41639         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
41640         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
41641         (init_word_char): Work even if bitset words are not exactly 32 or
41642         64 bits wide.  Don't assume there are no padding bits.
41643         * lib/regex.c [_LIBC]: Do not include <config.h>.
41644         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
41645         and -Wtype-limits.
41646         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
41647         needless disagreement with glibc.  All uses changed.  Define it to
41648         1 only if _GNU_SOURCE, to match glibc.
41649         (_REG_RM_NAME): Remove; no longer needed, since the names in
41650         question are now all protected by __USE_GNU.
41651         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
41652         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
41653         * lib/regex_internal.h (MIN): New macro.
41655         2012-01-03 Ulrich Drepper <drepper@gmail.com>
41656         * lib/regcomp.c (init_word_char): Optimize regex a bit.
41658         2011-12-30 Jakub Jelinek <jakub@redhat.com>
41659         * lib/regex_internal.c (re_string_fetch_byte_case):
41660         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
41661         is miscompiled, and it turns out it is because of an incorrect
41662         attribute on re_string_fetch_byte_case.  Unlike
41663         re_string_peek_byte_case, this one is really not pure, it modifies
41664         memory (increments pstr->cur_idx), and with the pure attribute GCC
41665         assumed it doesn't and it cached the presumed value of
41666         regexp->cur_idx in a variable across the
41667          for (;; ++i)
41668            {
41669              if (i >= BRACKET_NAME_BUF_SIZE)
41670                return REG_EBRACK;
41671              if (token->type == OP_OPEN_CHAR_CLASS)
41672                ch = re_string_fetch_byte_case (regexp);
41673              else
41674                ch = re_string_fetch_byte (regexp);
41675              if (re_string_eoi(regexp))
41676                return REG_EBRACK;
41677              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
41678                break;
41679              elem->opr.name[i] = ch;
41680            }
41682         2011-11-29 Andreas Schwab <schwab@redhat.com>
41683         * lib/regcomp.c (build_equiv_class):
41684         Fix access after end of search string in regex matcher.
41686         2011-11-12 Ulrich Drepper <drepper@redhat.com>
41687         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
41689         2011-10-12 Ulrich Drepper <drepper@redhat.com>
41690         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
41692         2011-10-11 Ulrich Drepper <drepper@redhat.com>
41693         * lib/regcomp.c (parse_branch, parse_sub_exp):
41694         More regex memory leak fixes and tests.
41695         (parse_sub_exp, parse_bracket_exp):
41696         Fix memory leak for some invalid regular expressions.
41698         2011-05-28 Ulrich Drepper <drepper@gmail.com>
41699         * lib/regex_internal.c, lib/regexec.c:
41700         Fix unnecessary overallocation due to incomplete character.  When
41701         incomplete characters are found at the end of a string the code
41702         ran amok and allocated lots of memory.  Stricter limits are now in
41703         place.
41705         2011-05-20 Reuben Thomas <rrt@sc3d.org>
41706         * lib/regex.h: Update documentation.
41708         2011-05-16 Aharon Robbins <arnold@skeeve.com>
41709         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
41711         2010-05-05 Andreas Schwab <schwab@redhat.com>
41712         * lib/regexec.c (find_collation_sequence_value):
41713         Fix lookup of collation sequence value during regexp matching.
41715         2010-01-22 Ulrich Drepper <drepper@redhat.com>
41716         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
41718         2008-01-16 Ulrich Drepper <drepper@redhat.com>
41719         * lib/regex.h: Cleanup namespace.
41721         2007-11-26 Ulrich Drepper <drepper@redhat.com>
41722         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
41724         2007-08-26 Ulrich Drepper <drepper@redhat.com>
41725         * lib/regex_internal.h: Prevent some declarations and definitions
41726         to be seen when used in tests.
41728         2005-05-06 Ulrich Drepper <drepper@redhat.com>
41729         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
41730         __libc_lock_* macros if not _LIBC.
41731         (struct re_dfa_t): Add lock.
41733 2012-02-07  Eric Blake  <eblake@redhat.com>
41735         maint.mk: also prohibit lower-case @var@
41736         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
41737         lower case, like @top_srcdir@.
41739 2012-02-04  Eric Blake  <eblake@redhat.com>
41741         canonicalize: avoid uninitialized memory use
41742         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
41743         random '/' left in dest.
41744         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
41746 2012-02-04  Bruno Haible  <bruno@clisp.org>
41748         isatty: Fix test failure of ptsname_r on native Windows.
41749         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
41750         and don't set errno.
41751         (isatty): Test first whether fd is valid. Set errno when returning 0.
41753 2012-02-04  Bruno Haible  <bruno@clisp.org>
41755         spawn-pipe tests: Fix a NULL program name in a diagnostic.
41756         * tests/test-spawn-pipe-main.c: Include progname.h.
41757         (main): Invoke set_program_name.
41758         * modules/spawn-pipe-tests (Depends-on): Add progname.
41760         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
41761         * tests/test-nonblocking-socket-main.c: Include progname.h.
41762         (main): Invoke set_program_name.
41763         * modules/nonblocking-socket-tests (Depends-on): Add progname.
41765         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
41766         * tests/test-nonblocking-pipe-main.c: Include progname.h.
41767         (main): Invoke set_program_name.
41768         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
41770 2012-02-04  Eric Blake  <eblake@redhat.com>
41772         canonicalize-lgpl: fix // handling
41773         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
41775         canonicalize: fix // handling
41776         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
41777         /// to //, since only // is special.
41779 2012-02-04  Bruno Haible  <bruno@clisp.org>
41781         ioctl: Fix test failure on native Windows.
41782         * lib/ioctl.c: Include msvc-nothrow.h.
41783         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
41785 2012-02-04  Bruno Haible  <bruno@clisp.org>
41787         fsync: Avoid test failure on native Windows.
41788         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
41789         read-only.
41791 2012-02-04  Bruno Haible  <bruno@clisp.org>
41793         sys_select: Avoid syntax error on OpenBSD 5.0.
41794         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
41795         currently being included, just include the system's <sys/select.h>.
41797 2012-02-04  Bruno Haible  <bruno@clisp.org>
41799         sys_select: Avoid syntax error on OpenBSD 5.0.
41800         * lib/sys_select.in.h: Include <signal.h> only after the include_next
41801         <sys/select.h>, not before.
41802         Reported by Jiri B <jirib@devio.us>.
41804 2012-02-04  Bruno Haible  <bruno@clisp.org>
41806         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
41807         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
41808         global variables.
41809         * tests/test-get-rusage-data.c (main): Likewise.
41810         Reported by Jim Meyering.
41812 2012-02-04  Bruno Haible  <bruno@clisp.org>
41814         stdioext: Fix last commit.
41815         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
41817 2012-02-03  Bruno Haible  <bruno@clisp.org>
41819         stdioext: Add tentative support for Plan9.
41820         * lib/stdio-impl.h: Include <errno.h>.
41821         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
41822         * lib/freadable.c (freadable): Likewise.
41823         * lib/fwritable.c (fwritable): Likewise.
41824         * lib/fbufmode.c (fbufmode): Likewise.
41825         * lib/freading.c (freading): Likewise.
41826         * lib/fwriting.c (fwriting): Likewise.
41827         * lib/freadptr.c (freadptr): Likewise.
41828         * lib/freadseek.c (freadptrinc): Likewise.
41829         * lib/freadahead.c (freadahead): Likewise.
41830         * lib/fpurge.c (fpurge): Likewise.
41831         * lib/fseeko.c (rpl_fseeko): Likewise.
41832         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
41833         Reported by Jens Staal <staal1978@gmail.com>.
41835 2012-02-02  Jim Meyering  <meyering@redhat.com>
41837         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
41838         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
41839         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
41840         not even to try to add the attribute.  Instead, add a pragma to suppress
41841         the suggestion/warning.
41843 2012-01-31  Karl Berry  <karl@gnu.org>
41845         setstate doc: typo.
41846         * doc/posix-functions/setstate.texi (setstate): { not (.
41848 2012-01-31  Bruno Haible  <bruno@clisp.org>
41850         popen: Make more robust on Windows.
41851         * lib/popen.c: On native Windows, use the _popen based code even if
41852         HAVE_POPEN is set.
41853         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
41854         environment variable on native Windows.
41856 2012-01-30  Bruno Haible  <bruno@clisp.org>
41858         pclose: Fix typo.
41859         * lib/stdio.in.h (pclose): Fix typo in warning message.
41861 2012-01-30  Bruno Haible  <bruno@clisp.org>
41863         doc about getlogin_r, setstate.
41864         * doc/posix-functions/getlogin_r.texi: List the incompatible
41865         declaration problem under "not fixed by gnulib".
41866         * doc/posix-functions/setstate.texi: Mention incompatible declaration
41867         problem on Solaris 11 and other platforms.
41869 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
41870             Bruno Haible  <bruno@clisp.org>
41872         poll tests: Make test more robust.
41873         * tests/test-poll.c: Include macros.h.
41874         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
41875         return value of various I/O operations.
41876         * modules/poll-tests (Files): Add tests/macros.h.
41878 2012-01-30  Bruno Haible  <bruno@clisp.org>
41880         sys_stat: Fix support for mingw64 and MSVC.
41881         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
41882         header files already do it.
41883         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
41884         stat itself.
41885         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
41887 2012-01-30  Bruno Haible  <bruno@clisp.org>
41889         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
41890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
41891         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
41893 2012-01-29  Bruno Haible  <bruno@clisp.org>
41895         quotearg: Fix test failure on MacOS X 10.5.
41896         * tests/test-quotearg-simple.c: Include localcharset.h.
41897         (main): If the locale encoding is not ASCII, bypass the tests of
41898         locale_quoting_style and clocale_quoting_style.
41899         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
41901 2012-01-29  Jim Meyering  <meyering@redhat.com>
41903         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
41904         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
41905         detect uses of canonicalize_file_name.
41907 2012-01-28  Bruno Haible  <bruno@clisp.org>
41909         test-framework-sh: Fix test failure with AIX 7.1 diff.
41910         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
41911         in column 1, like 'diff -c' does.
41912         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
41913         whether 'diff -u' is used. Instead, test whether the output contains
41914         some '@' character.
41916 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41918         strtoimax: eliminate need for stdint.h, inttypes.h checks
41919         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
41920         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
41921         the prerequisites for a recently-introduced strtoimax test.
41922         I guess this might cause strtoimax to be replaced when not
41923         strictly necessary on older hosts, but this shouldn't introduce
41924         any bugs and it should make Emacs 'configure' faster on typical
41925         modern hosts.  Problem discovered when importing the latest gnulib
41926         to an Emacs test version.
41927         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
41929 2012-01-28  Bruno Haible  <bruno@clisp.org>
41931         sys_time: Override 'struct timeval' on some native Windows platforms.
41932         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
41933         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
41934         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
41935         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
41936         needs to be overridden.
41937         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
41938         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
41939         * tests/test-sys_select.c: Check that the tv_sec member has the same
41940         size as a 'time_t'.
41941         * tests/test-sys_time.c: Likewise.
41942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
41943         is set, set also REPLACE_GETTIMEOFDAY.
41944         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
41945         convert the resulting 'struct timeval' before returning.
41946         * lib/select.c: Include <sys/time.h>.
41947         (select, timeval): Undefine at the right place.
41948         * modules/select (Depends-on): Add sys_time.
41949         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
41950         some Windows platforms.
41951         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
41953 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
41955         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
41956         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
41957         an integer.
41958         * lib/fcntl.c (dupfd): Likewise.
41959         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
41961 2012-01-28  Bruno Haible  <bruno@clisp.org>
41963         fcntl: Avoid compilation error on native Windows.
41964         * modules/fcntl (Depends-on): Add 'close'.
41966 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
41968         select, poll, isatty: Avoid warnings on x86_64 mingw64.
41969         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
41970         pointer to an integer.
41971         * lib/poll.c (IsConsoleHandle): Likewise.
41972         * lib/isatty.c (IsConsoleHandle): Likewise.
41974 2012-01-28  Jim Meyering  <meyering@redhat.com>
41976         doc: clarify README-release
41977         * top/README-release: Clarify: you should make a point to have
41978         the latest stable versions of build tools in your PATH, and the
41979         reference to buildreq is solely for its list of tool names, not
41980         for its minimal-functional version numbers.
41981         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
41983         maint.mk: use more readable (yet functionally equivalent) quoting
41984         It is common to quote a single quote in a single quoted string like
41985         this:  '...'\''...'.  Unless you know the idiom, that looks like
41986         gibberish, so prefer to double-quote the string when possible.
41987         Then you can use a more readable, lone single quote: "...'..."
41988         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
41989         "don't" is more readable than the equivalent 'don'\''t'.
41990         (sc_cast_of_x_alloc_return_value): Likewise.
41991         (sc_cast_of_alloca_return_value): Likewise.
41992         (sc_makefile_path_separator_check): Similar: use ":" in '...',
41993         rather than '\'':'\''.
41995 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
41997         stdalign: relax _Alignof and tighten _Alignas test
41998         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
41999         as it was too strict: alignof must divide offsetof, but it need
42000         not equal offsetof.  Inspired by Joseph S. Myers's comment
42001         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
42002         Conversely, tighten the _Alignas test a bit, as the resulting
42003         alignment must be exactly 8.
42005 2012-01-27  Bruno Haible  <bruno@clisp.org>
42007         stdalign: Document the last change.
42008         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
42010 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42012         stdalign: check that alignof and offsetof are consistent
42013         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
42014         Problem reported for gnulib by Richard W.M. Jones in
42015         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
42017 2012-01-27  Jim Meyering  <meyering@redhat.com>
42019         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
42020         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
42021         convert a sequence with gaps to the minimal containing range.
42022         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
42023         * tests/test-update-copyright.sh: Test for this.
42024         The FSF confirmed it is ok to do this, assuming there is at
42025         least one significant change per year in the affected range:
42026         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
42028 2012-01-26  Bruno Haible  <bruno@clisp.org>
42030         pipe2: refine doc about thread-safety
42031         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
42032         multithread-safety problem.
42033         * doc/glibc-functions/accept4.texi: Likewise.
42035 2012-01-26  Bruno Haible  <bruno@clisp.org>
42037         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
42038         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
42039         In the test program, include <fcntl.h>, for O_RDONLY.
42041 2012-01-26  Eric Blake  <eblake@redhat.com>
42043         pipe2: document lack of thread-safety in replacement
42044         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
42045         issue in replacement.
42046         * doc/glibc-functions/accept4.texi (accept4): Likewise.
42047         Based on a report by Eric Wong.
42049 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42050             Bruno Haible  <bruno@clisp.org>
42052         malloca: Avoid warnings on x86_64 mingw64.
42053         * lib/malloca.c: Include <stdint.h>.
42054         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
42055         * modules/malloca (Depends-on): Add stdint.
42056         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
42058 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42060         obstack: remove __STDC__ conditionals
42061         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
42062         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
42063         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
42064         m4/include_next.m4 as the only gnulib-maintained places that still
42065         refer to __STDC__.
42067 2012-01-24  Bruno Haible  <bruno@clisp.org>
42069         havelib: Modern quoting.
42070         * build-aux/config.rpath: Quote 'like this', not `like this', as per
42071         the recent change to the GNU coding standards.
42073 2012-01-24  Bruno Haible  <bruno@clisp.org>
42075         stdint: Improve support for Android.
42076         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
42077         Reported by Simon Josefsson <simon@josefsson.org>.
42079 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42081         doc: omit trailing empty lines from INSTALL etc.
42082         * doc/Makefile (INSTALL): Omit trailing empty lines.
42083         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
42084         omit trailing empty lines.  This simplifies the build procedure.
42086 2012-01-23  Jim Meyering  <meyering@redhat.com>
42088         tests: avoid spurious warnings about gl_sockets_startup
42089         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
42090         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
42091         reporting a "statement with no effect".
42092         * tests/test-accept.c (main): Mark as "(void)".
42093         * tests/test-accept4.c (main): Likewise.
42094         * tests/test-bind.c (main): Likewise.
42095         * tests/test-connect.c (main): Likewise.
42096         * tests/test-getpeername.c (main): Likewise.
42097         * tests/test-getsockname.c (main): Likewise.
42098         * tests/test-getsockopt.c (main): Likewise.
42099         * tests/test-listen.c (main): Likewise.
42100         * tests/test-recv.c (main): Likewise.
42101         * tests/test-recvfrom.c (main): Likewise.
42102         * tests/test-send.c (main): Likewise.
42103         * tests/test-sendto.c (main): Likewise.
42104         * tests/test-setsockopt.c (main): Likewise.
42105         * tests/test-shutdown.c (main): Likewise.
42107 2012-01-21  Bruno Haible  <bruno@clisp.org>
42109         locale-fr.m4: Fix for Android.
42110         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
42111         failure of the test program on Bionic libc.
42113 2012-01-21  Jim Meyering  <meyering@redhat.com>
42115         bootstrap: fail when bootstrap_post_import_hook fails
42116         Otherwise, it's far too easy to miss diagnostics emitted
42117         between gnulib-tool's output and that of running configure.
42118         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
42120 2012-01-17  Jim Meyering  <meyering@redhat.com>
42122         maint: enable sc_trailing_blank
42123         * build-aux/pmccabe.css: Remove trailing blanks.
42124         * doc/acl-cygwin.txt: Likewise.
42125         * doc/gnu-oids.texi: Likewise
42126         * cfg.mk: Enable sc_trailing_blank.
42127         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
42129 2012-01-17  Jim Meyering  <meyering@redhat.com>
42131         maint: enable sc_prohibit_openat_without_use
42132         * cfg.mk: Enable sc_prohibit_openat_without_use.
42133         Exempt lib/selinux-at.c.
42135 2012-01-17  Jim Meyering  <meyering@redhat.com>
42137         maint: enable sc_prohibit_cloexec_without_use
42138         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
42139         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
42141 2012-01-17  Jim Meyering  <meyering@redhat.com>
42143         maint: enable sc_prohibit_intprops_without_use
42144         * cfg.mk: Enable sc_prohibit_intprops_without_use
42145         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
42147 2012-01-17  Jim Meyering  <meyering@redhat.com>
42149         maint: enable sc_prohibit_hash_pjw_without_use
42150         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
42151         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
42152         to match any use of \<hash_pjw\>, i.e., not necessarily with a
42153         following " (".
42155 2012-01-17  Jim Meyering  <meyering@redhat.com>
42157         maint: enable double-word-prohibiting rule
42158         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
42159         Exempt three files.
42161 2012-01-17  Jim Meyering  <meyering@redhat.com>
42163         maint: remove empty lines at EOF, but excluding modules/*
42164         Apply syntax rules at home as well as abroad.  Most changes
42165         were induced by running this:
42166           make srcdir=. _build-aux=build-aux -f top/maint.mk \
42167             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
42168             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
42169         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
42170         Exempt modules/* and two binary files.
42171         Also exempt doc/INSTALL*, per request from Bruno Haible.
42172         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
42173         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
42174         * doc/Copyright/request-assign.future: Likewise.
42175         * doc/Copyright/request-disclaim.changes: Likewise.
42176         * doc/INSTALL: Likewise.
42177         * doc/INSTALL.ISO: Likewise.
42178         * doc/INSTALL.UTF-8: Likewise.
42179         * doc/acl-cygwin.txt: Likewise.
42180         * doc/acl-resources.txt: Likewise.
42181         * doc/fdl-1.2.texi: Likewise.
42182         * doc/fdl-1.3.texi: Likewise.
42183         * doc/fdl.texi: Likewise.
42184         * lib/argp-pin.c: Likewise.
42185         * lib/round.c: Likewise.
42186         * lib/unicase/u16-totitle.c: Likewise.
42187         * lib/unictype/block_test.c: Likewise.
42188         * lib/uninorm/canonical-decomposition.c: Likewise.
42189         * m4/README: Likewise.
42190         * m4/relocatable-lib.m4: Likewise.
42191         * tests/test-isnand-nolibm.c: Likewise.
42192         * tests/test-isnand.c: Likewise.
42193         * tests/uninorm/NormalizationTest.txt: Likewise.
42195 2012-01-17  Jim Meyering  <meyering@redhat.com>
42197         maint: add framework to run syntax-check rules against gnulib sources
42198         * cfg.mk: New file, to disable all currently-failing tests.
42199         We'll enable them one by one, as they are made to pass.
42200         * Makefile (sc_maint): New rule.
42202 2012-01-21  Bruno Haible  <bruno@clisp.org>
42204         stdint: Add support for Android.
42205         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
42206         include the system's <stdint.h>.
42207         Reported by Simon Josefsson <simon@josefsson.org>.
42209 2012-01-19  Jim Meyering  <meyering@redhat.com>
42211         bootstrap: add bootstrap_post_import_hook
42212         Bison does still need something like the gnulib_mk_hook whose
42213         invocation I had to remove along with slurp in commit 767ccd40.
42214         Technically, we could get along without it, but doing so would
42215         have required living with a warning and a mandatory post-bootstrap
42216         automake rerun.
42217         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
42218         (bootstrap_post_import_hook): New function.
42219         Invoke it after gnulib-tool --import and before autoreconf.
42221 2012-01-18  Jim Meyering  <meyering@redhat.com>
42223         gitlog-to-changelog: don't use "no_"-prefixed variable name
42224         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
42225         to enable both --cluster and --no-cluster.  Change variable name,
42226         s/\$no_cluster/$cluster/, and reverse usage to match.
42228         gitlog-to-changelog: use "||", not "or" in expressions
42229         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
42230         expressions.
42232 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
42234         gitlog-to-changelog: new option --no-cluster
42235         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
42236         clustering of adjacent commit messages.
42238 2012-01-17  Jim Meyering  <meyering@redhat.com>
42240         maint: spell file systems with two words, not one
42241         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
42242         two words, not one.
42244 2012-01-16  Jim Meyering  <meyering@redhat.com>
42246         bootstrap: add a FIXME comment to ensure we eventually remove the hack
42247         * build-aux/bootstrap (gnulib_tool_options): Add comment.
42249 2012-01-16  Eric Blake  <eblake@redhat.com>
42251         bootstrap: cater to autoconf 2.59
42252         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
42253         is not available.
42255         bootstrap: properly check for libtool
42256         * build-aux/bootstrap (libtoolize): Also run libtool when older
42257         usage is detected.
42259 2012-01-15  Bruno Haible  <bruno@clisp.org>
42261         Improve support for MSVC 9.
42262         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
42263         clashes on MSVC.
42264         * lib/fcntl.in.h: Likewise.
42265         * lib/stdlib.in.h: Likewise.
42266         * lib/sys_stat.in.h: Likewise.
42268 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
42270         gnupload: we hold the master copy of this script now
42271         For motivation and more information, see:
42272         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
42273         * build-aux/gnupload: Make it clear in the heading comments that the
42274         master copy of this file is maintained by gnulib.  Since we are at
42275         it, bump its copyright year and ...
42276         ($scriptversion): ... the date in its version.
42277         ($usage): Patches and bug reports should be sent to the gnulib list,
42278         not the automake one.
42279         * config/srclist.txt: Don't try to sync 'gnupload' from automake
42280         anymore.
42282 2012-01-15  Bruno Haible  <bruno@clisp.org>
42284         Fix module 'random'.
42285         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
42286         initstate, setstate are declared.
42288 2012-01-14  Bruno Haible  <bruno@clisp.org>
42290         Tests for module 'random'.
42291         * modules/random-tests: New file.
42292         * tests/test-random.c: New file, based on tests/test-random_r.c.
42294         New module 'random'.
42295         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
42296         declarations.
42297         * lib/random.c: New file, based on glibc/stdlib/random.c.
42298         * m4/random.m4: New file.
42299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
42300         HAVE_RANDOM.
42301         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
42302         * modules/random: New file.
42303         * config/srclist.txt: Add an entry for random.c.
42304         * doc/posix-functions/random.texi: Mention the 'random' module.
42305         * doc/posix-functions/initstate.texi: Likewise.
42306         * doc/posix-functions/setstate.texi: Likewise.
42307         * doc/posix-functions/srandom.texi: Likewise.
42309 2012-01-12  Bruno Haible  <bruno@clisp.org>
42311         random_r: Use common idioms.
42312         * lib/random_r.c: Include <stdlib.h> first.
42314         random_r: Override incompatible API on AIX, OSF/1.
42315         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
42316         Override the system function if REPLACE_RANDOM_R is 1.
42317         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
42318         and OSF/1, set REPLACE_RANDOM_R.
42319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
42320         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
42321         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
42322         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
42323         * doc/glibc-functions/random_r.texi: Likewise.
42324         * doc/glibc-functions/setstate_r.texi: Likewise.
42326         random_r: Support for MSVC 9.
42327         * lib/random_r.c: Include stdint.h, not inttypes.h.
42329 2012-01-12  Eric Blake  <eblake@redhat.com>
42331         inet_ntop: guard extra work by IF_LINT
42332         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
42333         better code generation when not checking for warnings.
42334         Suggested by Paul Eggert and Jim Meyering.
42336         strptime: fix regression on mingw
42337         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
42338         Fix regression.  Reported by Bruno Haible.
42340 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
42341             Bruno Haible  <bruno@clisp.org>
42343         copy-file: add error-code-returning variant.
42344         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
42345         (qcopy_file_preserving): New declaration.
42346         * lib/copy-file.c (qcopy_file_preserving): Renamed from
42347         copy_file_preserving. Change return type to 'int'. Don't emit an error
42348         message here.
42349         (copy_file_preserving): New function.
42350         * tests/test-copy-file.c: Include <stdlib.h>.
42351         (main): Test qcopy_file_preserving if the environment variable
42352         NO_STDERR_OUTPUT is set.
42353         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
42354         with NO_STDERR_OUTPUT
42355         * tests/test-copy-file-2.sh: Likewise.
42357 2012-01-10  Bruno Haible  <bruno@clisp.org>
42359         copy-file: Use 'quote' module consistently.
42360         * lib/copy-file.c (copy_file_preserving): Use quote().
42362         copy-file: Refactor.
42363         * lib/copy-file.c: Include quote.h.
42364         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
42365         message here.
42366         * modules/copy-file (Depends-on): Add quote.
42368         acl: Export qcopy_acl.
42369         * lib/acl.h (qcopy_acl): New declaration.
42370         * lib/copy-acl.c (qcopy_acl): Make non-static.
42372         acl: Rename a local variable.
42373         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
42375         acl: Align return values of copy_acl and qcopy_acl.
42376         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
42377         maybe < -1.
42379 2012-01-11  Eric Blake  <eblake@redhat.com>
42381         strptime: silence gcc warnings
42382         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
42383         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
42384         Reported by Daniel P. Berrange.
42386         inet_ntop: silence gcc warning
42387         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
42388         Reported by Daniel P. Berrange.
42390 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
42392         getloadavg test: skip the test on GNU/Linux without /proc mounted
42393         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
42394         file.  When /proc is not mounted, it always fails with ENOENT.
42395         * tests/test-getloadavg.c (main): Treat ENOENT return code from
42396         getloadavg(3) the same way as ENOSYS and ENOTSUP.
42398 2012-01-10  Bruno Haible  <bruno@clisp.org>
42400         regex: Avoid link error on MSVC 9.
42401         * modules/regex (Depends-on): Add wctype.
42403 2012-01-10  Bruno Haible  <bruno@clisp.org>
42405         doc: Mention --with-tests option.
42406         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
42407         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
42408         --with-tests.
42409         Reported by Reuben Thomas.
42411 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
42413         users.txt: order package names lexicographically.
42414         * users.txt: Order package names lexicographically.
42416 2012-01-10  Jim Meyering  <meyering@redhat.com>
42418         maint.mk: fix description in comment
42419         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
42421         ignore-value: remove deprecated ignore_ptr function
42422         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
42423         * NEWS: Note this.
42425 2012-01-09  Jim Meyering  <meyering@redhat.com>
42427         test-init.sh: avoid a subshell
42428         * tests/test-init.sh: Remove protective subshell.
42429         Suggested by Bernhard Voelker.  While a subshell is normally
42430         required to protect against older shells (Solaris, FreeBSD) that
42431         warn about a missing program before performing redirection, the
42432         shell-selection tests performed by init.sh probably exclude any
42433         offending shell.
42435 2012-01-08  Bruno Haible  <bruno@clisp.org>
42437         setlocale tests: Avoid test failure on Solaris 11.0.
42438         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
42439         variable.
42441 2012-01-08  Bruno Haible  <bruno@clisp.org>
42443         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
42444         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42445         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42446         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
42447         macro.
42448         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
42449         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42450         * lib/spawn_faction_addopen.c: Add workaround implementation if
42451         HAVE_WORKING_POSIX_SPAWN.
42452         * modules/spawn (Makefile): Substitute
42453         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42454         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
42455         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
42456         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42457         (Depends-on): Update conditions.
42458         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42459         the Solaris 11 bug.
42461 2012-01-08  Bruno Haible  <bruno@clisp.org>
42463         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
42464         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42465         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42466         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
42467         macro.
42468         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
42469         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42470         * lib/spawn_faction_adddup2.c: Add workaround implementation if
42471         HAVE_WORKING_POSIX_SPAWN.
42472         * modules/spawn (Makefile): Substitute
42473         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42474         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
42475         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
42476         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42477         (Depends-on): Update conditions.
42478         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42479         the Solaris 11 bug.
42481 2012-01-08  Bruno Haible  <bruno@clisp.org>
42483         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
42484         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42485         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42486         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
42487         HAVE_WORKING_POSIX_SPAWN.
42488         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
42489         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
42490         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42491         * lib/spawn_faction_addclose.c: Add workaround implementation if
42492         HAVE_WORKING_POSIX_SPAWN.
42493         * modules/spawn (Makefile): Substitute
42494         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42495         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
42496         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
42497         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42498         (Depends-on): Update conditions.
42499         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42500         the Solaris 11 bug.
42502 2012-01-08  Bruno Haible  <bruno@clisp.org>
42504         doc: Update for Solaris 11.0.
42505         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
42506         * m4/printf.m4: Update comments.
42508 2012-01-08  Bruno Haible  <bruno@clisp.org>
42510         mktime: Avoid compilation error on Solaris 11.
42511         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
42513 2012-01-08  Bruno Haible  <bruno@clisp.org>
42515         doc: Small fix.
42516         * doc/posix-headers/nl_types.texi: Correct platforms list.
42518 2012-01-08  Simon Josefsson  <simon@josefsson.org>
42520         Add lgpl-3.0 module.
42521         * MODULES.html.sh (Support for building documentation): Add
42522         lgpl-3.0.
42523         * modules/lgpl-3.0: New file.
42525 2012-01-08  Jim Meyering  <meyering@redhat.com>
42527         select.c: indent with spaces, not TABs
42528         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
42530 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42532         quotearg: do not use grave accent for left quote
42533         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
42534         locale_quoting_style.
42535         (quotearg_buffer_restyled): Fix example.
42536         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
42538 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42540         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
42541         Most programs do not have translation catalogs for English and much
42542         less separate catalogs for British and American English.  Drop the
42543         suggestion to translators about these two, and provide it
42544         automatically for Unicode locales.  Like most programs, even those
42545         using American English, we use single quotation marks.  This conflicts
42546         with the American typographic convention, but works better when you
42547         cite the entire error message within double quotes.  It also tries not
42548         to clash with established practice and with what non-gnulib programs
42549         will usually do.
42550         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
42551         using an UTF-8 or GB-18030 locale.  The list of other locales with
42552         quotes was provided by Bruno Haible.
42553         (quotearg_buffer_restyled): Adjust instructions to translators.
42554         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
42555         text, since this would be wrong when using Unicode.
42556         * modules/quotearg: Depend on c-strcaseeq.
42558 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42560         quotearg: fix Wikipedia link
42561         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
42563 2012-01-07  Simon Josefsson  <simon@josefsson.org>
42565         Fix for mingw with MSVC9.
42566         * m4/ld-version-script.m4: Check that compiler rejects version
42567         scripts with syntax errors.  Reported by Bruno Haible
42568         <bruno@clisp.org>.
42570 2012-01-06  Bruno Haible  <bruno@clisp.org>
42572         Talk about "native Windows API", not "Woe32".
42573         * lib/accept4.c: Update comments to mention native Windows.
42574         * lib/execute.c: Likewise.
42575         * lib/fatal-signal.c: Likewise.
42576         * lib/localcharset.c: Likewise.
42577         * lib/nanosleep.c: Likewise.
42578         * lib/nl_langinfo.c: Likewise.
42579         * lib/pclose.c: Likewise.
42580         * lib/pipe-filter-gi.c: Likewise.
42581         * lib/pipe-filter-ii.c: Likewise.
42582         * lib/pipe.c: Likewise.
42583         * lib/pipe2.c: Likewise.
42584         * lib/popen.c: Likewise.
42585         * lib/progreloc.c: Likewise.
42586         * lib/relocatable.c: Likewise.
42587         * lib/sigaction.c: Likewise.
42588         * lib/sigprocmask.c: Likewise.
42589         * lib/spawn-pipe.h: Likewise.
42590         * lib/spawn-pipe.c: Likewise.
42591         * lib/spawni.c: Likewise.
42592         * lib/stat-time.h: Likewise.
42593         * lib/w32spawn.h: Likewise.
42594         * tests/test-isatty.c: Likewise.
42595         * lib/config.charset: More comments.
42596         * doc/gnulib-intro.texi: Mention native Windows.
42597         * doc/posix-functions/_Exit_C99.texi: Likewise.
42598         * doc/posix-headers/fcntl.texi: Likewise.
42600 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
42602         argp: Avoid crash if translator uses % characters in a translation.
42603         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
42604         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
42606 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
42608         doc: C11 and C++11 are now official
42609         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
42610         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
42611         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
42612         * modules/stdalign:
42613         Replace references to draft C1X to C11, and to draft C++0X to C++11.
42615 2012-01-06  Bruno Haible  <bruno@clisp.org>
42617         uc-is-grapheme-break tests: Tweak.
42618         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
42619         message.
42621 2012-01-06  Bruno Haible  <bruno@clisp.org>
42623         test-init.sh: correct the test for diff -u
42624         * tests/test-init.sh: Also redirect stdout to /dev/null.
42626 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
42628         Use ', not `, for quoting output.
42629         * build-aux/announce-gen (usage, sizes, print_news_deltas)
42630         (print_changelog_deltas, get_tool_versions, main program):
42631         * build-aux/git-version-gen:
42632         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
42633         * build-aux/move-if-change (help):
42634         * build-aux/useless-if-before-free (usage, main program):
42635         * check-module (parse_module_file, usage)
42636         (find_included_lib_files, check_module):
42637         * lib/argmatch.c (main) [TEST]:
42638         * lib/argp-help.c (_help):
42639         * lib/getopt1.c (main) [TEST]:
42640         * lib/git-merge-changelog.c (usage):
42641         * lib/xstrtol-error.c (xstrtol_error):
42642         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
42643         * m4/argz.m4 (gl_FUNC_ARGZ):
42644         * m4/bison.m4 (gl_BISON):
42645         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
42646         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
42647         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
42648         * m4/fpending.m4 (gl_PREREQ_FPENDING):
42649         * m4/gc-random.m4 (gl_GC_RANDOM):
42650         * m4/intl.m4 (gt_CHECK_DECL):
42651         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
42652         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
42653         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
42654         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
42655         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
42656         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
42657         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
42658         * tests/test-dirname.c (main):
42659         * tests/test-getpass.c (main):
42660         * tests/test-iconvme.c (main):
42661         * tests/test-parse-datetime.c (LOG):
42662         * tests/test-xstrtoimax.sh:
42663         * tests/test-xstrtol.sh:
42664         * tests/test-xstrtoll.sh:
42665         * tests/test-xstrtoumax.sh:
42666         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
42667         * top/GNUmakefile (abort-due-to-no-makefile):
42668         Quote 'like this', not `like this', as per the recent change to
42669         the GNU coding standards.
42671 2012-01-05  Bruno Haible  <bruno@clisp.org>
42673         strtoimax: Don't force a replacement on systems where intmax_t is int.
42674         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
42675         'intmax_t' is not larger than 'int'.
42676         Reported by Pádraig Brady <P@draigBrady.com>.
42678 2012-01-05  Bruno Haible  <bruno@clisp.org>
42680         doc: Mention NetBSD bugs.
42681         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
42682         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
42684 2012-01-05  Bruno Haible  <bruno@clisp.org>
42686         strtoumax tests: Enhance tests.
42687         * tests/test-strtoumax.c (main): Add tests for large values.
42689 2012-01-05  Bruno Haible  <bruno@clisp.org>
42691         strtoimax: Work around AIX 5.1 bug.
42692         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
42693         definition.
42694         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
42695         Set HAVE_STRTOIMAX.
42696         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
42697         REPLACE_STRTOIMAX.
42698         * modules/inttypes-incomplete (Makefile.am): Substitute
42699         REPLACE_STRTOIMAX.
42700         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
42701         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
42702         (Depends-on): Update conditions.
42703         * tests/test-strtoimax.c (main): Add tests for large values.
42704         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
42706 2012-01-05  Bruno Haible  <bruno@clisp.org>
42708         inttypes: Modernize.
42709         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
42710         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
42711         (Makefile.am): Update inttypes.h rule.
42713 2012-01-05  Jim Meyering  <meyering@redhat.com>
42715         init.sh: don't waste a subshell just to redirect stderr
42716         * tests/init.sh: In testing for diff -u and diff -c, use a
42717         stderr-redirecting exec inside `...` rather than a subshell.
42719         test-init.sh: avoid failure on HP-UX 11.00
42720         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
42721         resolves to diff -c or cmp.  Reported by Bruno Haible.
42723 2012-01-05  Bruno Haible  <bruno@clisp.org>
42725         Tests for module 'strtoull'.
42726         * modules/strtoull-tests: New file.
42727         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
42729 2012-01-05  Bruno Haible  <bruno@clisp.org>
42731         Tests for module 'strtoll'.
42732         * modules/strtoll-tests: New file.
42733         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
42735 2012-01-05  Bruno Haible  <bruno@clisp.org>
42737         Tests for module 'strtoul'.
42738         * modules/strtoul-tests: New file.
42739         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
42741 2012-01-05  Bruno Haible  <bruno@clisp.org>
42743         Tests for module 'strtol'.
42744         * modules/strtol-tests: New file.
42745         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
42747 2012-01-04  Jim Meyering  <meyering@redhat.com>
42749         test-init.sh: accommodate Solaris 5.10's different diff -u output
42750         * tests/test-init.sh: Also exempt @@ lines from the comparison
42751         of diff output, since Solaris 5.10 and GNU diff formats differ.
42752         Reported by Stefano Lattarini.
42754 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
42756         test-posixtm: don't assume signed integer wraparound
42757         * tests/test-posixtm.c (main): Don't assume wraparound semantics
42758         after signed integer overflow.  Inspired by (though it may not
42759         fix) Bruno Haible's bug report in
42760         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
42762         Spell out "Windows 9x" and "Windows XP".
42763         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
42764         "Windows 9x" and "WinXP" with "Windows XP".
42766 2012-01-04  Jim Meyering  <meyering@redhat.com>
42768         test-vc-list-files-cvs.sh: remove obsolete comment
42769         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
42770         double exit.  Now that's all encapsulated via skip_ and Exit.
42772 2012-01-04  Bruno Haible  <bruno@clisp.org>
42774         Talk about "native Windows API", not "Win32".
42775         * lib/classpath.c: Update comments to mention native Windows.
42776         * lib/csharpexec.c: Likewise.
42777         * lib/dup2.c: Likewise.
42778         * lib/error.c: Likewise.
42779         * lib/fcntl.c: Likewise.
42780         * lib/filename.h: Likewise.
42781         * lib/findprog.c: Likewise.
42782         * lib/get-rusage-as.c: Likewise.
42783         * lib/get-rusage-data.c: Likewise.
42784         * lib/getpagesize.c: Likewise.
42785         * lib/javaexec.c: Likewise.
42786         * lib/msvc-inval.c: Likewise.
42787         * lib/msvc-nothrow.c: Likewise.
42788         * lib/nanosleep.c: Likewise.
42789         * lib/nonblocking.c: Likewise.
42790         * lib/printf-parse.c: Likewise.
42791         * lib/setlocale.c: Likewise.
42792         * lib/sigaction.c: Likewise.
42793         * lib/strerror_r.c: Likewise.
42794         * lib/tmpdir.c: Likewise.
42795         * lib/vasnprintf.c: Likewise.
42796         * lib/w32spawn.h: Likewise.
42797         * lib/waitpid.c: Likewise.
42798         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
42799         * m4/locale-ar.m4: Likewise.
42800         * m4/locale-fr.m4: Likewise.
42801         * m4/locale-ja.m4: Likewise.
42802         * m4/locale-tr.m4: Likewise.
42803         * m4/locale-zh.m4: Likewise.
42804         * m4/printf.m4: Likewise.
42805         * tests/test-cloexec.c: Likewise.
42806         * tests/test-copy-acl.sh: Likewise.
42807         * tests/test-copy-file.sh: Likewise.
42808         * tests/test-file-has-acl.sh: Likewise.
42809         * tests/test-set-mode-acl.sh: Likewise.
42810         * tests/test-dup-safer.c: Likewise.
42811         * tests/test-dup2.c: Likewise.
42812         * tests/test-dup3.c: Likewise.
42813         * tests/test-fcntl.c: Likewise.
42814         * tests/test-nonblocking-pipe.h: Likewise.
42815         * tests/test-nonblocking-socket.h: Likewise.
42816         * tests/test-pipe.c: Likewise.
42817         * tests/test-pipe2.c: Likewise.
42818         * tests/test-spawn-pipe-child.c: Likewise.
42819         * doc/acl-resources.txt: Likewise.
42820         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
42821         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
42822         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
42823         * lib/localcharset.c: Update comments to mention native Windows.
42824         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
42825         * lib/localename.c: Likewise.
42826         * lib/progreloc.c: Likewise.
42827         * lib/relocatable.c: Likewise.
42828         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
42829         (windows_compute_revents): Renamed from win32_compute_revents.
42830         (windows_compute_revents_socket): Renamed from
42831         win32_compute_revents_socket.
42832         * lib/select.c: Update comments to mention native Windows.
42833         (windows_poll_handle): Renamed from win32_poll_handle.
42834         * m4/threadlib.m4: Update comments to mention native Windows.
42835         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
42836         --enable-threads=windows instead of --enable-threads=win32. Set
42837         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
42838         * lib/glthread/lock.h: Update comments to mention native Windows.
42839         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
42840         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
42841         USE_WIN32_THREADS.
42842         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
42843         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
42844         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
42845         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
42846         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
42847         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
42848         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
42849         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
42850         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
42851         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
42852         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
42853         * tests/test-tls.c: Likewise.
42854         Rationale:
42855         Microsoft renamed the "Win32 API" to "Windows API", as it is available
42856         on both 32-bit and 64-bit Windows systems.
42857         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
42858         line of distinction is between "native Windows" on one side and Unix/
42859         POSIX systems on the other side. More details in
42860         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
42861         Suggested by Paul Eggert.
42863 2012-01-03  Bruno Haible  <bruno@clisp.org>
42865         isatty: Support for MSVC 9.
42866         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
42867         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
42868         (_isatty_nothrow): New function.
42869         (isatty): Use it instead of _isatty.
42870         (IsConsoleHandle): Add comment, from Paolo Bonzini.
42871         * lib/poll.c (IsConsoleHandle): Likewise.
42872         * lib/select.c (IsConsoleHandle): Likewise.
42873         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
42874         (gl_PREREQ_ISATTY): New macro.
42875         * modules/isatty (Depends-on): Add msvc-inval.
42876         (configure.ac): Invoke gl_PREREQ_ISATTY.
42878 2012-01-03  Jim Meyering  <meyering@redhat.com>
42880         maint.mk: remove temporary transition aid from over 1.5 years ago
42881         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
42882         purpose was to aid in the transition (avoiding silent malfunction)
42883         from that old name to the new _sc_search_regexp.  This shim was
42884         added by commit 219c504b.
42886         init.sh: do not try to accommodate compare arguments starting with "-"
42887         * tests/init.sh (compare_dev_null_): Do not try to accommodate
42888         compare arguments that start with "-".  Besides, we do not worry
42889         about this when invoking diff or cmp; why start now with sed?
42890         Using "--" to separate options from argument would trigger sed
42891         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
42892         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
42894 2012-01-02  Bruno Haible  <bruno@clisp.org>
42896         Enhance tests for module 'isatty'.
42897         * modules/isatty-tests (Depends-on): Add pipe-posix.
42898         * tests/test-isatty.c: Include <fcntl.h>.
42899         (DEV_NULL): New macro.
42900         (main): Test the resut of isatty() also on regular files, pipes, and
42901         /dev/null.
42903         New module 'isatty'.
42904         * lib/unistd.in.h (isatty): New declaration.
42905         * lib/isatty.c: New file, based on an idea of
42906         Bastien Roucariès <roucaries.bastien@gmail.com>.
42907         * m4/isatty.m4: New file.
42908         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
42909         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
42910         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
42911         REPLACE_ISATTY.
42912         * modules/isatty: New file.
42913         * doc/posix-functions/isatty.texi: Mention the new module.
42914         Suggested by Paolo Bonzini.
42916 2012-01-02  Bruno Haible  <bruno@clisp.org>
42918         canonicalize: Tweak 2011-12-29 commit.
42919         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
42920         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
42922 2012-01-02  Jim Meyering  <meyering@redhat.com>
42924         gitlog-to-changelog: describe input syntax in --help output
42925         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
42927         gitlog-to-changelog: fix typo in --help: show backslash before email @
42928         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
42929         in sources, but not in actual output.
42931 2011-12-30  Jim Meyering  <meyering@redhat.com>
42933         gitlog-to-changelog: don't malfunction when name contains %-directive
42934         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
42935         in a name string cause trouble.  E.g., with a user name of "%s",
42936         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
42938 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
42940         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
42941         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
42942         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
42943         the "  (tiny change)" notation that is appended to the standard
42944         ChangeLog "date  name  email" header line.
42946 2012-01-01  Jim Meyering  <meyering@redhat.com>
42948         test-framework-sh: init.sh: fix "make dist" failure
42949         When using gnulib-tool's --with-tests option and any module that
42950         depends on test-framework-sh, "make dist" would fail due to the
42951         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
42952         in the gltests directory, and not in the gllib/ directory.
42953         One way to work around that is to move the EXTRA_DIST += init.sh
42954         from the primary module to the -tests one:
42955         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
42956         * modules/test-framework-sh (Makefile.am): ...not here.
42957         Reported by Tom G. Christensen in
42958         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
42960         version-etc: update copyright year reported by --version
42961         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
42963 2011-12-31  Pádraig Brady  <P@draigBrady.com>
42965         canonicalize: only stat() if required
42966         * lib/canonicalize.c (canonicalize_filename_mode):
42967         Avoid calling l?stat() when both CAN_MISSING,
42968         and CAN_NOLINKS are set, as we neither need
42969         to resolve symlinks or test component existence.
42971 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
42973         doc: cover st_ino issues once; add OpenVMS etc.
42974         * doc/posix-functions/stat.texi (stat):
42975         * doc/posix-functions/lstat.texi (lstat):
42976         * doc/posix-functions/fstatat.texi (fstatat):
42977         * doc/posix-functions/fstat.texi (fstat):
42978         Move general 'struct stat' stuff to sys_stat.texi,
42979         leaving behind a pointer.
42980         * doc/posix-headers/sys_stat.texi (sys/stat.h):
42981         Merge duplicate info about 'struct stat' problems into here.
42982         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
42983         and suggest partial workarounds.
42985         same-inode: port to OpenVMS
42986         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
42987         three st_ino values.
42989 2011-12-30  Pádraig Brady  <P@draigBrady.com>
42991         canonicalize: fix references to stat() and lstat()
42992         * lib/canonicalize.c (canonicalize_filename_mode):
42993         Ensure references always resolve to a replacement
42994         function if required (even via a macro).
42996 2011-12-30  Jim Meyering  <meyering@redhat.com>
42998         gitlog-to-changelog: remove a little duplication
42999         * build-aux/gitlog-to-changelog (main): Grep @lines once,
43000         rather than twice.
43002 2011-12-29  Pádraig Brady  <P@draigBrady.com>
43004         canonicalize: add support for not resolving symlinks
43005         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
43006         indicate we don't want to follow symlinks.  Also
43007         provide CAN_MODE_MASK to aid setting these existing
43008         mutually exclusive values.
43009         * lib/canonicalize.c (canonicalize_filename_mode):
43010         Extract the flags from can_mode parameter, which
43011         are currently just used to select between stat()
43012         and lstat().  Also ensure that mutually exclusive
43013         values are flagged immediately as invalid.
43014         * tests/test-canonicalize.c: Verify symlinks are
43015         not followed, and that invalid flag combinations
43016         are diagnosed.
43018 2011-12-25  Jim Meyering  <meyering@redhat.com>
43020         gitlog-to-changelog: do not clump multi-paragraph entries
43021         Identical header lines (date,name,email+coauthors) are suppressed,
43022         thus putting all entries with those same characteristics under
43023         a single header.  However, when a log entry consists of two or
43024         more paragraphs, it may not be clear where it starts and ends.
43025         This change makes it so that such an entry is always separated
43026         from others by a header line, even when that header would
43027         otherwise be suppressed.
43028         * build-aux/gitlog-to-changelog: Implement the above.
43029         Inspired by a related request from Stefano Lattarini in
43030         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
43032 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43034         announce-gen: fix `cmd' typo in diagnostic
43035         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
43036         diagnostic: a missing '$' meant that the command was not output.
43038 2011-12-23  Jim Meyering  <meyering@redhat.com>
43040         test-framework-sh: distribute init.sh
43041         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
43042         Otherwise, "make -C gnulib-tests check" (at least in grep) would
43043         fail due to the lack of init.sh.
43045         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
43046         * modules/atexit-tests: Rather than listing tests/init.sh,
43047         now that there's a module for it, simply depend on that new module.
43048         * modules/closein-tests: Likewise.
43049         * modules/exclude-tests: Likewise.
43050         * modules/getcwd-tests: Likewise.
43051         * modules/perror-tests: Likewise.
43052         * modules/pread-tests: Likewise.
43053         * modules/pwrite-tests: Likewise.
43054         * modules/vc-list-files-tests: Likewise.
43055         * modules/verify-tests: Likewise.
43056         * modules/xalloc-die-tests: Likewise.
43057         * modules/xstrtoimax-tests: Likewise.
43058         * modules/xstrtol-tests: Likewise.
43059         * modules/xstrtoll-tests: Likewise.
43060         * modules/xstrtoumax-tests: Likewise.
43061         * modules/yesno-tests: Likewise.
43063 2011-12-22  Jim Meyering  <meyering@redhat.com>
43065         test-framework-sh: add minimal tests of init.sh's compare function
43066         * modules/test-framework-sh-tests: New file.
43067         * tests/test-init.sh: New file.
43069         test-framework-sh: new module
43070         * modules/test-framework-sh: New file.
43071         * MODULES.html.sh (Support for maintaining and releasing projects):
43072         List it.
43074         init.sh: do not emit simulated diff output to stderr
43075         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
43077 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43079         .gitignore: ignore gnulib.dvi and regex.info
43080         * doc/.gitignore:add gnulib.dvi and regex.info
43082 2011-12-22  Jim Meyering  <meyering@redhat.com>
43084         init.sh: correct previous change
43085         * tests/init.sh (compare): My previous change was wrong.
43086         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
43088         init.sh: avoid unwarranted test failure when using "set -e"
43089         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
43090         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
43091         a use like "compare exp out" would get evoke an unconditional failure.
43093 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
43095         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
43096         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
43097         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
43098         autoreconf that did not.
43099         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
43100         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43102 2011-12-17  Jim Meyering  <meyering@redhat.com>
43104         bootstrap: remove some now-unneeded code
43105         This script arose back when gnulib-tool was young.
43106         Since then, it has seen improvements that render much of this
43107         script unnecessary.  In particular, it can now make symlinks
43108         to the files it uses.  Also, I no longer see as much value in
43109         marking files as read-only via comments.
43110         If you relied on the symlink-creation feature of the preceding
43111         version of this script, you can get most of that functionality
43112         by adding the --symlink option to the definition of
43113         gnulib_tool_option_extras in your bootstrap.conf file.
43114         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
43115         Run autopoint and libtoolize *before* gnulib-tool.
43116         After it, run an abbreviated autoreconf, rather than a loop around
43117         all tools.
43118         (slirp, bt_mark_as_generated): Remove functions.
43120 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43122         ftoastr: fix typo
43123         * lib/ftoastr.h: Fix misspelling in comment.
43125 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
43127         * top/README-release: fix punctuation.
43129 2011-12-17  Jim Meyering  <meyering@redhat.com>
43131         bootstrap: correct the recent buildreq change
43132         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
43133         had no effect.
43134         * build-aux/bootstrap (buildreq): Bracket each search term with
43135         "*...*", so that the shell "case" statement works as intended.
43136         Add comments.
43138 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
43140         build: let bootstrap resort to wget when downloading .po files
43141         * build-aux/bootstrap (download_po_files): Fallback to wget when
43142         downloading the .po files via rsync fails.  This is necessary to
43143         bootstrap from behind a strict firewall.
43145 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43147         stdint: don't assume C++11 when compiling with g++
43148         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
43149         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
43150         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
43151         work also in C++ before C++11, as that improperly inhibits
43152         generating a substitute stdint.h for that case.
43154 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43156         alloca: protect comment from gnulib-tool
43157         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
43158         that gnulib-tool doesn't think it's a license, and munge it to
43159         say "GCC version 3".
43161 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
43163         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
43164         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
43165         $(abs_top_builddir) instead of $(top_builddir).
43167 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
43169         strftime-tests: also test nanoseconds
43170         * tests/test-strftime.c (T): Add a test of %N.
43172 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
43174         inttypes, stdint: add C++11 support
43175         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
43176         when including inttypes.h and stdint.h.  Support this change to
43177         the standard.
43178         * doc/posix-headers/inttypes.texi (inttypes.h):
43179         * doc/posix-headers/stdint.texi (stdint.h): Document this.
43180         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
43181         Define if not defined already, for the benefit of pre-C++11 hosts.
43182         Define the standard format macros (e.g., PRId8) always.
43183         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
43184         Likewise, if __cpluspus.  Define the standard constant and limit
43185         macros (e.g., INT8_C, INT8_MAX) always.
43186         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
43187         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
43188         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
43189         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
43190         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
43191         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
43192         Likewise.
43194 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43196         nonblocking tests: Fix test failure on Linux/PPC.
43197         Suggested by Prerna Saxena in
43198         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
43199         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
43200         Set to 1100000.
43202 2011-12-12  Jim Meyering  <meyering@redhat.com>
43204         argmatch: don't hard-code `' when listing valid option arguments
43205         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
43206         use the quote function to add quotes.  Use fputs rather than
43207         fprintf for the format string with no format directive.
43209 2011-12-07  Eric Blake  <eblake@redhat.com>
43211         bootstrap: detect tools required by gnulib-tool
43212         * build-aux/bootstrap (buildreq): Provide minimum implicit
43213         dependencies.
43214         * DEPENDENCIES: Mention patch as a prereq.
43216 2011-12-04  Bruno Haible  <bruno@clisp.org>
43218         sethostname: Port to Windows platforms.
43219         * lib/sethostname.c: Provide an alternate implementation for Windows
43220         platforms.
43221         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
43222         (main): Skip the test if sethostname() fails with EPERM. On Windows
43223         platforms, don't check the result of gethostname().
43225 2011-12-04  Bruno Haible  <bruno@clisp.org>
43226             Jim Meyering  <meyering@redhat.com>
43228         tests: Avoid spurious error message on platforms without mktemp program.
43229         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
43231 2011-12-04  Bruno Haible  <bruno@clisp.org>
43233         sethostname: Fix documentation.
43234         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
43235         "not fixed" section.
43237 2011-12-03  Bruno Haible  <bruno@clisp.org>
43239         gnulib-tool: Verify that the License field is present and non-empty.
43240         * gnulib-tool (func_get_license_raw): New function, extracted from
43241         func_get_license.
43242         (func_get_license): Use it. Warn if the module is not a test module and
43243         has no license.
43244         Suggested by Jim Meyering.
43246 2011-12-03  Bruno Haible  <bruno@clisp.org>
43248         sethostname tests: Fix link error on mingw.
43249         * tests/test-sethostname1.c: New file, extracted from
43250         tests/test-sethostname.c.
43251         * tests/test-sethostname2.c: New file, extracted from
43252         tests/test-sethostname.c.
43253         * tests/test-sethostname.c: Remove file.
43254         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
43255         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
43256         (Depends-on): Add gethostname.
43257         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
43258         Link the latter with $(GETHOSTNAME_LIB).
43260         sethostname tests: Fix compilation error on mingw.
43261         * tests/test-sethostname.c: Don't include <sys/types.h>.
43262         (geteuid): Use a dummy value without uid_t.
43263         * modules/sethostname-tests (Depends-on): Remove sys_types.
43265         sethostname tests: Avoid a gcc warning.
43266         * tests/test-sethostname.c (main): Remove an unused variable.
43268         Tweak last commit.
43269         * modules/sethostname-tests (Files): Sort by decreasing importance.
43270         (configure.ac): Check for geteuid.
43271         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
43272         the test when there's nothing to test. Drop an unnecessary cast.
43273         Improve an error message. Verify that the final sethostname() call
43274         succeeds.
43276 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43278         Add a test suite for the sethostname module.
43279         * modules/sethostname-tests: New file.  A test program
43280         for the sethostname module.
43281         * tests/test-sethostname.c: Likewise.
43283 2011-12-03  Bruno Haible  <bruno@clisp.org>
43285         Tweak last commit.
43286         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
43287         Fix preprocessor directives indentation. Fix typos.
43288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
43289         * modules/unistd (Makefile): Likewise.
43291 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43293         Integrate the sethostname module into unistd.
43294         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
43295         into the unistd.h header.
43296         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
43297         preprocessor directives.
43298         * modules/unistd: Setup the Makefile substitutions of the
43299         SETHOSTNAME preprocessor directives.
43301 2011-12-03  Bruno Haible  <bruno@clisp.org>
43303         Tweak last commit.
43304         * lib/sethostname.c: Don't include <string.h>.
43305         (sethostname): No need to copy the argument string to the stack. Don't
43306         call clearerr. Preserve errno when fprintf failed.
43307         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
43308         Don't invoke AC_REPLACE_FUNCS.
43309         * modules/sethostname (Link): Remove empty section.
43310         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
43311         failure problem.
43313 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43315         New module 'sethostname'.
43316         * lib/sethostname.c (sethostname): New file.  Provide sethostname
43317         for systems that lack it.
43318         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
43319         sethostname declaration and function.
43320         * modules/sethostname: New file.  Define the sethostname module.
43322 2011-12-03  Bruno Haible  <bruno@clisp.org>
43324         Tweak last commit.
43325         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
43327 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43329         Split the HOST_NAME_MAX detection into a separate m4 macro.
43330         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
43331         macro so it can be used by the pending sethostname module.
43333 2011-12-03  Bruno Haible  <bruno@clisp.org>
43335         Fix module descriptions syntax.
43336         * modules/argv-iter (License): Fix syntax.
43337         * modules/di-set (License): Likewise.
43338         * modules/ino-map (License): Likewise.
43339         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
43341 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
43343         stdalign: port to Clang 3.0
43344         Problem reported by Simon Josefsson in
43345         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
43346         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
43347         which has <stdalign.h> but which does not define alignof.
43348         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
43350 2011-12-01  Eric Blake  <eblake@redhat.com>
43352         mktempd: silence dd usage
43353         * build-aux/mktempd (rand_bytes): Silence dd.
43355 2011-11-30  Simon Josefsson  <simon@josefsson.org>
43357         manywarnings: Don't mention gcc version in docstring.
43358         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
43359         Jim Meyering <meyering@redhat.com>.
43361 2011-11-30  Jim Meyering  <meyering@redhat.com>
43363         hash: mark a few floating point constants with "f" suffix
43364         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
43365         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
43366         floating point constants with "f", since they're destined to be
43367         saved/used as "float"s.
43369 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
43371         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
43372         * tests/test-float.c (test_long_double): Correct and re-enable the
43373         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
43375 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
43377         Avoid subtracting two pointers that don't point into the same block.
43378         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
43379         only pointers into the same memory block are subtracted. We cannot
43380         assume that sizeof (ptrdiff_t) == sizeof (void *).
43382 2011-11-29  Eric Blake  <eblake@redhat.com>
43384         maint.mk: add syntax check for use of compare from init.sh
43385         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
43386         moved here from coreutils.
43388         manywarnings: drop -Wunsuffixed-float-constants
43389         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
43390         '1.0D', which is the only way to silence this warning for 'double'.
43392 2011-11-29  Jim Meyering  <meyering@redhat.com>
43394         hash: mark compute_bucket_size with the pure attribute
43395         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
43397         quotearg, propername: correct pragma guard expression
43398         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
43399         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
43401 2011-11-28  Jim Meyering  <meyering@redhat.com>
43403         propername: do not mark proper_name with the const attribute
43404         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
43405         since it examines data pointed to by its parameter.
43406         * lib/propername.c (proper_name): Instead, add a pragma to suppress
43407         the suggestion from -Wsuggest-attribute=const.
43409         propername: mark one more function as const
43410         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
43412 2011-11-27  Jim Meyering  <meyering@redhat.com>
43414         mark functions with const and pure attributes
43416         Mark functions per suggestions from gcc-4.6 when using these options:
43417         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
43418         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
43419         Follow these guidelines: when possible, apply the attribute to
43420         an extern declaration, not to its definition.  Apply it to the
43421         definition only when the definition is static.
43422         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
43423         * lib/argv-iter.h (argv_iter_n_args): Likewise.
43424         * lib/base64.h (isbase64): Likewise.
43425         * lib/basename-lgpl.c (last_component, base_len): Likewise.
43426         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
43427         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
43428         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
43429         (c_tolower, c_toupper): Likewise.
43430         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
43431         * lib/chdir-long.c (find_non_slash): Likewise.
43432         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
43433         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
43434         * lib/file-type.h (file_type): Likewise.
43435         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
43436         * lib/filevercmp.c (verrevcmp): Likewise.
43437         * lib/freadahead.h (freadahead): Likewise.
43438         * lib/fts.c (fts_maxarglen): Likewise.
43439         * lib/hash-pjw.h (hash_pjw): Likewise.
43440         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
43441         * lib/hash.c (is_prime, next_prime): Likewise.
43442         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
43443         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
43444         (hash_table_ok, hash_get_first, hash_string): Likewise.
43445         (compute_bucket_size): Likewise.
43446         * lib/i-ring.h (i_ring_empty): Likewise.
43447         * lib/isnan.c (isnanl): Likewise.
43448         * lib/math.h (isnanl, rpl_isnanl): Likewise.
43449         * lib/memcasecmp.h (memcasecmp): Likewise.
43450         * lib/memchr2.h (memchr2): Likewise.
43451         * lib/memcmp2.h (memcmp2): Likewise.
43452         * lib/parse-datetime.y (lookup_zone): Likewise.
43453         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
43454         [!WINDOWS_SOCKETS]: Likewise.
43455         * lib/strnlen1.h (strnlen1): Likewise.
43456         * lib/uniwidth.in.h (uc_width): Likewise.
43457         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
43458         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
43459         (quoting_options_from_style): Add a comment.
43460         * lib/propername.h (proper_name): Add a comment.
43462 2011-11-27  Bruno Haible  <bruno@clisp.org>
43464         Remove unused macros from !_LIBC code in glibc-borrowed files.
43465         * lib/fnmatch.c (STRCOLL): Remove macro.
43466         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
43467         * lib/glob.c (__stat, __readdir64): Remove macros.
43468         * lib/tempname.c (__open64, __xstat64): Remove macros.
43469         Suggested by Paul Eggert.
43471 2011-11-27  Bruno Haible  <bruno@clisp.org>
43473         getcwd: Fix link error on MSVC 9.
43474         * modules/getcwd (Depends-on): Add readdir, rewinddir.
43476 2011-11-27  Bruno Haible  <bruno@clisp.org>
43478         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
43479         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
43480         HAVE_OPENDIR is 0.
43481         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
43482         HAVE_CLOSEDIR is 0.
43483         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
43484         is 0.
43485         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
43487 2011-11-27  Bruno Haible  <bruno@clisp.org>
43489         getcwd: Fix bug from 2011-08-17.
43490         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
43491         platforms that need it.
43492         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
43493         code of 4 to be a failure, not a success. This ensures that
43494         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
43496 2011-11-27  Bruno Haible  <bruno@clisp.org>
43498         binary-io tests: Avoid test failure on mingw when libtool is used.
43499         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
43500         Don't verify the size of t-bin-out1.tmp here.
43501         * tests/test-binary-io.sh: Verify it here.
43502         Reported by Simon Josefsson.
43504 2011-11-26  Bruno Haible  <bruno@clisp.org>
43506         Fix conflict between two instantiations of module 'unistd'.
43507         * gnulib-tool (func_emit_autoconf_snippet): Substitute
43508         ${include_guard_prefix} also in the autoconf snippet.
43509         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
43510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
43511         GNULIB_UNISTD_H_GETOPT.
43512         * modules/getopt-posix (configure.ac): Set the
43513         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
43514         * modules/getopt-gnu (configure.ac): Likewise.
43515         * modules/unistd (Makefile.am): Change the substitution value of
43516         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
43517         Reported by Simon Josefsson.
43519 2011-11-25  Bruno Haible  <bruno@clisp.org>
43521         pagealign_alloc: Doc and comments.
43522         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
43523         module.
43524         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
43526 2011-11-25  Jim Meyering  <meyering@redhat.com>
43528         test-update-copyright.sh: avoid false-positive failure
43529         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
43530         around false positive failure on Cygwin/Windows.  The latter was
43531         matching erroneously-created files with names like
43532         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
43534 2011-11-25  Simon Josefsson  <simon@josefsson.org>
43536         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
43537         * m4/valgrind-tests.m4: Check that the parameters that will be
43538         used works, not just a subset of them.  Reported by Bruno Haible
43539         <bruno@clisp.org>.
43541 2011-11-24  Jim Meyering  <meyering@redhat.com>
43543         test-stdalign.c: comment out long double tests
43544         * tests/test-stdalign.c: Don't try to reduce alignment of long double
43545         variables.  That provokes errors like this from gcc-4.7.0 20111124:
43546         error: '_Alignas' specifiers cannot reduce alignment of \
43547         'static_longdouble_alignas'.
43549 2011-11-22  Jim Meyering  <meyering@redhat.com>
43551         init.sh: make "compare /dev/null FILE" output more readable
43552         * tests/init.sh (compare_): Document the preferred order of arguments.
43553         (emit_diff_u_header_): New function.
43554         (compare_dev_null_): Emit a simulated diff, rather than just the
43555         contents of the unexpected file.  Suggestion from Bruno Haible.
43557 2011-11-21  Jim Meyering  <meyering@redhat.com>
43558             Eric Blake  <eblake@redhat.com>
43560         init.sh: work around OSF/1 5.1's mishandling of /dev/null
43561         * tests/init.sh: Make our compare function slightly more portable.
43562         Reported by Bruno Haible in
43563         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
43565 2011-11-21  Simon Josefsson  <simon@josefsson.org>
43567         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
43568         before using it, in code that ends up in config.h.
43570 2011-11-20  Bruno Haible  <bruno@clisp.org>
43572         getcwd: Work around getcwd bug on AIX 5..7.
43573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
43574         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
43575         Use a different value for gl_cv_func_getcwd_path_max. Move the
43576         definition of HAVE_PARTLY_WORKING_GETCWD from here...
43577         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
43578         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
43579         Define HAVE_MINIMALLY_WORKING_GETCWD.
43580         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
43581         where it is not even minimally working, that is, on AIX.
43582         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
43583         m4/getcwd-path-max.m4.
43584         (main): Update exit code computation.
43585         * doc/posix-functions/getcwd.texi: Mention list of platforms where
43586         getcwd does not handle long file names.
43588 2011-11-20  Bruno Haible  <bruno@clisp.org>
43590         getcwd: Fix bug from 2009-09-10.
43591         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
43592         like "no".
43594 2011-11-20  Simon Josefsson  <simon@josefsson.org>
43596         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
43598 2011-11-20  Bruno Haible  <bruno@clisp.org>
43600         fma tests: Avoid shadowing local variables.
43601         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
43602         expected.
43604 2011-11-20  Bruno Haible  <bruno@clisp.org>
43606         copysignf tests: Fix.
43607         * tests/test-copysignf.c: Fix signature check.
43609 2011-11-20  Bruno Haible  <bruno@clisp.org>
43611         fma: Remove unused code.
43612         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
43613         unused macros.
43615 2011-11-20  Bruno Haible  <bruno@clisp.org>
43617         sethostname: Fix doc about AIX.
43618         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
43619         sethostname; it has it.
43621         sethostname: Mention more portability problems.
43622         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
43623         problem.
43624         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
43626 2011-11-19  Bruno Haible  <bruno@clisp.org>
43628         Depend on module fcntl-h when AT_FDCWD is used.
43629         * modules/utimens (Depends-on): Add fcntl-h.
43630         * modules/areadlinkat (Depends-on): Likewise.
43631         * modules/areadlinkat-with-size (Depends-on): Likewise.
43632         * modules/faccessat (Depends-on): Likewise.
43633         * modules/fchmodat (Depends-on): Likewise.
43634         * modules/fchownat (Depends-on): Likewise.
43635         * modules/getcwd (Depends-on): Likewise.
43636         * modules/mkdirat (Depends-on): Likewise.
43637         * modules/mkfifoat (Depends-on): Likewise.
43638         * modules/readlinkat (Depends-on): Likewise.
43639         * modules/symlinkat (Depends-on): Likewise.
43640         * modules/dup2-tests (Depends-on): Likewise.
43641         * modules/fdutimensat-tests (Depends-on): Likewise.
43642         * modules/futimens-tests (Depends-on): Likewise.
43644 2011-11-19  Bruno Haible  <bruno@clisp.org>
43646         euidaccess: Update a comment.
43647         * lib/euidaccess.c: Update comment about platforms with faccessat.
43649 2011-11-19  Bruno Haible  <bruno@clisp.org>
43651         openat: Fix file list.
43652         * modules/openat (Files): Remove lib/at-func.c.
43654 2011-11-19  Bruno Haible  <bruno@clisp.org>
43656         fstatat: Simplify.
43657         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
43658         gnulib should define rpl_fstatat, there is a
43659         "#define fstatat rpl_fstatat" in <sys/stat.h>.
43661 2011-11-19  Bruno Haible  <bruno@clisp.org>
43663         Ensure 'inline' can be used in tests/test-utimens-common.h.
43664         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
43665         * modules/futimens-tests (configure.ac): Likewise.
43666         * modules/utimens-tests (configure.ac): Likewise.
43667         * modules/utimensat-tests (configure.ac): Likewise.
43669 2011-11-19  Simon Josefsson  <simon@josefsson.org>
43671         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
43672         not hash_insert0.
43673         (hash_insert_if_absent): Doc fix.
43675 2011-11-19  Simon Josefsson  <simon@josefsson.org>
43677         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
43679 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
43681         test-getcwd: disambiguate exit status
43682         * tests/test-getcwd.c (test_long_name): Return 0..7.
43683         (main): Exit with an unambiguous exit status.  The old
43684         code yielded a mysterious mixture of two failure codes.
43686         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
43687         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
43688         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
43689         rpl_fstatat or fstatat.  This should fix the other problem
43690         reported by Kai Habel in
43691         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
43692         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
43693         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
43694         and I reproduced it on a Solaris 8 host we still have in production.
43696 2011-11-18  Jim Meyering  <meyering@redhat.com>
43698         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
43699         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
43700         Add a sentence to the comment.
43701         (hash_insert0): New function that simply calls hash_insert_if_absent.
43702         * lib/hash.h (hash_insert_if_absent): Declare it.
43703         (hash_insert0): Add deprecation attribute.
43704         (_GL_ATTRIBUTE_DEPRECATED): Define.
43705         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
43706         not hash_insert0.
43707         * NEWS: Mention it, even though it's not really an incompatible change.
43709 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
43711         openat: avoid compilation failure due to lack of <errno.h> inclusion
43712         * lib/openat.c: Include <errno.h>.
43714 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43716         * modules/getcwd (Depends-on): Add fdopendir.
43717         This fixes one of the two problems reported by Kai Habel in
43718         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
43720         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
43721         stdalign problem reported by Ian Beckwith in
43722         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
43723         * modules/crypto/gc-arcfour (Depends-on):
43724         Depend conditionally on crypto/arcfour.
43725         * modules/crypto/gc-arctwo (Depends-on):
43726         Depend conditionally on crypto/arctwo.
43727         * modules/crypto/gc-des (Depends-on):
43728         Depend conditionally on crypto/des.
43729         * modules/crypto/gc-hmac-md5 (Depends-on):
43730         Depend conditionally on crypto/hmac-md5.
43731         * modules/crypto/gc-hmac-sha1 (Depends-on):
43732         Depend conditionally on crypto/hmac-sha1.
43733         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
43734         * modules/crypto/gc-md4 (Depends-on):
43735         Depend conditionally on crypto/md4.
43736         * modules/crypto/gc-md5 (Depends-on):
43737         Depend conditionally on crypto/md5.
43738         * modules/crypto/gc-rijndael (Depends-on):
43739         Depend conditionally on crypto/rijndael.
43740         * modules/crypto/gc-sha1 (Depends-on):
43741         Depend conditionally on crypto/sha1.
43742         * modules/crypto/gc-arcfour:
43743         * modules/crypto/gc-arctwo:
43744         * modules/crypto/gc-des:
43745         * modules/crypto/gc-hmac-md5:
43746         * modules/crypto/gc-hmac-sha1:
43747         * modules/crypto/gc-md2:
43748         * modules/crypto/gc-md4:
43749         * modules/crypto/gc-md5:
43750         * modules/crypto/gc-rijndael:
43751         * modules/crypto/gc-sha1:
43752         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
43753         now that the conditional dependencies do the work for us.
43755 2011-11-17  Jim Meyering  <meyering@redhat.com>
43757         tests: factor st_ctime-comparison out of two headers
43758         * tests/test-utimens-common.h (ctime_compare): Define.
43759         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
43760         * tests/test-lutimens.h (test_lutimens): Likewise.
43761         * tests/test-utimens.h (test_utimens): Likewise.
43763         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
43764         Invoke the test program via an init.sh-using wrapper.
43765         * tests/test-getcwd.sh: New file.
43766         * modules/getcwd-tests (Files): Add it.
43767         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
43769 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
43771         gitlog-to-changelog: support multi-author commits.
43772         The FSF cares about keeping track of all authors of patches to its
43773         projects, but Git doesn't provide obvious support for multi-author
43774         changesets. Consensus seems to be forming around the use of extra
43775         Signed-off-by inspired lines in the log message formatted as
43776         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
43777         multi-author commits between version control systems.
43778         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
43779         log message and output in standard ChangeLog multi-author format.
43780         Reported by Peter Rosin <peda@lysator.liu.se>
43782 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
43783             Bruno Haible  <bruno@clisp.org>
43785         Fix some modules' file list.
43786         * modules/fstatat (Files): Add m4/lstat.m4.
43787         * modules/openat (Files): Likewise.
43788         * modules/unlinkat (Files): Likewise.
43790 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
43792         maint.mk: fix tight-scope.mk generation in VPATH builds.
43793         * top/maint.mk (tight-scope.mk): Make sure to prefix file
43794         reference with $(srcdir) so that the file is found correctly even
43795         when running `make syntax-check' in a VPATH build.
43797 2011-11-13  Bruno Haible  <bruno@clisp.org>
43798             Jim Meyering  <meyering@redhat.com>
43800         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
43801         * tests/init.sh (compare): Remove "No differences encountered" or
43802         synonymous output from the 'diff' program.
43804 2011-11-13  Bruno Haible  <bruno@clisp.org>
43806         Makefile: Tweak indentation.
43807         * Makefile: Use tab as first character in every line that contains rule
43808         commands.
43810 2011-11-13  Bruno Haible  <bruno@clisp.org>
43812         Syntax check for copyright statements.
43813         * check-copyright: New file.
43814         * Makefile (sc_check_copyright): New rule.
43816 2011-11-13  Simon Josefsson  <simon@josefsson.org>
43818         * build-aux/git-version-gen: Add --prefix to configure the tag
43819         match string.
43821 2011-11-13  Simon Josefsson  <simon@josefsson.org>
43823         * build-aux/git-version-gen: Add --help and --version.
43825 2011-11-12  Jim Meyering  <meyering@redhat.com>
43827         revamp the other test-exclude?.sh scripts to use init.sh, too
43828         * tests/test-exclude1.sh: Use init.sh.
43829         * tests/test-exclude2.sh: Likewise.
43830         * tests/test-exclude3.sh: Likewise.
43831         * tests/test-exclude4.sh: Likewise.
43832         * tests/test-exclude5.sh: Likewise.
43833         * tests/test-exclude6.sh: Likewise.
43834         * tests/test-exclude7.sh: Likewise.
43835         * tests/test-exclude8.sh: Likewise.
43836         * modules/exclude-tests (Files): List init.sh.
43838         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
43839         These shell scripts ignored failure of the binary test-exclude,
43840         so making the latter return 77 didn't cause them to be skipped.
43841         * tests/test-exclude5.sh: Exit with test-exclude's error status
43842         when that program fails.  Revamp to use init.sh.
43843         * tests/test-exclude2.sh: Likewise.
43845         test-exclude: fix a typo
43846         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
43848 2011-11-11  Bruno Haible  <bruno@clisp.org>
43850         obstack: Fix compilation error on MSVC 9.
43851         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
43853 2011-11-11  Jim Meyering  <meyering@redhat.com>
43855         test-exclude: skip tests rather than failing on deficient systems
43856         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
43857         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
43858         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
43859         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
43861 2011-11-10  Bruno Haible  <bruno@clisp.org>
43863         ptsname_r test: Avoid gcc warning on glibc systems.
43864         * tests/test-ptsname_r.c (null_ptr): New function.
43865         (test_errors): Use it.
43867 2011-11-10  Bruno Haible  <bruno@clisp.org>
43869         ptsname_r: Avoid compilation error on OSF/1 5.1.
43870         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
43871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
43872         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
43873         function is not declared or incompatibly declared.
43874         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
43875         * modules/ptsname_r (Depends-on, configure.ac): Update.
43876         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
43878 2011-11-10  Bruno Haible  <bruno@clisp.org>
43880         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
43881         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
43882         When cross-compiling, guess yes on all platforms except AIX.
43883         Reported by Ludovic Courtès <ludo@gnu.org>.
43885 2011-11-09  Bruno Haible  <bruno@clisp.org>
43887         ptsname_r tests: Fix bugs.
43888         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
43889         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
43891 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43893         fstatat: work with cross-compilation
43894         Problem reported by Ludovic Courtès in
43895         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
43896         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
43897         "cross-compiling" and assume the bug is present.  Replace
43898         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
43899         an inverted sense, to be more conservative about our assumptions.
43900         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
43902 2011-11-09  Bruno Haible  <bruno@clisp.org>
43904         Improve MODULES.html output.
43905         * modules/mkfifoat (Description): Use the word "function".
43906         * modules/readlinkat (Description): Likewise.
43907         * modules/symlinkat (Description): Likewise.
43909 2011-11-09  Eric Blake  <eblake@redhat.com>
43911         ptsname_r-tests: new test module
43912         * modules/ptsname_r-tests: New module.
43913         * tests/test-ptsname_r.c: New file.
43915         ptsname_r: new module
43916         * modules/ptsname_r: New module.
43917         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
43918         * lib/ptsname.c (__ptsname_r): Split...
43919         * lib/ptsname_r.c: ...into new file.
43920         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
43921         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
43922         * modules/stdlib (Makefile.am): Substitute witnesses.
43923         * lib/stdlib.in.h (ptsname_r): Declare it.
43924         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
43925         * MODULES.html.sh (Misc): Likewise.
43926         * modules/ptsname (Depends-on): Alter dependency.
43927         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
43929 2011-11-09  Jim Meyering  <meyering@redhat.com>
43931         announce-gen: be more concise when there's only one URL+tarball
43932         * build-aux/announce-gen (get_tool_versions): When you distribute
43933         only one type of tarball, combine the first two "Here are..."
43934         sections and make the key-checking grammar independent of
43935         how many tarballs there are.
43937 2011-11-09  Eric Blake  <eblake@redhat.com>
43939         openpty: provide a stub on mingw
43940         * lib/pty.in.h (includes): Provide forward declarations.
43941         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
43943         raise: fix mingw handling of SIGPIPE
43944         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
43946 2011-11-08  Bruno Haible  <bruno@clisp.org>
43948         More conditional dependencies.
43949         * modules/faccessat (Depends-on): Add conditions.
43950         * modules/fchmodat (Depends-on): Likewise.
43951         * modules/fchownat (Depends-on): Likewise.
43952         * modules/fstatat (Depends-on): Likewise.
43953         * modules/mkfifoat (Depends-on): Likewise.
43954         * modules/readlinkat (Depends-on): Likewise.
43955         * modules/symlinkat (Depends-on): Likewise.
43956         * modules/unlinkat (Depends-on): Likewise.
43957         * modules/utimensat (Depends-on): Likewise.
43958         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
43959         * modules/linkat (Depends-on): Refine the conditions.
43960         * modules/renameat (Depends-on): Likewise.
43962 2011-11-08  Bruno Haible  <bruno@clisp.org>
43964         faccessat: Move AC_LIBOBJ invocation to module description.
43965         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
43966         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
43967         invocation from here...
43968         * modules/faccessat (configure.ac): ... to here. Invoke
43969         gl_PREREQ_FACCESSAT.
43971 2011-11-08  Bruno Haible  <bruno@clisp.org>
43973         faccessat: Simplify autoconf macro.
43974         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
43975         gl_FUNC_EUIDACCESS.
43977 2011-11-08  Bruno Haible  <bruno@clisp.org>
43979         renameat: Fix dependencies.
43980         * modules/renameat (Depends-on): Add stdbool.
43982 2011-11-08  Bruno Haible  <bruno@clisp.org>
43984         mkfifoat: Fix module description.
43985         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
43986         not gl_UNISTD_MODULE_INDICATOR.
43988 2011-11-08  Bruno Haible  <bruno@clisp.org>
43990         fstatat: Remove unused dependency.
43991         * modules/fstatat (Depends-on): Remove fstat.
43993 2011-11-08  Simon Josefsson  <simon@josefsson.org>
43995         GNUmakefile: behave when Makefile is missing.
43996         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
43998 2011-11-08  Bruno Haible  <bruno@clisp.org>
44000         openat: Conditionalize dependencies.
44001         * lib/openat.c: Reduce the scope of some #includes.
44002         * modules/openat (Depends-on): Add conditions.
44004 2011-11-07  Jim Meyering  <meyering@redhat.com>
44006         maint.mk: extract GPG key ID without using a temporary file
44007         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
44008         without using a temporary file.  Based on a suggestion from Werner Koch
44009         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
44011 2011-11-07  Eric Blake  <eblake@redhat.com>
44013         grantpt: fix typo
44014         * lib/stdlib.in.h (grantpt): Check correct function.
44016         maint.mk: silence new syntax check
44017         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
44019 2011-11-06  Bruno Haible  <bruno@clisp.org>
44021         Doc about floating-point and math API.
44022         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
44023         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
44025 2011-11-06  Bruno Haible  <bruno@clisp.org>
44027         stdalign tests: Skip the test when compiled by Sun C.
44028         * tests/test-stdalign.c (main): Skip the test on Sun C.
44030 2011-11-06  Bruno Haible  <bruno@clisp.org>
44032         ansi-c++-opt: Complete the 2011-06-05 change.
44033         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
44034         does not support namespaces, set the variable to "no", not to ":".
44036 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44038         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
44040 2011-11-06  Bruno Haible  <bruno@clisp.org>
44042         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
44043         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
44044         (minus_zerol) [HP-UX]: New macro.
44045         (unary_minus) [HP-UX]: New function.
44046         (copysignl) [HP-UX]: Use unary_minus function.
44048 2011-11-06  Bruno Haible  <bruno@clisp.org>
44050         ldexp, ldexpf, ldexpl: Enhance tests.
44051         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
44052         and tests/test-ldexpl.c.
44053         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
44054         LDEXP, MIN_EXP, MAX_EXP): New macros.
44055         Include test-ldexp.h.
44056         (main): Just call test_function.
44057         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
44058         infinity.h, nan.h.
44059         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44060         MAX_EXP): New macros.
44061         Include test-ldexp.h.
44062         (x, y): Remove variables.
44063         (main): Just call test_function.
44064         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
44065         infinity.h, nan.h.
44066         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44067         MAX_EXP): New macros.
44068         Include test-ldexp.h.
44069         (x, y): Remove variables.
44070         (main): Just call test_function.
44071         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
44072         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
44073         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44074         (Depends-on): Add isnand-nolibm, signbit, float.
44075         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
44076         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44077         (Depends-on): Add isnanf-nolibm, signbit, float.
44079 2011-11-06  Bruno Haible  <bruno@clisp.org>
44081         math tests: Cosmetics.
44082         * tests/test-math-c++.cc: Reorder declarations.
44084 2011-11-05  Bruno Haible  <bruno@clisp.org>
44086         fma*: Simplify test.
44087         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
44088         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
44090         Tests for module 'fmal'.
44091         * modules/fmal-tests: New file.
44092         * tests/test-fmal1.c: New file.
44093         * tests/test-fmal2.c: New file.
44095         New module 'fmal'.
44096         * lib/math.in.h (fmal): New declaration.
44097         * lib/fmal.c: New file.
44098         * m4/fmal.m4: New file.
44099         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
44100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
44101         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
44102         REPLACE_FMAL.
44103         * modules/fmal: New file.
44104         * doc/posix-functions/fmal.texi: Mention the new module and the various
44105         bugs.
44107         Tests for module 'fmaf'.
44108         * modules/fmaf-tests: New file.
44109         * tests/test-fmaf1.c: New file.
44110         * tests/test-fmaf2.c: New file.
44112         New module 'fmaf'.
44113         * lib/math.in.h (fmaf): New declaration.
44114         * lib/fmaf.c: New file.
44115         * m4/fmaf.m4: New file.
44116         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
44117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
44118         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
44119         REPLACE_FMAF.
44120         * modules/fmaf: New file.
44121         * doc/posix-functions/fmaf.texi: Mention the new module and the various
44122         bugs.
44124         Tests for module 'fma'.
44125         * modules/fma-tests: New file.
44126         * tests/test-fma1.c: New file.
44127         * tests/test-fma1.h: New file.
44128         * tests/test-fma2.c: New file.
44129         * tests/test-fma2.h: New file.
44131         New module 'fma'.
44132         * lib/math.in.h (fma): New declaration.
44133         * lib/fma.c: New file.
44134         * m4/fma.m4: New file.
44135         * m4/fegetround.m4: New file.
44136         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
44137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
44138         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
44139         REPLACE_FMA.
44140         * modules/fma: New file.
44141         * doc/posix-functions/fma.texi: Mention the new module and the various
44142         bugs.
44144         Extend gl_MATHFUNC.
44145         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
44146         Support 'void' as argument type.
44147         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
44149 2011-11-05  Jim Meyering  <meyering@redhat.com>
44151         maint.mk: also prohibit inclusion of dirent.h without use
44152         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
44154 2011-11-05  Bruno Haible  <bruno@clisp.org>
44156         ldexpl tests: Avoid test failure on MSVC 9.
44157         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
44158         value. Needed in order to enforce the conversion from a value greater
44159         than LDBL_MAX to Infinity.
44161 2011-11-05  Bruno Haible  <bruno@clisp.org>
44163         New modules 'at-internal', 'openat-h', split off from module 'openat'.
44164         * modules/at-internal: New file, extracted from modules/openat.
44165         * modules/openat-h: New file.
44166         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
44167         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
44168         * modules/openat (Description): Add reference to POSIX function.
44169         (Files): Remove lib/openat.h, lib/openat-proc.c.
44170         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
44171         intprops, unistd.
44172         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
44173         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
44174         gl_FCNTL_MODULE_INDICATOR.
44175         (Include): Remove unistd.h, openat.h.
44176         * modules/areadlinkat (Files): Add lib/at-func.c.
44177         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44178         openat-die, openat-h, save-cwd.
44179         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
44180         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44181         openat-die, openat-h, save-cwd, unistd.
44182         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
44183         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44184         openat-h, save-cwd. Remove fcntl-h, openat.
44185         * modules/fchmodat (Files): Remove lib/openat.h.
44186         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44187         openat, stdbool, unistd.
44188         * modules/fchownat (Files): Remove lib/openat.h.
44189         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44190         openat, stdbool, sys_stat.
44191         * modules/fdopendir (Files): Remove lib/openat-priv.h,
44192         lib/openat-proc.c.
44193         (Depends-on): Add at-internal.
44194         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
44195         * modules/fstatat (Files): Remove lib/openat.h.
44196         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44197         stdbool, unistd.
44198         * modules/fts (Depends-on): Add openat-h.
44199         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
44200         openat.
44201         * modules/mkdirat (Files): Remove lib/openat.h.
44202         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44203         openat, stdbool, sys_stat.
44204         * modules/mkfifoat (Files): Add lib/at-func.c.
44205         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44206         openat-h, save-cwd. Remove fcntl-h, openat.
44207         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
44208         * modules/readlinkat (Files): Add lib/at-func.c.
44209         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44210         openat-h, save-cwd. Remove fcntl-h, openat.
44211         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
44212         openat.
44213         * modules/selinux-at (Files): Add lib/at-func.c.
44214         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44215         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
44216         * modules/symlinkat (Files): Add lib/at-func.c.
44217         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44218         openat-h, save-cwd. Remove fcntl-h, openat.
44219         * modules/unlinkat (Files): Remove lib/openat.h.
44220         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44221         stdbool.
44222         * modules/utimensat (Files): Add lib/at-func.c.
44223         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
44224         openat-die, openat-h, save-cwd.
44225         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
44226         * modules/fdutimensat-tests (Depends-on): Add openat.
44227         * modules/fstatat-tests (Depends-on): Add openat-h.
44228         * modules/readlinkat-tests (Depends-on): Add openat.
44229         * modules/symlinkat-tests (Depends-on): Add openat.
44231 2011-11-05  Bruno Haible  <bruno@clisp.org>
44233         openat: Include <stdbool.h>.
44234         * lib/openat.c: Include <stdbool.h>.
44236 2011-11-04  Bruno Haible  <bruno@clisp.org>
44238         fchownat, renameat, unlinkat: Fix dependencies.
44239         * modules/fchownat (Depends-on): Add fstatat.
44240         * modules/renameat (Depends-on): Likewise.
44241         * modules/unlinkat (Depends-on): Likewise.
44243 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
44245         openat: remove direct dependency on dirent
44246         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
44247         and hasn't been needed ever since fdopendir was split into its own
44248         module on 2009-08-31.
44249         * modules/openat (Depends-on): Remove dirent.
44251 2011-11-04  Bruno Haible  <bruno@clisp.org>
44253         renameat: Optimize code size.
44254         * modules/renameat (configure.ac): Don't compile at-func2.c if
44255         REPLACE_RENAMEAT is 1.
44257 2011-11-04  Bruno Haible  <bruno@clisp.org>
44259         openat tests: Fix file list.
44260         * modules/openat-tests (Files): Add tests/test-open.h.
44262 2011-11-04  Bruno Haible  <bruno@clisp.org>
44264         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
44265         * modules/fchmodat (Depends-on): Add openat-die.
44266         * modules/fchownat (Depends-on): Likewise.
44267         * modules/linkat (Depends-on): Likewise.
44268         * modules/renameat (Depends-on): Likewise.
44269         * modules/openat (Depends-on): Add dirent.
44271 2011-11-04  Jim Meyering  <meyering@redhat.com>
44273         at-func*.c: fix comments
44274         * lib/at-func2.c: Correct/improve first-line comment.
44275         * lib/at-func.c: Correct grammar in first-line comment.
44277 2011-11-04  Bruno Haible  <bruno@clisp.org>
44279         New module 'mkdirat', split off from module 'openat'.
44280         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
44281         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
44282         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
44283         * modules/mkdirat: New file, extracted from modules/openat.
44284         * modules/openat (Files): Remove lib/mkdirat.c.
44285         (Depends-on): Remove mkdir.
44286         (configure.ac): Remove AC_LIBOBJ of mkdirat.
44287         (Include): Remove <sys/stat.h>.
44288         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
44289         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
44290         tests/test-mkdir.h.
44291         (Depends-on): Remove ignore-value.
44292         (Makefile.am): Remove rules for test-mkdirat.
44293         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
44294         of module 'openat'.
44295         * NEWS: Mention the change.
44297 2011-11-04  Bruno Haible  <bruno@clisp.org>
44299         closedir: Avoid warning on mingw.
44300         * lib/closedir.c: Include <unistd.h>.
44302 2011-11-04  Bruno Haible  <bruno@clisp.org>
44304         New module 'fstatat', split off from module 'openat'.
44305         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
44306         defined.
44307         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
44308         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
44309         gl_FUNC_FSTATAT.
44310         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
44311         * modules/fstatat: New file, extracted from modules/openat.
44312         * modules/openat (Files): Remove lib/fstatat.c.
44313         (Depends-on): Remove lstat.
44314         (configure.ac): Remove AC_LIBOBJ of fstatat.
44315         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
44316         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
44317         tests/test-lstat.h, tests/test-stat.h.
44318         (Depends-on): Remove getcwd-lgpl.
44319         (Makefile.am): Remove rules for test-fstatat.
44320         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
44321         of module 'openat'.
44322         * NEWS: Mention the change.
44323         * modules/getcwd (Depends-on): Add fstatat.
44324         * modules/linkat (Depends-on): Likewise.
44325         * modules/mkfifoat-tests (Depends-on): Likewise.
44326         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
44328 2011-11-03  Bruno Haible  <bruno@clisp.org>
44330         New module 'unlinkat', split off from module 'openat'.
44331         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
44332         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
44333         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
44334         * modules/unlinkat: New file, extracted from modules/openat. Correct
44335         the dependency conditions.
44336         * modules/openat (Files): Remove lib/unlinkat.c.
44337         (Depends-on): Remove rmdir, unlink.
44338         (configure.ac): Remove AC_LIBOBJ of unlinkat.
44339         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
44340         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
44341         tests/test-rmdir.h, tests/test-unlink.h.
44342         (Depends-on): Remove unlinkdir.
44343         (Makefile.am): Remove rules for test-unlinkat.
44344         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
44345         of module 'openat'.
44346         * NEWS: Mention the change.
44347         * modules/linkat-tests (Depends-on): Add unlinkat.
44348         * modules/mkfifoat-tests (Depends-on): Likewise.
44349         * modules/readlinkat-tests (Depends-on): Likewise.
44351 2011-11-02  Bruno Haible  <bruno@clisp.org>
44353         New module 'fchmodat', split off from module 'openat'.
44354         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
44355         defined.
44356         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
44357         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
44358         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
44359         * modules/fchmodat: New file, extracted from modules/openat.
44360         * modules/openat (Files): Remove lib/fchmodat.c.
44361         (configure.ac): Remove AC_LIBOBJ of fchmodat.
44362         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
44363         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
44364         (Makefile.am): Remove rules for test-fchmodat.
44365         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
44366         of module 'openat'.
44367         * NEWS: Mention the change.
44369 2011-11-02  Jim Meyering  <meyering@redhat.com>
44371         putenv: indent #definition of "environ" to placate cppi
44372         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
44374         gitlog-to-changelog: provide a ChangeLog-repair mechanism
44375         Git logs are often treated as immutable, because editing them
44376         changes the SHA1 checksums of all descendants.  Thus, errors in
44377         git logs tend to stay there forever.  However, when we generate
44378         a ChangeLog file -- typically for distribution -- from that git log,
44379         we can actually make corrections in the generated file.  The key
44380         lies in recording in machine-readable/applicable form the desired
44381         corrections.  See --help for description and an example.
44382         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
44383         (usage): Describe it; alphabetize option descriptions.
44384         (main): Honor the new option, carefully.
44386 2011-11-01  Jim Meyering  <meyering@redhat.com>
44388         gitlog-to-changelog: avoid an infloop
44389         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
44390         that ends up being empty.
44392 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44394         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
44395         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
44396         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
44397         contains (possibly-quoted) backslashes.  This should avoid
44398         all-too-common shell bugs if COMPLICATED contains backslashes in
44399         the "wrong" places.  Reported by David Evans in
44400         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
44401         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
44402         because we want ASCII ranges.  Is there some reason we don't use
44403         the C locale everywhere in this script?
44404         (func_module, top level): Avoid unwanted pathname expansion when
44405         $repo_url_prefix or $repo_url_suffix_repl contain shell
44406         metacharacters like '?' and '*'.
44408 2011-11-01  Bruno Haible  <bruno@clisp.org>
44410         fchownat: Improve description.
44411         * modules/fchownat (Description): Add link to function.
44413 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44415         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
44416         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
44417         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
44418         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
44420 2011-11-01  Bruno Haible  <bruno@clisp.org>
44422         alignof: Avoid collision with stdalign module.
44423         * lib/alignof.h (alignof): Remove macro.
44424         * NEWS: Mention the change.
44425         Reported by Paul Eggert.
44427 2011-11-01  Bruno Haible  <bruno@clisp.org>
44429         New module 'fchownat', split off from module 'openat'.
44430         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
44431         defined.
44432         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
44433         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
44434         invoke gl_FUNC_FCHOWNAT.
44435         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
44436         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
44437         * modules/fchownat: New file, extracted from modules/openat.
44438         * modules/openat (Files): Remove lib/fchownat.c.
44439         (Depends-on): Remove lchown.
44440         (configure.ac): Remove AC_LIBOBJ of fchownat.
44441         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
44442         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
44443         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
44444         (Depends-on): Remove mgetgroups, usleep, stat-time.
44445         (configure.ac): Remove test for getegid.
44446         (Makefile.am): Remove rules for test-fchownat.
44447         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
44448         of module 'openat'.
44449         * NEWS: Mention the change.
44451 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44453         stdalign: port better to MSVC and to Sun C 5.11
44454         This fixes some of the problems reported by Bruno Haible in
44455         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
44456         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
44457         shortcomings of MSVC and of Sun C 5.11.
44458         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
44459         around __declspec arg.
44460         * modules/stdalign-tests (Files): Add tests/macros.h.
44461         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
44462         Include macros.h, for ASSERT.
44463         (DECLARE_ALIGNED): Remove.
44464         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
44465         to catch bug), and to 1 if not (simplifies the rest of the code).
44466         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
44467         (CHECK_AUTO): Remove.
44468         (CHECK_ALIGNED): Check only the alignment of the static vars,
44469         since auto var alignment isn't supported by Sun C 5.11.
44470         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
44471         ASSERT failures are easier to diagnose.
44473 2011-10-31  Bruno Haible  <bruno@clisp.org>
44475         doc about some IRIX 5.3 problems.
44476         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
44477         on IRIX 5.3.
44478         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
44479         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
44480         5.3.
44481         * doc/posix-functions/grantpt.texi: Likewise.
44482         * doc/posix-functions/unlockpt.texi: Likewise.
44483         * doc/posix-functions/lgamma.texi: Likewise.
44484         * doc/posix-functions/nextafter.texi: Likewise.
44485         * doc/posix-functions/remainder.texi: Likewise.
44486         * doc/posix-functions/select.texi: Mention misplaced declaration on
44487         IRIX 5.3.
44488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44490 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
44492         gitlog-to-changelog: fix git-log invocation.
44493         git-log mishandles date strings before 1970-01-01 UTC, and there is
44494         no use to specify --since=1970-01-01 by default anyway.
44495         * build-aux/gitlog-to-changelog: By default, when no --since option
44496         was given, do not specify explicit --since option to git-log.
44498 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
44500         gitlog-to-changelog: new option --append-dot.
44501         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
44502         first non-blank line of each commit message terminated with a dot.
44504 2011-10-30  Bruno Haible  <bruno@clisp.org>
44506         ffsl, ffsll: Avoid compilation error due to 'restrict'.
44507         * lib/ffsl.h: Include <config.h>.
44508         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
44510 2011-10-30  Jim Meyering  <meyering@redhat.com>
44512         GNUmakefile: reenable "make syntax-check" for most projects
44513         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
44514         build-aux variable", "syntax-check" would do nothing but succeed with
44515         the "No version control files detected..." diagnostic (unless you
44516         happened to override _build-aux via cfg.mk).
44517         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
44518         to precede inclusion of maint.mk.  Otherwise, these variables would
44519         be used undefined in any project that does not override the default.
44521 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
44523         gitlog-to-changelog: treat a message with only blank lines as empty.
44524         * build-aux/gitlog-to-changelog: Move the code that removes leading and
44525         trailing blank lines before the code that issues a warning about an
44526         empty commit message.
44528 2011-10-30  Jim Meyering  <meyering@redhat.com>
44530         test-parse-datetime.c: avoid new DST-related false positive test failure
44531         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
44532         based on the time/date we'll convert, not the current time.
44533         Otherwise, the moment we cross a DST boundary like today's in
44534         Europe, (CEST to CET), that offset ends up being one hour off.
44536 2011-10-27  Bruno Haible  <bruno@clisp.org>
44538         fstat: Tweak documentation.
44539         * modules/fstat (Description): More precise description.
44541 2011-10-27  Bruno Haible  <bruno@clisp.org>
44543         Update documentation regarding 'largefile' module.
44544         * doc/posix-functions/fstat.texi: Tweak wording.
44545         * doc/posix-functions/opendir.texi: Mention that the module fixes the
44546         problems with huge directories and/or small ino_t types.
44547         * doc/posix-functions/readdir.texi: Likewise.
44548         * doc/posix-functions/rewinddir.texi: Likewise.
44550 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
44552         maint.mk: don't maintain a second build-aux variable.
44553         * maint.mk (build_aux): Removed.  The maintainer-makefile module
44554         depends on GNUmakefile, which already maintains a cfg.mk
44555         overridable $(_build-aux) for projects with a non-standard
44556         build-aux directory location, although without the $(srcdir)
44557         prefix.  Use that variable consistently instead of introducing a
44558         second one.  Adjust all call sites.
44560 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44562         Add stdalign module and use it in other modules.
44563         This is based on a previous proposal by Bruno Haible
44564         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
44566         stdalign: new module
44567         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
44568         * modules/stdalign: New files.
44569         * MODULES.html.sh (c1x_core_properties): Add stdalign.
44570         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
44572         stdalign-tests: new module
44573         * modules/stdalign-tests, tests/test-stdalign.c: New files.
44575         argp: use stdalign
44576         * lib/argp-parse.c: Include <stdalign.h>.
44577         (alignof): Remove.
44578         * modules/argp (Depends-on): Add stdalign.
44580         crypto libraries: use stdalign
44581         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
44582         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
44583         Do not include <stdlib.h> twice, in md4.c.
44584         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
44585         because we are accessing a pointer's bit-pattern, not a size.
44586         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
44587         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
44588         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
44589         * modules/crypto/sha512: Likewise.
44591         sys_socket: use stdalign, not alignof
44592         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
44593         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
44595 2011-10-27  Bruno Haible  <bruno@clisp.org>
44597         raise test: Avoid a test failure on Linux/MIPS.
44598         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
44599         because 99 is a valid signal on Linux/MIPS.
44601 2011-10-27  Bruno Haible  <bruno@clisp.org>
44603         nonblocking tests: Fix test failure on Linux/MIPS.
44604         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
44605         Set to 270000.
44607 2011-10-27  Bruno Haible  <bruno@clisp.org>
44609         utimensat: Work around problem on Linux/hppa.
44610         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
44611         values.
44612         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
44614 2011-10-25  Jim Meyering  <meyering@redhat.com>
44616         maint.mk: fix a bug in sc_prohibit_stddef_without_use
44617         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
44618         after symbols like NULL, size_t, etc.
44619         Reported by Alfred M. Szmidt.
44621         maint.mk: exempt ENODATA from a syntax-check rule
44622         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
44623         from the sc_prohibit_always-defined_macros syntax-check rule.
44624         Add a comment.  See this for more details:
44625         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
44627 2011-10-23  Jim Meyering  <meyering@redhat.com>
44629         fts: close parent dir FD before returning from post-traversal fts_read
44630         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
44631         unlink A, even though an FD open on A remained.  This is suboptimal
44632         (holding a file descriptor open longer than needed), but otherwise not
44633         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
44634         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
44635         that represents a real problem: it causes the removal of A to fail
44636         with e.g., "rm: cannot remove `A': Device or resource busy"
44638         fts visits each directory twice and keeps a cache (fts_fd_ring) of
44639         directory file descriptors.  After completing the final, FTS_DP,
44640         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
44641         cache, but then proceeded to add a new FD to it via the subsequent
44642         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
44643         final file descriptor would be closed only via fts_close's call to
44644         fd_ring_clear.  Now, it is usually closed earlier, via the final
44645         FTS_DP-returning fts_read call.
44646         * lib/fts.c (restore_initial_cwd): New function, converted from
44647         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
44648         Update callers.
44649         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
44650         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
44652 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
44653             Bruno Haible  <bruno@clisp.org>
44654             Jim Meyering  <jim@meyering.net>
44656         readme-release: improve safety of release prep instructions.
44657         * README-release: Don't git pull all branches when only master
44658         is needed for the release process.
44659         Run make maintainer-clean before changing trees and merging.
44660         Don't try to run ./configure right after git pull in case files
44661         that influence the bootstrap process have changed, move the
44662         ./configure step to after running ./bootstrap.
44663         Don't bootstrap "one last time"... it's the first time!
44665 2011-10-22  Bruno Haible  <bruno@clisp.org>
44667         errno, strerror-override: Support for MSVC 10.
44668         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
44669         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
44670         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
44671         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
44672         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
44673         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
44674         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
44675         Assign values compatible with MSVC 10.
44676         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
44677         New macros.
44678         (GNULIB_defined_EWINSOCK): New macro.
44679         * lib/strerror-override.c (strerror_override): Update accordingly.
44680         * lib/strerror-override.h: Likewise.
44681         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
44682         longer equal to the corresponding errno value.
44683         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
44685 2011-10-22  Bruno Haible  <bruno@clisp.org>
44687         perror: Recognize when test program crashes.
44688         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
44689         strerror, set gl_cv_func_perror_works to no.
44690         Reported by Daniel Richard G. <skunk@iskunk.org>.
44692         perror: Fix indentation.
44693         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
44695 2011-10-22  Bruno Haible  <bruno@clisp.org>
44697         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
44698         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
44699         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
44700         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
44701         functions, not as a macro.
44702         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
44703         macros.
44704         (isfinite, isinf, isnan, signbit): Check overloaded functions and
44705         absence of macro.
44706         Suggested by Eric Blake.
44707         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
44709 2011-10-21  Bruno Haible  <bruno@clisp.org>
44711         relocatable-prog-wrapper: Don't leave object files behind.
44712         * build-aux/install-reloc: Re-synchronize list of .o files to be
44713         removed with list of compilation units.
44715 2011-10-20  Bruno Haible  <bruno@clisp.org>
44717         openpty, posix_openpt: Remove code duplication.
44718         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
44719         * lib/openpty.c: Include <stdlib.h>.
44720         (openpty): Use posix_openpt on all platforms except IRIX.
44721         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
44723 2011-10-20  Bruno Haible  <bruno@clisp.org>
44725         unlockpt: Detect invalid argument.
44726         * lib/unlockpt.c: Include <fcntl.h>.
44727         (unlockpt): Check whether fd is valid, using fcntl().
44728         * modules/unlockpt (Depends-on): Add fcntl-h.
44730 2011-10-20  Bruno Haible  <bruno@clisp.org>
44732         openpty: Avoid compilation error on AIX 6.1.
44733         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
44735 2011-10-20  Bruno Haible  <bruno@clisp.org>
44737         posix_openpt: Support for OpenBSD.
44738         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
44739         (posix_openpt) [OpenBSD]: New code.
44740         * lib/grantpt.c: Include <fcntl.h>.
44741         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
44742         * modules/grantpt (Depends-on): Add fcntl-h.
44744 2011-10-20  Bruno Haible  <bruno@clisp.org>
44746         posix_openpt test: Coding style.
44747         * tests/test-posix_openpt.c: Use GNU coding style.
44749 2011-10-20  Bruno Haible  <bruno@clisp.org>
44751         grantpt: Support --avoid=pt_chown.
44752         * modules/grantpt (Files): Add lib/pty-private.h.
44754 2011-10-20  Bruno Haible  <bruno@clisp.org>
44756         posix_openpt: Fix autoconf macro.
44757         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
44758         unneeded check for _getpty.
44760 2011-10-20  Bruno Haible  <bruno@clisp.org>
44762         openpty: Update comments.
44763         * lib/openpty.c: Add comments about Minix.
44765 2011-10-19  Eric Blake  <eblake@redhat.com>
44767         openpty: relax license
44768         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
44770         pt_chown: use configmake to simplify build
44771         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
44773         ptsname and others: relax license
44774         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
44775         * modules/unlockpt (License): Likewise.
44776         * modules/pt_chown (License): Likewise.
44777         * modules/ptsname (License): Likewise.
44778         * modules/ttyname_r (License): Likewise.
44780 2011-10-19  Jim Meyering  <meyering@redhat.com>
44782         posix_openpt: remove spurious #endif
44783         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
44785 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
44787         maint.mk: Respect $(build_aux) in web-manual rule.
44788         * top/maint.mk (web-manual): Find gen-announce script in user's
44789         $(build_aux) directory instead of hard-coding 'build-aux'.
44791 2011-10-19  Bruno Haible  <bruno@clisp.org>
44793         posix_openpt: Fix compilation error.
44794         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
44795         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
44796         Mention the openpty module as an alternative.
44798 2011-10-19  Bruno Haible  <bruno@clisp.org>
44800         Support for old NeXTstep 3.3 frexp().
44801         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
44802         execution time of the test to 5 seconds.
44803         Reported by Daniel Richard G. <skunk@iskunk.org>.
44805 2011-10-19  Bruno Haible  <bruno@clisp.org>
44807         Support for old NeXTstep 3.3 sed.
44808         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
44809         part, use /.../, not \|...|. Escape periods in the header file name.
44810         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
44811         Reported by Daniel Richard G. <skunk@iskunk.org>.
44813 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
44815         Support for old NeXTstep 3.3 gcc.
44816         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
44817         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
44818         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
44819         * lib/spawn.in.h (_Restrict_arr_): Likewise.
44820         * lib/regex.h (_Restrict_arr_): Likewise.
44821         * lib/regex_internal.h (re_token_t): Likewise.
44822         * lib/regexec.c (check_node_accept_bytes): Likewise.
44823         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
44825 2011-10-18  Eric Blake  <eblake@redhat.com>
44827         posix_openpt: new module
44828         * modules/posix_openpt: New module.
44829         * m4/posix_openpt.m4: New file.
44830         * lib/posix_openpt.c: Likewise.
44831         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44832         (gl_STDLIB_H_DEFAULTS): Set defaults.
44833         * modules/stdlib (Makefile.am): Substitute macros.
44834         * lib/stdlib.in.h (posix_openpt): Declare.
44835         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
44836         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
44837         * modules/posix_openpt-tests: New test module.
44838         * tests/test-posix_openpt.c: New test.
44840 2011-10-15  Bruno Haible  <bruno@clisp.org>
44842         xstrtoll: Fix compilation failure.
44843         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
44844         from lib/strtol.c.
44845         * doc/posix-headers/limits.texi: Mention missing numerical limits on
44846         some platforms.
44847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44849 2011-10-15  Bruno Haible  <bruno@clisp.org>
44851         vasnprintf: Optimize bit search operation.
44852         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
44853         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
44854         gl_DOUBLE_EXPONENT_LOCATION.
44855         * modules/vasnprintf (Files): Add m4/exponentd.m4.
44856         * modules/unistdio/u8-vasnprintf (Files): Likewise.
44857         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
44858         * modules/unistdio/u16-vasnprintf (Files): Likewise.
44859         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
44860         * modules/unistdio/u32-vasnprintf (Files): Likewise.
44861         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
44862         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
44863         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
44865 2011-10-15  Bruno Haible  <bruno@clisp.org>
44867         vasnprintf: Fix comments.
44868         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
44870 2011-10-14  Bruno Haible  <bruno@clisp.org>
44872         Tests for module 'integer_length_ll'.
44873         * modules/integer_length_ll-tests: New file.
44874         * tests/test-integer_length_ll.c: New file.
44876         New module 'integer_length_ll'.
44877         * lib/integer_length_ll.c: New file.
44878         * modules/integer_length_ll: New file.
44880 2011-10-14  Bruno Haible  <bruno@clisp.org>
44882         Tests for module 'integer_length_l'.
44883         * modules/integer_length_l-tests: New file.
44884         * tests/test-integer_length_l.c: New file.
44886         New module 'integer_length_l'.
44887         * lib/integer_length_l.c: New file.
44888         * modules/integer_length_l: New file.
44890 2011-10-14  Bruno Haible  <bruno@clisp.org>
44892         Tests for module 'integer_length'.
44893         * modules/integer_length-tests: New file.
44894         * tests/test-integer_length.c: New file.
44896         New module 'integer_length'.
44897         * lib/integer_length.h: New file.
44898         * lib/integer_length.c: New file.
44899         * modules/integer_length: New file.
44901 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
44903         popen: Fix dependency conditions.
44904         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
44906 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
44908         perror: Fix autoconf test.
44909         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
44910         <stdlib.h> and <string.h>.
44912 2011-10-14  Bruno Haible  <bruno@clisp.org>
44914         ffsl: Optimize on 64-bit platforms.
44915         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
44916         unrolling.
44918 2011-10-13  Bruno Haible  <bruno@clisp.org>
44920         ffsl: Optimize on 32-bit platforms.
44921         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
44922         use ffs() without a loop.
44924         ffsl, ffsll: Optimize for GCC.
44925         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
44926         * lib/ffsl.c (GCC_BUILTIN): New macro.
44927         * lib/ffsll.c (GCC_BUILTIN): Likewise.
44929 2011-10-13  Bruno Haible  <bruno@clisp.org>
44931         ffs, bcopy, memset: Support symbol renaming via config.h.
44932         * lib/ffs.c: Include <config.h>.
44933         * lib/bcopy.c: Likewise.
44934         * lib/memset.c: Likewise.
44936 2011-10-10  Bruno Haible  <bruno@clisp.org>
44938         atanl: Simplify for platforms where 'long double' == 'double'.
44939         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44940         alternative implementation.
44941         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44942         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44943         * modules/atanl (Depends-on): Add atan. Update conditions.
44945 2011-10-10  Bruno Haible  <bruno@clisp.org>
44947         acosl: Simplify for platforms where 'long double' == 'double'.
44948         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44949         alternative implementation.
44950         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44951         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44952         * modules/acosl (Depends-on): Add acos. Update conditions.
44954 2011-10-10  Bruno Haible  <bruno@clisp.org>
44956         asinl: Simplify for platforms where 'long double' == 'double'.
44957         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44958         alternative implementation.
44959         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44960         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44961         * modules/asinl (Depends-on): Add asin. Update conditions.
44963 2011-10-10  Bruno Haible  <bruno@clisp.org>
44965         tanl: Simplify for platforms where 'long double' == 'double'.
44966         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
44967         implementation.
44968         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44969         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44970         * modules/tanl (Depends-on): Add tan. Update conditions.
44971         (configure.ac): Don't compile trigl.c if
44972         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44974 2011-10-10  Bruno Haible  <bruno@clisp.org>
44976         cosl: Simplify for platforms where 'long double' == 'double'.
44977         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
44978         implementation.
44979         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44980         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44981         * modules/cosl (Depends-on): Add cos. Update conditions.
44982         (configure.ac): Don't compile sincosl.c and trigl.c if
44983         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44985 2011-10-10  Bruno Haible  <bruno@clisp.org>
44987         sinl: Simplify for platforms where 'long double' == 'double'.
44988         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
44989         implementation.
44990         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44991         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44992         * modules/sinl (Depends-on): Add sin. Update conditions.
44993         (configure.ac): Don't compile sincosl.c and trigl.c if
44994         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
44996 2011-10-10  Bruno Haible  <bruno@clisp.org>
44998         logl: Simplify for platforms where 'long double' == 'double'.
44999         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45000         implementation.
45001         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45002         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45003         * modules/logl (Depends-on): Add log. Update conditions.
45005 2011-10-10  Bruno Haible  <bruno@clisp.org>
45007         expl: Simplify for platforms where 'long double' == 'double'.
45008         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45009         implementation.
45010         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45011         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45012         * modules/expl (Depends-on): Add exp. Update conditions.
45014 2011-10-10  Bruno Haible  <bruno@clisp.org>
45016         sqrtl: Simplify for platforms where 'long double' == 'double'.
45017         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45018         alternative implementation.
45019         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45020         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45021         * modules/sqrtl (Depends-on): Update conditions.
45023 2011-10-10  Bruno Haible  <bruno@clisp.org>
45025         ldexpl: Simplify for platforms where 'long double' == 'double'.
45026         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45027         alternative implementation.
45028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45029         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45030         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
45032 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
45034         ffsll: set correct witness
45035         * modules/ffsll (configure.ac): Fix typo.
45037 2011-10-10  Bruno Haible  <bruno@clisp.org>
45039         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
45040         * lib/printf-frexpl.c: Include <config.h>.
45041         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45042         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
45043         second time.
45044         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
45045         gl_LONG_DOUBLE_VS_DOUBLE.
45046         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
45047         conditions.
45049 2011-10-10  Bruno Haible  <bruno@clisp.org>
45051         frexpl: Simplify for platforms where 'long double' == 'double'.
45052         * lib/frexpl.c: Include <config.h>.
45053         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45054         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45055         time.
45056         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45057         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45058         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
45059         * modules/frexpl (Depends-on): Add frexp. Update conditions.
45060         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
45061         conditions.
45063 2011-10-10  Jim Meyering  <meyering@redhat.com>
45065         test-renameat: don't leave behind a temporary file
45066         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
45067           ERROR: files left in build directory after distclean:
45068           ./gltests/test-renameat.too
45069           make[1]: *** [distcleancheck] Error 1
45070         Reported by Tom G. Christensen.
45072 2011-10-09  Bruno Haible  <bruno@clisp.org>
45074         rint: Determine RINT_LIBM correctly on AIX 7.
45075         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
45076         directly, not only through a function pointer. Also accept an optional
45077         4th argument with extra code.
45078         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
45079         rintf() call by gcc when optimizing.
45081         mathfunc.m4: Refactor.
45082         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
45083         m4 variable.
45085 2011-10-09  Bruno Haible  <bruno@clisp.org>
45087         rintl: Simplify for platforms where 'long double' == 'double'.
45088         * lib/rintl.c: Include <config.h>.
45089         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45090         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45091         time.
45092         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45093         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45094         * modules/rintl (Depends-on): Add rint. Update conditions.
45096 2011-10-09  Bruno Haible  <bruno@clisp.org>
45098         roundl: Simplify for platforms where 'long double' == 'double'.
45099         * lib/roundl.c: Include <config.h>.
45100         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45101         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45102         time.
45103         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45104         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45105         * modules/roundl (Depends-on): Add round. Update conditions.
45107 2011-10-09  Bruno Haible  <bruno@clisp.org>
45109         truncl: Simplify for platforms where 'long double' == 'double'.
45110         * lib/truncl.c: Include <config.h>.
45111         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45112         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45113         time.
45114         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45115         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45116         * modules/truncl (Depends-on): Add trunc. Update conditions.
45118 2011-10-09  Bruno Haible  <bruno@clisp.org>
45120         ceill: Simplify for platforms where 'long double' == 'double'.
45121         * lib/ceill.c: Include <config.h>.
45122         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45123         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45124         time.
45125         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45126         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45127         * modules/ceill (Depends-on): Add ceil. Update conditions.
45129 2011-10-09  Bruno Haible  <bruno@clisp.org>
45131         floorl: Simplify for platforms where 'long double' == 'double'.
45132         * lib/floorl.c: Include <config.h>.
45133         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45134         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45135         time.
45136         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45137         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45138         * modules/floorl (Depends-on): Add floor. Update conditions.
45140 2011-10-09  Bruno Haible  <bruno@clisp.org>
45142         rint: Fix ordering constraints.
45143         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
45144         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
45145         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
45147 2011-10-09  Bruno Haible  <bruno@clisp.org>
45149         copysignl: Simplify for platforms where 'long double' == 'double'.
45150         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45151         alternative.
45152         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45153         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45154         * modules/copysignl (Depends-on): Add copysign. Update conditions.
45156 2011-10-09  Bruno Haible  <bruno@clisp.org>
45158         Tests for module 'rintl'.
45159         * modules/rintl-tests: New file.
45160         * tests/test-rintl.c: New file.
45162         New module 'rintl'.
45163         * lib/math.in.h (rintl): New declaration.
45164         * lib/rintl.c: New file.
45165         * m4/rintl.m4: New file.
45166         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
45167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
45168         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
45169         * modules/rintl: New file.
45170         * tests/test-math-c++.cc: Check the declaration of rintl.
45171         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45172         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
45173         * doc/posix-functions/rintl.texi: Mention the new module.
45175 2011-10-09  Bruno Haible  <bruno@clisp.org>
45177         Tests for module 'rintf'.
45178         * modules/rintf-tests: New file.
45179         * tests/test-rintf.c: New file.
45181         New module 'rintf'.
45182         * lib/math.in.h (rintf): New declaration.
45183         * lib/rintf.c: New file.
45184         * m4/rintf.m4: New file.
45185         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
45186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
45187         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
45188         * modules/rintf: New file.
45189         * tests/test-math-c++.cc: Check the declaration of rintf.
45190         * doc/posix-functions/rintf.texi: Mention the new module.
45192 2011-10-09  Bruno Haible  <bruno@clisp.org>
45194         rint: Support for MSVC.
45195         * lib/math.in.h (rint): New declaration.
45196         * lib/rint.c: New file.
45197         * m4/rint.m4: New file.
45198         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
45199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
45200         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
45201         * modules/rint (Description): Fix.
45202         (Files): Add lib/rint.c, m4/rint.m4.
45203         (Depends-on): Add math.
45204         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
45205         gl_MATH_MODULE_INDICATOR.
45206         * tests/test-math-c++.cc: Check the declaration of rint.
45207         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45208         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
45209         * doc/posix-functions/rint.texi: Mention the replacement provided by
45210         the module.
45212         rint tests: More tests.
45213         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
45214         minus-zero.h, infinity.h, nan.h.
45215         (main): Skip the test if the current rounding mode is not standard. Add
45216         tests for negative numbers, minus zero, infinity, NaN.
45217         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
45218         tests/nan.h.
45219         (Depends-on): Add isnand-nolibm.
45221 2011-10-09  Bruno Haible  <bruno@clisp.org>
45223         Tests for module 'copysignl'.
45224         * modules/copysignl-tests: New file.
45225         * tests/test-copysignl.c: New file.
45227         New module 'copysignl'.
45228         * lib/math.in.h (copysignl): New declaration.
45229         * lib/copysignl.c: New file.
45230         * m4/copysignl.m4: New file.
45231         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
45232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
45233         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
45234         HAVE_COPYSIGNL.
45235         * modules/copysignl: New file.
45236         * tests/test-math-c++.cc: Check the declaration of copysignl.
45237         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45238         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
45239         * doc/posix-functions/copysignl.texi: Mention the new module.
45241 2011-10-09  Bruno Haible  <bruno@clisp.org>
45243         Tests for module 'copysignf'.
45244         * modules/copysignf-tests: New file.
45245         * tests/test-copysignf.c: New file.
45247         New module 'copysignf'.
45248         * lib/math.in.h (copysignf): New declaration.
45249         * lib/copysignf.c: New file.
45250         * m4/copysignf.m4: New file.
45251         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
45252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
45253         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
45254         HAVE_COPYSIGNF.
45255         * modules/copysignf: New file.
45256         * tests/test-math-c++.cc: Check the declaration of copysignf.
45257         * doc/posix-functions/copysignf.texi: Mention the new module.
45259 2011-10-09  Bruno Haible  <bruno@clisp.org>
45261         Ensure that HAVE_* variables are set to 1 before they are set to 0.
45262         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
45263         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
45264         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45265         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
45266         gl_SIGNAL_H_DEFAULTS.
45268 2011-10-09  Bruno Haible  <bruno@clisp.org>
45270         poll: Make macro safer.
45271         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
45272         ac_cv_header_poll_h is not set.
45274 2011-10-09  Bruno Haible  <bruno@clisp.org>
45276         copysign: Provide replacement.
45277         * lib/math.in.h (copysign): New declaration.
45278         * lib/copysign.c: New file.
45279         * m4/copysign.m4: New file.
45280         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
45281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
45282         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
45283         HAVE_COPYSIGN.
45284         * modules/copysign (Description): Clarify.
45285         (Files): Add lib/copysign.c, m4/copysign.m4.
45286         (Depends-on): Add math, signbit.
45287         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
45288         gl_MATH_MODULE_INDICATOR.
45289         * tests/test-math-c++.cc: Check the declaration of copysign.
45290         * doc/posix-functions/copysign.texi: Mention the effects of the module
45291         on Minix and MSVC.
45293 2011-10-09  Bruno Haible  <bruno@clisp.org>
45295         isinf: Ensure macro on AIX 5.1.
45296         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
45297         macro.
45298         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
45300 2011-10-09  Bruno Haible  <bruno@clisp.org>
45302         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
45303         * modules/snprintf-posix-tests (configure.ac): Require
45304         gl_LONG_DOUBLE_VS_DOUBLE.
45305         * modules/sprintf-posix-tests (configure.ac): Likewise.
45306         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
45307         * modules/vasprintf-posix-tests (configure.ac): Likewise.
45308         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
45309         * modules/vsprintf-posix-tests (configure.ac): Likewise.
45310         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
45311         tests on platforms where 'long double' is the same as 'double'.
45312         * tests/test-sprintf-posix.h (test_function): Likewise.
45313         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45314         * tests/test-vasprintf-posix.c (test_function): Likewise.
45316         *printf: Fix for platforms where 'long double' == 'double'.
45317         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
45318         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
45319         * modules/dprintf-posix (Files): Add m4/math_h.m4.
45320         * modules/fprintf-posix (Files): Likewise.
45321         * modules/obstack-printf-posix (Files): Likewise.
45322         * modules/snprintf-posix (Files): Likewise.
45323         * modules/sprintf-posix (Files): Likewise.
45324         * modules/vasnprintf (Files): Likewise.
45325         * modules/vasnprintf-posix (Files): Likewise.
45326         * modules/vasprintf-posix (Files): Likewise.
45327         * modules/vdprintf-posix (Files): Likewise.
45328         * modules/vfprintf-posix (Files): Likewise.
45329         * modules/vsnprintf-posix (Files): Likewise.
45330         * modules/vsprintf-posix (Files): Likewise.
45331         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45332         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45333         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45334         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45335         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45336         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45337         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45339         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
45340         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
45341         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45342         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
45343         'long double'.
45344         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
45346         isinf: Fix for platforms where 'long double' == 'double'.
45347         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
45348         Don't blindly assume 80-bit 'long double'.
45350         isfinite: Fix for platforms where 'long double' == 'double'.
45351         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
45352         Don't blindly assume 80-bit 'long double'.
45354         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
45355         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
45356         * modules/isfinite-tests (configure.ac): Require
45357         gl_LONG_DOUBLE_VS_DOUBLE.
45358         * modules/isinf-tests (configure.ac): Likewise.
45359         * modules/isnan-tests (configure.ac): Likewise.
45360         * modules/isnanl-tests (configure.ac): Likewise.
45361         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
45362         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
45363         tests on platforms where 'long double' is the same as 'double'.
45364         * tests/test-isinf.c (test_isinfl): Likewise.
45365         * tests/test-isnan.c (test_long_double): Likewise.
45366         * tests/test-isnanl.h (main): Likewise.
45368 2011-10-08  Bruno Haible  <bruno@clisp.org>
45370         Tests for module 'tanhf'.
45371         * modules/tanhf-tests: New file.
45372         * tests/test-tanhf.c: New file.
45374         New module 'tanhf'.
45375         * lib/math.in.h (tanhf): New declaration.
45376         * lib/tanhf.c: New file.
45377         * m4/tanhf.m4: New file.
45378         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
45379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
45380         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
45381         * modules/tanhf: New file.
45382         * tests/test-math-c++.cc: Check the declaration of tanhf.
45383         * doc/posix-functions/tanhf.texi: Mention the new module.
45385         tanh: Use a .m4 file.
45386         * m4/tanh.m4: New file.
45387         * modules/tanh (Files): Add it.
45388         (configure.ac): Just invoke gl_FUNC_TANH.
45390 2011-10-08  Bruno Haible  <bruno@clisp.org>
45392         Tests for module 'coshf'.
45393         * modules/coshf-tests: New file.
45394         * tests/test-coshf.c: New file.
45396         New module 'coshf'.
45397         * lib/math.in.h (coshf): New declaration.
45398         * lib/coshf.c: New file.
45399         * m4/coshf.m4: New file.
45400         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
45401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
45402         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
45403         * modules/coshf: New file.
45404         * tests/test-math-c++.cc: Check the declaration of coshf.
45405         * doc/posix-functions/coshf.texi: Mention the new module.
45407         cosh: Use a .m4 file.
45408         * m4/cosh.m4: New file.
45409         * modules/cosh (Files): Add it.
45410         (configure.ac): Just invoke gl_FUNC_COSH.
45412 2011-10-08  Bruno Haible  <bruno@clisp.org>
45414         Tests for module 'sinhf'.
45415         * modules/sinhf-tests: New file.
45416         * tests/test-sinhf.c: New file.
45418         New module 'sinhf'.
45419         * lib/math.in.h (sinhf): New declaration.
45420         * lib/sinhf.c: New file.
45421         * m4/sinhf.m4: New file.
45422         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
45423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
45424         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
45425         * modules/sinhf: New file.
45426         * tests/test-math-c++.cc: Check the declaration of sinhf.
45427         * doc/posix-functions/sinhf.texi: Mention the new module.
45429         sinh: Use a .m4 file.
45430         * m4/sinh.m4: New file.
45431         * modules/sinh (Files): Add it.
45432         (configure.ac): Just invoke gl_FUNC_SINH.
45434 2011-10-08  Bruno Haible  <bruno@clisp.org>
45436         Tests for module 'atan2f'.
45437         * modules/atan2f-tests: New file.
45438         * tests/test-atan2f.c: New file.
45440         New module 'atan2f'.
45441         * lib/math.in.h (atan2f): New declaration.
45442         * lib/atan2f.c: New file.
45443         * m4/atan2f.m4: New file.
45444         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
45445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
45446         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
45447         * modules/atan2f: New file.
45448         * tests/test-math-c++.cc: Check the declaration of atan2f.
45449         * doc/posix-functions/atan2f.texi: Mention the new module.
45451         atan2: Use a .m4 file.
45452         * m4/atan2.m4: New file.
45453         * modules/atan2 (Files): Add it.
45454         (configure.ac): Just invoke gl_FUNC_ATAN2.
45456 2011-10-08  Bruno Haible  <bruno@clisp.org>
45458         Tests for module 'atanf'.
45459         * modules/atanf-tests: New file.
45460         * tests/test-atanf.c: New file.
45462         New module 'atanf'.
45463         * lib/math.in.h (atanf): New declaration.
45464         * lib/atanf.c: New file.
45465         * m4/atanf.m4: New file.
45466         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
45467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
45468         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
45469         * modules/atanf: New file.
45470         * tests/test-math-c++.cc: Check the declaration of atanf.
45471         * doc/posix-functions/atanf.texi: Mention the new module.
45473         atan: Use a .m4 file.
45474         * m4/atan.m4: New file.
45475         * modules/atan (Files): Add it.
45476         (configure.ac): Just invoke gl_FUNC_ATAN.
45478 2011-10-08  Bruno Haible  <bruno@clisp.org>
45480         Tests for module 'acosf'.
45481         * modules/acosf-tests: New file.
45482         * tests/test-acosf.c: New file.
45484         New module 'acosf'.
45485         * lib/math.in.h (acosf): New declaration.
45486         * lib/acosf.c: New file.
45487         * m4/acosf.m4: New file.
45488         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
45489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
45490         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
45491         * modules/acosf: New file.
45492         * tests/test-math-c++.cc: Check the declaration of acosf.
45493         * doc/posix-functions/acosf.texi: Mention the new module.
45495         acos: Use a .m4 file.
45496         * m4/acos.m4: New file.
45497         * modules/acos (Files): Add it.
45498         (configure.ac): Just invoke gl_FUNC_ACOS.
45500 2011-10-08  Bruno Haible  <bruno@clisp.org>
45502         Tests for module 'asinf'.
45503         * modules/asinf-tests: New file.
45504         * tests/test-asinf.c: New file.
45506         New module 'asinf'.
45507         * lib/math.in.h (asinf): New declaration.
45508         * lib/asinf.c: New file.
45509         * m4/asinf.m4: New file.
45510         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
45511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
45512         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
45513         * modules/asinf: New file.
45514         * tests/test-math-c++.cc: Check the declaration of asinf.
45515         * doc/posix-functions/asinf.texi: Mention the new module.
45517         asin: Use a .m4 file.
45518         * m4/asin.m4: New file.
45519         * modules/asin (Files): Add it.
45520         (configure.ac): Just invoke gl_FUNC_ASIN.
45522 2011-10-08  Bruno Haible  <bruno@clisp.org>
45524         Tests for module 'tanf'.
45525         * modules/tanf-tests: New file.
45526         * tests/test-tanf.c: New file.
45528         New module 'tanf'.
45529         * lib/math.in.h (tanf): New declaration.
45530         * lib/tanf.c: New file.
45531         * m4/tanf.m4: New file.
45532         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
45533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
45534         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
45535         * modules/tanf: New file.
45536         * tests/test-math-c++.cc: Check the declaration of tanf.
45537         * doc/posix-functions/tanf.texi: Mention the new module.
45539         tan: Use a .m4 file.
45540         * m4/tan.m4: New file.
45541         * modules/tan (Files): Add it.
45542         (configure.ac): Just invoke gl_FUNC_TAN.
45544 2011-10-08  Bruno Haible  <bruno@clisp.org>
45546         Tests for module 'cosf'.
45547         * modules/cosf-tests: New file.
45548         * tests/test-cosf.c: New file.
45550         New module 'cosf'.
45551         * lib/math.in.h (cosf): New declaration.
45552         * lib/cosf.c: New file.
45553         * m4/cosf.m4: New file.
45554         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
45555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
45556         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
45557         * modules/cosf: New file.
45558         * tests/test-math-c++.cc: Check the declaration of cosf.
45559         * doc/posix-functions/cosf.texi: Mention the new module.
45561         cos: Use a .m4 file.
45562         * m4/cos.m4: New file.
45563         * modules/cos (Files): Add it.
45564         (configure.ac): Just invoke gl_FUNC_COS.
45566 2011-10-08  Bruno Haible  <bruno@clisp.org>
45568         Tests for module 'sinf'.
45569         * modules/sinf-tests: New file.
45570         * tests/test-sinf.c: New file.
45572         New module 'sinf'.
45573         * lib/math.in.h (sinf): New declaration.
45574         * lib/sinf.c: New file.
45575         * m4/sinf.m4: New file.
45576         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
45577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
45578         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
45579         * modules/sinf: New file.
45580         * tests/test-math-c++.cc: Check the declaration of sinf.
45581         * doc/posix-functions/sinf.texi: Mention the new module.
45583         sin: Use a .m4 file.
45584         * m4/sin.m4: New file.
45585         * modules/sin (Files): Add it.
45586         (configure.ac): Just invoke gl_FUNC_SIN.
45588 2011-10-08  Bruno Haible  <bruno@clisp.org>
45590         Tests for module 'powf'.
45591         * modules/powf-tests: New file.
45592         * tests/test-powf.c: New file.
45594         New module 'powf'.
45595         * lib/math.in.h (powf): New declaration.
45596         * lib/powf.c: New file.
45597         * m4/powf.m4: New file.
45598         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
45599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
45600         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
45601         * modules/powf: New file.
45602         * tests/test-math-c++.cc: Check the declaration of powf.
45603         * doc/posix-functions/powf.texi: Mention the new module.
45605         pow: Use a .m4 file.
45606         * m4/pow.m4: New file.
45607         * modules/pow (Files): Add it.
45608         (configure.ac): Just invoke gl_FUNC_POW.
45610 2011-10-08  Bruno Haible  <bruno@clisp.org>
45612         Tests for module 'log10f'.
45613         * modules/log10f-tests: New file.
45614         * tests/test-log10f.c: New file.
45616         New module 'log10f'.
45617         * lib/math.in.h (log10f): New declaration.
45618         * lib/log10f.c: New file.
45619         * m4/log10f.m4: New file.
45620         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
45621         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
45622         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
45623         * modules/log10f: New file.
45624         * tests/test-math-c++.cc: Check the declaration of log10f.
45625         * doc/posix-functions/log10f.texi: Mention the new module.
45627         log10: Use a .m4 file.
45628         * m4/log10.m4: New file.
45629         * modules/log10 (Files): Add it.
45630         (configure.ac): Just invoke gl_FUNC_LOG10.
45632 2011-10-08  Bruno Haible  <bruno@clisp.org>
45634         Tests for module 'logf'.
45635         * modules/logf-tests: New file.
45636         * tests/test-logf.c: New file.
45638         New module 'logf'.
45639         * lib/math.in.h (logf): New declaration.
45640         * lib/logf.c: New file.
45641         * m4/logf.m4: New file.
45642         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
45643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
45644         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
45645         * modules/logf: New file.
45646         * tests/test-math-c++.cc: Check the declaration of logf.
45647         * doc/posix-functions/logf.texi: Mention the new module.
45649         log: Use a .m4 file.
45650         * m4/log.m4: New file.
45651         * modules/log (Files): Add it.
45652         (configure.ac): Just invoke gl_FUNC_LOG.
45654 2011-10-08  Bruno Haible  <bruno@clisp.org>
45656         Tests for module 'expf'.
45657         * modules/expf-tests: New file.
45658         * tests/test-expf.c: New file.
45660         New module 'expf'.
45661         * lib/math.in.h (expf): New declaration.
45662         * lib/expf.c: New file.
45663         * m4/expf.m4: New file.
45664         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
45665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
45666         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
45667         * modules/expf: New file.
45668         * tests/test-math-c++.cc: Check the declaration of expf.
45669         * doc/posix-functions/expf.texi: Mention the new module.
45671         exp: Use a .m4 file.
45672         * m4/exp.m4: New file.
45673         * modules/exp (Files): Add it.
45674         (configure.ac): Just invoke gl_FUNC_EXP.
45676 2011-10-08  Bruno Haible  <bruno@clisp.org>
45678         Tests for module 'sqrtf'.
45679         * modules/sqrtf-tests: New file.
45680         * tests/test-sqrtf.c: New file.
45682         New module 'sqrtf'.
45683         * lib/math.in.h (sqrtf): New declaration.
45684         * lib/sqrtf.c: New file.
45685         * m4/sqrtf.m4: New file.
45686         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
45687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
45688         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
45689         * modules/sqrtf: New file.
45690         * tests/test-math-c++.cc: Check the declaration of sqrtf.
45691         * doc/posix-functions/sqrtf.texi: Mention the new module.
45693 2011-10-08  Bruno Haible  <bruno@clisp.org>
45695         Tests: Avoid link failures w.r.t. libintl.
45696         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
45697         $(LIBINTL).
45698         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
45699         $(LIBINTL).
45700         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
45701         against $(LIBINTL).
45702         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
45703         $(LIBINTL).
45704         * modules/openat-tests (Makefile.am): Link test-fchmodat against
45705         $(LIBINTL).
45706         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
45708 2011-10-08  Bruno Haible  <bruno@clisp.org>
45710         pow tests: Defeat compiler optimizations.
45711         * tests/test-pow.c (main): Assign arguments to x and y before use.
45713 2011-10-08  Bruno Haible  <bruno@clisp.org>
45715         gnulib-tool: Improve last commit.
45716         * gnulib-tool (func_modules_transitive_closure): Simplify code.
45717         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
45718         ignore dependencies that are not among the modules list.
45720 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
45722         gnulib-tool: don't follow dependencies to avoided modules
45723         This fixes a bug that is related to the previous one.
45724         * gnulib-tool (func_modules_transitive_closure)
45725         (func_emit_autoconf_snippets):
45726         Check whether a dependency is acceptable before using it.
45727         (--extract-dependencies): Report an error if --avoid is also used,
45728         since this combination of options is not yet supported.
45730         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
45731         Problem reported by Peter Dyballa in
45732         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
45733         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
45734         when echoing "$condition".
45736 2011-10-07  Bruno Haible  <bruno@clisp.org>
45738         Fix documentation about math functions on MacOS X.
45739         * doc/posix-functions/exp2.texi: Don't say the function is missing on
45740         MacOS X 10.5.
45741         * doc/posix-functions/fdim.texi: Likewise.
45742         * doc/posix-functions/feclearexcept.texi: Likewise.
45743         * doc/posix-functions/fegetenv.texi: Likewise.
45744         * doc/posix-functions/fegetround.texi: Likewise.
45745         * doc/posix-functions/feholdexcept.texi: Likewise.
45746         * doc/posix-functions/feraiseexcept.texi: Likewise.
45747         * doc/posix-functions/fesetenv.texi: Likewise.
45748         * doc/posix-functions/fesetround.texi: Likewise.
45749         * doc/posix-functions/fetestexcept.texi: Likewise.
45750         * doc/posix-functions/feupdateenv.texi: Likewise.
45751         * doc/posix-functions/fmax.texi: Likewise.
45752         * doc/posix-functions/fmin.texi: Likewise.
45753         * doc/posix-functions/log2.texi: Likewise.
45754         * doc/posix-functions/modff.texi: Likewise.
45755         * doc/posix-functions/nan.texi: Likewise.
45756         * doc/posix-functions/nanf.texi: Likewise.
45757         * doc/posix-functions/nextafterf.texi: Likewise.
45758         * doc/posix-functions/remquo.texi: Likewise.
45760 2011-10-07  Bruno Haible  <bruno@clisp.org>
45762         modff: Drop assumption about library that defines modff.
45763         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
45764         AC_CHECK_FUNCS.
45765         * modules/modff (Files): Add m4/mathfunc.m4.
45767 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
45769         raise tests: Avoid a GCC warning.
45770         * tests/test-raise.c (handler): Use _Noreturn.
45772 2011-10-07  Bruno Haible  <bruno@clisp.org>
45774         Tests for module 'ldexpf'.
45775         * modules/ldexpf-tests: New file.
45776         * tests/test-ldexpf.c: New file.
45778         New module 'ldexpf'.
45779         * lib/math.in.h (ldexpf): New declaration.
45780         * lib/ldexpf.c: New file.
45781         * m4/ldexpf.m4: New file.
45782         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
45783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
45784         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
45785         * modules/ldexpf: New file.
45786         * tests/test-math-c++.cc: Check the declaration of ldexpf.
45787         * doc/posix-functions/ldexpf.texi: Mention the new module.
45789 2011-10-06  Bruno Haible  <bruno@clisp.org>
45791         frexpf: Work around problems on IRIX and mingw.
45792         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
45793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
45794         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
45795         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
45796         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
45797         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
45798         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
45800 2011-10-06  Bruno Haible  <bruno@clisp.org>
45802         fabsf: Drop assumption about library that defines fabsf.
45803         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
45804         AC_CHECK_FUNCS.
45805         * modules/fabsf (Files): Add m4/mathfunc.m4.
45807 2011-10-06  Bruno Haible  <bruno@clisp.org>
45809         frexpf: Drop assumption about library that defines frexpf.
45810         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
45811         'int *', 'float *', 'long double *', 'float', 'long double'.
45812         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
45813         AC_CHECK_FUNCS.
45814         * modules/frexpf (Files): Add m4/mathfunc.m4.
45816         Tests for module 'frexpf'.
45817         * modules/frexpf-tests: New file.
45818         * tests/test-frexpf.c: New file.
45820         New module 'frexpf'.
45821         * lib/math.in.h (frexpf): New declaration.
45822         * lib/frexpf.c: New file.
45823         * m4/frexpf.m4: New file.
45824         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
45825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
45826         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
45827         * modules/frexpf: New file.
45828         * tests/test-math-c++.cc: Check the declaration of frexpf.
45829         * doc/posix-functions/frexpf.texi: Mention the new module.
45831 2011-10-06  Bruno Haible  <bruno@clisp.org>
45833         math: Sort function declarations of math.in.h.
45834         * lib/math.in.h (frexp, logb): Move declarations.
45836 2011-10-05  Bruno Haible  <bruno@clisp.org>
45838         Tests for module 'modff'.
45839         * modules/modff-tests: New file.
45840         * tests/test-modff.c: New file.
45842         New module 'modff'.
45843         * lib/math.in.h (modff): New declaration.
45844         * lib/modff.c: New file.
45845         * m4/modff.m4: New file.
45846         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
45847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
45848         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
45849         * modules/modff: New file.
45850         * tests/test-math-c++.cc: Check the declaration of modff.
45851         * doc/posix-functions/modff.texi: Mention the new module.
45853         modf tests: Make test sharper.
45854         * tests/test-modf.c (main): Strengthen upper bound.
45856         modf: Use a .m4 file.
45857         * m4/modf.m4: New file.
45858         * modules/modf (Files): Add it.
45859         (configure.ac): Just invoke gl_FUNC_MODF.
45861 2011-10-05  Bruno Haible  <bruno@clisp.org>
45863         Tests for module 'fmodf'.
45864         * modules/fmodf-tests: New file.
45865         * tests/test-fmodf.c: New file.
45867         New module 'fmodf'.
45868         * lib/math.in.h (fmodf): New declaration.
45869         * lib/fmodf.c: New file.
45870         * m4/fmodf.m4: New file.
45871         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
45872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
45873         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
45874         * modules/fmodf: New file.
45875         * tests/test-math-c++.cc: Check the declaration of fmodf.
45876         * doc/posix-functions/fmodf.texi: Mention the new module.
45878         fmod: Use a .m4 file.
45879         * m4/fmod.m4: New file.
45880         * modules/fmod (Files): Add it.
45881         (configure.ac): Just invoke gl_FUNC_FMOD.
45883 2011-10-05  Bruno Haible  <bruno@clisp.org>
45885         Tests for module 'fabsf'.
45886         * modules/fabsf-tests: New file.
45887         * tests/test-fabsf.c: New file.
45889         New module 'fabsf'.
45890         * lib/math.in.h (fabsf): New declaration.
45891         * lib/fabsf.c: New file.
45892         * m4/fabsf.m4: New file.
45893         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
45894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
45895         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
45896         * modules/fabsf: New file.
45897         * tests/test-math-c++.cc: Check the declaration of fabsf.
45898         * doc/posix-functions/fabsf.texi: Mention the new module.
45900         fabs: Use a .m4 file.
45901         * m4/fabs.m4: New file.
45902         * modules/fabs (Files): Add it.
45903         (configure.ac): Just invoke gl_FUNC_FABS.
45905 2011-10-05  Jim Meyering  <meyering@redhat.com>
45907         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
45908         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
45909         ls -lL regression introduced in coreutils-8.12, it does so at the
45910         cost of an additional stat call in the common case.  Besides, now
45911         that the kernel change that prompted commit 95f7c57f has been reverted
45912         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
45913         we have no use for commit 95f7c57f, "file-has-acl: use
45914         acl_extended_file_nofollow if available".
45916 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
45918         file-has-acl: revert unintended change in behavior of ls -L
45919         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
45920         derived from...
45921         (file_has_acl): ...code here.  Call it.
45922         This problem was introduced with 2011-07-22 commit 95f7c57f,
45923         "file-has-acl: use acl_extended_file_nofollow if available".
45924         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
45926 2011-10-03  Bruno Haible  <bruno@clisp.org>
45928         poll: Avoid link errors on MSVC.
45929         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
45930         * modules/poll (Depends-on): Add sockets.
45931         (Link): New section.
45932         * NEWS: Mention the change.
45933         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
45934         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
45935         $(LIB_POLL) instead of $(LIBSOCKET).
45937 2011-10-03  Bruno Haible  <bruno@clisp.org>
45939         sys_select tests: Fix link error on MSVC 9.
45940         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
45941         with $(LIB_SELECT) instead of $(LIBSOCKET).
45943 2011-10-03  Bruno Haible  <bruno@clisp.org>
45945         sys_select: Fix compilation error on mingw.
45946         * lib/sys_select.in.h: On native Windows, include <io.h>.
45948 2011-10-03  Bruno Haible  <bruno@clisp.org>
45950         wmemset: Support for MSVC.
45951         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
45952         whether wmemset() exists.
45954 2011-10-03  Bruno Haible  <bruno@clisp.org>
45956         wmemmove: Support for MSVC.
45957         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
45958         whether wmemmove() exists.
45960 2011-10-03  Bruno Haible  <bruno@clisp.org>
45962         wmemcpy: Support for MSVC.
45963         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
45964         whether wmemcpy() exists.
45966 2011-10-03  Bruno Haible  <bruno@clisp.org>
45968         wmemcmp: Support for MSVC.
45969         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
45970         whether wmemcmp() exists.
45972 2011-10-03  Bruno Haible  <bruno@clisp.org>
45974         wmemchr: Support for MSVC.
45975         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
45976         whether wmemchr() exists.
45978 2011-10-03  Bruno Haible  <bruno@clisp.org>
45980         glthread/*, strsignal: Support for MSVC.
45981         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
45982         including <winsock.h> on MSVC 9.
45983         * lib/glthread/lock.h: Likewise.
45984         * lib/glthread/thread.h: Likewise.
45985         * lib/glthread/tls.h: Likewise.
45986         * lib/glthread/yield.h: Likewise.
45987         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
45988         if HAVE_UNISTD_H is false.
45989         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
45991 2011-10-03  Bruno Haible  <bruno@clisp.org>
45993         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
45994         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
45995         Set to 100000.
45997 2011-10-03  Bruno Haible  <bruno@clisp.org>
45999         acl: Fix specification.
46000         * lib/file-has-acl.c (file_has_acl): Fix specification.
46002 2011-10-03  Bruno Haible  <bruno@clisp.org>
46004         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
46005         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
46006         (compute_curr_prefix, shared_library_fullname,
46007         find_shared_library_fullname, get_shared_library_fullname, relocate):
46008         Use it together with PIC && INSTALLDIR.
46009         Reported by <jojelino@gmail.com>
46010         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
46012 2011-10-01  Jim Meyering  <meyering@redhat.com>
46014         maint.mk: adjust a release-related rule not to require use of gzip
46015         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
46016         Instead, check each file in $(DIST_ARCHIVES).  This is better for
46017         projects that build only .tar.xz files.  Also fix an erroneous test.
46019         test-linkat: don't leave behind a temporary file
46020         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
46021         Otherwise, coreutils' "make distcheck" would fail with this:
46022           Only in /c/cu/tests/torture/coreutils/test/\
46023             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
46024           make[2]: *** [my-distcheck] Error 1
46026         float, math: add omitted file
46027         * lib/itold.c: Add file, required for yesterday's float change.
46029 2011-10-01  Bruno Haible  <bruno@clisp.org>
46031         isinf: Fix for OpenBSD/x86.
46032         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
46033         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
46034         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
46036 2011-10-01  Bruno Haible  <bruno@clisp.org>
46038         isfinite: Fix syntax error in configure test.
46039         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
46041         isfinite: Fix typo.
46042         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
46043         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
46045 2011-10-01  Bruno Haible  <bruno@clisp.org>
46047         nonblocking tests: Fix test failure on Linux/IA-64.
46048         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
46049         Set to 270000.
46051 2011-10-01  Bruno Haible  <bruno@clisp.org>
46053         mkfifoat tests: Fix a test failure on mingw.
46054         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
46055         with error ENOSYS.
46057 2011-09-30  Bruno Haible  <bruno@clisp.org>
46059         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
46060         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
46061         'long double'. Set REPLACE_ITOLD.
46062         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
46063         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
46064         * lib/itold.c: New file.
46065         * modules/float (Files): Add lib/itold.c.
46066         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
46067         (Makefile.am): Substitute REPLACE_ITOLD.
46068         * modules/math (Depends-on): Add float.
46069         (Makefile.am): Substitute REPLACE_ITOLD.
46070         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
46071         * doc/posix-headers/math.texi: Likewise.
46072         * doc/posix-functions/logl.texi: Likewise.
46074 2011-09-30  Bruno Haible  <bruno@clisp.org>
46076         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
46077         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
46078         Set to 140000.
46080 2011-09-30  Bruno Haible  <bruno@clisp.org>
46082         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
46083         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
46084         invocation, say "right after AC_PROG_CC_STDC", not "right after
46085         AC_PROG_CC".
46086         Reported by Gary V. Vaughan <gary@gnu.org>.
46088 2011-09-30  Bruno Haible  <bruno@clisp.org>
46090         Centralize C99 requirement.
46091         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
46092         * modules/stdarg (configure.ac-early): Invoke it instead of
46093         AC_PROG_CC_STDC.
46094         Reported by Gary V. Vaughan and Paul Eggert.
46096 2011-09-29  Bruno Haible  <bruno@clisp.org>
46098         float: Fix LDBL_MAX value on Linux/PowerPC.
46099         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
46100         on Linux/PowerPC.
46101         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
46102         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
46103         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
46104         platform.
46105         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
46107 2011-09-29  Bruno Haible  <bruno@clisp.org>
46109         doc: Improve doc about gl_EARLY.
46110         * doc/gnulib-tool.texi (Initial import): Mention where to place an
46111         AC_PROG_CC_STDC invocation.
46112         Reported by Gary V. Vaughan <gary@gnu.org>.
46114 2011-09-28  Bruno Haible  <bruno@clisp.org>
46116         fgetc, fputc, fread, fwrite tests: Fix link error.
46117         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
46118         on non-MSVC platforms.
46119         * tests/test-fputc.c (main): Likewise.
46120         * tests/test-fread.c (main): Likewise.
46121         * tests/test-fwrite.c (main): Likewise.
46122         Reported by Jim Meyering.
46124 2011-09-27  Bruno Haible  <bruno@clisp.org>
46126         fputc, fwrite tests: Avoid test failure on MSVC.
46127         * tests/test-fgetc.c: Include msvc-inval.h.
46128         (main): Invoke gl_msvc_inval_ensure_handler.
46129         * tests/test-fputc.c: Include msvc-inval.h.
46130         (main): Invoke gl_msvc_inval_ensure_handler.
46131         * tests/test-fread.c: Include msvc-inval.h.
46132         (main): Invoke gl_msvc_inval_ensure_handler.
46133         * tests/test-fwrite.c: Include msvc-inval.h.
46134         (main): Invoke gl_msvc_inval_ensure_handler.
46135         * modules/fgetc-tests (Depends-on): Add msvc-inval.
46136         * modules/fputc-tests (Depends-on): Likewise.
46137         * modules/fread-tests (Depends-on): Likewise.
46138         * modules/fwrite-tests (Depends-on): Likewise.
46140 2011-09-27  Bruno Haible  <bruno@clisp.org>
46142         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
46143         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
46144         (raise): Remove older, duplicated declaration.
46145         (_gl_raise_SIGPIPE): New declaration.
46146         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
46147         (rpl_raise): Remove function.
46148         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
46149         a gnulib-defined SIGPIPE here.
46150         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
46151         'sigprocmask' has detected missing signal-blocking and the module
46152         'sigpipe' is enabled.
46153         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46155 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
46157         base64-tests: avoid memory leak
46158         * tests/test-base64.c (main): Plug memory leak.
46160         base32: new module
46161         * modules/base32: New module.
46162         * lib/base32.c: New file.
46163         * lib/base32.h: Likewise.
46164         * m4/base32.m4: Likewise.
46165         * modules/base32-tests: New test.
46166         * tests/test-base32.c: Likewise.
46167         * MODULES.html.sh (Misc): Mention it.
46169 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46171         gnulib: use more-standard license notice wording
46172         * gnulib-tool (func_emit_copyright_notice): When emitting a
46173         license notice into a file, use the standard wording as suggested
46174         by the current information for GNU maintainers, except say "file"
46175         rather than "program".  The new wording gives a license version
46176         number, which addresses an issue raised by Glenn Morris in
46177         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
46178         * m4/onceonly.m4: Use that same wording here, too.
46180         dup2: minor simplification
46181         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
46182         as lib/dup2.c no longer uses 'inline'.
46184 2011-09-25  Bruno Haible  <bruno@clisp.org>
46186         strings: Fix compilation error on MSVC.
46187         * lib/strings.in.h: Include <stddef.h> for size_t.
46189 2011-09-25  Bruno Haible  <bruno@clisp.org>
46191         fflush et al.: Document limitation on MSVC.
46192         * doc/posix-functions/fflush.texi: Document possible crash in handling
46193         mode other than DEFAULT_HANDLING.
46194         * doc/posix-functions/fgetc.texi: Likewise.
46195         * doc/posix-functions/fputc.texi: Likewise.
46196         * doc/posix-functions/fread.texi: Likewise.
46197         * doc/posix-functions/fwrite.texi: Likewise.
46199 2011-09-25  Bruno Haible  <bruno@clisp.org>
46201         msvc-inval: Allow three invalid parameter handling modes.
46202         * lib/msvc-inval.h: Don't include <stdlib.h> here.
46203         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
46204         macros.
46205         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
46206         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
46207         SANE_LIBRARY_HANDLING as a no-op.
46208         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
46209         <stdlib.h>.
46210         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
46212 2011-09-25  Bruno Haible  <bruno@clisp.org>
46214         msvc-inval: Make handler multithread-safe.
46215         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
46216         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
46217         declarations.
46218         (gl_msvc_inval_current): New declaration.
46219         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46220         Operate on the structure returned by gl_msvc_inval_current().
46221         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
46222         Remove varaiables.
46223         (tls_index, tls_initialized): New variables.
46224         (not_per_thread): New variable.
46225         (gl_msvc_inval_current): New function.
46226         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
46227         returned by gl_msvc_inval_current().
46229 2011-09-25  Bruno Haible  <bruno@clisp.org>
46231         msvc-inval: Install handler globally.
46232         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
46233         !_MSC_VER.
46234         (gl_msvc_invalid_parameter_handler): Remove declaration.
46235         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
46236         declarations.
46237         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46238         Install the handler globally, don't uninstall it.
46239         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
46240         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
46241         currently valid, call RaiseException instead.
46242         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
46243         for !_MSC_VER.
46245 2011-09-25  Bruno Haible  <bruno@clisp.org>
46247         strerror_r-posix: Fix for MSVC 9.
46248         * lib/strerror_r.c (local_snprintf): New function.
46249         (snprintf): Define to local_snprintf, not to _snprintf.
46251 2011-09-25  Bruno Haible  <bruno@clisp.org>
46253         ftruncate: Support for MSVC 9.
46254         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
46255         (chsize_nothrow): New function.
46256         (chsize): Redefine as a macro.
46257         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
46258         * modules/ftruncate (Depends-on): Add msvc-inval.
46260 2011-09-25  Bruno Haible  <bruno@clisp.org>
46262         New module 'fstat'.
46263         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
46264         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
46265         * lib/fchdir.c (rpl_fstat): Remove function.
46266         * m4/fstat.m4: New file.
46267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
46268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
46269         declared.
46270         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
46271         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
46272         * modules/fstat: New file.
46273         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
46274         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
46275         is set.
46276         * doc/posix-functions/fstat.texi: Mention the new module and the
46277         problem on MSVC.
46278         * NEWS: Mention the change.
46279         * modules/acl (Depends-on): Add fstat.
46280         * modules/chdir-safer (Depends-on): Likewise.
46281         * modules/chown (Depends-on): Likewise.
46282         * modules/copy-file (Depends-on): Likewise.
46283         * modules/fchdir (Depends-on): Likewise.
46284         * modules/fdopendir (Depends-on): Likewise.
46285         * modules/fopen (Depends-on): Likewise.
46286         * modules/fts (Depends-on): Likewise.
46287         * modules/getcwd (Depends-on): Likewise.
46288         * modules/isapipe (Depends-on): Likewise.
46289         * modules/linkat (Depends-on): Likewise.
46290         * modules/lseek (Depends-on): Likewise.
46291         * modules/mkdir-p (Depends-on): Likewise.
46292         * modules/open (Depends-on): Likewise.
46293         * modules/openat (Depends-on): Likewise.
46294         * modules/read-file (Depends-on): Likewise.
46295         * modules/renameat (Depends-on): Likewise.
46296         * modules/utimens (Depends-on): Likewise.
46298 2011-09-25  Bruno Haible  <bruno@clisp.org>
46300         linkat: Fix compilation on MSVC 9.
46301         * lib/linkat.c: Don't include <stdint.h>.
46303 2011-09-25  Bruno Haible  <bruno@clisp.org>
46305         fclose: Support for MSVC 9.
46306         * lib/fclose.c: Include msvc-inval.h.
46307         (fclose_nothrow): New function.
46308         (rpl_fclose): Use it.
46309         * modules/fclose (Depends-on): Add msvc-inval.
46310         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
46312 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
46314         dup2: minor simplifications
46315         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
46316         that it's a performance win.
46317         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
46318         ! defined __CYGWIN__)" to "ifdef F_GETFL".
46320 2011-09-24  Jim Meyering  <meyering@redhat.com>
46322         test-futimens: avoid a warning from gcc -Wshadow
46323         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
46324         to avoid a shadowing warning.
46326 2011-09-24  Bruno Haible  <bruno@clisp.org>
46328         fdopen: Support for MSVC 9.
46329         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
46330         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
46331         * lib/fdopen.c: Include msvc-inval.h.
46332         (fdopen_nothrow): New function.
46333         (rpl_fdopen): Use it.
46334         * modules/fdopen (Depends-on): Add msvc-inval.
46335         * modules/fclose-tests (Depends-on): Add fdopen.
46336         * modules/fflush-tests (Depends-on): Likewise.
46337         * modules/fgetc-tests (Depends-on): Likewise.
46338         * modules/fputc-tests (Depends-on): Likewise.
46339         * modules/fread-tests (Depends-on): Likewise.
46340         * modules/freopen-tests (Depends-on): Likewise.
46341         * modules/fseeko-tests (Depends-on): Likewise.
46342         * modules/ftello-tests (Depends-on): Likewise.
46343         * modules/fwrite-tests  (Depends-on): Likewise.
46344         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
46346 2011-09-24  Bruno Haible  <bruno@clisp.org>
46348         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
46349         * modules/fgetc-tests (Depends-on): Add unistd.
46350         * modules/fputc-tests (Depends-on): Likewise.
46351         * modules/fread-tests (Depends-on): Likewise.
46352         * modules/fwrite-tests (Depends-on): Likewise.
46354 2011-09-24  Bruno Haible  <bruno@clisp.org>
46356         dup: Simplify autoconf test.
46357         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
46358         on gl_MSVC_INVAL's result.
46360 2011-09-24  Bruno Haible  <bruno@clisp.org>
46362         Tests for function fwrite().
46363         * modules/fwrite-tests: New file.
46364         * tests/test-fwrite.c: New file.
46365         * modules/stdio-tests (Depends-on): Add fwrite-tests.
46367         Tests for function fread().
46368         * modules/fread-tests: New file.
46369         * tests/test-fread.c: New file.
46370         * modules/stdio-tests (Depends-on): Add fread-tests.
46372         Activate fputc tests.
46373         * modules/stdio-tests (Depends-on): Add fputc-tests.
46375         Enhance fgetc, fputc tests.
46376         * tests/test-fgetc.c (main): Also test the stream's error indicator.
46377         * tests/test-fputc.c (main): Likewise.
46379 2011-09-24  Bruno Haible  <bruno@clisp.org>
46381         write: Support for MSVC 9.
46382         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46383         is not 1.
46384         * lib/write.c (write_nothrow): New function.
46385         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
46386         not 1. Use write_nothrow.
46387         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
46388         invalid parameter handler.
46389         (gl_PREREQ_WRITE): New macro.
46390         * modules/write (Depends-on): Add msvc-inval.
46391         (configure.ac): Invoke gl_PREREQ_WRITE.
46392         * doc/posix-functions/write.texi: Mention the problem on MSVC.
46394 2011-09-24  Bruno Haible  <bruno@clisp.org>
46396         read: Fix last commit.
46397         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
46399 2011-09-24  Bruno Haible  <bruno@clisp.org>
46401         dup2: Fix last commit.
46402         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
46403         (rpl_dup2): Disable fcntl workaround on native Windows.
46405         sigprocmask: Make code safer.
46406         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
46407         section that changes macro definitions for this compilation unit.
46409 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46411         dup2: clarify by coalescing Windows-specific material
46412         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
46413         "msvc-nothrow.h"' to the Windows-specific section, so that the
46414         Emacs source need not contain these include files.
46415         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
46416         Windows-specific fixes into this function rather than just the
46417         nothrow fix, as this shortens and clarifies the code.  Always
46418         define as a function, as that's a bit cleaner than having it be
46419         sometimes a function and sometimes a macro.
46420         (rpl_dup2): Move the Windows-specific stuff out of here and into
46421         ms_windows_dup2.  Don't protect the Haiku-related fix with
46422         "#if !defined __linux__", as the same code also works around
46423         a Linux kernel bug, and it doesn't add any system calls on any
46424         platform.  Add comment about FreeBSD 6.1.
46426         sigprocmask: move #include directive
46427         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
46428         Windows-specific section, so that the Emacs source need not
46429         contain msvc-inval.h.
46431 2011-09-23  Bruno Haible  <bruno@clisp.org>
46433         read: Support for MSVC 9.
46434         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46435         is not 1.
46436         * lib/read.c (read_nothrow): New function.
46437         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
46438         read_nothrow.
46439         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
46440         invalid parameter handler.
46441         (gl_PREREQ_READ): New macro.
46442         * modules/read (Depends-on): Add msvc-inval.
46443         (configure.ac): Invoke gl_PREREQ_READ.
46444         * doc/posix-functions/read.texi: Mention the problem on MSVC.
46446 2011-09-23  Bruno Haible  <bruno@clisp.org>
46448         close: Support for MSVC 9.
46449         * lib/close.c: Include <errno.h>, msvc-inval.h.
46450         (close_nothrow): New function.
46451         (rpl_close): Use it.
46452         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
46453         invalid parameter handler.
46454         * modules/close (Depends-on): Add msvc-inval.
46455         * modules/dup2-tests (Depends-on): Add close.
46456         * modules/dup3-tests (Depends-on): Likewise.
46457         * modules/fcntl-tests (Depends-on): Likewise.
46458         * modules/spawn-pipe-tests (Depends-on): Likewise.
46459         * modules/unistd-safer-tests (Depends-on): Likewise.
46460         * doc/posix-functions/close.texi: Mention the problem on MSVC.
46462 2011-09-23  Bruno Haible  <bruno@clisp.org>
46464         New module 'dup'.
46465         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
46466         Allow replacement.
46467         * lib/dup.c: New file.
46468         * lib/fchdir.c (rpl_dup): Remove function.
46469         * m4/dup.m4: New file.
46470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
46471         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
46472         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
46473         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
46474         * modules/dup: New file.
46475         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
46476         'dup' module is in use.
46477         * modules/fdopendir (Depends-on): Add dup.
46478         * modules/fdutimensat-tests (Depends-on): Likewise.
46479         * modules/fts (Depends-on): Likewise.
46480         * modules/futimens-tests (Depends-on): Likewise.
46481         * modules/posix_spawnp-tests (Depends-on): Likewise.
46482         * modules/unistd-safer-tests (Depends-on): Likewise.
46483         * modules/utimens-tests (Depends-on): Likewise.
46484         * doc/posix-functions/dup.texi: Mention the new module and the problem
46485         on MSVC.
46487 2011-09-23  Bruno Haible  <bruno@clisp.org>
46489         getdtablesize: Support for MSVC 9.
46490         * lib/getdtablesize.c: Include msvc-inval.h.
46491         (_setmaxstdio_nothrow): New function.
46492         (_setmaxstdio): Redefine it.
46493         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
46494         * modules/getdtablesize (Depends-on): Add msvc-inval.
46495         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
46497 2011-09-23  Bruno Haible  <bruno@clisp.org>
46499         signal-h: Rename from signal.
46500         * modules/signal-h: Renamed from modules/signal.
46501         * modules/pthread_sigmask (Depends-on): Update.
46502         * modules/raise (Depends-on): Likewise.
46503         * modules/sigaction (Depends-on): Likewise.
46504         * modules/sigpipe (Depends-on): Likewise.
46505         * modules/sigprocmask (Depends-on): Likewise.
46506         * modules/sys_select (Depends-on): Likewise.
46507         * modules/signal-h-tests: Renamed from modules/signal-tests.
46508         (Files, Depends-on, Makefile.am): Update.
46509         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
46510         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
46511         (Files, Makefile.am): Update.
46512         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
46513         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
46514         * modules/signal: New placeholder file.
46515         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
46516         * doc/posix-headers/signal.texi: Update.
46517         * NEWS: Mention the change.
46519 2011-09-23  Bruno Haible  <bruno@clisp.org>
46521         sigprocmask: Avoid crashes through signal() on MSVC 9.
46522         * lib/sigprocmask.c: Include msvc-inval.h.
46523         (signal_nothrow): New function.
46524         (signal): Redefine it.
46525         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
46526         * modules/sigprocmask (Depends-on): Add msvc-inval.
46527         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
46529 2011-09-23  Bruno Haible  <bruno@clisp.org>
46531         Tests for module 'raise'.
46532         * modules/raise-tests: New file.
46533         * tests/test-raise.c: New file.
46535         raise: Support for MSVC.
46536         * lib/signal.in.h (raise): New declaration.
46537         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
46538         for native Windows platforms.
46539         * m4/raise.m4: New file.
46540         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
46541         HAVE_RAISE, REPLACE_RAISE.
46542         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
46543         REPLACE_RAISE.
46544         * modules/raise (Status, Notice): Remove fields.
46545         (Files): Add m4/raise.m4.
46546         (Depends-on): Add signal, msvc-inval.
46547         (configure.ac): Use the common idioms.
46548         (Maintainer): Add me.
46549         * tests/test-signal-c++.cc: Check the signature of raise.
46550         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
46552 2011-09-23  Bruno Haible  <bruno@clisp.org>
46554         pipe2: Fix compilation on pre-C99 compilers.
46555         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
46557 2011-09-23  Bruno Haible  <bruno@clisp.org>
46559         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
46560         * lib/msvc-nothrow.h: New file.
46561         * lib/msvc-nothrow.c: New file.
46562         * m4/msvc-nothrow.m4: New file.
46563         * modules/msvc-nothrow: New file.
46564         * lib/dup2.c: Include msvc-nothrow.h.
46565         (rpl_dup2): No need to protect _get_osfhandle call here.
46566         * lib/accept4.c: Include msvc-nothrow.h.
46567         * lib/error.c: Likewise.
46568         * lib/fcntl.c: Likewise.
46569         * lib/lseek.c: Likewise.
46570         * lib/nonblocking.c: Likewise.
46571         * lib/poll.c: Likewise.
46572         * lib/read.c: Likewise.
46573         * lib/select.c: Likewise.
46574         * lib/sockets.h: Likewise.
46575         * lib/sockets.c: Likewise.
46576         * lib/stdio-read.c: Likewise.
46577         * lib/stdio-write.c: Likewise.
46578         * lib/write.c: Likewise.
46579         * lib/w32sock.h: Likewise.
46580         * lib/w32spawn.h: Likewise.
46581         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
46582         * lib/fsync.c: Likewise.
46583         * lib/isapipe.c: Likewise.
46584         * modules/dup2 (Depends-on): Add msvc-nothrow.
46585         * modules/accept4 (Depends-on): Likewise.
46586         * modules/error (Depends-on): Likewise.
46587         * modules/fcntl (Depends-on): Likewise.
46588         * modules/lseek (Depends-on): Likewise.
46589         * modules/nonblocking (Depends-on): Likewise.
46590         * modules/poll (Depends-on): Likewise.
46591         * modules/read (Depends-on): Likewise.
46592         * modules/select (Depends-on): Likewise.
46593         * modules/sockets (Depends-on): Likewise.
46594         * modules/sigpipe (Depends-on): Likewise.
46595         * modules/write (Depends-on): Likewise.
46596         * modules/accept (Depends-on): Likewise.
46597         * modules/bind (Depends-on): Likewise.
46598         * modules/connect (Depends-on): Likewise.
46599         * modules/gethostname (Depends-on): Likewise.
46600         * modules/getpeername (Depends-on): Likewise.
46601         * modules/getsockname (Depends-on): Likewise.
46602         * modules/getsockopt (Depends-on): Likewise.
46603         * modules/ioctl (Depends-on): Likewise.
46604         * modules/listen (Depends-on): Likewise.
46605         * modules/recv (Depends-on): Likewise.
46606         * modules/recvfrom (Depends-on): Likewise.
46607         * modules/send (Depends-on): Likewise.
46608         * modules/sendto (Depends-on): Likewise.
46609         * modules/setsockopt (Depends-on): Likewise.
46610         * modules/shutdown (Depends-on): Likewise.
46611         * modules/socket (Depends-on): Likewise.
46612         * modules/execute (Depends-on): Likewise.
46613         * modules/spawn-pipe (Depends-on): Likewise.
46614         * modules/flock (Depends-on): Likewise.
46615         * modules/fsync (Depends-on): Likewise.
46616         * modules/isapipe (Depends-on): Likewise.
46617         * tests/test-cloexec.c: Include msvc-nothrow.h.
46618         * tests/test-dup-safer.c: Likewise.
46619         * tests/test-dup2.c: Likewise.
46620         * tests/test-dup3.c: Likewise.
46621         * tests/test-fcntl.c: Likewise.
46622         * tests/test-pipe.c: Likewise.
46623         * tests/test-pipe2.c: Likewise.
46624         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
46625         * modules/unistd-safer-tests (Depends-on): Likewise.
46626         * modules/dup2-tests (Depends-on): Likewise.
46627         * modules/dup3-tests (Depends-on): Likewise.
46628         * modules/fcntl-tests (Depends-on): Likewise.
46629         * modules/pipe-posix-tests (Depends-on): Likewise.
46630         * modules/pipe2-tests (Depends-on): Likewise.
46632 2011-09-23  Bruno Haible  <bruno@clisp.org>
46634         dup2: Make code more maintainable.
46635         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
46636         (rpl_dup2): Use it.
46637         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
46638         * modules/dup2 (configure.ac): Invoke it.
46639         Reported by Paul Eggert.
46641 2011-09-23  Bruno Haible  <bruno@clisp.org>
46643         msvc-inval: Fix compilation error.
46644         * lib/msvc-inval.h: Include <excpt.h>.
46646 2011-09-23  Bruno Haible  <bruno@clisp.org>
46648         mkdir: Tweak for MSVC 9.
46649         * lib/sys_stat.in.h: Update comments.
46650         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
46652         Tests for module 'chdir'.
46653         * modules/chdir-tests: New file.
46654         * tests/test-chdir.c: New file.
46656         New module 'chdir'.
46657         * modules/chdir: New file.
46658         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
46659         (chdir): New declaration.
46660         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
46661         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
46662         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
46663         * tests/test-unistd-c++.cc: Check signature of chdir.
46664         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
46665         * modules/chdir-long (Depends-on): Add chdir.
46666         * modules/fchdir (Depends-on): Likewise.
46667         * modules/rename (Depends-on): Likewise.
46668         * modules/savewd (Depends-on): Likewise.
46670         rmdir: Support for mingw, MSVC 9.
46671         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
46672         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
46674         getcwd: Tweak for MSVC 9.
46675         * lib/unistd.in.h: Update comments.
46676         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
46678 2011-09-22  Bruno Haible  <bruno@clisp.org>
46680         strerror_r-posix: Avoid a link error on MSVC.
46681         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
46682         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
46684 2011-09-22  Bruno Haible  <bruno@clisp.org>
46686         select: Avoid link errors on MSVC.
46687         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
46688         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
46689         * modules/pselect (Link): Likewise.
46690         * NEWS: Mention the change.
46691         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
46692         test-select-stdin against $(LIB_SELECT).
46693         * modules/pselect-tests (Makefile.am): Link test-pselect against
46694         $(LIB_SELECT).
46696 2011-09-22  Bruno Haible  <bruno@clisp.org>
46698         select: Avoid compilation error on MSVC.
46699         * lib/select.c: Don't include <stdbool.h>.
46701 2011-09-21  Bruno Haible  <bruno@clisp.org>
46703         Consolidate all uses of PATH_MAX in *.m4 files.
46704         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
46705         macros.
46706         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
46707         and gl_PATHMAX_SNIPPET.
46708         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
46709         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46710         * modules/chdir-long (Files): Add m4/pathmax.m4.
46711         * modules/getcwd (Files): Likewise.
46713 2011-09-21  Bruno Haible  <bruno@clisp.org>
46715         ftruncate: Un-deprecate, concentrate on Win32 support.
46716         * modules/ftruncate (Status, Notice): Remove sections.
46717         (Depends-on): Add largefile.
46718         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
46719         non-mingw platforms.
46720         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
46721         include <io.h>.
46722         * modules/perror-tests (Depends-on): Add ftruncate.
46723         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
46724         'ftruncate' module.
46726 2011-09-21  Bruno Haible  <bruno@clisp.org>
46728         Add dependencies to new dirent related modules.
46729         * modules/opendir (Depends-on): Add closedir.
46730         * modules/getcwd (Depends-on): Add opendir, closedir.
46731         * modules/dirent-safer-tests (Depends-on): Likewise.
46732         * modules/fdopendir-tests (Depends-on): Likewise.
46733         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
46734         * modules/renameat-tests (Depends-on): Likewise.
46736 2011-09-21  Bruno Haible  <bruno@clisp.org>
46738         opendir: Avoid compilation error on mingw.
46739         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
46740         * modules/opendir (Depends-on): Add unistd.
46742 2011-09-21  Bruno Haible  <bruno@clisp.org>
46744         ftruncate tests: Avoid a test failure on mingw.
46745         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
46747 2011-09-21  Bruno Haible  <bruno@clisp.org>
46749         select tests: Avoid test failures on OSF/1 5.1 and mingw.
46750         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
46751         native Windows.
46753 2011-09-21  Bruno Haible  <bruno@clisp.org>
46755         New module 'fdopen'.
46756         * lib/stdio.in.h (fdopen): New declaration.
46757         * lib/fdopen.c: New file.
46758         * m4/fdopen.m4: New file.
46759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
46760         REPLACE_FDOPEN.
46761         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
46762         REPLACE_FDOPEN.
46763         * modules/fdopen: New file.
46764         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
46765         * tests/test-stdio-c++.cc: Check signature of fdopen.
46766         * doc/posix-functions/fdopen.texi: Mention the new module.
46768 2011-09-21  Bruno Haible  <bruno@clisp.org>
46770         unlockpt tests: Avoid test failure on NetBSD 5.1.
46771         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
46772         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
46774 2011-09-21  Bruno Haible  <bruno@clisp.org>
46776         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
46777         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
46778         * tests/test-getlogin_r.c (main): Likewise.
46780 2011-09-20  Bruno Haible  <bruno@clisp.org>
46782         time tests: Don't require pid_t.
46783         * doc/posix-headers/time.texi: Revert last change.
46784         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
46785         * tests/test-time.c: Comment out the check for pid_t.
46787 2011-09-20  Bruno Haible  <bruno@clisp.org>
46789         fsync tests: Avoid a test failure on mingw.
46790         * tests/test-fsync.c (main): Allow a failure with EIO.
46792 2011-09-20  Bruno Haible  <bruno@clisp.org>
46794         euidaccess: Update comments.
46795         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
46797 2011-09-20  Bruno Haible  <bruno@clisp.org>
46799         Ensure EBADF returns for socket functions on mingw.
46800         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
46801         descriptor is invalid.
46802         * lib/bind.c (rpl_bind): Likewise.
46803         * lib/connect.c (rpl_connect): Likewise.
46804         * lib/getpeername.c (rpl_getpeername): Likewise.
46805         * lib/getsockname.c (rpl_getsockname): Likewise.
46806         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46807         * lib/listen.c (rpl_listen): Likewise.
46808         * lib/recv.c (rpl_recv): Likewise.
46809         * lib/recvfrom.c (rpl_recvfrom): Likewise.
46810         * lib/send.c (rpl_send): Likewise.
46811         * lib/sendto.c (rpl_sendto): Likewise.
46812         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46813         * lib/shutdown.c (rpl_shutdown): Likewise.
46815 2011-09-20  Bruno Haible  <bruno@clisp.org>
46817         select tests: EBADF tests.
46818         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
46819         test_bad_fd): New functions.
46820         (test_function): Invoke also test_bad_fd.
46822 2011-09-20  Bruno Haible  <bruno@clisp.org>
46824         Tests for module 'posix_spawn_file_actions_addopen.
46825         * modules/posix_spawn_file_actions_addopen-tests: New file.
46826         * tests/test-posix_spawn_file_actions_addopen.c: New file.
46828         Tests for module 'posix_spawn_file_actions_adddup2'.
46829         * modules/posix_spawn_file_actions_adddup2-tests: New file.
46830         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
46832         Tests for module 'posix_spawn_file_actions_addclose'.
46833         * modules/posix_spawn_file_actions_addclose-tests: New file.
46834         * tests/test-posix_spawn_file_actions_addclose.c: New file.
46836 2011-09-20  Bruno Haible  <bruno@clisp.org>
46838         Tests for module 'unlockpt'.
46839         * modules/unlockpt-tests: New file.
46840         * tests/test-unlockpt.c: New file.
46841         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
46843         Tests for module 'grantpt'.
46844         * modules/grantpt-tests: New file.
46845         * tests/test-grantpt.c: New file.
46846         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
46848 2011-09-20  Bruno Haible  <bruno@clisp.org>
46850         freopen tests: EBADF tests.
46851         * tests/test-freopen.c: Include errno.h, unistd.h.
46852         (main): Add tests for EBADF, commented out for the moment.
46854         fclose tests: EBADF tests.
46855         * tests/test-fclose.c (main): Add tests for EBADF.
46857         fflush tests: EBADF tests.
46858         * tests/test-fflush.c: Include errno.h, macros.h.
46859         (main): Add tests for EBADF.
46861         ftello tests: EBADF tests.
46862         * tests/test-ftello4.sh: New file.
46863         * tests/test-ftello4.c: New file.
46864         * modules/ftello-tests (Files): Add them.
46865         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
46867         fseeko tests: EBADF tests.
46868         * tests/test-fseeko4.sh: New file.
46869         * tests/test-fseeko4.c: New file.
46870         * modules/fseeko-tests (Files): Add them.
46871         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
46873         Tests for function fputc().
46874         * modules/fputc-tests: New file.
46875         * tests/test-fputc.c: New file.
46876         * modules/stdio-tests (Depends-on): Add fputc-tests.
46878         Tests for function fgetc().
46879         * modules/fgetc-tests: New file.
46880         * tests/test-fgetc.c: New file.
46881         * modules/stdio-tests (Depends-on): Add fgetc-tests.
46883         Tests for function fdopen().
46884         * modules/fdopen-tests: New file.
46885         * tests/test-fdopen.c: New file.
46886         * modules/stdio-tests (Depends-on): Add fdopen-tests.
46888         Tests for module 'vdprintf'.
46889         * modules/vdprintf-tests: New file.
46890         * tests/test-vdprintf.c: New file.
46892         Tests for module 'dprintf'.
46893         * modules/dprintf-tests: New file.
46894         * tests/test-dprintf.c: New file.
46896 2011-09-20  Bruno Haible  <bruno@clisp.org>
46898         Tests for module 'ioctl'.
46899         * modules/ioctl-tests: New file.
46900         * tests/test-ioctl.c: New file.
46902 2011-09-20  Bruno Haible  <bruno@clisp.org>
46904         fcntl tests: EBADF tests.
46905         * tests/test-fcntl.c (main): Add more tests for EBADF.
46907 2011-09-20  Bruno Haible  <bruno@clisp.org>
46909         utimensat tests: EBADF tests.
46910         * tests/test-utimensat.c (main): Add tests for EBADF.
46912         renameat tests: EBADF tests.
46913         * tests/test-renameat.c (main): Add tests for EBADF.
46915         mkfifoat tests: EBADF tests.
46916         * tests/test-mkfifoat.c (main): Add tests for EBADF.
46918         readlinkat tests: EBADF tests.
46919         * tests/test-readlinkat.c (main): Add tests for EBADF.
46921         symlinkat tests: EBADF tests.
46922         * tests/test-symlinkat.c (main): Add tests for EBADF.
46924         linkat tests: EBADF tests.
46925         * tests/test-linkat.c (main): Add tests for EBADF.
46927         Tests for module 'faccessat'.
46928         * modules/faccessat-tests: New file.
46929         * tests/test-faccessat.c: New file.
46931         fdopendir tests: EBADF tests.
46932         * tests/test-fdopendir.c (main): Add more tests for EBADF.
46934         openat tests: EBADF tests.
46935         * tests/test-fchownat.c (main): Add tests for EBADF.
46936         * tests/test-fstatat.c (main): Likewise.
46937         * tests/test-mkdirat.c (main): Likewise.
46938         * tests/test-openat.c (main): Likewise.
46939         * tests/test-unlinkat.c (main): Likewise.
46940         * tests/test-fchmodat.c: New file.
46941         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
46942         (Makefile.am): Also run 'test-fchmodat'.
46944 2011-09-20  Bruno Haible  <bruno@clisp.org>
46946         utimens, futimens, fdutimensat tests: EBADF tests.
46947         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
46949         Tests for function fstat().
46950         * modules/fstat-tests: New file.
46951         * tests/test-fstat.c: New file.
46952         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
46954 2011-09-20  Bruno Haible  <bruno@clisp.org>
46956         test-ttyname_r tests: EBADF tests.
46957         * tests/test-ttyname_r.c (main): Add tests for EBADF.
46959         Tests for module 'isatty'.
46960         * modules/isatty-tests: New file.
46961         * tests/test-isatty.c: New file.
46963         Tests for module 'write'.
46964         * modules/write-tests: New file.
46965         * tests/test-write.c: New file.
46967         Tests for module 'read'.
46968         * modules/read-tests: New file.
46969         * tests/test-read.c: New file.
46971         pwrite tests: EBADF tests.
46972         * tests/test-pwrite.c (main): Add tests for EBADF.
46974         pread tests: EBADF tests.
46975         * tests/test-pread.c (main): Add tests for EBADF.
46977         lseek tests: EBADF tests.
46978         * tests/test-lseek.c (main): Add more tests for EBADF.
46980         Tests for module 'ftruncate'.
46981         * modules/ftruncate-tests: New file.
46982         * tests/test-ftruncate.sh: New file.
46983         * tests/test-ftruncate.c: New file.
46985         fsync tests: EBADF tests.
46986         * tests/test-fsync.c (main): Add more tests for EBADF.
46988         fdatasync tests: EBADF tests.
46989         * tests/test-fdatasync.c (main): Add more tests for EBADF.
46991         Tests for module 'fchown'.
46992         * modules/fchown-tests: New file.
46993         * tests/test-fchown.c: New file.
46995         Tests for module 'fchmod'.
46996         * modules/fchmod-tests: New file.
46997         * tests/test-fchmod.c: New file.
46999         fchdir tests: EBADF tests.
47000         * tests/test-fchdir.c (main): Add more tests for EBADF.
47002         dup2 tests: EBADF tests.
47003         * tests/test-dup2.c (main): Add more tests for EBADF.
47005         Tests for module 'dup'.
47006         * modules/dup-tests: New file.
47007         * tests/test-dup.c: New file.
47009         Tests for module 'close'.
47010         * modules/close-tests: New file.
47011         * tests/test-close.c: New file.
47013 2011-09-20  Bruno Haible  <bruno@clisp.org>
47015         Tests for module 'shutdown'.
47016         * modules/shutdown-tests: New file.
47017         * tests/test-shutdown.c: New file.
47019         Tests for module 'setsockopt'.
47020         * modules/setsockopt-tests: New file.
47021         * tests/test-setsockopt.c: New file.
47023         Tests for module 'sendto'.
47024         * modules/sendto-tests: New file.
47025         * tests/test-sendto.c: New file.
47027         Tests for module 'send'.
47028         * modules/send-tests: New file.
47029         * tests/test-send.c: New file.
47031         Tests for module 'recvfrom'.
47032         * modules/recvfrom-tests: New file.
47033         * tests/test-recvfrom.c: New file.
47035         Tests for module 'recv'.
47036         * modules/recv-tests: New file.
47037         * tests/test-recv.c: New file.
47039         Tests for module 'listen'.
47040         * modules/listen-tests: New file.
47041         * tests/test-listen.c: New file.
47043         Tests for module 'getsockopt'.
47044         * modules/getsockopt-tests: New file.
47045         * tests/test-getsockopt.c: New file.
47047         Tests for module 'getsockname'.
47048         * modules/getsockname-tests: New file.
47049         * tests/test-getsockname.c: New file.
47051         Tests for module 'getpeername'.
47052         * modules/getpeername-tests: New file.
47053         * tests/test-getpeername.c: New file.
47055         Tests for module 'connect'.
47056         * modules/connect-tests: New file.
47057         * tests/test-connect.c: New file.
47059         Tests for module 'bind'.
47060         * modules/bind-tests: New file.
47061         * tests/test-bind.c: New file.
47063         accept4 tests: Fix for native Windows.
47064         * tests/test-accept4.c: Include sockets.h.
47065         (main): Invoke gl_sockets_startup.
47066         * modules/accept4-tests (Depends-on): Add sockets.
47068         accept tests: Fix for native Windows.
47069         * tests/test-accept.c: Include sockets.h.
47070         (main): Invoke gl_sockets_startup.
47071         * modules/accept-tests (Depends-on): Add sockets.
47073 2011-09-19  Bruno Haible  <bruno@clisp.org>
47075         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
47076         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
47077         do...while(0).
47078         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
47079         Suggested by Paul Eggert.
47081 2011-09-19  Bruno Haible  <bruno@clisp.org>
47083         sched: Ensure pid_t is defined.
47084         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
47085         not define pid_t.
47086         * lib/sched.in.h: Include <sys/types.h>.
47087         * doc/posix-headers/sched.texi: Mention the pid_t problem.
47088         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47090 2011-09-19  Bruno Haible  <bruno@clisp.org>
47092         msvc-inval: Ensure the entire expansion is a single statement.
47093         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
47094         of braces.
47096 2011-09-19  Jim Meyering  <meyering@redhat.com>
47098         tests: use printf, not echo in init.sh's warn_ function
47099         * tests/init.sh (warn_): Use printf, not echo.  The latter would
47100         misbehave when given strings containing a backslash or starting
47101         with e.g., -n.  James Youngman suggested setting IFS.
47103 2011-09-19  Eric Blake  <eblake@redhat.com>
47105         futimens: enhance test
47106         * tests/test-futimens.h (test_futimens): Also check for EBADF on
47107         closed non-negative fd.
47109         date: accept 'hence' as opposite of 'ago'
47110         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
47111         * tests/test-parse-datetime.c (main): Enhance test.
47112         Suggested by Jesse Wilson.
47114 2011-09-19  Jim Meyering  <meyering@redhat.com>
47116         getcwd: don't fail in a deep directory on a system without openat
47117         Before this change, getcwd would fail when called from a directory
47118         of depth PATH_MAX / 3 or greater.  That was due to the fact that
47119         the non-openat implementation used "..", "../..", "../../..", etc.
47120         to access ancestor directories.  With too many, that string would
47121         be longer than PATH_MAX.
47122         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
47123         using gnulib's openat replacement.
47124         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
47125         we're using the replacement function.
47127 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
47129         maint.mk: avoid warnings from perl about missing files
47130         * top/maint.mk (def_sym_regex): Ignore files listed in
47131         $(gl_other_headers_) that do not exist, say because a project
47132         does not use a corresponding module.
47134 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47136         stat: use pathmax.h only if needed
47137         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
47138         This is better for Emacs, which does not have a mingw port and
47139         therefore can avoid the pathmax module.
47141         utimens: remove dependency on dup2
47142         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
47143         to work around the Linux kernel bug.
47144         * modules/utimens (Depends-on): Remove dup2.
47146 2011-09-18  Bruno Haible  <bruno@clisp.org>
47148         inet_ntop, inet_pton: Look for it also in libresolv.
47149         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
47150         libnsl, search for it in libresolv.
47151         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47152         Needed on Solaris 7.
47154 2011-09-18  Bruno Haible  <bruno@clisp.org>
47156         accept, accept4 tests: Avoid link error on Solaris.
47157         * modules/accept-tests (Makefile.am): Link test-accept against
47158         $(LIBSOCKET).
47159         * modules/accept4-tests (Makefile.am): Link test-accept4 against
47160         $(LIBSOCKET).
47162         accept4: Avoid link error on Solaris.
47163         * modules/accept4 (Link): New section.
47165         socket functions: Avoid link errors on Solaris.
47166         * modules/accept (Depends-on): Add socketlib.
47167         (Link): New section.
47168         * modules/bind (Depends-on): Add socketlib.
47169         (Link): New section.
47170         * modules/connect (Depends-on): Add socketlib.
47171         (Link): New section.
47172         * modules/getpeername (Depends-on): Add socketlib.
47173         (Link): New section.
47174         * modules/getsockname (Depends-on): Add socketlib.
47175         (Link): New section.
47176         * modules/getsockopt (Depends-on): Add socketlib.
47177         (Link): New section.
47178         * modules/listen (Depends-on): Add socketlib.
47179         (Link): New section.
47180         * modules/recv (Depends-on): Add socketlib.
47181         (Link): New section.
47182         * modules/recvfrom (Depends-on): Add socketlib.
47183         (Link): New section.
47184         * modules/send (Depends-on): Add socketlib.
47185         (Link): New section.
47186         * modules/sendto (Depends-on): Add socketlib.
47187         (Link): New section.
47188         * modules/setsockopt (Depends-on): Add socketlib.
47189         (Link): New section.
47190         * modules/shutdown (Depends-on): Add socketlib.
47191         (Link): New section.
47192         * modules/socket (Depends-on): Add socketlib.
47193         (Link): New section.
47195 2011-09-18  Bruno Haible  <bruno@clisp.org>
47197         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
47198         * tests/test-ptsname.c (main): Terminate the test if it takes longer
47199         than 5 seconds.
47200         * modules/ptsname-tests (configure.ac): Test for alarm.
47202 2011-09-18  Bruno Haible  <bruno@clisp.org>
47204         posix_spawn_file_actions_add*: Fix module dependencies.
47205         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
47206         posix_spawn_file_actions_init.
47207         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
47208         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
47210 2011-09-18  Bruno Haible  <bruno@clisp.org>
47212         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
47213         * tests/test-rename.h (test_rename): Allow error code EEXIST.
47214         * tests/test-renameat.c (main): Likewise.
47216 2011-09-18  Bruno Haible  <bruno@clisp.org>
47218         Tests for module 'accept4'.
47219         * modules/accept4-tests: New file.
47220         * tests/test-accept4.c: New file.
47222 2011-09-18  Bruno Haible  <bruno@clisp.org>
47224         Tests for module 'accept'.
47225         * modules/accept-tests: New file.
47226         * tests/test-accept.c: New file.
47228 2011-09-18  Bruno Haible  <bruno@clisp.org>
47230         dup2: Support for MSVC.
47231         * lib/dup2.c: Include msvc-inval.h.
47232         (rpl_dup2): Handle invalid parameter notifications during dup2 and
47233         _get_osfhandle calls.
47234         * modules/dup2 (Depends-on): Add msvc-inval.
47235         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
47237         New module 'msvc-inval'.
47238         * lib/msvc-inval.h: New file.
47239         * lib/msvc-inval.c: New file.
47240         * m4/msvc-inval.m4: New file.
47241         * modules/msvc-inval: New file.
47243 2011-09-17  Bruno Haible  <bruno@clisp.org>
47245         Tests for module 'pclose'.
47246         * modules/pclose-tests: New file.
47248         New module 'pclose'.
47249         * lib/stdio.in.h (pclose): New declaration.
47250         * lib/pclose.c: New file.
47251         * m4/pclose.m4: New file.
47252         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
47253         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
47254         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
47255         * modules/pclose: New file.
47256         * modules/popen-tests (Depends-on): Add pclose.
47257         * modules/popen-safer-tests (Depends-on): Likewise.
47258         * doc/posix-functions/pclose.texi: Mention the new module.
47260 2011-09-17  Bruno Haible  <bruno@clisp.org>
47262         popen: Support for MSVC.
47263         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
47264         * lib/popen.c (popen): Provide alternate definition for native Windows.
47265         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
47266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
47267         * modules/popen (Depends-on, configure.ac): Update condition.
47268         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
47269         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
47270         fixed.
47272 2011-09-17  Bruno Haible  <bruno@clisp.org>
47274         isnanl, isnand, isnanf: Work around MSVC bug.
47275         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
47277 2011-09-17  Bruno Haible  <bruno@clisp.org>
47279         sys_socket tests: Fix recent mistake.
47280         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
47282 2011-09-17  Bruno Haible  <bruno@clisp.org>
47284         putenv: Support for MSVC.
47285         * modules/putenv (Depends-on): Add environ.
47286         * lib/putenv.c (environ): Disable declaration.
47287         * lib/unistd.in.h: Update comment.
47289 2011-09-17  Bruno Haible  <bruno@clisp.org>
47291         math: Avoid macro redefinition warnings on MSVC.
47292         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
47293         Undefine before redefining.
47295 2011-09-17  Bruno Haible  <bruno@clisp.org>
47297         doc: Mention functions which are declared as macros.
47298         * doc/posix-functions/*[fl].texi: Mention that some functions are
47299         defined as macros with arguments only.
47301 2011-09-17  Bruno Haible  <bruno@clisp.org>
47303         Add dependencies to new dirent related modules.
47304         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
47305         * modules/fts (Depends-on): Likewise.
47306         * modules/glob (Depends-on): Likewise.
47307         * modules/savedir (Depends-on): Likewise.
47308         * modules/scandir (Depends-on): Likewise.
47309         * modules/dirent-safer (Depends-on): Add opendir, closedir.
47310         * modules/fdopendir (Depends-on): Add opendir.
47312 2011-09-17  Bruno Haible  <bruno@clisp.org>
47314         inet_pton: Support for MSVC on Windows Vista or newer.
47315         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
47316         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
47317         HAVE_DECL_INET_PTON is defined.
47318         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
47319         On platforms with <winsock2.h>, test whether inet_pton is declared in
47320         <ws2tcpip.h>. If so, arrange to replace it.
47321         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
47322         REPLACE_INET_PTON.
47323         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
47324         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
47325         (Depends-on, configure.ac): Update condition.
47326         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
47328 2011-09-17  Bruno Haible  <bruno@clisp.org>
47330         inet_ntop: Support for MSVC on Windows Vista or newer.
47331         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
47332         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
47333         HAVE_DECL_INET_NTOP is defined.
47334         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
47335         On platforms with <winsock2.h>, test whether inet_ntop is declared in
47336         <ws2tcpip.h>. If so, arrange to replace it.
47337         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
47338         REPLACE_INET_NTOP.
47339         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
47340         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
47341         (Depends-on, configure.ac): Update condition.
47342         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
47344 2011-09-16  Eric Blake  <eblake@redhat.com>
47346         test-fsync: yet another enhancement
47347         * tests/test-fsync.c (main): Also test behavior on read-only text
47348         file.
47350 2011-09-16  Bruno Haible  <bruno@clisp.org>
47352         Enhance fsync, fdatasync tests.
47353         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
47354         * tests/test-fdatasync.c (main): Likewise.
47356 2011-09-16  Bruno Haible  <bruno@clisp.org>
47358         Support for MSVC compiler: Ensure mode_t gets defined.
47359         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
47360         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
47361         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47362         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
47363         * tests/test-fcntl-h.c: Check that mode_t is defined.
47364         * tests/test-sys_stat.c: Likewise.
47365         * tests/test-sys_types.c: Likewise.
47366         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
47367         * doc/posix-headers/sys_stat.texi: Likewise.
47368         * doc/posix-headers/sys_types.texi: Likewise.
47370 2011-09-16  Bruno Haible  <bruno@clisp.org>
47372         sys_stat: Support for MSVC.
47373         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
47374         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
47375         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
47376         MSVC.
47378 2011-09-16  Bruno Haible  <bruno@clisp.org>
47380         Support for MSVC compiler: Ensure off_t gets defined.
47381         * lib/unistd.in.h: Include <sys/types.h>.
47382         * tests/test-fcntl-h.c: Check that off_t is defined.
47383         * tests/test-sys_stat.c: Likewise.
47384         * tests/test-sys_types.c: Likewise.
47386 2011-09-16  Eric Blake  <eblake@redhat.com>
47388         fdatasync: port to Solaris
47389         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
47390         * modules/fdatasync (Link): Document it.
47391         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
47393         fdatasync: port to MacOS X 10.7
47394         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
47395         declared.
47396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
47397         * modules/unistd (Makefile.am): Substitute it.
47398         * lib/unistd.in.h (fdatasync): Declare on MacOS.
47399         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
47401         fdatasync: minor improvements
47402         * modules/fdatasync (Depends-on): Add condition for fsync.
47403         * lib/fdatasync.c (fdatasync): Add comment.
47404         * tests/test-unistd-c++.cc: Test fdatasync.
47406         unistd: update refs to newer POSIX
47407         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
47408         Suggested by Bruno Haible.
47410         fdatasync: new module
47411         * modules/fsync (Description): Document difference to fdatasync.
47412         * modules/fdatasync: New module.
47413         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
47414         * lib/fdatasync.c (fdatasync): Likewise.
47415         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
47416         defaults.
47417         * modules/unistd (Makefile.am): Set witnesses.
47418         * lib/unistd.in.h (fdatasync): Declare.
47419         * MODULES.html.sh: Document it.
47420         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
47421         * modules/fdatasync-tests: New test.
47422         * tests/test-fdatasync.c: Likewise.
47424 2011-09-16  Eric Blake  <eblake@redhat.com>
47426         test-fsync: enhance tests
47427         * modules/fsync-tests (Depends-on): Add errno, for mingw.
47428         * tests/test-fsync.c (main): Enhance test.
47430 2011-09-15  Bruno Haible  <bruno@clisp.org>
47432         Support for MSVC compiler: Ensure ssize_t gets defined.
47433         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
47434         * doc/posix-headers/stdio.texi: Likewise.
47435         * modules/stdio (Depends-on): Add ssize_t.
47436         * modules/sys_socket (Depends-on): Likewise.
47437         * modules/sys_types (Depends-on): Likewise.
47438         * modules/sys_uio (Depends-on): Likewise.
47439         * modules/unistd (Depends-on): Likewise.
47440         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
47441         * tests/test-sys_types.c: Check that ssize_t is defined.
47443 2011-09-14  Bruno Haible  <bruno@clisp.org>
47445         Avoid using #, the m4 comment starter character, near brackets.
47446         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
47447         delimiter character in sed expressions.
47448         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
47449         Suggested by Eric Blake.
47451         Properly quote AC_CHECK_DECLS' 4th argument.
47452         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
47453         argument.
47454         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47455         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47456         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47457         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
47458         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47459         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
47460         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
47461         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
47462         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
47463         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47464         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
47465         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47466         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47467         * m4/isinf.m4 (gl_ISINF): Likewise.
47468         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47469         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47470         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47471         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47472         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47473         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47474         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47475         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47476         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
47477         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47478         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47479         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
47481         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47483         Reported by Eric Blake.
47485         Properly quote AC_CHECK_DECL's 4th argument.
47486         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
47487         argument.
47488         * m4/argp.m4 (gl_ARGP): Likewise.
47489         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47490         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47491         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47492         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47493         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
47494         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
47495         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
47496         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47497         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47498         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47499         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47500         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47501         Reported by Eric Blake.
47503 2011-09-14  Eric Blake  <eblake@redhat.com>
47505         opendir: avoid compile warning
47506         * lib/opendir.c (includes): Always include errno.h.
47507         Reported by Tatsuro MATSUOKA.
47509 2011-09-14  Jim Meyering  <meyering@redhat.com>
47511         maint.mk: sc_tight_scope: propagate failure from sub-make
47512         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
47513         Reported by Martin von Gagern.
47515 2011-09-13  Bruno Haible  <bruno@clisp.org>
47517         tempname: Support for MSVC.
47518         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
47519         MSVC.
47520         * modules/tempname (Depends-on): Add fcntl-h.
47522 2011-09-13  Bruno Haible  <bruno@clisp.org>
47524         sys_time: Support for MSVC.
47525         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
47526         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
47527         include <winsock2.h>.
47528         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
47529         function declarations that collide with POSIX.
47530         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
47531         (Makefile.am): Substitute HAVE_WINSOCK2_H.
47533 2011-09-13  Bruno Haible  <bruno@clisp.org>
47535         stat: Support for MSVC.
47536         * lib/stat.c: Include pathmax.h.
47537         * modules/stat (Depends-on): Add pathmax.
47539         pathmax: Support for native Windows.
47540         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
47542 2011-09-12  Bruno Haible  <bruno@clisp.org>
47544         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
47545         * lib/dirent.in.h (struct dirent): New type.
47546         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
47547         DT_WHT): New macros.
47548         (DIR): New type.
47549         (opendir, closedir): Declare only if the module 'opendir' is enabled.
47550         (readdir, rewinddir): New declarations.
47551         * lib/dirent-private.h: New file.
47552         * lib/opendir.c: New file.
47553         * lib/readdir.c: New file.
47554         * lib/rewinddir.c: New file.
47555         * lib/closedir.c: New file.
47556         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
47557         * m4/opendir.m4: New file.
47558         * m4/readdir.m4: New file.
47559         * m4/rewinddir.m4: New file.
47560         * m4/closedir.m4: New file.
47561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
47562         REPLACE_CLOSEDIR here.
47563         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
47564         readdir, rewinddir are declared.
47565         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
47566         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
47567         HAVE_REWINDDIR, HAVE_CLOSEDIR.
47568         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
47569         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
47570         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
47571         * modules/opendir: New file.
47572         * modules/readdir: New file.
47573         * modules/rewinddir: New file.
47574         * modules/closedir: New file.
47575         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
47576         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
47577         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
47578         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
47579         * NEWS: Mention the 'fchdir' change.
47581 2011-09-11  Bruno Haible  <bruno@clisp.org>
47583         asm-underscore.m4: Support for MSVC.
47584         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
47585         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
47587 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
47589         Doc about crypt functions.
47590         * doc/posix-functions/crypt.texi: Expand range of glibc versions
47591         needing for _GNU_SOURCE to get crypt.
47592         * doc/posix-functions/encrypt.texi: Likewise.
47593         * doc/posix-functions/setkey.texi: Likewise.
47595 2011-09-11  Bruno Haible  <bruno@clisp.org>
47597         doc: Update regarding MSVC 9.
47598         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
47599         tested".
47600         * doc/posix-functions/*.texi: Update with info about MSVC 9.
47601         * doc/posix-headers/*.texi: Likewise.
47602         * doc/pastposix-functions/*.texi: Likewise.
47603         * doc/glibc-functions/*.texi: Likewise.
47604         * doc/glibc-headers/*.texi: Likewise.
47606 2011-09-11  Bruno Haible  <bruno@clisp.org>
47608         unistd et al.: Don't assume <unistd.h> exists.
47609         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
47610         does not exist.
47611         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
47612         exist. But include <stdlib.h>.
47613         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
47614         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
47615         symlink() does not exist.
47616         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
47617         include <io.h> instead.
47618         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
47619         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
47620         include <direct.h> instead.
47621         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47622         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47623         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
47624         <io.h> instead.
47625         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
47626         correctly if the system does not have hard links.
47627         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
47628         <direct.h> instead.
47629         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
47630         it when looking for function declarations.
47631         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
47632         <direct.h> and <io.h> instead.
47633         * doc/posix-headers/unistd.texi: More details about MSVC problem.
47635 2011-09-11  Bruno Haible  <bruno@clisp.org>
47637         strcase: Support for MSVC.
47638         * modules/strcase (Status, Notice): Remove obsoletion mark.
47639         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
47640         * doc/posix-functions/strncasecmp.texi: Likewise.
47642         strings: Don't assume <strings.h> exists.
47643         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
47644         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
47645         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
47646         * doc/posix-headers/strings.texi: Mention the MSVC problem.
47648 2011-09-11  Bruno Haible  <bruno@clisp.org>
47650         dirent: Don't assume <dirent.h> exists.
47651         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
47652         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
47653         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
47654         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
47656 2011-09-11  Bruno Haible  <bruno@clisp.org>
47658         Fix wint_t on MSVC.
47659         * lib/wchar.in.h (wint_t): On MSVC, override it.
47660         * lib/wctype.in.h (wint_t): Likewise.
47661         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
47662         MSVC.
47663         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
47664         * doc/posix-headers/wctype.texi: Likewise.
47666 2011-09-11  Bruno Haible  <bruno@clisp.org>
47668         sys_types: Fix typo.
47669         * lib/sys_types.in.h: Fix typo in comment.
47670         Reported by Paul Eggert.
47672         Support for MSVC compiler: Ensure size_t gets defined.
47673         * modules/strings (Depends-on): Add 'sys_types'.
47674         * modules/sys_uio (Depends-on): Likewise.
47675         * lib/sys_uio.in.h: Update comment.
47677         C++ tests for module 'sys_types'.
47678         * modules/sys_types-c++-tests: New file.
47679         * tests/test-sys_types-c++.cc: New file.
47681         Tests for module 'sys_types'.
47682         * modules/sys_types-tests: New file.
47683         * tests/test-sys_types.c: New file.
47685         New module 'sys_types'.
47686         * lib/sys_types.in.h: New file.
47687         * m4/sys_types_h.m4: New file.
47688         * modules/sys_types: New file.
47689         * doc/posix-headers/sys_types.texi: Mention the new module and the
47690         size_t problem on MSVC 9.
47692 2011-09-11  Bruno Haible  <bruno@clisp.org>
47694         Support for MSVC compiler: Avoid division by a literal 0.
47695         * lib/math.in.h (NAN): Define through a function call also on MSVC.
47696         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
47697         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
47698         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
47699         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
47700         * tests/infinity.h: New file.
47701         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
47702         on MSVC.
47703         * tests/test-ceilf1.c: Include infinity.h.
47704         (main): Use Infinityf.
47705         * tests/test-ceil1.c: Include infinity.h.
47706         (main): Use Infinityd.
47707         * tests/test-ceill.c: Include infinity.h.
47708         (main): Use Infinityl.
47709         * tests/test-dprintf-posix.c: Include infinity.h.
47710         (test_function): Use Infinityd.
47711         * tests/test-floorf1.c: Include infinity.h.
47712         (main): Use Infinityf.
47713         * tests/test-floor1.c: Include infinity.h.
47714         (main): Use Infinityd.
47715         * tests/test-floorl.c: Include infinity.h.
47716         (main): Use Infinityl.
47717         * tests/test-fprintf-posix.c: Include infinity.h.
47718         (test_function): Use Infinityd.
47719         * tests/test-frexp.c: Include infinity.h.
47720         (main): Use Infinityd.
47721         * tests/test-frexpl.c: Include infinity.h.
47722         (main): Use Infinityl.
47723         * tests/test-isfinite.c: Include infinity.h.
47724         (test_isfinitef): Use Infinityf.
47725         (test_isfinited): Use Infinityd.
47726         (test_isfinitel): Use Infinityl.
47727         * tests/test-isinf.c: Include infinity.h.
47728         (test_isinff): Use Infinityf.
47729         (test_isinfd): Use Infinityd.
47730         (test_isinfl): Use Infinityl.
47731         * tests/test-isnan.c: Include infinity.h.
47732         (test_float): Use Infinityf.
47733         (test_double): Use Infinityd.
47734         (test_long_double): Use Infinityl.
47735         * tests/test-isnanf.h: Include infinity.h.
47736         (main): Use Infinityf.
47737         * tests/test-isnand.h: Include infinity.h.
47738         (main): Use Infinityd.
47739         * tests/test-isnanl.h: Include infinity.h.
47740         (main): Use Infinityl.
47741         * tests/test-ldexpl.c: Include infinity.h.
47742         (main): Use Infinityl.
47743         * tests/test-printf-posix.h: Include infinity.h.
47744         (test_function): Use Infinityd.
47745         * tests/test-roundf1.c: Include infinity.h.
47746         (main): Use Infinityf.
47747         * tests/test-round1.c: Include infinity.h.
47748         (main): Use Infinityd.
47749         * tests/test-roundl.c: Include infinity.h.
47750         (main): Use Infinityl.
47751         * tests/test-signbit.c: Include infinity.h.
47752         (test_signbitf): Use Infinityf.
47753         (test_signbitd): Use Infinityd.
47754         (test_signbitl): Use Infinityl.
47755         * tests/test-snprintf-posix.h: Include infinity.h.
47756         (test_function): Use Infinityd, Infinityl.
47757         * tests/test-sprintf-posix.h: Include infinity.h.
47758         (test_function): Use Infinityd, Infinityl.
47759         * tests/test-truncf1.c: Include infinity.h.
47760         (main): Use Infinityf.
47761         * tests/test-trunc1.c: Include infinity.h.
47762         (main): Use Infinityd.
47763         * tests/test-truncl.c: Include infinity.h.
47764         (main): Use Infinityl.
47765         * tests/test-vasnprintf-posix.c: Include infinity.h.
47766         (test_function): Use Infinityd, Infinityl.
47767         * tests/test-vasprintf-posix.c: Include infinity.h.
47768         (test_function): Use Infinityd, Infinityl.
47769         * modules/ceilf-tests (Files): Add tests/infinity.h.
47770         * modules/ceil-tests (Files): Likewise.
47771         * modules/ceill-tests (Files): Likewise.
47772         * modules/dprintf-posix-tests (Files): Likewise.
47773         * modules/floorf-tests (Files): Likewise.
47774         * modules/floor-tests (Files): Likewise.
47775         * modules/floorl-tests (Files): Likewise.
47776         * modules/fprintf-posix-tests (Files): Likewise.
47777         * modules/frexp-tests (Files): Likewise.
47778         * modules/frexp-nolibm-tests (Files): Likewise.
47779         * modules/frexpl-tests (Files): Likewise.
47780         * modules/frexpl-nolibm-tests (Files): Likewise.
47781         * modules/isfinite-tests (Files): Likewise.
47782         * modules/isinf-tests (Files): Likewise.
47783         * modules/isnan-tests (Files): Likewise.
47784         * modules/isnanf-tests (Files): Likewise.
47785         * modules/isnanf-nolibm-tests (Files): Likewise.
47786         * modules/isnand-tests (Files): Likewise.
47787         * modules/isnand-nolibm-tests (Files): Likewise.
47788         * modules/isnanl-tests (Files): Likewise.
47789         * modules/isnanl-nolibm-tests (Files): Likewise.
47790         * modules/ldexpl-tests (Files): Likewise.
47791         * modules/printf-posix-tests (Files): Likewise.
47792         * modules/roundf-tests (Files): Likewise.
47793         * modules/round-tests (Files): Likewise.
47794         * modules/roundl-tests (Files): Likewise.
47795         * modules/signbit-tests (Files): Likewise.
47796         * modules/snprintf-posix-tests (Files): Likewise.
47797         * modules/sprintf-posix-tests (Files): Likewise.
47798         * modules/truncf-tests (Files): Likewise.
47799         * modules/trunc-tests (Files): Likewise.
47800         * modules/truncl-tests (Files): Likewise.
47801         * modules/vasnprintf-posix-tests (Files): Likewise.
47802         * modules/vasprintf-posix-tests (Files): Likewise.
47803         * modules/vdprintf-posix-tests (Files): Likewise.
47804         * modules/vfprintf-posix-tests (Files): Likewise.
47805         * modules/vprintf-posix-tests (Files): Likewise.
47806         * modules/vsnprintf-posix-tests (Files): Likewise.
47807         * modules/vsprintf-posix-tests (Files): Likewise.
47808         * modules/xprintf-posix-tests (Files): Likewise.
47810 2011-09-11  Bruno Haible  <bruno@clisp.org>
47812         Ensure pid_t gets defined.
47813         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
47814         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
47815         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47816         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
47817         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
47818         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
47819         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47820         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47821         * tests/test-fcntl-h.c: Check that pid_t is defined.
47822         * tests/test-sched.c: Likewise.
47823         * tests/test-termios.c: Likewise.
47824         * tests/test-time.c: Likewise.
47825         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
47826         * doc/posix-headers/signal.texi: Likewise.
47827         * doc/posix-headers/sys_types.texi: Likewise.
47828         * doc/posix-headers/time.texi: Likewise.
47830 2011-09-11  Bruno Haible  <bruno@clisp.org>
47832         acl: Fix compilation on Solaris 10 (older version).
47833         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
47834         of ACE_EVERYONE.
47835         * lib/set-mode-acl.c (qset_acl): Likewise.
47836         Reported by Christian Jullien <eligis@orange.fr>.
47838 2011-09-10  Bruno Haible  <bruno@clisp.org>
47840         iconv, unsetenv: Add support for MSVC compiler.
47841         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
47842         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
47844 2011-09-10  Bruno Haible  <bruno@clisp.org>
47846         *printf: Add support for MSVC compiler.
47847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
47848         handles the exception caused by the %n directive. When cross-compiling,
47849         guess no on native Windows.
47850         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
47851         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
47852         emulate it through vsnprintf.
47853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
47854         * doc/posix-functions/dprintf.texi: Update documentation regarding
47855         MSVC 9.
47856         * doc/posix-functions/fprintf.texi: Likewise.
47857         * doc/posix-functions/printf.texi: Likewise.
47858         * doc/posix-functions/snprintf.texi: Likewise.
47859         * doc/posix-functions/sprintf.texi: Likewise.
47860         * doc/posix-functions/swprintf.texi: Likewise.
47861         * doc/posix-functions/vdprintf.texi: Likewise.
47862         * doc/posix-functions/vfprintf.texi: Likewise.
47863         * doc/posix-functions/vprintf.texi: Likewise.
47864         * doc/posix-functions/vsnprintf.texi: Likewise.
47865         * doc/posix-functions/vsprintf.texi: Likewise.
47866         * doc/glibc-functions/asprintf.texi: Likewise.
47867         * doc/glibc-functions/obstack_printf.texi: Likewise.
47868         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47869         * doc/glibc-functions/vasprintf.texi: Likewise.
47871 2011-09-10  Bruno Haible  <bruno@clisp.org>
47873         nocrash: Add support for native Windows.
47874         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
47876 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
47877             Bruno Haible  <bruno@clisp.org>
47879         absolute-header, include-next: Add support for MSVC compiler.
47880         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
47881         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
47882         directory separator in #line directives.
47883         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
47884         recognize also backslash as directory separator in #line directives.
47886 2011-09-08  Jim Meyering  <meyering@redhat.com>
47888         maint.mk: mark the post-release commit log with "maint: " prefix
47889         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
47890         one-line commit-log summary.
47892 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
47893             Bruno Haible  <bruno@clisp.org>
47895         Doc about crypt functions.
47896         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
47897         systems.
47898         * doc/posix-functions/encrypt.texi: Likewise.
47899         * doc/posix-functions/setkey.texi: Likewise.
47901 2011-09-08  Simon Josefsson  <simon@josefsson.org>
47903         * lib/gc.h: Fix copyright header.
47905 2011-09-07  Bruno Haible  <bruno@clisp.org>
47907         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
47908         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
47909         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
47911 2011-09-07  Bruno Haible  <bruno@clisp.org>
47913         openat: Work around compilation error with OSF/1 5.1 DTK cc.
47914         * lib/fopen.c: Use different syntax for include of <stdio.h>.
47915         * lib/freopen.c: Likewise.
47916         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
47917         * lib/lstat.c: Likewise.
47918         * lib/stat.c: Likewise.
47919         * lib/open.c: Use different syntax for include of <fcntl.h>.
47920         * lib/openat.c: Include fcntl.h again, explicitly.
47922 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
47924         parse-datetime: document the newly accepted format
47925         * doc/parse-datetime.texi (Combined date and time of day items):
47926         New section.
47928 2011-09-06  Bruno Haible  <bruno@clisp.org>
47930         acl: Fix a test failure on newer Solaris 10 with ZFS.
47931         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
47932         ENOSYS as no ACL.
47933         Reported by Jim Meyering.
47935 2011-09-06  Bruno Haible  <bruno@clisp.org>
47937         acl: Update for AIX >= 5.3 with NFS.
47938         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
47939         ENOSYS as no ACL.
47941         acl: Fix a test failure on AIX >= 5.3 with NFS.
47942         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
47943         as no ACL.
47945 2011-09-06  Bruno Haible  <bruno@clisp.org>
47947         acl: Fix a test failure on IRIX 6.5 with NFS.
47948         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
47949         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
47950         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
47951         * lib/copy-acl.c (qcopy_acl): Likewise.
47953 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
47955         openat: port to AIX 7.1 with large files
47956         AIX 7.1 does a "#define openat open64at" if large files are in use,
47957         so we can't simply #undef openat.  Use the orig_openat trick (similar
47958         to orig_open in lib/open.c) to work around the problem.  Problem
47959         reported by Kevin Brott for GNU tar, in the thread containing
47960         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
47961         * lib/openat.c (__need_system_fcntl_h): Define first.
47962         Include <fcntl.h> and <sys/types.h> before undefining.
47963         (orig_openat) [HAVE_OPENAT]: New inline function.
47964         (openat) [HAVE_OPENAT]: Do not undef.
47965         (rpl_openat): Use orig_openat, not openat.
47967 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
47968             Bruno Haible  <bruno@clisp.org>
47970         acl: Avoid errors on NonStop Kernel.
47971         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
47972         ENOTSUP errors.
47974 2011-09-05  Bruno Haible  <bruno@clisp.org>
47976         acl: Clean up Solaris code.
47977         * lib/acl-internal.h: Remove no-op #if.
47978         * lib/file-has-acl.c: Likewise.
47979         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
47980         * lib/copy-acl.c (qcopy_acl): Likewise.
47982 2011-09-05  Bruno Haible  <bruno@clisp.org>
47984         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
47985         binaries built on the original Solaris 10.
47986         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
47987         trivial.
47989 2011-09-05  Bruno Haible  <bruno@clisp.org>
47991         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
47992         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
47993         10.
47994         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
47995         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
47996         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
47997         instead of acl_get, facl_get, acl_set, facl_set.
47999 2011-09-05  Bruno Haible  <bruno@clisp.org>
48001         copy-file: Try unit tests on more file systems.
48002         * tests/test-copy-file-1.sh: New file.
48003         * tests/test-copy-file-2.sh: New file.
48004         * modules/copy-file-tests (Files): Add them.
48005         (Makefile.am): Add them to TESTS.
48007         acl: Try unit tests on more file systems.
48008         * tests/test-file-has-acl-1.sh: New file.
48009         * tests/test-file-has-acl-2.sh: New file.
48010         * tests/test-set-mode-acl-1.sh: New file.
48011         * tests/test-set-mode-acl-2.sh: New file.
48012         * tests/test-copy-acl-1.sh: New file.
48013         * tests/test-copy-acl-2.sh: New file.
48014         * modules/acl-tests (Files): Add them.
48015         (Makefile.am): Add them to TESTS.
48017 2011-09-04  Bruno Haible  <bruno@clisp.org>
48019         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48020         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
48021         10.
48022         (OLD_ALLOW, OLD_DENY): New macros.
48023         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
48024         ACE_ACCESS_ALLOWED_ACE_TYPE.
48025         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
48026         ACE_ACCESS_DENIED_ACE_TYPE.
48027         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
48028         (NEW_ACE_EXECUTE): Fix value.
48029         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
48030         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
48031         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
48032         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
48033         NEW_ACE_SYNCHRONIZE): New macros.
48034         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
48035         instead of acl_fromtext, acl_set, facl_set.
48036         Fixes a coreutils/tests/cp/perm failure.
48038 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
48040         openat: test for fstatat (..., 0) bug
48041         Further testing with tar suggests that fstatat (..., 0)
48042         does not work in general, on AIX 7.1; see
48043         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
48044         So, give up entirely on AIX 7.1's fstatat, and fall back on our
48045         replacement fstatat (which is what older AIX releases were using
48046         anyway).
48047         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
48048         use is now changed to orig_fstatat.  This was probably the right
48049         thing to do anyway.
48050         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
48051         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
48052         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
48053         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
48054         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
48055         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
48056         if the bug is found.
48058         openat: test for fstatat (AT_FDCWD, ..., 0) bug
48059         This tests for another fstatat bug on AIX 7.1:
48060         fstatat (AT_FDCWD, ..., 0) does not work.  See
48061         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
48062         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
48063         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
48064         (rpl_fstatat): Adjust so that it works around either (or both)
48065         bugs if present.
48066         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
48068 2011-09-03  Karl Berry  <karl@gnu.org>
48070         * doc/regex.texi (Character Class Operators): Avoid literal ":"
48071         in index entries.
48073 2011-09-02  Bruno Haible  <bruno@clisp.org>
48075         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
48076         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
48077         values of AR, ARFLAGS, RANLIB.
48078         Reported by John W. Eaton <jwe@gnu.org> for Octave.
48080 2011-09-02  Bruno Haible  <bruno@clisp.org>
48082         Find 'ar' program that fits with --host argument.
48083         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
48085 2011-09-02  Bruno Haible  <bruno@clisp.org>
48087         tests: init.sh: Support any non-GNU diff.
48088         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
48089         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
48090         Solaris 8.
48092 2011-09-02  Bruno Haible  <bruno@clisp.org>
48094         tests: init.sh: work also with any non-GNU diff that supports -u
48095         * tests/init.sh: Relax check for diff -u support.
48096         Rather than checking for GNU diff via --version, simply check
48097         for support for -u itself.  Useful at least on OpenBSD 4.9,
48098         AIX 7.1, IRIX 6.5, and Solaris 10.
48100 2011-09-01  Bruno Haible  <bruno@clisp.org>
48102         strtoimax, strtoumax: Document problem on HP-UX 11.
48103         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
48104         * doc/posix-functions/strtoumax.texi: Likewise.
48106 2011-09-01  Bruno Haible  <bruno@clisp.org>
48108         strtoumax: Avoid link error on OSF/1 with DTK cc.
48109         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
48110         defined as a function.
48111         * modules/strtoumax (Depends-on, configure.ac): Test only whether
48112         strtoumax is defined, not whether it is declared.
48114 2011-09-01  Bruno Haible  <bruno@clisp.org>
48116         strtoimax: Avoid link error on OSF/1 with DTK cc.
48117         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
48118         defined as a function.
48119         * modules/strtoimax (Depends-on, configure.ac): Test only whether
48120         strtoimax is defined, not whether it is declared.
48122 2011-09-01  Bruno Haible  <bruno@clisp.org>
48124         imaxdiv: Avoid link error on OSF/1 with DTK cc.
48125         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
48126         as a function.
48127         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
48128         whether it is declared.
48130 2011-09-01  Bruno Haible  <bruno@clisp.org>
48132         imaxabs: Avoid link error on OSF/1 with DTK cc.
48133         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
48134         as a function.
48135         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
48136         whether it is declared.
48138 2011-09-01  Bruno Haible  <bruno@clisp.org>
48140         Tests for module 'strtoumax'.
48141         * modules/strtoumax-tests: New file.
48142         * tests/test-strtoumax.c: New file.
48144         Tests for module 'strtoimax'.
48145         * modules/strtoimax-tests: New file.
48146         * tests/test-strtoimax.c: New file.
48148         Tests for module 'imaxdiv'.
48149         * modules/imaxdiv-tests: New file.
48150         * tests/test-imaxdiv.c: New file.
48152         Tests for module 'imaxabs'.
48153         * modules/imaxabs-tests: New file.
48154         * tests/test-imaxabs.c: New file.
48156 2011-09-01  Bruno Haible  <bruno@clisp.org>
48158         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
48159         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
48160         pthread_create.
48162 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48164         openat: work around AIX 7.1 fstatat issue
48165         This should fix the problem that was not properly fixed
48166         in the previous change, dated 2011-08-30.
48167         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
48168         __need_system_stat_h defined.
48169         (orig_fstatat) [HAVE_FSTATAT]: New function.
48170         (rpl_fstatat): Go back to the old way of doing things,
48171         except call orig_fstatat instead of fstatat.
48172         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
48173         Remove unnecessary check whether fstatat fills in st_size etc.
48175 2011-09-01  Bruno Haible  <bruno@clisp.org>
48177         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
48178         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
48179         just include the system's header.
48181 2011-08-31  Jim Meyering  <meyering@redhat.com>
48183         tests: avoid spurious assertion failure in test-float.c on ppc64
48184         * tests/test-float.c (test_long_double): Comment out an assertion,
48185         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
48186         with gcc-4.4.4.
48188         maint: indent with spaces, not TABs
48189         I need to get in the habit of running gnulib's "make check".
48190         Both of these would have been caught.
48191         * m4/largefile.m4: Indent with spaces, not TABs.
48192         * lib/parse-datetime.y (iso_8601_time): Likewise.
48193         Spotted by Pádraig Brady.
48195         test-parse-datetime.c: accommodate a relatively strict gcc warning
48196         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
48197         to avoid a warning from gcc's -Werror=missing-declarations.
48198         Insert a few spaces-before-funcall-parenthesis.
48200 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
48202         parse-datetime: accept ISO 8601 date and time rep with "T" separator
48203         The parser now accepts ISO 8601 date-time strings with "T" as the
48204         separator.  It has long parsed dates like "2004-02-29 16:21:42"
48205         with a space between the date and time strings.  Now it also parses
48206         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
48207         variants like "2004-02-29T16:21:42.333-07:00"
48208         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
48209         of day representation using the 'T' separator character.
48210         * doc/parse-datetime.texi (General date syntax): replace use of
48211         deprecated --iso-8601 option with --rfc-3339 in example of date
48212         command output formats that can be parsed.
48213         * tests/test-parse-datetime.c (tm_diff): New function, taken from
48214         lib/parse-datetime.y.
48215         (gmt_offset): New function.
48216         (main): Add additional test cases to validate ISO8601 extended
48217         date and time of day parsing.
48219 2011-08-31  Bruno Haible  <bruno@clisp.org>
48221         freopen: Documentation.
48222         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
48223         name.
48224         Reported by Claudio Bley <claudio.bley@gmail.com>.
48226 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
48228         freopen: Don't crash if the filename argument is NULL.
48229         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
48230         NULL.
48232 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48234         openat: work around AIX 7.1 fstatat bug
48235         Problem reported by Kevin Brott for GNU tar, in the thread containing
48236         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
48237         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
48238         FSTATAT_ST_SIZE_ETC_BROKEN.
48239         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
48240         rpl_fstatat.
48241         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
48242         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
48243         AC_CHECK_FUNCS_ONCE for fstatat.
48244         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
48245         fchmodat, mkdirat, openat and unlinkat.
48247 2011-08-30  Bruno Haible  <bruno@clisp.org>
48249         Avoid endless recursions if config.h includes some header files.
48250         * lib/fopen.c (__need_FILE): Define already before including config.h.
48251         * lib/freopen.c (__need_FILE): Likewise.
48252         * lib/open.c (__need_system_fcntl_h): Likewise.
48253         * lib/stat.c (__need_system_sys_stat_h): Likewise.
48254         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
48255         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
48257 2011-08-25  Karl Berry  <karl@gnu.org>
48259         * config/srclist.txt (ylwrap): new try.
48260         * build-aux/ylwrap: new file.
48262 2011-08-23  Bruno Haible  <bruno@clisp.org>
48264         tmpdir: Use a good default directory on native Windows.
48265         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
48266         (P_tmpdir): Default to _P_tmpdir on native Windows.
48267         (path_search): On native Windows, try the value returned by GetTempPath
48268         before trying P_tmpdir.
48269         * modules/tmpdir (Depends-on): Add pathmax.
48270         Suggested by John Darrington <john@darrington.wattle.id.au>.
48272 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
48274         doc: fix typo in README-release
48275         * top/README-release: Capitalize first word of a sentence.
48277 2011-08-19  Jim Meyering  <meyering@redhat.com>
48279         fts: do not exhaust memory when processing million-entry directories
48280         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
48281         directory would require about 256*N bytes of memory.  Thus, it was
48282         easy to construct a directory too large to be processed by any of
48283         those tools.  With this change, fts' maximum memory utilization is
48284         now limited to around 30MB.
48285         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
48286         (fts_read): When we've processed the final entry (i.e., when
48287         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
48288         using the parent entry to read any remaining entries.  Dispatch
48289         depending on what fts_build returns:
48290         - NULL+stop, aka failure: stop
48291         - NULL otherwise: move up in the dir hierarchy
48292         - non-NULL: handle this new entry
48293         (fts_build): Declare and use new local, continue_readdir.
48294         Prepare to be called from fts_read, when the entries
48295         from a partially-read directory have just been exhausted.
48296         In that case, we'll skip the opendir and instead use the parent's
48297         fts_dirp and derive dir_fd from that.
48298         Finally, in the readdir loop, if we read max_entries entries,
48299         exit the loop ensuring *not* to call closedir.  This is required
48300         so that fts_dirp can be reused on a subsequent call.
48301         Prompted by Ben England's report of memory exhaustion in find
48302         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
48304         maint: fts: move decl of `dp' down into while loop; split a long line
48305         * lib/fts.c (fts_build): No semantic change.
48307         fts: add/use new struct member, fts_dirp
48308         We are about to use this to manage any directory with
48309         too many entries to read all of them into memory at once.
48310         To do that, we'll need to save the DIR* pointer in each
48311         affected FTSENT struct.
48312         * lib/fts_.h: Include <dirent.h>.
48313         (struct FTSENT) [fts_dirp]: New member.
48314         * lib/fts.c (closedir_and_clear): Define.
48315         Use it in place of closedir so that we are sure to
48316         clear the new fts_dirp member when done with it.
48317         (fts_alloc): Initialize the new member.
48318         (fts_lfree): Free, if needed.
48320         maint: fts: give __opendir2 a new parameter and rename
48321         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
48322         than surreptitiously using sole caller's "dir_fd".
48323         (fts_opendir): Rename from __opendir2.
48325         maint: fts.c: remove __opendir2's now-unused parameter, oflag
48326         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
48328         maint: fts.c: correct off-by-one indentation
48329         * lib/fts.c (fts_build): Correct indentation, change style
48330         of a couple of block comments, and bracing style.
48332         maint: fts.c: move __opendir2 #define "up" out of function body
48333         * lib/fts.c (__opendir2): Move "up".  No semantic change.
48335         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
48336         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
48337         out for a long time and besides was useful only on BSD systems.
48339 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48341         regex: port to Stratus OpenVOS
48342         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
48343         define to empty, rather than attempting nonportable optimizations.
48344         Problem reported by Paul Green in:
48345         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
48346         and fix suggested by Eric Blake in:
48347         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
48349 2011-08-17  Eric Blake  <eblake@redhat.com>
48351         getcwd: fix test failures on mingw
48352         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
48353         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
48354         test if long directory cannot be created, and allow mingw errno.
48356         getcwd-lgpl: fix m4 to match relaxed test for BSD
48357         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
48358         (gl_FUNC_GETCWD_SIGNATURE): New macro.
48359         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
48360         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
48361         signature problem.
48363         getcwd: fix compilation on mingw64
48364         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
48365         getcwd.
48366         Reported by Marc-André Lureau.
48368         pipe2: silence compiler warning
48369         * lib/pipe2.c (pipe2): Hide label if it is not used.
48371 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
48373         relocatable-prog: fix link error
48374         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
48375         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
48376         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
48377         into modules/relocatable-lib without noticing that
48378         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
48379         also needs to build relocatable.c.
48381 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48383         getaddrinfo: fix sh typo in gai_strerrorA decl checking
48384         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
48385         shell code: it contained a 'break' that was not in a loop.
48386         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
48387         via a shell-language loop; this may have been true in old Autoconf
48388         versions, but it's not true in Autoconf 2.68.  I found this bug
48389         when testing coreutils git on Solaris 8, whose shell complains
48390         about the syntax error.
48392 2011-08-12  Simon Josefsson  <simon@josefsson.org>
48394         * lib/base64.c: Fix comment to reference RFC 4648.
48395         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
48396         <gvtulder@gmail.com>.
48398 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48400         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
48402         po/Makefile.in.in: fix make -q problem
48403         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
48404         rule, since there's no file named 'check-macro-version' and its
48405         use as a file breaks make -q.
48406         (all): Don't depend on check-macro-version.
48407         (CHECK_MACRO_VERSION): New macro.
48408         (stamp-po): Use it.
48410         configmake: fix make -q problem
48411         * modules/configmake (configmake.h): Update configmake.h's time stamp
48412         even if the file does not change.  Otherwise, 'make -q' fails.
48413         Problem reported by Simon Josefsson in
48414         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
48416 2011-08-11  Jim Meyering  <meyering@redhat.com>
48418         git-version-gen: correct the advice in a comment
48419         * build-aux/git-version-gen: Correct comment.
48420         Don't recommend to list .tarball-version in .gitignore.
48422 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48424         base64: fix off-by-one buffer size bug
48425         Problem and (trivial) fix reported by Gijs van Tulder in
48426         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
48427         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
48428         * tests/test-base64.c (main): Catch the bug.
48430 2011-08-10  Eric Blake  <eblake@redhat.com>
48432         closein: correct comments
48433         * lib/closein.c (close_stdin): Improve comments.
48435 2011-08-09  Bruno Haible  <bruno@clisp.org>
48437         More tests for 'fseeko'.
48438         * tests/test-fseeko3.c: New file, from Eric Blake.
48439         * tests/test-fseeko3.sh: New file.
48440         * modules/fseeko-tests (Files): Add them.
48441         (TESTS): Add test-fseeko3.sh.
48442         (check_PROGRAMS): Add test-fseeko3.
48444 2011-08-09  Eric Blake  <eblake@redhat.com>
48446         fseeko: remove unneeded hack
48447         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
48449         fseeko: fix bug on glibc
48450         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
48451         Reported by John W. Eaton.
48453 2011-08-08  Bruno Haible  <bruno@clisp.org>
48455         unictype/base: Fix interoperability with preinstalled libunistring.
48456         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
48457         Reported by Simon Josefsson.
48459 2011-08-08  Bruno Haible  <bruno@clisp.org>
48461         iswblank: Detect declaration correctly.
48462         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
48463         AC_CHECK_DECLS invocation.
48465 2011-08-08  Bruno Haible  <bruno@clisp.org>
48467         tcgetsid: Detect declaration correctly.
48468         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
48469         AC_CHECK_DECLS invocation.
48470         Reported by Simon Josefsson.
48472 2011-08-08  Eric Blake  <eblake@redhat.com>
48474         largefile: fix typo that regressed large file support
48475         * modules/largefile (configure.ac-early): Fix section name.
48477 2011-08-06  Karl Berry  <karl@gnu.org>
48479         * MODULES.html.sh (func_all_files): _Noreturn is no longer
48480         a separate module.
48482 2011-08-05  Simon Josefsson  <simon@josefsson.org>
48484         openat: Fix warnings and commens when building unlinkat.c on Hurd.
48485         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
48486         get prototype for free.
48488 2011-08-04  Bruno Haible  <bruno@clisp.org>
48490         Tests for module 'pathmax'.
48491         * modules/pathmax-tests: New file.
48492         * tests/test-pathmax.c: New file.
48494         canonicalize-lgpl: Support larger filenames on the Hurd.
48495         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
48496         Reported by Paul Eggert.
48498         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
48499         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
48500         * lib/chdir-long.h: Include pathmax.h.
48501         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
48502         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
48503         (PATH_MAX): Remove code that is done by pathmax.h.
48504         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
48505         * lib/tmpfile.c: Add a comment.
48506         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
48507         * modules/chdir-long (Depends-on): Add pathmax.
48508         * modules/getcwd (Depends-on): Add pathmax.
48509         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
48510         is not defined.
48511         * doc/posix-headers/limits.texi: Mention the pathmax module.
48512         * NEWS: Mention the change.
48514 2011-08-02  Bruno Haible  <bruno@clisp.org>
48516         pthread_sigmask: Actually use results of gl_THREADLIB.
48517         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
48518         gl_THREADLIB, not gl_[]THREADLIB.
48519         Reported by Eric Blake.
48521 2011-08-02  Jim Meyering  <meyering@redhat.com>
48523         maint.mk: relax the default _gl_TS_function_match regexp
48524         * top/maint.mk (_gl_TS_function_match): Don't require at least one
48525         space between function name and "(" in an "extern" declaration.
48526         That would fail to match a decl with no space there: extern void foo();
48528 2011-07-31  Iain Nicol  <iain@thenicols.net>
48530         git-version-gen: document that EXTRA_DIST must include .version
48531         * build-aux/git-version-gen: In the how-to-use comment, document
48532         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
48533         will fail when run from an unpacked distribution tarball.
48535 2011-08-01  Bruno Haible  <bruno@clisp.org>
48537         wctype-h: Fix last change.
48538         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
48539         REPLACE_TOWLOWER to 0.
48540         Reported by Sam Steingold <sds@gnu.org>.
48542 2011-07-31  Bruno Haible  <bruno@clisp.org>
48544         frexpl: Update autoconf test.
48545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
48546         according to changes of 2011-06-20.
48548 2011-07-31  Bruno Haible  <bruno@clisp.org>
48550         sys_utsname: Add support for Minix.
48551         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
48552         <sys/utsname.h>.
48553         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
48554         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
48556 2011-07-31  Bruno Haible  <bruno@clisp.org>
48558         strings: Add support for Minix.
48559         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
48560         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
48561         * doc/posix-headers/strings.texi: Document the Minix problem.
48563 2011-07-31  Bruno Haible  <bruno@clisp.org>
48565         wctype-h: Add support for Minix.
48566         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
48567         REPLACE_TOWLOWER.
48568         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
48569         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
48570         REPLACE_ISWCNTRL.
48572 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
48574         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
48575         This is a performance improvement for 64-bit hosts: it causes the
48576         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
48578 2011-07-31  Bruno Haible  <bruno@clisp.org>
48580         stdioext: Add support for Minix.
48581         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
48582         * lib/fpurge.c (fpurge): Likewise.
48583         * lib/freadahead.c (freadahead): Likewise.
48584         * lib/freadable.c (freadable): Likewise.
48585         * lib/freading.c (freading): Likewise.
48586         * lib/freadptr.c (freadptr): Likewise.
48587         * lib/freadseek.c (freadptrinc): Likewise.
48588         * lib/fseeko.c (rpl_fseeko): Likewise.
48589         * lib/fseterr.c (fseterr): Likewise.
48590         * lib/fwritable.c (fwritable): Likewise.
48591         * lib/fwriting.c (fwriting): Likewise.
48592         * lib/fflush.c (clear_ungetc_buffer): Update comment.
48593         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
48595 2011-07-31  Bruno Haible  <bruno@clisp.org>
48597         errno: Port to Minix.
48598         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
48599         ECONNABORTED are defined.
48600         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
48601         GNULIB_defined_ECONNABORTED): New macros.
48602         * lib/strerror-override.h (strerror_override): Test also
48603         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
48604         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
48605         ECONNABORTED.
48606         * doc/posix-headers/errno.texi: Mention the Minix problem.
48608 2011-07-31  Bruno Haible  <bruno@clisp.org>
48610         Work around declaration collisions on Minix.
48611         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
48612         defined, set REPLACE_MBSINIT.
48613         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
48614         defined, set REPLACE_MBRTOWC.
48615         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
48616         set REPLACE_MBRLEN.
48617         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
48618         defined, set REPLACE_MBSRTOWCS.
48619         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
48620         defined, set REPLACE_WCRTOMB.
48621         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
48622         defined, set REPLACE_WCSRTOMBS.
48624 2011-07-31  Bruno Haible  <bruno@clisp.org>
48626         Add support for Minix with ACK compiler.
48627         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
48628         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
48629         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
48631 2011-07-31  Bruno Haible  <bruno@clisp.org>
48633         Documentation about Minix.
48634         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
48635         * doc/glibc-headers/*.texi: Likewise.
48636         * doc/posix-functions/*.texi: Likewise.
48637         * doc/glibc-functions/*.texi: Likewise.
48639 2011-07-31  Bruno Haible  <bruno@clisp.org>
48641         snippet/warn-on-use: Fix indentation.
48642         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
48644 2011-07-25  Jim Meyering  <meyering@redhat.com>
48646         tests: test-update-copyright.sh: remove unnecessary "rm" commands
48647         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
48648         commands.
48650 2011-07-27  Jim Meyering  <meyering@redhat.com>
48652         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
48653         * top/maint.mk (gl_extract_significant_defines_): Now that
48654         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
48655         gnulib/lib/signal.in.h, and now that we recommend to
48656         define-if-undefined those two symbols in application code,
48657         we must filter them out of the "significant" list.
48658         This avoids a "make syntax-check" failure in coreutils.
48660 2011-07-26  Eric Blake  <eblake@redhat.com>
48662         warnings: add comments about previous patch
48663         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
48664         * m4/include_next.m4: Likewise.
48665         * m4/warn-on-use.m4: Likewise.
48666         * m4/warnings.m4: Likewise, and simplify use.
48667         Suggested by Stefano Lattarini.
48669         include-next, warnings: support older autoconf
48670         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
48671         AS_VAR_PUSHDEF in a way that works with older autoconf.
48672         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
48673         Reported by Daniel P. Berrange.
48675 2011-07-25  Bruno Haible  <bruno@clisp.org>
48677         fseek, ftell: Fix doc.
48678         * doc/posix-functions/fseek.texi: Reword statement about
48679         AC_SYS_LARGEFILE.
48680         * doc/posix-functions/ftell.texi: Likewise.
48682 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
48683             Bruno Haible  <bruno@clisp.org>
48685         Add dependencies to the 'largefile' module.
48686         * modules/fopen (Depends-on): Add 'largefile'.
48687         * modules/freopen (Depends-on): Likewise.
48688         * modules/fseeko (Depends-on): Likewise.
48689         * modules/ftello (Depends-on): Likewise.
48690         * modules/glob (Depends-on): Likewise.
48691         * modules/lseek (Depends-on): Likewise.
48692         * modules/lstat (Depends-on): Likewise.
48693         * modules/mkostemp (Depends-on): Likewise.
48694         * modules/mkostemps (Depends-on): Likewise.
48695         * modules/mkstemp (Depends-on): Likewise.
48696         * modules/mkstemps (Depends-on): Likewise.
48697         * modules/open (Depends-on): Likewise.
48698         * modules/openat (Depends-on): Likewise.
48699         * modules/pread (Depends-on): Likewise.
48700         * modules/pwrite (Depends-on): Likewise.
48701         * modules/scandir (Depends-on): Likewise.
48702         * modules/stat (Depends-on): Likewise.
48703         * modules/tmpfile (Depends-on): Likewise.
48704         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
48705         since the containing module now depends on the largefile module.
48706         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
48707         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
48708         off_t is fixed by gnulib.
48709         * doc/posix-functions/freopen.texi: Likewise.
48710         * doc/posix-functions/fseeko.texi: Likewise.
48711         * doc/posix-functions/fstatat.texi: Likewise.
48712         * doc/posix-functions/ftello.texi: Likewise.
48713         * doc/posix-functions/glob.texi: Likewise.
48714         * doc/posix-functions/lseek.texi: Likewise.
48715         * doc/posix-functions/lstat.texi: Likewise.
48716         * doc/posix-functions/mkstemp.texi: Likewise.
48717         * doc/posix-functions/open.texi: Likewise.
48718         * doc/posix-functions/openat.texi: Likewise.
48719         * doc/posix-functions/pread.texi: Likewise.
48720         * doc/posix-functions/pwrite.texi: Likewise.
48721         * doc/posix-functions/scandir.texi: Likewise.
48722         * doc/posix-functions/stat.texi: Likewise.
48723         * doc/posix-functions/tmpfile.texi: Likewise.
48724         * doc/glibc-functions/mkostemp.texi: Likewise.
48725         * doc/glibc-functions/mkostemps.texi: Likewise.
48726         * doc/glibc-functions/mkstemps.texi: Likewise.
48728 2011-07-25  Bruno Haible  <bruno@clisp.org>
48730         fcntl: Move AC_LIBOBJ invocation to module description.
48731         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
48732         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
48734         fcntl: Remove call-in from fchdir.m4.
48735         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
48736         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
48738         dup3: Remove potential call-in from fchdir.m4.
48739         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
48740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
48742         dup2: Move AC_LIBOBJ invocation to module description.
48743         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
48744         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
48745         Don't invoke AC_LIBOBJ.
48746         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
48748         dup2: Remove call-in from fchdir.m4.
48749         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
48750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
48752         fclose: Move AC_LIBOBJ invocation to module description.
48753         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
48754         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
48755         to 1.
48756         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
48758         fclose: Remove call-in from close.m4.
48759         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
48760         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
48762         close: Move AC_LIBOBJ invocation to module description.
48763         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
48764         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
48765         1.
48766         * modules/close (configure.ac): Invoke AC_LIBOBJ.
48768         close: Remove call-in from fchdir.m4.
48769         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
48770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
48772         open: Move AC_LIBOBJ invocation to module description.
48773         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
48774         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
48775         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
48777         open: Remove call-in from fchdir.m4.
48778         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
48779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
48781         fchdir: Start to remove gl_REPLACE_* idiom.
48782         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
48783         (gl_FUNC_FCHDIR): Invoke it.
48785 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
48787         * lib/ftell.c (ftell): Comment out cast.
48789         close: use gl_REPLACE_FCLOSE only if defined
48790         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
48791         is defined.  The close module doesn't depend on the fclose module
48792         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
48793         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
48794         I reproduced the problem with "./gnulib-tool --test close sys_socket".
48796 2011-07-24  Jim Meyering  <meyering@redhat.com>
48798         test-select.h: avoid warning when using gcc's -Wmissing-declarations
48799         * tests/test-select.h (test_function): Declare as "static".
48801 2011-07-24  Bruno Haible  <bruno@clisp.org>
48803         doc: Mention the effects of AC_SYS_LARGEFILE.
48804         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
48805         on this function.
48806         * doc/posix-functions/aio_error.texi: Likewise.
48807         * doc/posix-functions/aio_fsync.texi: Likewise.
48808         * doc/posix-functions/aio_read.texi: Likewise.
48809         * doc/posix-functions/aio_return.texi: Likewise.
48810         * doc/posix-functions/aio_suspend.texi: Likewise.
48811         * doc/posix-functions/aio_write.texi: Likewise.
48812         * doc/posix-functions/fgetpos.texi: Likewise.
48813         * doc/posix-functions/fopen.texi: Likewise.
48814         * doc/posix-functions/freopen.texi: Likewise.
48815         * doc/posix-functions/fsetpos.texi: Likewise.
48816         * doc/posix-functions/fstatvfs.texi: Likewise.
48817         * doc/posix-functions/ftruncate.texi: Likewise.
48818         * doc/posix-functions/ftw.texi: Likewise.
48819         * doc/posix-functions/getrlimit.texi: Likewise.
48820         * doc/posix-functions/glob.texi: Likewise.
48821         * doc/posix-functions/lio_listio.texi: Likewise.
48822         * doc/posix-functions/lockf.texi: Likewise.
48823         * doc/posix-functions/mkstemp.texi: Likewise.
48824         * doc/posix-functions/mmap.texi: Likewise.
48825         * doc/posix-functions/nftw.texi: Likewise.
48826         * doc/posix-functions/openat.texi: Likewise.
48827         * doc/posix-functions/opendir.texi: Likewise.
48828         * doc/posix-functions/posix_fadvise.texi: Likewise.
48829         * doc/posix-functions/posix_fallocate.texi: Likewise.
48830         * doc/posix-functions/pread.texi: Likewise.
48831         * doc/posix-functions/pwrite.texi: Likewise.
48832         * doc/posix-functions/readdir.texi: Likewise.
48833         * doc/posix-functions/readdir_r.texi: Likewise.
48834         * doc/posix-functions/rewinddir.texi: Likewise.
48835         * doc/posix-functions/scandir.texi: Likewise.
48836         * doc/posix-functions/seekdir.texi: Likewise.
48837         * doc/posix-functions/setrlimit.texi: Likewise.
48838         * doc/posix-functions/statvfs.texi: Likewise.
48839         * doc/posix-functions/telldir.texi: Likewise.
48840         * doc/posix-functions/tmpfile.texi: Likewise.
48841         * doc/posix-functions/truncate.texi: Likewise.
48842         * doc/glibc-functions/fallocate.texi: Likewise.
48843         * doc/glibc-functions/fstatfs.texi: Likewise.
48844         * doc/glibc-functions/fts_children.texi: Likewise.
48845         * doc/glibc-functions/fts_read.texi: Likewise.
48846         * doc/glibc-functions/getdirentries.texi: Likewise.
48847         * doc/glibc-functions/mkostemp.texi: Likewise.
48848         * doc/glibc-functions/mkostemps.texi: Likewise.
48849         * doc/glibc-functions/mkstemps.texi: Likewise.
48850         * doc/glibc-functions/preadv.texi: Likewise.
48851         * doc/glibc-functions/pwritev.texi: Likewise.
48852         * doc/glibc-functions/sendfile.texi: Likewise.
48853         * doc/glibc-functions/statfs.texi: Likewise.
48855 2011-07-24  Bruno Haible  <bruno@clisp.org>
48857         doc: Fix typo.
48858         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
48860 2011-07-24  Bruno Haible  <bruno@clisp.org>
48862         doc: Mention fsusage.
48863         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
48865 2011-07-24  Bruno Haible  <bruno@clisp.org>
48867         doc: Mention new glibc headers and functions.
48868         * doc/glibc-headers/gshadow.texi: New file.
48869         * doc/glibc-functions/endsgent.texi: New file.
48870         * doc/glibc-functions/fgetsgent.texi: New file.
48871         * doc/glibc-functions/fgetsgent_r.texi: New file.
48872         * doc/glibc-functions/getsgent.texi: New file.
48873         * doc/glibc-functions/getsgent_r.texi: New file.
48874         * doc/glibc-functions/getsgnam.texi: New file.
48875         * doc/glibc-functions/getsgnam_r.texi: New file.
48876         * doc/glibc-functions/putsgent.texi: New file.
48877         * doc/glibc-functions/setsgent.texi: New file.
48878         * doc/glibc-functions/sgetsgent.texi: New file.
48879         * doc/glibc-functions/sgetsgent_r.texi: New file.
48880         * doc/glibc-functions/malloc_info.texi: New file.
48881         * doc/glibc-functions/preadv.texi: New file.
48882         * doc/glibc-functions/pwritev.texi: New file.
48883         * doc/glibc-functions/register_printf_modifier.texi: New file.
48884         * doc/glibc-functions/register_printf_specifier.texi: New file.
48885         * doc/glibc-functions/register_printf_type.texi: New file.
48886         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
48887         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
48888         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
48889         * doc/glibc-functions/pthread_getname_np.texi: New file.
48890         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
48891         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
48892         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
48893         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
48894         * doc/glibc-functions/pthread_setname_np.texi: New file.
48895         * doc/glibc-functions/pthread_sigqueue.texi: New file.
48896         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
48897         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
48898         * doc/glibc-functions/qsort_r.texi: New file.
48899         * doc/glibc-functions/quick_exit.texi: New file.
48900         * doc/glibc-functions/syncfs.texi: New file.
48901         * doc/gnulib.texi: Include them.
48902         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
48903         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
48904         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
48905         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
48906         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
48907         * doc/glibc-functions/execvpe.texi: Likewise.
48909 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48911         ftell: don't include <unistd.h>
48912         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
48913         guaranteed to define off_t, and the ftell module depends on the
48914         stdio module.
48916         ftell: do not assume wraparound signed arithmetic
48917         * lib/ftell.c: Include <limits.h>.
48918         (ftell): Don't assume wraparound signed arithmetic.
48920 2011-07-24  Bruno Haible  <bruno@clisp.org>
48922         close: No longer depend on module 'fclose'.
48923         * modules/close (Depends-on): Remove fclose.
48924         * NEWS: Mention the change.
48925         Suggested by Sam Steingold <sds@gnu.org>.
48927 2011-07-24  Bruno Haible  <bruno@clisp.org>
48929         fsusage: Enable large volume support on AIX >= 5.2.
48930         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
48931         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
48932         instead of STAT_STATVFS.
48933         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
48935         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
48936         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
48937         f_blocks field only on MacOS X.
48939         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
48940         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
48941         * modules/fsusage (Depends-on): Add largefile.
48943 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48945         * README: Modernize discussion of signed integers.
48946         Assuming overflow wraparound is no longer safe.
48947         Mention ones' complement and signed magnitude.
48949 2011-07-22  Bruno Haible  <bruno@clisp.org>
48951         select tests, pselect tests: Refactor.
48952         * tests/test-select.h: New file, extracted from tests/test-select.c.
48953         (select_fn): New type.
48954         (test, do_select, do_select_nowait, do_select_wait, test_tty,
48955         test_connect_first, test_accept_first, test_pair, test_socket_pair,
48956         test_pipe): Add my_select argument.
48957         (test_function): Renamed from main. Add my_select argument.
48958         * tests/test-select.c: Move most code to tests/test-select.h. Include
48959         test-select.h.
48960         * modules/select-tests (Files): Add tests/test-select.h.
48961         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
48962         (my_select, main): New functions.
48963         * modules/pselect-tests (Files): Add tests/test-select.h,
48964         tests/macros.h, tests/signature.h.
48965         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
48966         (configure.ac): Check for <sys/wait.h>.
48968 2011-07-22  Bruno Haible  <bruno@clisp.org>
48970         sys_select tests: Check the signature of FD_*.
48971         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
48972         signature tests from here...
48973         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
48974         here.
48975         * modules/sys_select-tests (Files): Add tests/signature.h.
48977 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48979         largefile: new module, replacing large-inode
48980         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
48981         * MODULES.html.sh: Add largefile, remove large-inode.
48982         * modules/largefile, m4/largefile.m4: New files.
48983         * modules/large-inode, m4/large-inode.m4: Remove.
48985         fsusage: port to MacOS X 10.7 with 4 TiB file systems
48986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
48987         implementations that use only 32 bits to count blocks.
48988         On typical hosts with 1024-byte blocks, this fails with file
48989         systems as small as 4 TiB.  Problem reported by Herb Wartens
48990         <http://debbugs.gnu.org/9140> and this should also fix a similar
48991         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
48993         large-inode: New module
48994         * MODULES.html.sh: Add it.
48995         * modules/large-inode, m4/large-inode.m4: New files.
48997         extensions: Enable extensions on MacOS X 10.5 and later.
48998         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
49000 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
49002         file-has-acl: use acl_extended_file_nofollow if available
49003         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
49004         (acl_extended_file): New macro.
49005         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
49006         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
49008 2011-07-21  Bruno Haible  <bruno@clisp.org>
49010         Declare system functions in a way that works with C++.
49011         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
49012         declare fdopendir as extern "C".
49013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
49014         declare frexpl as extern "C".
49015         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
49016         declare gai_strerror as extern "C".
49017         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
49018         programs, declare gai_strerror as extern "C".
49019         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
49020         declare getlogin_r as extern "C".
49021         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
49022         as extern "C".
49023         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
49024         declare ldexpl as extern "C".
49025         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
49026         as extern "C".
49027         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
49028         program, declare getmntinfo as extern "C".
49029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
49030         stpncpy as extern "C".
49031         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
49032         program, declare __xpg_strerror_r as extern "C".
49033         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
49034         strndup as extern "C".
49035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
49036         declare memset and bzero as extern "C".
49037         Reported by Sam Steingold <sds@gnu.org>.
49039 2011-07-12  Jim Meyering  <meyering@redhat.com>
49041         maint.mk: prohibit inclusion of "verify.h" without use
49042         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
49044 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49046         timer-time: A new module to check for timer_settime()
49047         * m4/timer_time.m4: Check for the posix function.
49048         * modules/timer-time: Add the new module.
49049         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
49050         Mention it.
49052 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
49053             Bruno Haible  <bruno@clisp.org>
49055         pthread_sigmask: assume POSIX threads if --avoid=threadlib
49056         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
49057         not defined, assume POSIX threads and look for pthread_sigmask in
49058         $LIBS, without changing $CPPFLAGS.
49060 2011-07-19  Bruno Haible  <bruno@clisp.org>
49062         strstr: Update cross-compilation guess.
49063         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
49064         CPUs, guess no, in view of glibc
49065         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
49066         Suggested by Eric Blake. Reported by Reuben Thomas.
49068 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49070         getopt-gnu: suppress core dumps from detection code
49071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
49072         to suppress core dumps that may well occur on glibc systems.
49073         * modules/getopt-gnu: Depend on nocrash.
49075 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49077         pthread_sigmask: ensure usleep is declared
49078         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
49079         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
49081 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49083         doc: Document NonStop portability issues.
49084         * doc/posix-functions/sigaction.texi (sigaction):
49085         * doc/posix-headers/signal.texi (signal.h):
49086         Document NonStop.  See Joachim Schmitz in
49087         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
49089 2011-07-15  Bruno Haible  <bruno@clisp.org>
49091         ffsl, ffsll: Avoid unportable behaviour.
49092         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
49094 2011-07-15  Bruno Haible  <bruno@clisp.org>
49096         ffs: More tests.
49097         * tests/test-ffs.c (NBITS): New macro.
49098         (main): Add more tests.
49099         * tests/test-ffsl.c (NBITS): New macro.
49100         (main): Add more tests.
49101         * tests/test-ffsll.c (NBITS): New macro.
49102         (main): Add more tests.
49104 2011-07-15  Eric Blake  <eblake@redhat.com>
49106         ffsl, ffsll: new modules
49107         * modules/ffsl: New file.
49108         * modules/ffsll: Likewise.
49109         * m4/ffsl.m4: Likewise.
49110         * m4/ffsll.m4: Likewise.
49111         * lib/ffsl.c: Likewise.
49112         * lib/ffsl.h: Likewise.
49113         * lib/ffsll.c: Likewise.
49114         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
49115         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
49116         * modules/string (Makefile.am): Substitute witnesses.
49117         * lib/strings.in.h (ffsl, ffsll): Declare.
49118         * modules/ffsl-tests: New test file.
49119         * modules/ffsll-tests: Likewise.
49120         * tests/test-ffsl.c: Likewise.
49121         * tests/test-ffsll.c: Likewise.
49122         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49123         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
49124         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
49126         ffs: fix m4 prerequisite
49127         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
49129         ffs: avoid undefined behavior
49130         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
49131         * tests/test-ffs.c (naive, main): Avoid signed shifts.
49132         Reported by Bruno Haible.
49134 2011-07-12  Bruno Haible  <bruno@clisp.org>
49136         pthread_sigmask: Rely on module 'threadlib'.
49137         * modules/pthread_sigmask (Depends-on): Add threadlib.
49138         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
49139         is defined.
49141 2011-07-12  Bruno Haible  <bruno@clisp.org>
49143         regex: Depend on module 'strcase'.
49144         * modules/regex (Depends-on): Add strcase, for strcasecmp().
49146 2011-07-12  Jim Meyering  <meyering@redhat.com>
49148         warn-on-use: fix typo in file name
49149         * modules/snippet/warn-on-use (Files): Correct file name:
49150         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
49152 2011-07-12  Bruno Haible  <bruno@clisp.org>
49154         strings: Document module.
49155         * doc/posix-headers/strings.texi: Mention module 'strings'.
49157 2011-07-12  Bruno Haible  <bruno@clisp.org>
49159         Rename module '_Noreturn' to 'snippet/_Noreturn'.
49160         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
49161         (Files, Makefile.am): Update.
49162         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
49163         * modules/stdlib (Depends-on): Update.
49165 2011-07-12  Bruno Haible  <bruno@clisp.org>
49167         * NEWS: Mention the changes.
49169         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
49170         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
49171         (Files, Makefile.am): Update.
49172         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
49173         * modules/arpa_inet (Depends-on): Update.
49174         * modules/ctype (Depends-on): Update.
49175         * modules/dirent (Depends-on): Update.
49176         * modules/fcntl-h (Depends-on): Update.
49177         * modules/glob (Depends-on): Update.
49178         * modules/iconv-h (Depends-on): Update.
49179         * modules/inttypes-incomplete (Depends-on): Update.
49180         * modules/langinfo (Depends-on): Update.
49181         * modules/locale (Depends-on): Update.
49182         * modules/math (Depends-on): Update.
49183         * modules/netdb (Depends-on): Update.
49184         * modules/poll-h (Depends-on): Update.
49185         * modules/pty (Depends-on): Update.
49186         * modules/search (Depends-on): Update.
49187         * modules/signal (Depends-on): Update.
49188         * modules/spawn (Depends-on): Update.
49189         * modules/stdio (Depends-on): Update.
49190         * modules/stdlib (Depends-on): Update.
49191         * modules/string (Depends-on): Update.
49192         * modules/strings (Depends-on): Update.
49193         * modules/sys_file (Depends-on): Update.
49194         * modules/sys_ioctl (Depends-on): Update.
49195         * modules/sys_select (Depends-on): Update.
49196         * modules/sys_socket (Depends-on): Update.
49197         * modules/sys_stat (Depends-on): Update.
49198         * modules/sys_time (Depends-on): Update.
49199         * modules/sys_times (Depends-on): Update.
49200         * modules/sys_utsname (Depends-on): Update.
49201         * modules/sys_wait (Depends-on): Update.
49202         * modules/termios (Depends-on): Update.
49203         * modules/time (Depends-on): Update.
49204         * modules/unistd (Depends-on): Update.
49205         * modules/wchar (Depends-on): Update.
49206         * modules/wctype-h (Depends-on): Update.
49207         * MODULES.html.sh (Support for building libraries and executables):
49208         Update.
49210         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
49211         * modules/snippet/unused-parameter: Renamed from
49212         modules/unused-parameter.
49213         (Files, Makefile.am): Update.
49214         * build-aux/snippet/unused-parameter.h: Renamed from
49215         build-aux/unused-parameter.h.
49216         * modules/selinux-h (Depends-on): Update.
49217         * modules/unistr/base (Depends-on): Update.
49218         * MODULES.html.sh (Core language properties): Update.
49220         Rename module 'link-warning' to 'snippet/link-warning'.
49221         * modules/snippet/link-warning: Renamed from modules/link-warning.
49222         (Files, Makefile.am): Update.
49223         * build-aux/snippet/link-warning.h: Renamed from
49224         build-aux/link-warning.h.
49225         * MODULES.html.sh (Support for building libraries and executables):
49226         Update.
49228         Rename module 'c++defs' to 'snippet/c++defs'.
49229         * modules/snippet/c++defs: Renamed from modules/c++defs.
49230         (Files, Makefile.am): Update.
49231         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
49232         * modules/arpa_inet (Depends-on): Update.
49233         * modules/ctype (Depends-on): Update.
49234         * modules/dirent (Depends-on): Update.
49235         * modules/fcntl-h (Depends-on): Update.
49236         * modules/glob (Depends-on): Update.
49237         * modules/iconv-h (Depends-on): Update.
49238         * modules/langinfo (Depends-on): Update.
49239         * modules/locale (Depends-on): Update.
49240         * modules/math (Depends-on): Update.
49241         * modules/netdb (Depends-on): Update.
49242         * modules/poll-h (Depends-on): Update.
49243         * modules/pty (Depends-on): Update.
49244         * modules/search (Depends-on): Update.
49245         * modules/signal (Depends-on): Update.
49246         * modules/spawn (Depends-on): Update.
49247         * modules/stdio (Depends-on): Update.
49248         * modules/stdlib (Depends-on): Update.
49249         * modules/string (Depends-on): Update.
49250         * modules/strings (Depends-on): Update.
49251         * modules/sys_ioctl (Depends-on): Update.
49252         * modules/sys_select (Depends-on): Update.
49253         * modules/sys_socket (Depends-on): Update.
49254         * modules/sys_stat (Depends-on): Update.
49255         * modules/sys_time (Depends-on): Update.
49256         * modules/sys_wait (Depends-on): Update.
49257         * modules/termios (Depends-on): Update.
49258         * modules/time (Depends-on): Update.
49259         * modules/unistd (Depends-on): Update.
49260         * modules/wchar (Depends-on): Update.
49261         * modules/wctype-h (Depends-on): Update.
49263         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
49264         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
49265         (Files, Makefile.am): Update.
49266         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
49267         * modules/argv-iter (Depends-on): Update.
49268         * modules/arpa_inet (Depends-on): Update.
49269         * modules/dirent (Depends-on): Update.
49270         * modules/fcntl-h (Depends-on): Update.
49271         * modules/fnmatch (Depends-on): Update.
49272         * modules/getopt-posix (Depends-on): Update.
49273         * modules/glob (Depends-on): Update.
49274         * modules/iconv-h (Depends-on): Update.
49275         * modules/inttypes-incomplete (Depends-on): Update.
49276         * modules/locale (Depends-on): Update.
49277         * modules/math (Depends-on): Update.
49278         * modules/netdb (Depends-on): Update.
49279         * modules/search (Depends-on): Update.
49280         * modules/signal (Depends-on): Update.
49281         * modules/spawn (Depends-on): Update.
49282         * modules/stdio (Depends-on): Update.
49283         * modules/stdlib (Depends-on): Update.
49284         * modules/string (Depends-on): Update.
49285         * modules/strings (Depends-on): Update.
49286         * modules/sys_socket (Depends-on): Update.
49287         * modules/sys_stat (Depends-on): Update.
49288         * modules/sys_time (Depends-on): Update.
49289         * modules/sys_times (Depends-on): Update.
49290         * modules/sys_utsname (Depends-on): Update.
49291         * modules/time (Depends-on): Update.
49292         * modules/unistd (Depends-on): Update.
49293         * modules/wchar (Depends-on): Update.
49294         * MODULES.html.sh (Support for building libraries and executables):
49295         Update.
49297 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49299         Improvements on _Noreturn and related modules.
49301         modules/_Exit-tests: test _Noreturn too
49302         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
49303         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
49304         (main): Use them.
49306         stdnoreturn, stdnoreturn-tests: remove modules
49307         They're not needed here and a bit premature for use elsewhere.  See
49308         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
49309         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
49310         * tests/test-stdnoreturn.c: Remove files.
49311         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
49312         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
49313         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
49314         and using noreturn.
49315         * modules/openat, modules/sigpipe-die, modules/xalloc:
49316         * modules/xmemdup0, modules/xstrtol:
49317         Remove dependency on stdnoreturn.
49319         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
49320         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
49321         Reparenthesize to avoid GCC warning.
49322         Support Microsoft's syntax.
49323         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
49325         _Noreturn-tests: remove module
49326         * modules/_Noreturn-tests: Remove.
49327         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
49328         * tests/test-_Noreturn.c: Remove.
49329         * tests/test-stdnoreturn.c: Merge from the old
49330         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
49332 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49334         _Noreturn, stdnoreturn, and related modules.
49336         * top/maint.mk: Adjust to new noreturn support.
49337         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
49338         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
49340         xalloc: use stdnoreturn.h
49341         * lib/xalloc.h: Include <stdnoreturn.h>.
49342         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49343         * modules/xalloc (Depends-on): Add stdnoreturn.
49345         xstrtol: use stdnoreturn.h
49346         * lib/xstrtol.h: Include <stdnoreturn.h>.
49347         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49348         * modules/xstrtol (Depends-on): Add stdnoreturn.
49350         xmemdup0: use stdnoreturn.h
49351         * lib/xmemdup0.h: Include <stdnoreturn.h>.
49352         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49353         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
49355         sigpipe-die: use stdnoreturn.h
49356         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
49357         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49358         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
49360         openat: use stdnoreturn.h
49361         * lib/openat.h: Include <stdnoreturn.h>.
49362         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49363         * modules/openat (Depends-on): Add stdnoreturn.
49365         * lib/openat-die.c (openat_save_fail): Modernize comment.
49367         * lib/xalloc-die.c (xalloc_die): Modernize comment.
49369         * lib/glthread/thread.h: Modernize comment.
49371         obstack: use _Noreturn
49372         * lib/obstack.c (__attribute__): Remove macro.
49373         (print_and_abort): Use _Noreturn.
49375         c-stack: use _Noreturn
49376         * lib/c-stack.c (die, overflow_handler, segv_handler):
49377         Use _Noreturn rather than __attribute__((noreturn)).
49379         argmatch-tests, exclude_tests: use _Noreturn
49380         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
49381         Remove.
49382         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
49384         stdlib: use _Noreturn
49385         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
49386         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
49387         * modules/stdlib (Depends-on): Add _Noreturn.
49388         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
49390         stdnoreturn-tests: new module
49391         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
49393         stdnoreturn: new module
49394         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
49395         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
49397         _Noreturn-tests: new module
49398         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
49400         _Noreturn: new module
49401         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
49402         New section, mentioning it.
49403         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
49405         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
49407 2011-07-11  Eric Blake  <eblake@redhat.com>
49409         ffs: new module
49410         * modules/ffs: New file.
49411         * m4/ffs.m4: Likewise.
49412         * lib/ffs.c: Likewise.
49413         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
49414         * modules/strings (Makefile.am): Substitute witness.
49415         (Depends-on): Add c++defs.
49416         * lib/strings.in.h (ffs): Declare.
49417         * modules/ffs-tests: New test file.
49418         * tests/test-ffs.c: Test new module.
49419         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49420         * doc/posix-functions/ffs.texi (ffs): Likewise.
49422         regex: avoid compiler warning
49423         * lib/regex.c (includes): Include <strings.h>, for use of
49424         strcasecmp in regcomp.c.
49425         Reported by Joachim Schmitz.
49427 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49429         stdint: respect system's intmax_t if INTMAX_MAX
49430         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
49431         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
49432         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
49433         long but int64_t is long long, and where we will clash with the
49434         system intmax_t if we override it.  See
49435         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
49436         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
49437         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
49438         similarly for UINTMAX_C.
49440 2011-07-08  Bruno Haible  <bruno@clisp.org>
49442         pthread_sigmask tests: Avoid a compiler warning.
49443         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
49444         non-zero.
49446         sigprocmask tests: A better way to avoid a compiler warning.
49447         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
49448         (main): Complain if system() returns non-zero.
49449         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
49451 2011-07-08  Bruno Haible  <bruno@clisp.org>
49453         pthread_sigmask: Work around IRIX bug.
49454         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
49455         bug.
49456         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
49457         there may be unblocked pending signals.
49458         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
49460 2011-07-08  Bruno Haible  <bruno@clisp.org>
49462         pthread_sigmask: Work around Cygwin bug.
49463         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
49464         bug.
49465         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
49466         the system's pthread_sigmask function.
49467         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
49469 2011-07-08  Bruno Haible  <bruno@clisp.org>
49471         pthread_sigmask: Work around bug in single-threaded implementation.
49472         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
49473         FreeBSD, HP-UX, Solaris bug.
49474         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
49475         * lib/pthread_sigmask.c: Include <stddef.h>.
49476         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
49477         the system's pthread_sigmask function.
49478         * modules/pthread_sigmask (configure.ac): Invoke
49479         gl_PREREQ_PTHREAD_SIGMASK.
49480         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
49481         HP-UX, Solaris.
49483 2011-07-08  Eric Blake  <eblake@redhat.com>
49485         test-sigprocmask: avoid compiler warning
49486         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
49487         * tests/test-sigprocmask.c (main): Use it to silence warning.
49488         Reported by Jim Meyering.
49490         test-snprintf: avoid compiler warning
49491         * tests/test-snprintf.c (main): Avoid shadowed declaration.
49492         * tests/test-vsnprintf.c (main): Likewise.
49493         Reported by Jim Meyering.
49495 2011-07-08  Bruno Haible  <bruno@clisp.org>
49497         Tests for module 'pthread_sigmask'.
49498         * modules/pthread_sigmask-tests: New file.
49499         * tests/test-pthread_sigmask1.c: New file, based on
49500         tests/test-sigprocmask.c.
49501         * tests/test-pthread_sigmask2.c: New file.
49503 2011-07-08  Jim Meyering  <meyering@redhat.com>
49505         test-getopt.h: avoid warning about an unused variable
49506         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
49508 2011-07-07  Jim Meyering  <meyering@redhat.com>
49510         maint: reduce list of files exempt from sc_prohibit_leading_TABs
49511         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
49512         now that it no longer contains leading TABs.
49513         Remove unused "url=FIXME" statement.
49515 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49517         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
49518         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49519         When gl_THREADLIB is not in use, assume that the POSIX sematics
49520         are desired.  This is better for Emacs, which uses POSIX semantics
49521         on GNUish and/or POSIXish platforms, and does not use threads at
49522         all otherwise.
49524         pthread_sigmask: fix typo when testing for libraries
49525         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49526         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
49528 2011-07-08  Eric Blake  <eblake@redhat.com>
49530         fts: introduce FTS_NOATIME
49531         * lib/fts_.h (FTS_NOATIME): New bit flag.
49532         (FTS_OPTIONMASK): Adjust.
49533         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
49534         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
49536 2011-07-08  Bruno Haible  <bruno@clisp.org>
49538         Tests for module 'thread'.
49539         * modules/thread-tests: New file.
49540         * tests/test-thread_self.c: New file.
49541         * tests/test-thread_create.cc: New file.
49543 2011-07-08  Bruno Haible  <bruno@clisp.org>
49545         thread: Avoid gcc warnings when using gl_thread_self().
49546         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
49547         'void *'.
49548         (gl_thread_self_pointer): Update.
49550 2011-07-07  Bruno Haible  <bruno@clisp.org>
49552         signal-c++-tests: Check declaration of pthread_sigmask.
49553         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
49554         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
49555         $(LIB_PTHREAD_SIGMASK).
49557 2011-07-07  Bruno Haible  <bruno@clisp.org>
49559         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
49560         * lib/signal.in.h (pthread_sigmask): Override if
49561         REPLACE_PTHREAD_SIGMASK is 1.
49562         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49563         REPLACE_PTHREAD_SIGMASK.
49564         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
49565         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
49566         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
49567         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
49568         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
49570 2011-07-07  Bruno Haible  <bruno@clisp.org>
49572         pthread_sigmask: Ensure declaration in <signal.h>.
49573         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
49574         include <pthread.h>.
49575         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
49576         problem.
49578 2011-07-07  Bruno Haible  <bruno@clisp.org>
49580         pthread_sigmask: Document the module.
49581         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
49583 2011-07-07  Bruno Haible  <bruno@clisp.org>
49585         pthread_sigmask: Follow gnulib conventions.
49586         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
49587         gl_PTHREAD_SIGMASK.
49588         * modules/pthread_sigmask (configure.ac): Update.
49590 2011-07-07  Bruno Haible  <bruno@clisp.org>
49592         pthread_sigmask: Make declaration C++ safe.
49593         * lib/signal.in.h: In two special conditions, just do an #include_next.
49594         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
49595         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
49596         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49597         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
49598         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
49599         not REPLACE_PTHREAD_MASK.
49600         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
49601         not REPLACE_PTHREAD_MASK.
49602         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
49604 2011-07-07  Bruno Haible  <bruno@clisp.org>
49606         pthread_sigmask: Fix return value.
49607         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
49608         * lib/pthread_sigmask.c: New file.
49609         * modules/pthread_sigmask (Files): Add it.
49610         (configure.ac): Invoke AC_LIBOBJ.
49612 2011-07-07  Eric Blake  <eblake@redhat.com>
49614         getopt: more portable argv creation
49615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
49616         const, use char arrays rather than strings.
49617         Suggested by Paul Eggert.
49619 2011-07-07  Bruno Haible  <bruno@clisp.org>
49621         Tests for module 'sigprocmask'.
49622         * modules/sigprocmask-tests: New file.
49623         * tests/test-sigprocmask.c: New file.
49625 2011-07-07  Bruno Haible  <bruno@clisp.org>
49627         float tests: Tweak.
49628         * tests/test-float.c (main): Tweak skip message.
49630 2011-07-07  Eric Blake  <eblake@redhat.com>
49632         getopt: avoid compiler warning during configure
49633         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
49634         assigning string literals to non-const pointer.
49636         getopt-gnu: avoid crash in glibc getopt
49637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
49638         * tests/test-getopt.h (test_getopt): Enhance test.
49639         * tests/test-getopt_long.h (test_getopt_long): Likewise.
49640         * doc/posix-functions/getopt.texi (getopt): Document it.
49641         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
49642         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
49643         Likewise.
49645 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
49647         getopt: handle W; without long options in getopt [BZ #12922]
49648         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
49649         but no long options are defined, just return 'W'.
49651 2011-07-07  Bruno Haible  <bruno@clisp.org>
49653         Avoid literal tabs.
49654         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
49655         variable containing a tab instead of a literal tab.
49656         Reported by Jim Meyering.
49658 2011-07-07  Bruno Haible  <bruno@clisp.org>
49660         Comments.
49661         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
49663 2011-07-06  Bruno Haible  <bruno@clisp.org>
49665         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
49666         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
49667         <winsock2.h>.
49668         (rpl_fd_isset, FD_ISSET): New definitions, copied from
49669         lib/sys_socket.in.h.
49670         (close, gethostname): Hide declarations from <winsock2.h>.
49671         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49672         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
49673         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
49674         (select): Don't override if gnulib's <sys/select.h> was already
49675         included.
49676         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
49677         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
49678         setsockopt, shutdown, select): Tweak indentation.
49680 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49682         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
49683         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
49684         in an application that does not use the sys_select module.
49686 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
49688         poll: do not return 0 on timeout=-1
49689         * lib/poll.c: Loop with yield if no events occurred.
49691 2011-07-06  Eric Blake  <eblake@redhat.com>
49693         pthread_sigmask: always replace when not using pthread
49694         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
49695         replacement when using some threading other than pthread.  Fix
49696         logic bug.
49698 2011-07-06  Bruno Haible  <bruno@clisp.org>
49700         Comments.
49701         * m4/printf.m4: Update comments about mingw.
49703 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49705         sys_select: define sigset_t more portably
49706         * lib/sys_select.in.h: Always include <sys/types.h>, since
49707         we now need sigset_t and mingw defines it there.
49708         Include <signal.h> before split inclusion guard, to avoid
49709         mishaps on Solaris, whose <signal.h> eventually includes us.
49710         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
49711         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
49712         which come from ...
49713         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49714         gl_CHECK_TYPE_SIGSET_T.
49715         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
49716         does the real work.
49717         * modules/sys_select (Depends-on): Add 'signal'.
49719         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
49720         Suggested by Bruno Haible.
49722         pselect: Use pthread_sigmask, not sigprocmask.
49723         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
49724         multithreaded apps better than sigprocmask does.
49725         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
49726         sigprocmask directly.
49728 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49730         * lib/pselect.c (pselect): Use plain name, without "rpl_".
49731         Don't #undef,  since we don't need any underlying pselect.
49732         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
49733         (Depends-on): Add select.
49734         (Link): Add $(LIBSOCKET).
49735         These changes suggested by Bruno Haible.
49737         pselect: document better
49738         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
49739         * doc/posix-functions/pselect.texi (pselect): Document new module.
49741         pthread_sigmask: new module
49742         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
49743         * doc/posix-functions/pthread_sigmask.texi: Document new module.
49744         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
49745         This is done only as a macro; I don't know how well that'll
49746         work for C++.  Move <sys/types.h> include before the include_next,
49747         to avoid mishap on Solaris.
49748         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
49749         * modules/signal (Makefile.am): Substitute the check's results.
49750         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
49752         test-pselect: new module
49753         * modules/pselect-tests, tests/test-pselect.c: New files.
49754         * tests/test-select.c, tests/test-sys_select-c++.cc:
49755         If TEST_PSELECT is defined, test pselect instead of testing select.
49757         * tests/test-sys_select.c (sigset_t): Test for it, too.
49758         Suggested by Bruno Haible.
49760 2011-07-05  Eric Blake  <eblake@redhat.com>
49762         snprintf: guarantee %1$d, for libintl
49763         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
49764         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49765         * doc/posix-functions/snprintf.texi (snprintf): Update.
49766         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49767         * tests/test-snprintf.c (main): Enhance test.
49768         * tests/test-vsnprintf.c (main): Likewise.
49770 2011-07-05  Jim Meyering  <meyering@redhat.com>
49772         maint: exempt stdio-read.c and stdio-write.c from the cppi check
49773         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
49774         per Bruno's request, to accommodate this idiom (no space after "#")
49775         even when the function is inside an #if block:
49776         char *
49777         gets (char *s)
49778         #undef gets
49779         {
49780           ...
49781         }
49783 2011-07-04  Jim Meyering  <meyering@redhat.com>
49785         maint: indent with spaces, not TABs, and add a rule to check this
49786         * tests/test-userspec.c: Indent with spaces, not TABs.
49787         * tests/test-argp.c: Likewise.
49788         * tests/test-c-stack2.sh: Likewise.
49789         * tests/test-parse-duration.sh: Likewise
49790         * m4/strtod.m4: Likewise.
49791         * m4/alloca.m4: Likewise.
49792         * m4/pselect.m4: Likewise.
49793         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
49795 2011-07-03  Jim Meyering  <meyering@redhat.com>
49797         maint.mk: correct omissions in prohibit_argmatch_without_use check
49798         This rule would mistakenly report that argmatch.h is included without
49799         use even when both the argmatch and invalid_arg macro were used.
49800         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
49801         of argmatch and invalid_arg.
49803 2011-07-03  Bruno Haible  <bruno@clisp.org>
49805         Comments about EINTR.
49806         * lib/safe-read.h: Explain the purpose of this module.
49807         * lib/safe-write.h: Likewise.
49808         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
49809         module.
49810         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
49811         module.
49812         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49814 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49816         xnanosleep: Rewrite to use new dtotimespec module.
49817         It has the conversion code that used to be in xnanosleep.
49818         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
49819         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
49820         (TIME_T_MAX): Remove.
49821         (xnanosleep): Rewrite in terms of dtotimespec.
49822         * modules/xnanosleep (Depends-on): Add dtotimespec.
49823         Remove intprops, stdbool.
49825         timespec-add, timespec-sub: new modules
49826         * lib/timespec.h (timespec_add, timespec_sub): New decls.
49827         * lib/timespec-add.c, lib/timespec-sub.c:
49828         * modules/timespec-add, modules/timespec-sub: New files.
49830         dtotimespec: new module
49831         * lib/timespec.h (dtotimespec): New decl.
49832         * lib/dtotimespec.c, modules/dtotimespec: New files.
49834         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
49836         pselect: new module
49837         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
49838         (pselect): New decls.
49839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
49840         since the standard pselect decl uses 'restrict'.
49841         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
49842         HAVE_PSELECT, REPLACE_PSELECT.
49843         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
49844         HAVE_PSELECT, REPLACE_PSELECT.
49845         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
49847         sys_select: don't depend on sys_socket
49848         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
49849         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
49850         This fix works on GNU and GNU-like platforms, but has not been tested
49851         on native Windows.
49852         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
49853         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
49854         gl_HEADER_SYS_SOCKET.
49855         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
49856         gl_PREREQ_SYS_H_WINSOCK2.
49858 2011-06-29  Eric Blake  <eblake@redhat.com>
49860         pipe2: fix C89 compile problem
49861         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
49862         Reported by Bruno Haible.
49864         pipe, pipe2: don't corrupt fd on error
49865         * lib/pipe.c (pipe): Leave fd unchanged on error.
49866         * lib/pipe2.c (pipe2): Likewise.
49867         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
49868         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
49870 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
49872         mmap-anon: do not use regular expressions inadvertently
49873         * m4/mmap-anon.m4: Remove trailing period from strings sought
49874         in the output.
49876 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
49878         nanosleep: fix integer overflow problem
49879         * lib/nanosleep.c (my_usleep): Don't assume signed integer
49880         arithmetic wraps around on overflow.
49882         nanosleep: simplify carrying
49883         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
49884         first call to the underyling nanosleep, not for the last one.
49885         This doesn't fix any bugs, but it simplifies the computation of
49886         the remaining delay.  Found while auditing integer overflow issues.
49888         dup2: remove test for existence of fcntl
49889         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
49890         "#if HAVE_FCNTL", in the configure-time test program.
49891         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
49892         and therefore speeds up "configure" a bit.  Found while
49893         adding the dup2 module to Emacs.
49895 2011-06-24  Eric Blake  <eblake@redhat.com>
49897         maint.mk: enhance useless header checks
49898         * top/maint.mk (_sc_header_without_use): Check both include
49899         styles.
49900         (sc_prohibit_assert_without_use)
49901         (sc_prohibit_close_stream_without_use)
49902         (sc_prohibit_getopt_without_use)
49903         (sc_prohibit_quotearg_without_use)
49904         (sc_prohibit_quote_without_use)
49905         (sc_prohibit_long_options_without_use)
49906         (sc_prohibit_inttostr_without_use)
49907         (sc_prohibit_ignore_value_without_use)
49908         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
49909         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
49910         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
49911         (sc_prohibit_hash_pjw_without_use)
49912         (sc_prohibit_safe_read_without_use)
49913         (sc_prohibit_argmatch_without_use)
49914         (sc_prohibit_canonicalize_without_use)
49915         (sc_prohibit_root_dev_ino_without_use)
49916         (sc_prohibit_openat_without_use)
49917         (sc_prohibit_c_ctype_without_use)
49918         (sc_prohibit_signal_without_use)
49919         (sc_prohibit_stdio--_without_use)
49920         (sc_prohibit_stdio-safer_without_use)
49921         (sc_prohibit_strings_without_use)
49922         (sc_prohibit_intprops_without_use)
49923         (sc_prohibit_stddef_without_use)
49924         (sc_prohibit_xfreopen_without_use): Update clients.
49926 2011-06-24  Jim Meyering  <meyering@redhat.com>
49928         syntax-check: keep one maint.mk rule in sync with its header
49929         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
49930         of the bug Eric has just fixed, with today's commit 25e4c2ec.
49931         I prefer to avoid temporary files here, so use <(...), but that
49932         is not supported by /bin/sh, so...
49933         (SHELL): Define to /bin/bash.
49935 2011-06-24  Eric Blake  <eblake@redhat.com>
49937         maint.mk: update sc_prohibit_intprops_without_use
49938         * top/maint.mk (_intprops_names): Match recent changes.
49940 2011-06-24  Bruno Haible  <bruno@clisp.org>
49942         strerror-override: No-op tweak.
49943         * lib/strerror-override.h (strerror_override): Reorder conditions,
49944         for consistency with lib/strerror-override.c.
49946 2011-06-23  Eric Blake  <eblake@redhat.com>
49948         maint.mk: test further PATH_MAX issues
49949         * top/maint.mk (sc_prohibit_path_max_array): Rename...
49950         (sc_prohibit_path_max_allocation): ...and also test alloca.
49951         Suggested by Jim Meyering.
49953 2011-06-22  Eric Blake  <eblake@redhat.com>
49955         maint.mk: add syntax-check to avoid char[PATH_MAX]
49956         * top/maint.mk (sc_prohibit_path_max_array): New rule.
49958         stat: be robust to PATH_MAX definition
49959         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
49960         * modules/stat (Depends-on): Add verify.
49962         link: work around IRIX bug
49963         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
49964         * lib/link.c (rpl_link): Work around it.
49965         * tests/test-link.h (test_link): Enhance test.
49966         * doc/posix-functions/link.texi (link): Document the bug.
49968         getopt: silence clang warning
49969         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
49970         dereference.
49971         Reported by Gustavo Martin Domato.
49973 2011-06-22  Jim Meyering  <meyering@redhat.com>
49975         bootstrap: do not insert a blank line into each .gitignore file
49976         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
49978 2011-06-21  Eric Blake  <eblake@redhat.com>
49980         perror: test for output mismatch
49981         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
49982         perror on IRIX.
49984         strerror_r: fix OpenBSD behavior on out-of-range
49985         * lib/strerror_r.c (strerror_r): Always use maximal string.
49986         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
49988         strerror_r: fix OpenBSD behavior on 0
49989         * lib/strerror-override.c (strerror_override): Also override 0
49990         when needed.
49991         * lib/strerror-override.h (strerror_override): Likewise.
49992         * lib/strerror.c (strerror): Simplify, now that 0 override is done
49993         earlier.
49994         * lib/strerror_r.c (strerror_r): Likewise.
49995         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
49996         behavior...
49997         (gl_FUNC_STRERROR_0): ...into new macro.
49998         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
49999         is overridden.
50000         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
50001         * modules/strerror-override (Files): Add strerror.m4.
50002         (configure.ac): Also provide override for 0 when needed.
50003         * doc/posix-functions/strerror.texi (strerror): Document this.
50004         * doc/posix-functions/perror.texi (perror): Likewise.
50006         perror: adjust array size
50007         * modules/perror (Depends-on): Add strerror-override.
50008         * lib/perror.c (perror): Use it to avoid magic number.
50010         strerror-override: reduce size
50011         * lib/strerror-override.c (strerror_override): Use fewer lines.
50013 2011-06-20  Bruno Haible  <bruno@clisp.org>
50015         pathmax: Ensure correct value for PATH_MAX on HP-UX.
50016         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
50018 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50020         alloca: port to compilers that can optimize like GCC 4.6.0
50021         * lib/alloca.c (find_stack_direction): New signature, taken from
50022         Autoconf git.  This works with GCC 4.6.0.  This code should never
50023         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
50024         be used with other compilers that optimize as well as GCC 4.6.0 does.
50025         (alloca): Adjust to new signature.
50026         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
50027         New macro, which patches Autoconf in a similar way.
50029         c-stack: stop worrying about stack direction
50030         * lib/c-stack.c (find_stack_direction): Remove.
50031         (segv_handler): Don't worry about stack direction growth, as it's
50032         too much of a pain to configure this correctly, given how compilers
50033         are optimizing-away our stack-growth detection code.  Instead, assume
50034         that any access to just before or just after the stack is OK.
50035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50036         Don't require AC_FUNC_ALLOCA; no longer needed.
50038 2011-06-20  Eric Blake  <eblake@redhat.com>
50040         test-stat: don't allocate PATH_MAX bytes
50041         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
50042         PATH_MAX-sized buffer.
50043         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
50044         * modules/stat-tests (Depends-on): Likewise.
50045         * tests/test-fstatat.c (includes): Drop pathmax.h.
50046         * tests/test-stat.c (includes): Likewise.
50047         Reported by Bruno Haible.
50049 2011-06-20  Bruno Haible  <bruno@clisp.org>
50051         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
50052         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
50053         * lib/float.c: New file.
50054         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
50055         REPLACE_FLOAT_LDBL.
50056         * modules/float (Files): Add lib/float.c.
50057         (configure.ac): Invoke AC_LIBOBJ.
50058         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
50060 2011-06-20  Bruno Haible  <bruno@clisp.org>
50062         Tests for module 'float'.
50063         * modules/float-tests: New file.
50064         * tests/test-float.c: New file.
50066 2011-06-19  Bruno Haible  <bruno@clisp.org>
50068         isinf: Coding style.
50069         * lib/isinf.c: Use GNU coding style.
50071 2011-06-19  Bruno Haible  <bruno@clisp.org>
50073         linkat test: Avoid test failure on AIX 7.1.
50074         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
50075         * tests/test-link.h (test_link): Likewise.
50077 2011-06-19  Bruno Haible  <bruno@clisp.org>
50079         pread test: Avoid test failure on OpenBSD 4.9.
50080         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
50082 2011-06-19  Bruno Haible  <bruno@clisp.org>
50084         sprintf-posix: Fix test failure on AIX 7.1.
50085         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
50086         * doc/posix-functions/dprintf.texi: Mention limited precision problem
50087         on AIX.
50088         * doc/posix-functions/fprintf.texi: Likewise.
50089         * doc/posix-functions/printf.texi: Likewise.
50090         * doc/posix-functions/snprintf.texi: Likewise.
50091         * doc/posix-functions/sprintf.texi: Likewise.
50092         * doc/posix-functions/vdprintf.texi: Likewise.
50093         * doc/posix-functions/vfprintf.texi: Likewise.
50094         * doc/posix-functions/vprintf.texi: Likewise.
50095         * doc/posix-functions/vsnprintf.texi: Likewise.
50096         * doc/posix-functions/vsprintf.texi: Likewise.
50098 2011-06-19  Bruno Haible  <bruno@clisp.org>
50100         roundl-ieee: Fix test failure on AIX 7.1.
50101         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
50102         * doc/posix-functions/roundl.texi: Mention problem with negative
50103         arguments.
50105 2011-06-19  Bruno Haible  <bruno@clisp.org>
50107         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50108         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
50109         * doc/posix-functions/round.texi: Mention problem with negative
50110         arguments.
50111         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
50113 2011-06-19  Bruno Haible  <bruno@clisp.org>
50115         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50116         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
50117         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
50118         * doc/posix-functions/roundf.texi: Mention problem with negative
50119         arguments.
50120         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
50122 2011-06-19  Bruno Haible  <bruno@clisp.org>
50124         ceilf-ieee: Work around bug on MacOS X 10.5.
50125         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
50127         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
50128         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
50129         IEEE compliant, avoid compiler optimizations.
50130         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
50131         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50132         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
50133         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50134         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50135         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
50136         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50137         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
50138         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
50139         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
50141 2011-06-19  Bruno Haible  <bruno@clisp.org>
50143         ceilf-ieee: Work around bug on AIX 7.1.
50144         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
50145         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
50147 2011-06-19  Bruno Haible  <bruno@clisp.org>
50149         ceil-ieee: Work around bug on AIX 7.1.
50150         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
50151         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
50153 2011-06-18  Bruno Haible  <bruno@clisp.org>
50155         fsync test: Avoid test failure on MacOS X and AIX.
50156         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
50157         EINVAL.
50159 2011-06-18  Bruno Haible  <bruno@clisp.org>
50161         openat, fdopendir tests: Fix link errors.
50162         * modules/openat-tests (Depends-on): Add progname.
50163         * modules/fdopendir-tests (Depends-on): Likewise.
50164         * tests/test-fchownat.c: Include progname.h.
50165         (main): Call set_program_name.
50166         * tests/test-fstatat.c: Include progname.h.
50167         (main): Call set_program_name.
50168         * tests/test-mkdirat.c: Include progname.h.
50169         (main): Call set_program_name.
50170         * tests/test-openat.c: Include progname.h.
50171         (main): Call set_program_name.
50172         * tests/test-unlinkat.c: Include progname.h.
50173         (main): Call set_program_name.
50174         * tests/test-fdopendir.c: Include progname.h.
50175         (main): Call set_program_name.
50177 2011-06-18  Bruno Haible  <bruno@clisp.org>
50179         Doc update.
50180         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
50181         HP-UX.
50182         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
50184 2011-06-18  Bruno Haible  <bruno@clisp.org>
50186         getcwd tests: Avoid compilation error on HP-UX 11.31.
50187         * modules/getcwd-tests (Depends-on): Add pathmax.
50188         * tests/test-getcwd.c: Include pathmax.h.
50190 2011-06-18  Bruno Haible  <bruno@clisp.org>
50192         isfinite, isinf: Fix link error on AIX 6 and 7.
50193         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
50194         needed, also test the macro with a 'float' argument.
50195         * m4/isinf.m4 (gl_ISINF): Likewise.
50197 2011-06-18  Bruno Haible  <bruno@clisp.org>
50199         getloadavg: Don't clobber LIBS. Regression from previous commit.
50200         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
50201         AC_CHECK_LIB from here...
50202         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
50203         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
50204         gl_func_getloadavg_done.
50205         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50207 2011-06-18  Bruno Haible  <bruno@clisp.org>
50209         clean-temp: Improve documentation.
50210         * lib/clean-temp.h: Explain better how to use this module.
50211         Reported by John Darrington <john@darrington.wattle.id.au>.
50213 2011-06-17  Bruno Haible  <bruno@clisp.org>
50215         pread, pwrite: Avoid cc warning on AIX.
50216         * lib/unistd.in.h (pread): Undefine before defining as a macro.
50217         (pwrite): Likewise.
50219 2011-06-17  Bruno Haible  <bruno@clisp.org>
50221         spawn-pipe tests: Fix link error.
50222         * tests/test-spawn-pipe-child.c: Undefine fprintf.
50223         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50225 2011-06-17  Bruno Haible  <bruno@clisp.org>
50227         Tests: Remove unnecessary dependency.
50228         * modules/canonicalize-tests (Depends-on): Remove progname.
50229         * modules/chown-tests (Depends-on): Likewise.
50230         * modules/dirname-tests (Depends-on): Likewise.
50231         * modules/fdopendir-tests (Depends-on): Likewise.
50232         * modules/fdutimensat-tests (Depends-on): Likewise.
50233         * modules/hash-tests (Depends-on): Likewise.
50234         * modules/lchown-tests (Depends-on): Likewise.
50235         * modules/linkat-tests (Depends-on): Likewise.
50236         * modules/renameat-tests (Depends-on): Likewise.
50237         * modules/spawn-pipe-tests (Depends-on): Likewise.
50238         * modules/utimensat-tests (Depends-on): Likewise.
50240 2011-06-17  Bruno Haible  <bruno@clisp.org>
50242         spawn-pipe tests: Fix link error.
50243         * tests/test-spawn-pipe-child.c: Undefine fflush.
50245 2011-06-17  Bruno Haible  <bruno@clisp.org>
50247         Fix tests link errors.
50248         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
50249         * modules/chown-tests (Makefile.am): Don't link test-chown with
50250         LIBINTL.
50251         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
50252         LIBINTL.
50253         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
50254         LIBINTL.
50255         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
50256         LIBINTL.
50258 2011-06-16  Bruno Haible  <bruno@clisp.org>
50260         crypto/gc-sha1: Fix recent regression.
50261         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
50262         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
50264         crypto/gc-md5: Fix recent regression.
50265         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
50267         crypto/gc-md4: Fix recent regression.
50268         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
50269         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
50271         crypto/gc-arctwo: Fix recent regression.
50272         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
50273         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
50275         crypto/gc-rijndael: Fix recent regression.
50276         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
50277         (configure.ac): Invoke AC_LIBOBJ here.
50278         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
50279         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50281         crypto/gc-hmac-sha1: Fix recent regression.
50282         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
50283         (configure.ac): Invoke AC_LIBOBJ here.
50284         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
50285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50287         crypto/gc-hmac-md5: Fix recent regression.
50288         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
50289         (configure.ac): Invoke AC_LIBOBJ here.
50290         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
50291         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50293         crypto/gc-des: Fix recent regression.
50294         * modules/crypto/gc-des (Files): Remove m4/des.m4.
50295         (configure.ac): Invoke AC_LIBOBJ here.
50296         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
50297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50299         crypto/gc-arcfour: Fix recent regression.
50300         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
50301         (configure.ac): Invoke AC_LIBOBJ here.
50302         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
50303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50305 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
50307         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
50308         After the 2011-05-21 change, this macro requires
50309         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
50310         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50312 2011-06-16  Bruno Haible  <bruno@clisp.org>
50314         fprintftime: Move AC_LIBOBJ invocations to module description.
50315         * m4/fprintftime.m4: Remove file.
50316         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
50317         (configure.ac): Remove gl_FPRINTFTIME call.
50318         (Makefile.am): Augment lib_SOURCES.
50319         Reported by Jim Meyering.
50321 2011-06-16  Bruno Haible  <bruno@clisp.org>
50323         tmpfile-safer: Finish 2011-05-23 commit.
50324         * m4/stdio-safer.m4: Really remove file.
50325         Reported by Jim Meyering.
50327 2011-06-16  Bruno Haible  <bruno@clisp.org>
50329         syntax-check: Fix typo.
50330         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
50331         printf-posix.m4.
50332         Reported by Jim Meyering.
50334 2011-06-13  Jim Meyering  <meyering@redhat.com>
50336         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
50337         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
50339 2011-05-23  Bruno Haible  <bruno@clisp.org>
50341         yesno: Move AC_LIBOBJ invocations to module description.
50342         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
50343         * modules/yesno (Makefile.am): Augment lib_SOURCES.
50345 2011-05-23  Bruno Haible  <bruno@clisp.org>
50347         xstrtol: Move AC_LIBOBJ invocations to module description.
50348         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
50349         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
50351 2011-05-23  Bruno Haible  <bruno@clisp.org>
50353         xstrtold: Move AC_LIBOBJ invocations to module description.
50354         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
50355         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
50357 2011-05-23  Bruno Haible  <bruno@clisp.org>
50359         xstrtod: Move AC_LIBOBJ invocations to module description.
50360         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
50361         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
50363 2011-05-23  Bruno Haible  <bruno@clisp.org>
50365         xnanosleep: Move AC_LIBOBJ invocations to module description.
50366         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
50367         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
50369 2011-05-23  Bruno Haible  <bruno@clisp.org>
50371         xgetcwd: Move AC_LIBOBJ invocations to module description.
50372         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
50373         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
50375 2011-05-23  Bruno Haible  <bruno@clisp.org>
50377         xalloc: Move AC_LIBOBJ invocations to module description.
50378         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
50379         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
50381 2011-05-23  Bruno Haible  <bruno@clisp.org>
50383         write-any-file: Move AC_LIBOBJ invocations to module description.
50384         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
50385         invocation.
50386         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
50388 2011-05-23  Bruno Haible  <bruno@clisp.org>
50390         utimens: Move AC_LIBOBJ invocations to module description.
50391         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
50392         * modules/utimens (Makefile.am): Augment lib_SOURCES.
50394 2011-05-23  Bruno Haible  <bruno@clisp.org>
50396         utimecmp: Move AC_LIBOBJ invocations to module description.
50397         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
50398         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
50400 2011-05-23  Bruno Haible  <bruno@clisp.org>
50402         userspec: Move AC_LIBOBJ invocations to module description.
50403         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
50404         * modules/userspec (Makefile.am): Augment lib_SOURCES.
50406 2011-05-23  Bruno Haible  <bruno@clisp.org>
50408         unlinkdir: Move AC_LIBOBJ invocations to module description.
50409         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
50410         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
50412 2011-05-23  Bruno Haible  <bruno@clisp.org>
50414         unistd-safer: Move AC_LIBOBJ invocations to module description.
50415         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
50416         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
50418 2011-05-23  Bruno Haible  <bruno@clisp.org>
50420         tempname: Move AC_LIBOBJ invocations to module description.
50421         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
50422         * modules/tempname (Makefile.am): Augment lib_SOURCES.
50424 2011-05-23  Bruno Haible  <bruno@clisp.org>
50426         strftime: Move AC_LIBOBJ invocations to module description.
50427         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
50428         * modules/strftime (Makefile.am): Augment lib_SOURCES.
50430 2011-05-23  Bruno Haible  <bruno@clisp.org>
50432         stdlib-safer: Move AC_LIBOBJ invocations to module description.
50433         * m4/stdlib-safer.m4: Remove file.
50434         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
50435         (configure.ac): Remove gl_STDLIB_SAFER call.
50436         (Makefile.am): Augment lib_SOURCES.
50438 2011-05-23  Bruno Haible  <bruno@clisp.org>
50440         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
50441         * m4/stdio-safer.m4: Remove file.
50442         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
50443         (configure.ac): Remove gl_TMPFILE_SAFER call.
50444         (Makefile.am): Augment lib_SOURCES.
50446 2011-05-23  Bruno Haible  <bruno@clisp.org>
50448         popen-safer: Move AC_LIBOBJ invocations to module description.
50449         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
50450         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
50451         (configure.ac): Remove gl_POPEN_SAFER call.
50452         (Makefile.am): Augment lib_SOURCES.
50454 2011-05-23  Bruno Haible  <bruno@clisp.org>
50456         freopen-safer: Move AC_LIBOBJ invocations to module description.
50457         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
50458         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
50459         (configure.ac): Remove gl_FREOPEN_SAFER call.
50460         (Makefile.am): Augment lib_SOURCES.
50462 2011-05-23  Bruno Haible  <bruno@clisp.org>
50464         fopen-safer: Move AC_LIBOBJ invocations to module description.
50465         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
50466         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
50467         (configure.ac): Remove gl_FOPEN_SAFER call.
50468         (Makefile.am): Augment lib_SOURCES.
50470 2011-05-23  Bruno Haible  <bruno@clisp.org>
50472         crypto/sha512: Move AC_LIBOBJ invocations to module description.
50473         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
50474         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
50476 2011-05-23  Bruno Haible  <bruno@clisp.org>
50478         crypto/sha256: Move AC_LIBOBJ invocations to module description.
50479         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
50480         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
50482 2011-05-23  Bruno Haible  <bruno@clisp.org>
50484         crypto/sha1: Move AC_LIBOBJ invocations to module description.
50485         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
50486         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
50488 2011-05-23  Bruno Haible  <bruno@clisp.org>
50490         settime: Move AC_LIBOBJ invocations to module description.
50491         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
50492         * modules/settime (Makefile.am): Augment lib_SOURCES.
50494 2011-05-23  Bruno Haible  <bruno@clisp.org>
50496         savedir: Move AC_LIBOBJ invocations to module description.
50497         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
50498         * modules/savedir (Makefile.am): Augment lib_SOURCES.
50500 2011-05-23  Bruno Haible  <bruno@clisp.org>
50502         save-cwd: Move AC_LIBOBJ invocations to module description.
50503         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
50504         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
50506 2011-05-23  Bruno Haible  <bruno@clisp.org>
50508         same: Move AC_LIBOBJ invocations to module description.
50509         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
50510         * modules/same (Makefile.am): Augment lib_SOURCES.
50512 2011-05-23  Bruno Haible  <bruno@clisp.org>
50514         safe-write: Move AC_LIBOBJ invocations to module description.
50515         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
50516         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
50517         instead of gl_SAFE_WRITE.
50518         (Makefile.am): Augment lib_SOURCES.
50520 2011-05-23  Bruno Haible  <bruno@clisp.org>
50522         safe-read: Move AC_LIBOBJ invocations to module description.
50523         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
50524         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
50525         of gl_SAFE_READ.
50526         (Makefile.am): Augment lib_SOURCES.
50528 2011-05-23  Bruno Haible  <bruno@clisp.org>
50530         safe-alloc: Move AC_LIBOBJ invocations to module description.
50531         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
50532         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
50534 2011-05-23  Bruno Haible  <bruno@clisp.org>
50536         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
50537         * m4/rijndael.m4: Remove file.
50538         * modules/crypto/rijndael (Files): Remove it.
50539         (configure.ac): Remove gl_RIJNDAEL call.
50540         (Makefile.am): Augment lib_SOURCES.
50542 2011-05-23  Bruno Haible  <bruno@clisp.org>
50544         readtokens: Move AC_LIBOBJ invocations to module description.
50545         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
50546         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
50548 2011-05-23  Bruno Haible  <bruno@clisp.org>
50550         read-file: Move AC_LIBOBJ invocations to module description.
50551         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
50552         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
50553         of gl_FUNC_READ_FILE.
50554         (Makefile.am): Augment lib_SOURCES.
50556 2011-05-23  Bruno Haible  <bruno@clisp.org>
50558         quotearg: Move AC_LIBOBJ invocations to module description.
50559         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
50560         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
50562 2011-05-23  Bruno Haible  <bruno@clisp.org>
50564         quote: Move AC_LIBOBJ invocations to module description.
50565         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
50566         * modules/quote (Makefile.am): Augment lib_SOURCES.
50568 2011-05-23  Bruno Haible  <bruno@clisp.org>
50570         posixver: Move AC_LIBOBJ invocations to module description.
50571         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
50572         * modules/posixver (Makefile.am): Augment lib_SOURCES.
50574 2011-05-23  Bruno Haible  <bruno@clisp.org>
50576         posixtm: Move AC_LIBOBJ invocations to module description.
50577         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
50578         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
50580 2011-05-23  Bruno Haible  <bruno@clisp.org>
50582         physmem: Move AC_LIBOBJ invocations to module description.
50583         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
50584         * modules/physmem (Makefile.am): Augment lib_SOURCES.
50586 2011-05-23  Bruno Haible  <bruno@clisp.org>
50588         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
50589         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
50590         invocation.
50591         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
50593 2011-05-23  Bruno Haible  <bruno@clisp.org>
50595         mpsort: Move AC_LIBOBJ invocations to module description.
50596         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
50597         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
50599 2011-05-23  Bruno Haible  <bruno@clisp.org>
50601         modechange: Move AC_LIBOBJ invocations to module description.
50602         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
50603         * modules/modechange (Makefile.am): Augment lib_SOURCES.
50605 2011-05-23  Bruno Haible  <bruno@clisp.org>
50607         mkdir-p: Move AC_LIBOBJ invocations to module description.
50608         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
50609         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
50611 2011-05-23  Bruno Haible  <bruno@clisp.org>
50613         mkancesdirs: Move AC_LIBOBJ invocations to module description.
50614         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
50615         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
50617 2011-05-23  Bruno Haible  <bruno@clisp.org>
50619         mgetgroups: Move AC_LIBOBJ invocations to module description.
50620         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
50621         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
50623 2011-05-23  Bruno Haible  <bruno@clisp.org>
50625         memxor: Move AC_LIBOBJ invocations to module description.
50626         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
50627         * modules/memxor (Makefile.am): Augment lib_SOURCES.
50629 2011-05-23  Bruno Haible  <bruno@clisp.org>
50631         memcoll: Move AC_LIBOBJ invocations to module description.
50632         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
50633         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
50635 2011-05-23  Bruno Haible  <bruno@clisp.org>
50637         memcasecmp: Move AC_LIBOBJ invocations to module description.
50638         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
50639         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
50641 2011-05-23  Bruno Haible  <bruno@clisp.org>
50643         crypto/md5: Move AC_LIBOBJ invocations to module description.
50644         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
50645         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
50647 2011-05-23  Bruno Haible  <bruno@clisp.org>
50649         crypto/md4: Move AC_LIBOBJ invocations to module description.
50650         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
50651         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
50653 2011-05-23  Bruno Haible  <bruno@clisp.org>
50655         crypto/md2: Move AC_LIBOBJ invocations to module description.
50656         * m4/md2.m4: Remove file.
50657         * modules/crypto/md2 (Files): Remove it.
50658         (configure.ac): Remove gl_MD2 call.
50659         (Makefile.am): Augment lib_SOURCES.
50661 2011-05-23  Bruno Haible  <bruno@clisp.org>
50663         long-options: Move AC_LIBOBJ invocations to module description.
50664         * m4/long-options.m4: Remove file.
50665         * modules/long-options (Files): Remove it.
50666         (configure.ac): Remove gl_LONG_OPTIONS call.
50667         (Makefile.am): Augment lib_SOURCES.
50669 2011-05-23  Bruno Haible  <bruno@clisp.org>
50671         i-ring: Move AC_LIBOBJ invocations to module description.
50672         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
50673         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
50675 2011-05-23  Bruno Haible  <bruno@clisp.org>
50677         idcache: Move AC_LIBOBJ invocations to module description.
50678         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
50679         * modules/idcache (Makefile.am): Augment lib_SOURCES.
50681 2011-05-23  Bruno Haible  <bruno@clisp.org>
50683         human: Move AC_LIBOBJ invocations to module description.
50684         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
50685         * modules/human (Makefile.am): Augment lib_SOURCES.
50687 2011-05-23  Bruno Haible  <bruno@clisp.org>
50689         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
50690         * m4/hmac-sha1.m4: Remove file.
50691         * modules/crypto/hmac-sha1 (Files): Remove it.
50692         (configure.ac): Remove gl_HMAC_SHA1 call.
50693         (Makefile.am): Augment lib_SOURCES.
50695 2011-05-23  Bruno Haible  <bruno@clisp.org>
50697         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
50698         * m4/hmac-md5.m4: Remove file.
50699         * modules/crypto/hmac-md5 (Files): Remove it.
50700         (configure.ac): Remove gl_HMAC_MD5 call.
50701         (Makefile.am): Augment lib_SOURCES.
50703 2011-05-23  Bruno Haible  <bruno@clisp.org>
50705         hash: Move AC_LIBOBJ invocations to module description.
50706         * m4/hash.m4: Remove file.
50707         * modules/hash (Files): Remove it.
50708         (configure.ac): Remove gl_HASH call.
50709         (Makefile.am): Augment lib_SOURCES.
50711 2011-05-23  Bruno Haible  <bruno@clisp.org>
50713         hard-locale: Move AC_LIBOBJ invocations to module description.
50714         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
50715         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
50717 2011-05-23  Bruno Haible  <bruno@clisp.org>
50719         getugroups: Move AC_LIBOBJ invocations to module description.
50720         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
50721         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
50723 2011-05-23  Bruno Haible  <bruno@clisp.org>
50725         gettime: Move AC_LIBOBJ invocations to module description.
50726         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
50727         * modules/gettime (Makefile.am): Augment lib_SOURCES.
50729 2011-05-23  Bruno Haible  <bruno@clisp.org>
50731         getndelim2: Move AC_LIBOBJ invocations to module description.
50732         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
50733         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
50735 2011-05-23  Bruno Haible  <bruno@clisp.org>
50737         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
50738         * m4/gc-pbkdf2-sha1.m4: Remove file.
50739         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
50740         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
50741         (Makefile.am): Augment lib_SOURCES.
50743 2011-05-23  Bruno Haible  <bruno@clisp.org>
50745         fts: Move AC_LIBOBJ invocations to module description.
50746         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
50747         * modules/fts (configure.ac): ... to here.
50749 2011-05-23  Bruno Haible  <bruno@clisp.org>
50751         file-type: Move AC_LIBOBJ invocations to module description.
50752         * m4/file-type.m4: Remove file.
50753         * modules/file-type (Files): Remove it.
50754         (configure.ac): Remove gl_FILE_TYPE call.
50755         (Makefile.am): Augment lib_SOURCES.
50757 2011-05-23  Bruno Haible  <bruno@clisp.org>
50759         filenamecat*: Respect rules for use of AC_LIBOBJ.
50760         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
50761         Remove AC_LIBOBJ invocation.
50762         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
50763         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
50765 2011-05-23  Bruno Haible  <bruno@clisp.org>
50767         filemode: Move AC_LIBOBJ invocations to module description.
50768         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
50769         * modules/filemode (Makefile.am): Augment lib_SOURCES.
50771 2011-05-23  Bruno Haible  <bruno@clisp.org>
50773         openat-safer: Move AC_LIBOBJ invocations to module description.
50774         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
50775         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
50777 2011-05-23  Bruno Haible  <bruno@clisp.org>
50779         fcntl-safer: Move AC_LIBOBJ invocations to module description.
50780         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
50781         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
50783 2011-05-23  Bruno Haible  <bruno@clisp.org>
50785         exclude: Move AC_LIBOBJ invocations to module description.
50786         * m4/exclude.m4: Remove file.
50787         * modules/exclude (Files): Remove it.
50788         (configure.ac): Remove gl_EXCLUDE call.
50789         (Makefile.am): Augment lib_SOURCES.
50791 2011-05-23  Bruno Haible  <bruno@clisp.org>
50793         dirname*: Respect rules for use of AC_LIBOBJ.
50794         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
50795         invocations.
50796         * modules/dirname (Makefile.am): Augment lib_SOURCES.
50797         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
50799 2011-05-23  Bruno Haible  <bruno@clisp.org>
50801         dirent-safer: Move AC_LIBOBJ invocations to module description.
50802         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
50803         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
50805 2011-05-23  Bruno Haible  <bruno@clisp.org>
50807         crypto/des: Move AC_LIBOBJ invocations to module description.
50808         * m4/des.m4: Remove file.
50809         * modules/crypto/des (Files): Remove it.
50810         (configure.ac): Remove gl_DES call.
50811         (Makefile.am): Augment lib_SOURCES.
50813 2011-05-23  Bruno Haible  <bruno@clisp.org>
50815         cycle-check: Move AC_LIBOBJ invocations to module description.
50816         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
50817         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
50819 2011-05-23  Bruno Haible  <bruno@clisp.org>
50821         c-strtold: Move AC_LIBOBJ invocations to module description.
50822         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
50823         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
50825 2011-05-23  Bruno Haible  <bruno@clisp.org>
50827         c-strtod: Move AC_LIBOBJ invocations to module description.
50828         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
50829         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
50831 2011-05-23  Bruno Haible  <bruno@clisp.org>
50833         crc: Move AC_LIBOBJ invocations to module description.
50834         * m4/crc.m4: Remove file.
50835         * modules/crc (Files): Remove it.
50836         (configure.ac): Remove gl_CRC call.
50837         (Makefile.am): Augment lib_SOURCES.
50839 2011-05-23  Bruno Haible  <bruno@clisp.org>
50841         close-stream: Move AC_LIBOBJ invocations to module description.
50842         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
50843         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
50845 2011-05-23  Bruno Haible  <bruno@clisp.org>
50847         closeout: Move AC_LIBOBJ invocations to module description.
50848         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
50849         * modules/closeout (Makefile.am): Augment lib_SOURCES.
50851 2011-05-23  Bruno Haible  <bruno@clisp.org>
50853         closein: Move AC_LIBOBJ invocations to module description.
50854         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
50855         * modules/closein (Makefile.am): Augment lib_SOURCES.
50857 2011-05-23  Bruno Haible  <bruno@clisp.org>
50859         cloexec: Move AC_LIBOBJ invocations to module description.
50860         * m4/cloexec.m4: Remove file.
50861         * modules/cloexec (Files): Remove it.
50862         (configure.ac): Remove gl_CLOEXEC call.
50863         (Makefile.am): Augment lib_SOURCES.
50865 2011-05-23  Bruno Haible  <bruno@clisp.org>
50867         check-version: Move AC_LIBOBJ invocations to module description.
50868         * m4/check-version.m4: Remove file.
50869         * modules/check-version (Files): Remove it.
50870         (configure.ac): Remove gl_CHECK_VERSION call.
50871         (Makefile.am): Augment lib_SOURCES.
50873 2011-05-23  Bruno Haible  <bruno@clisp.org>
50875         chdir-safer: Move AC_LIBOBJ invocations to module description.
50876         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
50877         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
50879 2011-05-23  Bruno Haible  <bruno@clisp.org>
50881         canonicalize: Move AC_LIBOBJ invocations to module description.
50882         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
50883         AC_LIBOBJ invocation.
50884         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
50886 2011-05-23  Bruno Haible  <bruno@clisp.org>
50888         canon-host: Move AC_LIBOBJ invocations to module description.
50889         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
50890         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
50891         instead of gl_CANON_HOST.
50892         (Makefile.am): Augment lib_SOURCES.
50894 2011-05-23  Bruno Haible  <bruno@clisp.org>
50896         backupfile: Move AC_LIBOBJ invocations to module description.
50897         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
50898         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
50900 2011-05-23  Bruno Haible  <bruno@clisp.org>
50902         argmatch: Move AC_LIBOBJ invocations to module description.
50903         * m4/argmatch.m4: Remove file.
50904         * modules/argmatch (Files): Remove it.
50905         (configure.ac): Remove gl_ARGMATCH call.
50906         (Makefile.am): Augment lib_SOURCES.
50908 2011-05-23  Bruno Haible  <bruno@clisp.org>
50910         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
50911         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
50912         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
50914 2011-05-23  Bruno Haible  <bruno@clisp.org>
50916         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
50917         * m4/arcfour.m4: Remove file.
50918         * modules/crypto/arcfour (Files): Remove it.
50919         (configure.ac): Remove gl_ARCFOUR call.
50920         (Makefile.am): Augment lib_SOURCES.
50922 2011-05-22  Bruno Haible  <bruno@clisp.org>
50924         write: Move AC_LIBOBJ invocations to module description.
50925         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
50926         * modules/write (configure.ac): ... to here.
50928 2011-05-22  Bruno Haible  <bruno@clisp.org>
50930         wmemset: Move AC_LIBOBJ invocations to module description.
50931         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
50932         here...
50933         * modules/wmemset (configure.ac): ... to here.
50935 2011-05-22  Bruno Haible  <bruno@clisp.org>
50937         wmemmove: Move AC_LIBOBJ invocations to module description.
50938         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
50939         here...
50940         * modules/wmemmove (configure.ac): ... to here.
50942 2011-05-22  Bruno Haible  <bruno@clisp.org>
50944         wmemcpy: Move AC_LIBOBJ invocations to module description.
50945         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
50946         here...
50947         * modules/wmemcpy (configure.ac): ... to here.
50949 2011-05-22  Bruno Haible  <bruno@clisp.org>
50951         wmemcmp: Move AC_LIBOBJ invocations to module description.
50952         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
50953         here...
50954         * modules/wmemcmp (configure.ac): ... to here.
50956 2011-05-22  Bruno Haible  <bruno@clisp.org>
50958         wmemchr: Move AC_LIBOBJ invocations to module description.
50959         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
50960         here...
50961         * modules/wmemchr (configure.ac): ... to here.
50963 2011-05-22  Bruno Haible  <bruno@clisp.org>
50965         wcswidth: Move AC_LIBOBJ invocations to module description.
50966         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
50967         here...
50968         * modules/wcswidth (configure.ac): ... to here.
50970 2011-05-22  Bruno Haible  <bruno@clisp.org>
50972         wcwidth: Respect rules for use of AC_LIBOBJ.
50973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
50974         invocation from here...
50975         * modules/wcwidth (configure.ac): ... to here.
50976         (Depends-on): Update conditions.
50978 2011-05-22  Bruno Haible  <bruno@clisp.org>
50980         wctype: Move AC_LIBOBJ invocations to module description.
50981         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
50982         invocation from here...
50983         * modules/wctype (configure.ac): ... to here.
50984         (Depends-on): Update conditions.
50986 2011-05-22  Bruno Haible  <bruno@clisp.org>
50988         wctrans: Move AC_LIBOBJ invocations to module description.
50989         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
50990         invocation from here...
50991         * modules/wctrans (configure.ac): ... to here.
50993 2011-05-22  Bruno Haible  <bruno@clisp.org>
50995         wctomb: Move AC_LIBOBJ invocations to module description.
50996         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
50997         invocations from here...
50998         * modules/wctomb (configure.ac): ... to here.
51000 2011-05-22  Bruno Haible  <bruno@clisp.org>
51002         wctob: Move AC_LIBOBJ invocations to module description.
51003         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
51004         gl_PREREQ_WCTOB invocations from here...
51005         * modules/wctob (configure.ac): ... to here.
51006         (Depends-on): Update conditions.
51008 2011-05-22  Bruno Haible  <bruno@clisp.org>
51010         wcsxfrm: Move AC_LIBOBJ invocations to module description.
51011         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
51012         here...
51013         * modules/wcsxfrm (configure.ac): ... to here.
51015 2011-05-22  Bruno Haible  <bruno@clisp.org>
51017         wcstok: Move AC_LIBOBJ invocations to module description.
51018         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
51019         * modules/wcstok (configure.ac): ... to here.
51021 2011-05-22  Bruno Haible  <bruno@clisp.org>
51023         wcsstr: Move AC_LIBOBJ invocations to module description.
51024         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
51025         * modules/wcsstr (configure.ac): ... to here.
51027 2011-05-22  Bruno Haible  <bruno@clisp.org>
51029         wcsspn: Move AC_LIBOBJ invocations to module description.
51030         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
51031         * modules/wcsspn (configure.ac): ... to here.
51033 2011-05-22  Bruno Haible  <bruno@clisp.org>
51035         wcsrtombs: Move AC_LIBOBJ invocations to module description.
51036         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
51037         gl_PREREQ_WCSRTOMBS invocations from here...
51038         * modules/wcsrtombs (configure.ac): ... to here.
51040 2011-05-22  Bruno Haible  <bruno@clisp.org>
51042         wcsrchr: Move AC_LIBOBJ invocations to module description.
51043         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
51044         here...
51045         * modules/wcsrchr (configure.ac): ... to here.
51047 2011-05-22  Bruno Haible  <bruno@clisp.org>
51049         wcspbrk: Move AC_LIBOBJ invocations to module description.
51050         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
51051         here...
51052         * modules/wcspbrk (configure.ac): ... to here.
51054 2011-05-22  Bruno Haible  <bruno@clisp.org>
51056         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
51057         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
51058         gl_PREREQ_WCSNRTOMBS invocations from here...
51059         * modules/wcsnrtombs (configure.ac): ... to here.
51061 2011-05-22  Bruno Haible  <bruno@clisp.org>
51063         wcsnlen: Move AC_LIBOBJ invocations to module description.
51064         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
51065         here...
51066         * modules/wcsnlen (configure.ac): ... to here.
51068 2011-05-22  Bruno Haible  <bruno@clisp.org>
51070         wcsncpy: Move AC_LIBOBJ invocations to module description.
51071         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
51072         here...
51073         * modules/wcsncpy (configure.ac): ... to here.
51075 2011-05-22  Bruno Haible  <bruno@clisp.org>
51077         wcsncmp: Move AC_LIBOBJ invocations to module description.
51078         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
51079         here...
51080         * modules/wcsncmp (configure.ac): ... to here.
51082 2011-05-22  Bruno Haible  <bruno@clisp.org>
51084         wcsncat: Move AC_LIBOBJ invocations to module description.
51085         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
51086         here...
51087         * modules/wcsncat (configure.ac): ... to here.
51089 2011-05-22  Bruno Haible  <bruno@clisp.org>
51091         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
51092         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
51093         from here...
51094         * modules/wcsncasecmp (configure.ac): ... to here.
51096 2011-05-22  Bruno Haible  <bruno@clisp.org>
51098         wcslen: Move AC_LIBOBJ invocations to module description.
51099         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
51100         * modules/wcslen (configure.ac): ... to here.
51102 2011-05-22  Bruno Haible  <bruno@clisp.org>
51104         wcsdup: Move AC_LIBOBJ invocations to module description.
51105         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
51106         * modules/wcsdup (configure.ac): ... to here.
51108 2011-05-22  Bruno Haible  <bruno@clisp.org>
51110         wcscspn: Move AC_LIBOBJ invocations to module description.
51111         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
51112         here...
51113         * modules/wcscspn (configure.ac): ... to here.
51115 2011-05-22  Bruno Haible  <bruno@clisp.org>
51117         wcscpy: Move AC_LIBOBJ invocations to module description.
51118         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
51119         * modules/wcscpy (configure.ac): ... to here.
51121 2011-05-22  Bruno Haible  <bruno@clisp.org>
51123         wcscoll: Move AC_LIBOBJ invocations to module description.
51124         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
51125         here...
51126         * modules/wcscoll (configure.ac): ... to here.
51128 2011-05-22  Bruno Haible  <bruno@clisp.org>
51130         wcscmp: Move AC_LIBOBJ invocations to module description.
51131         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
51132         * modules/wcscmp (configure.ac): ... to here.
51134 2011-05-22  Bruno Haible  <bruno@clisp.org>
51136         wcschr: Move AC_LIBOBJ invocations to module description.
51137         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
51138         * modules/wcschr (configure.ac): ... to here.
51140 2011-05-22  Bruno Haible  <bruno@clisp.org>
51142         wcscat: Move AC_LIBOBJ invocations to module description.
51143         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
51144         * modules/wcscat (configure.ac): ... to here.
51146 2011-05-22  Bruno Haible  <bruno@clisp.org>
51148         wcscasecmp: Move AC_LIBOBJ invocations to module description.
51149         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
51150         here...
51151         * modules/wcscasecmp (configure.ac): ... to here.
51153 2011-05-22  Bruno Haible  <bruno@clisp.org>
51155         wcrtomb: Move AC_LIBOBJ invocations to module description.
51156         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
51157         invocations from here...
51158         * modules/wcrtomb (configure.ac): ... to here.
51160 2011-05-22  Bruno Haible  <bruno@clisp.org>
51162         wcpncpy: Move AC_LIBOBJ invocations to module description.
51163         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
51164         here...
51165         * modules/wcpncpy (configure.ac): ... to here.
51167 2011-05-22  Bruno Haible  <bruno@clisp.org>
51169         wcpcpy: Move AC_LIBOBJ invocations to module description.
51170         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
51171         * modules/wcpcpy (configure.ac): ... to here.
51173 2011-05-22  Bruno Haible  <bruno@clisp.org>
51175         waitpid: Move AC_LIBOBJ invocations to module description.
51176         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
51177         invocation from here...
51178         * modules/waitpid (configure.ac): ... to here.
51180 2011-05-22  Bruno Haible  <bruno@clisp.org>
51182         utimensat: Move AC_LIBOBJ invocations to module description.
51183         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
51184         here...
51185         * modules/utimensat (configure.ac): ... to here.
51187 2011-05-22  Bruno Haible  <bruno@clisp.org>
51189         usleep: Move AC_LIBOBJ invocations to module description.
51190         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
51191         here...
51192         * modules/usleep (configure.ac): ... to here.
51194 2011-05-22  Bruno Haible  <bruno@clisp.org>
51196         unlockpt: Move AC_LIBOBJ invocations to module description.
51197         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
51198         gl_PREREQ_UNLOCKPT invocations from here...
51199         * modules/unlockpt (configure.ac): ... to here.
51201 2011-05-22  Bruno Haible  <bruno@clisp.org>
51203         unlink: Respect rules for use of AC_LIBOBJ.
51204         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
51205         * modules/unlink (configure.ac): ... to here.
51207 2011-05-22  Bruno Haible  <bruno@clisp.org>
51209         uname: Move AC_LIBOBJ invocations to module description.
51210         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
51211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
51212         here...
51213         * modules/uname (configure.ac): ... to here.
51215 2011-05-22  Bruno Haible  <bruno@clisp.org>
51217         ttyname_r: Move AC_LIBOBJ invocations to module description.
51218         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
51219         gl_PREREQ_TTYNAME_R invocations from here...
51220         * modules/ttyname_r (configure.ac): ... to here.
51222 2011-05-22  Bruno Haible  <bruno@clisp.org>
51224         tsearch: Move AC_LIBOBJ invocations to module description.
51225         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
51226         invocations from here...
51227         * modules/tsearch (configure.ac): ... to here.
51229 2011-05-22  Bruno Haible  <bruno@clisp.org>
51231         towctrans: Move AC_LIBOBJ invocations to module description.
51232         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
51233         AC_LIBOBJ invocation from here...
51234         * modules/towctrans (configure.ac): ... to here.
51236 2011-05-22  Bruno Haible  <bruno@clisp.org>
51238         tmpfile: Move AC_LIBOBJ invocations to module description.
51239         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
51240         invocations from here...
51241         * modules/tmpfile (configure.ac): ... to here.
51243 2011-05-22  Bruno Haible  <bruno@clisp.org>
51245         times: Move AC_LIBOBJ invocations to module description.
51246         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
51247         * modules/times (configure.ac): ... to here.
51249 2011-05-22  Bruno Haible  <bruno@clisp.org>
51251         time_r: Move AC_LIBOBJ invocations to module description.
51252         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
51253         invocations from here...
51254         * modules/time_r (configure.ac): ... to here.
51256 2011-05-22  Bruno Haible  <bruno@clisp.org>
51258         timegm: Move AC_LIBOBJ invocations to module description.
51259         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
51260         invocations from here...
51261         * modules/timegm (configure.ac): ... to here.
51263 2011-05-22  Bruno Haible  <bruno@clisp.org>
51265         tcgetsid: Move AC_LIBOBJ invocations to module description.
51266         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
51267         and gl_PREREQ_TCGETSID invocations from here...
51268         * modules/tcgetsid (configure.ac): ... to here.
51269         (Depends-on): Update conditions.
51271 2011-05-22  Bruno Haible  <bruno@clisp.org>
51273         symlinkat: Move AC_LIBOBJ invocations to module description.
51274         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
51275         here...
51276         * modules/symlinkat (configure.ac): ... to here.
51278 2011-05-22  Bruno Haible  <bruno@clisp.org>
51280         symlink: Move AC_LIBOBJ invocations to module description.
51281         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
51282         here...
51283         * modules/symlink (configure.ac): ... to here.
51285 2011-05-22  Bruno Haible  <bruno@clisp.org>
51287         strverscmp: Move AC_LIBOBJ invocations to module description.
51288         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
51289         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
51290         from here...
51291         * modules/strverscmp (configure.ac): ... to here.
51293 2011-05-22  Bruno Haible  <bruno@clisp.org>
51295         strtok_r: Move AC_LIBOBJ invocations to module description.
51296         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
51297         and gl_PREREQ_STRTOK_R invocations from here...
51298         * modules/strtok_r (configure.ac): ... to here.
51299         (Depends-on): Update conditions.
51301 2011-05-22  Bruno Haible  <bruno@clisp.org>
51303         strtoumax: Move AC_LIBOBJ invocations to module description.
51304         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
51305         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
51306         from here...
51307         * modules/strtoumax (configure.ac): ... to here.
51309 2011-05-22  Bruno Haible  <bruno@clisp.org>
51311         strtoimax: Move AC_LIBOBJ invocations to module description.
51312         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
51313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
51314         from here...
51315         * modules/strtoimax (configure.ac): ... to here.
51317 2011-05-22  Bruno Haible  <bruno@clisp.org>
51319         strtoull: Move AC_LIBOBJ invocations to module description.
51320         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
51321         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
51322         from here...
51323         * modules/strtoull (configure.ac): ... to here.
51325 2011-05-22  Bruno Haible  <bruno@clisp.org>
51327         strtoll: Move AC_LIBOBJ invocations to module description.
51328         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
51329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
51330         here...
51331         * modules/strtoll (configure.ac): ... to here.
51333 2011-05-22  Bruno Haible  <bruno@clisp.org>
51335         strtoul: Move AC_LIBOBJ invocations to module description.
51336         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
51337         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
51338         * modules/strtoul (configure.ac): ... to here.
51340 2011-05-22  Bruno Haible  <bruno@clisp.org>
51342         strtol: Move AC_LIBOBJ invocations to module description.
51343         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
51344         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
51345         * modules/strtol (configure.ac): ... to here.
51347 2011-05-22  Bruno Haible  <bruno@clisp.org>
51349         strtod: Move AC_LIBOBJ invocations to module description.
51350         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
51351         invocations from here...
51352         * modules/strtod (configure.ac): ... to here.
51354 2011-05-22  Bruno Haible  <bruno@clisp.org>
51356         strstr*: Move AC_LIBOBJ invocations to module description.
51357         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
51358         invocations from here...
51359         * modules/strstr-simple (configure.ac): ... to here.
51360         * modules/strstr (configure.ac): ... and here.
51362 2011-05-22  Bruno Haible  <bruno@clisp.org>
51364         strsignal: Move AC_LIBOBJ invocations to module description.
51365         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
51366         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
51367         * modules/strsignal (configure.ac): ... to here.
51368         (Depends-on): Update conditions.
51370 2011-05-22  Bruno Haible  <bruno@clisp.org>
51372         strsep: Move AC_LIBOBJ invocations to module description.
51373         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
51374         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
51375         here...
51376         * modules/strsep (configure.ac): ... to here.
51378 2011-05-22  Bruno Haible  <bruno@clisp.org>
51380         strptime: Move AC_LIBOBJ invocations to module description.
51381         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
51382         gl_PREREQ_STRPTIME invocations from here...
51383         * modules/strptime (configure.ac): ... to here.
51385 2011-05-22  Bruno Haible  <bruno@clisp.org>
51387         strpbrk: Move AC_LIBOBJ invocations to module description.
51388         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
51389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
51390         here...
51391         * modules/strpbrk (configure.ac): ... to here.
51393 2011-05-22  Bruno Haible  <bruno@clisp.org>
51395         strnlen: Move AC_LIBOBJ invocations to module description.
51396         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
51397         invocations from here...
51398         * modules/strnlen (configure.ac): ... to here.
51400 2011-05-22  Bruno Haible  <bruno@clisp.org>
51402         strndup: Move AC_LIBOBJ invocations to module description.
51403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
51404         invocations from here...
51405         * modules/strndup (configure.ac): ... to here.
51406         (Depends-on): Update conditions.
51408 2011-05-22  Bruno Haible  <bruno@clisp.org>
51410         strncat: Move AC_LIBOBJ invocations to module description.
51411         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
51412         invocations from here...
51413         * modules/strncat (configure.ac): ... to here.
51415 2011-05-22  Bruno Haible  <bruno@clisp.org>
51417         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
51418         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
51419         invocations from here...
51420         * modules/strdup (configure.ac): ... to here.
51421         * modules/strdup-posix (configure.ac): ... and here.
51423 2011-05-22  Bruno Haible  <bruno@clisp.org>
51425         strcspn: Move AC_LIBOBJ invocations to module description.
51426         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
51427         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
51428         here...
51429         * modules/strcspn (configure.ac): ... to here.
51431 2011-05-22  Bruno Haible  <bruno@clisp.org>
51433         strchrnul: Move AC_LIBOBJ invocations to module description.
51434         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
51435         gl_PREREQ_STRCHRNUL invocations from here...
51436         * modules/strchrnul (configure.ac): ... to here.
51438 2011-05-22  Bruno Haible  <bruno@clisp.org>
51440         strcasestr*: Move AC_LIBOBJ invocations to module description.
51441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
51442         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
51443         * modules/strcasestr-simple (configure.ac): ... to here.
51444         * modules/strcasestr (configure.ac): ... and here.
51446 2011-05-22  Bruno Haible  <bruno@clisp.org>
51448         strcase: Move AC_LIBOBJ invocations to module description.
51449         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
51450         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
51451         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
51452         gl_PREREQ_STRNCASECMP invocations from here...
51453         * modules/strcase (configure.ac): ... to here.
51455 2011-05-22  Bruno Haible  <bruno@clisp.org>
51457         stpncpy: Move AC_LIBOBJ invocations to module description.
51458         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
51459         here...
51460         * modules/stpncpy (configure.ac): ... to here.
51462 2011-05-22  Bruno Haible  <bruno@clisp.org>
51464         stpcpy: Move AC_LIBOBJ invocations to module description.
51465         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
51466         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
51467         here...
51468         * modules/stpcpy (configure.ac): ... to here.
51470 2011-05-21  Bruno Haible  <bruno@clisp.org>
51472         stat: Move AC_LIBOBJ invocations to module description.
51473         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
51474         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
51475         here...
51476         * modules/stat (configure.ac): ... to here.
51478 2011-05-21  Bruno Haible  <bruno@clisp.org>
51480         sleep: Move AC_LIBOBJ invocations to module description.
51481         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
51482         * modules/sleep (configure.ac): ... to here.
51484 2011-05-21  Bruno Haible  <bruno@clisp.org>
51486         signbit: Move AC_LIBOBJ invocations to module description.
51487         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
51488         * modules/signbit (configure.ac): ... to here.
51490 2011-05-21  Bruno Haible  <bruno@clisp.org>
51492         sigprocmask: Move AC_LIBOBJ invocations to module description.
51493         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
51494         gl_PREREQ_SIGPROMASK invocations from here...
51495         * modules/sigprocmask (configure.ac): ... to here.
51497 2011-05-21  Bruno Haible  <bruno@clisp.org>
51499         sigaction: Move AC_LIBOBJ invocations to module description.
51500         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
51501         gl_PREREQ_SIGACTION invocations from here...
51502         * modules/sigaction (configure.ac): ... to here.
51504 2011-05-21  Bruno Haible  <bruno@clisp.org>
51506         sig2str: Move AC_LIBOBJ invocations to module description.
51507         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
51508         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
51509         here...
51510         * modules/sig2str (configure.ac): ... to here.
51512 2011-05-21  Bruno Haible  <bruno@clisp.org>
51514         setlocale: Move AC_LIBOBJ invocations to module description.
51515         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
51516         gl_PREREQ_SETLOCALE invocations from here...
51517         * modules/setlocale (configure.ac): ... to here.
51519 2011-05-21  Bruno Haible  <bruno@clisp.org>
51521         unsetenv: Move AC_LIBOBJ invocations to module description.
51522         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
51523         and gl_PREREQ_UNSETENV invocations from here...
51524         * modules/unsetenv (configure.ac): ... to here.
51525         (Depends-on): Update.
51527 2011-05-21  Bruno Haible  <bruno@clisp.org>
51529         setenv: Move AC_LIBOBJ invocations to module description.
51530         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
51531         here...
51532         * modules/setenv (configure.ac): ... to here.
51534 2011-05-21  Bruno Haible  <bruno@clisp.org>
51536         selinux-h: Move AC_LIBOBJ invocations to module description.
51537         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
51538         AC_LIBOBJ invocation from here...
51539         * modules/selinux-h (configure.ac): ... to here.
51541 2011-05-21  Bruno Haible  <bruno@clisp.org>
51543         select: Respect rules for use of AC_LIBOBJ.
51544         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
51545         here...
51546         * modules/select (configure.ac): ... to here.
51548 2011-05-21  Bruno Haible  <bruno@clisp.org>
51550         scandir: Move AC_LIBOBJ invocations to module description.
51551         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
51552         invocations from here...
51553         * modules/scandir (configure.ac): ... to here.
51555 2011-05-21  Bruno Haible  <bruno@clisp.org>
51557         rpmatch: Move AC_LIBOBJ invocations to module description.
51558         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
51559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
51560         here...
51561         * modules/rpmatch (configure.ac): ... to here.
51563 2011-05-21  Bruno Haible  <bruno@clisp.org>
51565         rmdir: Respect rules for use of AC_LIBOBJ.
51566         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
51567         * modules/rmdir (configure.ac): ... to here.
51569 2011-05-21  Bruno Haible  <bruno@clisp.org>
51571         renameat: Move AC_LIBOBJ invocations to module description.
51572         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
51573         here...
51574         * modules/renameat (configure.ac): ... to here.
51576 2011-05-21  Bruno Haible  <bruno@clisp.org>
51578         rename: Respect rules for use of AC_LIBOBJ.
51579         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
51580         here...
51581         * modules/rename (configure.ac): ... to here.
51583 2011-05-21  Bruno Haible  <bruno@clisp.org>
51585         remove: Move AC_LIBOBJ invocations to module description.
51586         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
51587         here...
51588         * modules/remove (configure.ac): ... to here.
51590 2011-05-21  Bruno Haible  <bruno@clisp.org>
51592         relocatable-lib: Move AC_LIBOBJ invocations to module description.
51593         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
51594         macro.
51595         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
51596         * modules/relocatable-lib (configure.ac): ... to here.
51597         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51598         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
51600 2011-05-21  Bruno Haible  <bruno@clisp.org>
51602         relocatable-prog: Move AC_LIBOBJ invocations to module description.
51603         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
51604         here...
51605         * modules/relocatable-prog (configure.ac): ... to here.
51607 2011-05-21  Bruno Haible  <bruno@clisp.org>
51609         regex: Move AC_LIBOBJ invocations to module description.
51610         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
51611         invocations from here...
51612         * modules/regex (configure.ac): ... to here.
51614 2011-05-21  Bruno Haible  <bruno@clisp.org>
51616         realloc-*: Move AC_LIBOBJ invocations to module description.
51617         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
51618         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
51619         AC_LIBOBJ invocations from here...
51620         * modules/realloc-gnu (configure.ac): ... to here.
51621         * modules/realloc-posix (configure.ac): ... and here.
51623 2011-05-21  Bruno Haible  <bruno@clisp.org>
51625         readutmp: Move AC_LIBOBJ invocations to module description.
51626         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
51627         * modules/readutmp (configure.ac): ... to here.
51629 2011-05-21  Bruno Haible  <bruno@clisp.org>
51631         readlinkat: Move AC_LIBOBJ invocations to module description.
51632         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
51633         here...
51634         * modules/readlinkat (configure.ac): ... to here.
51636 2011-05-21  Bruno Haible  <bruno@clisp.org>
51638         readlink: Move AC_LIBOBJ invocations to module description.
51639         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
51640         gl_PREREQ_READLINK invocations from here...
51641         * modules/readlink (configure.ac): ... to here.
51643 2011-05-21  Bruno Haible  <bruno@clisp.org>
51645         readline: Move AC_LIBOBJ invocations to module description.
51646         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
51647         gl_PREREQ_READLINE invocations from here...
51648         * modules/readline (configure.ac): ... to here.
51650 2011-05-21  Bruno Haible  <bruno@clisp.org>
51652         read: Move AC_LIBOBJ invocations to module description.
51653         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
51654         * modules/read (configure.ac): ... to here.
51656 2011-05-21  Bruno Haible  <bruno@clisp.org>
51658         rawmemchr: Move AC_LIBOBJ invocations to module description.
51659         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
51660         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
51661         from here...
51662         * modules/rawmemchr (configure.ac): ... to here.
51664 2011-05-21  Bruno Haible  <bruno@clisp.org>
51666         random_r: Move AC_LIBOBJ invocations to module description.
51667         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
51668         gl_PREREQ_RANDOM_R invocations from here...
51669         * modules/random_r (configure.ac): ... to here.
51671 2011-05-21  Bruno Haible  <bruno@clisp.org>
51673         pwrite: Move AC_LIBOBJ invocations to module description.
51674         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
51675         * modules/pwrite (configure.ac): ... to here.
51677 2011-05-21  Bruno Haible  <bruno@clisp.org>
51679         putenv: Move AC_LIBOBJ invocations to module description.
51680         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
51681         * modules/putenv (configure.ac): ... to here.
51683 2011-05-21  Bruno Haible  <bruno@clisp.org>
51685         login_tty: Move AC_LIBOBJ invocations to module description.
51686         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
51687         * modules/login_tty (configure.ac): ... to here.
51689 2011-05-21  Bruno Haible  <bruno@clisp.org>
51691         openpty: Move AC_LIBOBJ invocations to module description.
51692         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
51693         * modules/openpty (configure.ac): ... to here.
51695 2011-05-21  Bruno Haible  <bruno@clisp.org>
51697         forkpty: Move AC_LIBOBJ invocations to module description.
51698         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
51699         * modules/forkpty (configure.ac): ... to here.
51701 2011-05-21  Bruno Haible  <bruno@clisp.org>
51703         ptsname: Move AC_LIBOBJ invocations to module description.
51704         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
51705         invocations from here...
51706         * modules/ptsname (configure.ac): ... to here.
51708 2011-05-21  Bruno Haible  <bruno@clisp.org>
51710         pread: Move AC_LIBOBJ invocations to module description.
51711         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
51712         * modules/pread (configure.ac): ... to here.
51714 2011-05-21  Bruno Haible  <bruno@clisp.org>
51716         posix_spawn*: Move AC_LIBOBJ invocations to module description.
51717         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
51718         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
51719         * modules/posix_spawn (configure.ac): ... to here.
51720         * modules/posix_spawnp (configure.ac): ... and here.
51722 2011-05-21  Bruno Haible  <bruno@clisp.org>
51724         popen: Move AC_LIBOBJ invocations to module description.
51725         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
51726         invocations from here...
51727         * modules/popen (configure.ac): ... to here.
51729 2011-05-21  Bruno Haible  <bruno@clisp.org>
51731         poll: Move AC_LIBOBJ invocations to module description.
51732         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
51733         invocations from here...
51734         * modules/poll (configure.ac): ... to here.
51736 2011-05-21  Bruno Haible  <bruno@clisp.org>
51738         pipe-posix: Move AC_LIBOBJ invocations to module description.
51739         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
51740         * modules/pipe-posix (configure.ac): ... to here.
51742 2011-05-21  Bruno Haible  <bruno@clisp.org>
51744         openat: Respect rules for use of AC_LIBOBJ.
51745         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
51746         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
51747         * modules/openat (configure.ac): ... to here.
51749 2011-05-21  Bruno Haible  <bruno@clisp.org>
51751         obstack-printf*: Move AC_LIBOBJ invocations to module description.
51752         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
51753         invocation from here...
51754         * modules/obstack-printf (configure.ac): ... to here.
51755         * modules/obstack-printf-posix (configure.ac): ... and here.
51757 2011-05-21  Bruno Haible  <bruno@clisp.org>
51759         nl_langinfo: Move AC_LIBOBJ invocations to module description.
51760         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
51761         from here...
51762         * modules/nl_langinfo (configure.ac): ... to here.
51764 2011-05-21  Bruno Haible  <bruno@clisp.org>
51766         nanosleep: Move AC_LIBOBJ invocations to module description.
51767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
51768         gl_PREREQ_NANOSLEEP invocations from here...
51769         * modules/nanosleep (configure.ac): ... to here.
51771 2011-05-21  Bruno Haible  <bruno@clisp.org>
51773         mountlist: Move AC_LIBOBJ invocations to module description.
51774         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
51775         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
51776         * modules/mountlist (configure.ac): ... to here.
51778 2011-05-21  Bruno Haible  <bruno@clisp.org>
51780         mktime: Respect rules for use of AC_LIBOBJ.
51781         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
51782         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
51783         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
51784         (gl_FUNC_MKTIME_INTERNAL): ... and here...
51785         * modules/mktime (configure.ac): ... to here.
51786         * modules/mktime-internal (configure.ac): ... and here.
51787         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
51789 2011-05-21  Bruno Haible  <bruno@clisp.org>
51791         mkstemps: Move AC_LIBOBJ invocations to module description.
51792         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
51793         here...
51794         * modules/mkstemps (configure.ac): ... to here.
51796 2011-05-21  Bruno Haible  <bruno@clisp.org>
51798         mkstemp: Move AC_LIBOBJ invocations to module description.
51799         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
51800         gl_PREREQ_MKSTEMP invocations from here...
51801         * modules/mkstemp (configure.ac): ... to here.
51803 2011-05-21  Bruno Haible  <bruno@clisp.org>
51805         mkostemps: Move AC_LIBOBJ invocations to module description.
51806         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
51807         here...
51808         * modules/mkostemps (configure.ac): ... to here.
51810 2011-05-21  Bruno Haible  <bruno@clisp.org>
51812         mkostemp: Move AC_LIBOBJ invocations to module description.
51813         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
51814         gl_PREREQ_MKOSTEMP invocations from here...
51815         * modules/mkostemp (configure.ac): ... to here.
51817 2011-05-21  Bruno Haible  <bruno@clisp.org>
51819         mknod: Move AC_LIBOBJ invocations to module description.
51820         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
51821         * modules/mknod (configure.ac): ... to here.
51823 2011-05-21  Bruno Haible  <bruno@clisp.org>
51825         mkfifoat: Move AC_LIBOBJ invocations to module description.
51826         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
51827         here...
51828         * modules/mkfifoat (configure.ac): ... to here.
51830 2011-05-21  Bruno Haible  <bruno@clisp.org>
51832         mkfifo: Respect rules for use of AC_LIBOBJ.
51833         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
51834         here...
51835         * modules/mkfifo (configure.ac): ... to here.
51837 2011-05-21  Bruno Haible  <bruno@clisp.org>
51839         mkdtemp: Move AC_LIBOBJ invocations to module description.
51840         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
51841         invocations from here...
51842         * modules/mkdtemp (configure.ac): ... to here.
51844 2011-05-21  Bruno Haible  <bruno@clisp.org>
51846         mkdir: Move AC_LIBOBJ invocations to module description.
51847         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
51848         * modules/mkdir (configure.ac): ... to here.
51850 2011-05-21  Bruno Haible  <bruno@clisp.org>
51852         memset: Move AC_LIBOBJ invocations to module description.
51853         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
51854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
51855         here...
51856         * modules/memset (configure.ac): ... to here.
51858 2011-05-21  Bruno Haible  <bruno@clisp.org>
51860         memrchr: Move AC_LIBOBJ invocations to module description.
51861         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
51862         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
51863         here...
51864         * modules/memrchr (configure.ac): ... to here.
51866 2011-05-21  Bruno Haible  <bruno@clisp.org>
51868         mempcpy: Move AC_LIBOBJ invocations to module description.
51869         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
51870         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
51871         here...
51872         * modules/mempcpy (configure.ac): ... to here.
51874 2011-05-21  Bruno Haible  <bruno@clisp.org>
51876         memmove: Move AC_LIBOBJ invocations to module description.
51877         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
51878         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
51879         here...
51880         * modules/memmove (configure.ac): ... to here.
51882 2011-05-21  Bruno Haible  <bruno@clisp.org>
51884         memmem*: Move AC_LIBOBJ invocations to module description.
51885         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
51886         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
51887         here...
51888         (gl_FUNC_MEMMEM): ... and here...
51889         * modules/memmem-simple (configure.ac): ... to here.
51890         * modules/memmem (configure.ac): ... and here.
51892 2011-05-21  Bruno Haible  <bruno@clisp.org>
51894         memcpy: Move AC_LIBOBJ invocations to module description.
51895         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
51896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
51897         here...
51898         * modules/memcpy (configure.ac): ... to here.
51900 2011-05-21  Bruno Haible  <bruno@clisp.org>
51902         memcmp: Simplify autoconf macro.
51903         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
51904         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
51905         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
51907 2011-05-21  Bruno Haible  <bruno@clisp.org>
51909         memcmp: Move AC_LIBOBJ invocations to module description.
51910         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
51911         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
51912         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
51913         * modules/memcmp (configure.ac): ... to here.
51914         (Depends-on): Update conditions.
51916 2011-05-21  Bruno Haible  <bruno@clisp.org>
51918         memchr: Respect rules for use of AC_LIBOBJ.
51919         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
51920         invocations from here...
51921         * modules/memchr (configure.ac): ... to here.
51923 2011-05-21  Bruno Haible  <bruno@clisp.org>
51925         mbtowc: Move AC_LIBOBJ invocations to module description.
51926         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
51927         invocations from here...
51928         * modules/mbtowc (configure.ac): ... to here.
51930 2011-05-21  Bruno Haible  <bruno@clisp.org>
51932         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
51933         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
51934         gl_PREREQ_MBSRTOWCS invocations from here...
51935         * modules/mbsrtowcs (configure.ac): ... to here.
51937 2011-05-21  Bruno Haible  <bruno@clisp.org>
51939         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
51940         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
51941         gl_PREREQ_MBSNRTOWCS invocations from here...
51942         * modules/mbsnrtowcs (configure.ac): ... to here.
51944 2011-05-21  Bruno Haible  <bruno@clisp.org>
51946         mbsinit: Move AC_LIBOBJ invocations to module description.
51947         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
51948         invocations from here...
51949         * modules/mbsinit (configure.ac): ... to here.
51951 2011-05-21  Bruno Haible  <bruno@clisp.org>
51953         mbrlen: Move AC_LIBOBJ invocations to module description.
51954         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
51955         invocations from here...
51956         * modules/mbrlen (configure.ac): ... to here.
51958 2011-05-21  Bruno Haible  <bruno@clisp.org>
51960         mbrtowc: Respect rules for use of AC_LIBOBJ.
51961         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
51962         invocations from here...
51963         * modules/mbrtowc (configure.ac): ... to here.
51965 2011-05-21  Bruno Haible  <bruno@clisp.org>
51967         malloc-*: Move AC_LIBOBJ invocations to module description.
51968         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
51969         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
51970         AC_LIBOBJ invocations from here...
51971         * modules/malloc-gnu (configure.ac): ... to here.
51972         * modules/malloc-posix (configure.ac): ... and here.
51974 2011-05-21  Bruno Haible  <bruno@clisp.org>
51976         lstat, openat: Respect rules for use of AC_LIBOBJ.
51977         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
51978         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
51979         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
51980         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
51981         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
51982         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
51983         here.
51984         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
51986 2011-05-21  Bruno Haible  <bruno@clisp.org>
51988         lseek: Move AC_LIBOBJ invocations to module description.
51989         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
51990         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
51991         * modules/lseek (configure.ac): ... to here.
51993 2011-05-21  Bruno Haible  <bruno@clisp.org>
51995         linkat: Move AC_LIBOBJ invocations to module description.
51996         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
51997         here...
51998         * modules/linkat (configure.ac): ... to here.
52000 2011-05-21  Bruno Haible  <bruno@clisp.org>
52002         link: Respect rules for use of AC_LIBOBJ.
52003         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
52004         * modules/link (configure.ac): ... to here.
52006 2011-05-21  Bruno Haible  <bruno@clisp.org>
52008         lchown: Move AC_LIBOBJ invocations to module description.
52009         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52010         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52011         * modules/lchown (configure.ac): ... to here.
52013 2011-05-21  Bruno Haible  <bruno@clisp.org>
52015         iswctype: Move AC_LIBOBJ invocations to module description.
52016         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
52017         here...
52018         * modules/iswctype (configure.ac): ... to here.
52020 2011-05-21  Bruno Haible  <bruno@clisp.org>
52022         iswblank: Move AC_LIBOBJ invocations to module description.
52023         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
52024         here...
52025         * modules/iswblank (configure.ac): ... to here.
52027 2011-05-21  Bruno Haible  <bruno@clisp.org>
52029         atanl: Move AC_LIBOBJ invocations to module description.
52030         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
52031         * modules/atanl (configure.ac): ... to here.
52033 2011-05-21  Bruno Haible  <bruno@clisp.org>
52035         acosl: Move AC_LIBOBJ invocations to module description.
52036         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
52037         * modules/acosl (configure.ac): ... to here.
52039 2011-05-21  Bruno Haible  <bruno@clisp.org>
52041         asinl: Respect rules for use of AC_LIBOBJ.
52042         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
52043         * modules/asinl (configure.ac): ... to here.
52045 2011-05-21  Bruno Haible  <bruno@clisp.org>
52047         tanl: Move AC_LIBOBJ invocations to module description.
52048         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
52049         * modules/tanl (configure.ac): ... to here.
52051 2011-05-21  Bruno Haible  <bruno@clisp.org>
52053         cosl: Move AC_LIBOBJ invocations to module description.
52054         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
52055         * modules/cosl (configure.ac): ... to here.
52057 2011-05-21  Bruno Haible  <bruno@clisp.org>
52059         sinl: Move AC_LIBOBJ invocations to module description.
52060         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
52061         * modules/sinl (configure.ac): ... to here.
52063 2011-05-21  Bruno Haible  <bruno@clisp.org>
52065         logl: Move AC_LIBOBJ invocations to module description.
52066         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
52067         * modules/logl (configure.ac): ... to here.
52069 2011-05-21  Bruno Haible  <bruno@clisp.org>
52071         expl: Move AC_LIBOBJ invocations to module description.
52072         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
52073         * modules/expl (configure.ac): ... to here.
52075 2011-05-21  Bruno Haible  <bruno@clisp.org>
52077         roundl: Move AC_LIBOBJ invocations to module description.
52078         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
52079         * modules/roundl (configure.ac): ... to here.
52081 2011-05-21  Bruno Haible  <bruno@clisp.org>
52083         round: Move AC_LIBOBJ invocations to module description.
52084         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
52085         * modules/round (configure.ac): ... to here.
52087 2011-05-21  Bruno Haible  <bruno@clisp.org>
52089         roundf: Move AC_LIBOBJ invocations to module description.
52090         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
52091         * modules/roundf (configure.ac): ... to here.
52093 2011-05-21  Bruno Haible  <bruno@clisp.org>
52095         truncl: Move AC_LIBOBJ invocations to module description.
52096         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
52097         * modules/truncl (configure.ac): ... to here.
52099 2011-05-21  Bruno Haible  <bruno@clisp.org>
52101         trunc: Move AC_LIBOBJ invocations to module description.
52102         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
52103         * modules/trunc (configure.ac): ... to here.
52105 2011-05-21  Bruno Haible  <bruno@clisp.org>
52107         truncf: Move AC_LIBOBJ invocations to module description.
52108         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
52109         * modules/truncf (configure.ac): ... to here.
52111 2011-05-21  Bruno Haible  <bruno@clisp.org>
52113         ceill: Move AC_LIBOBJ invocations to module description.
52114         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
52115         * modules/ceill (configure.ac): ... to here.
52117 2011-05-21  Bruno Haible  <bruno@clisp.org>
52119         ceil: Move AC_LIBOBJ invocations to module description.
52120         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
52121         * modules/ceil (configure.ac): ... to here.
52123 2011-05-21  Bruno Haible  <bruno@clisp.org>
52125         ceilf: Move AC_LIBOBJ invocations to module description.
52126         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
52127         * modules/ceilf (configure.ac): ... to here.
52129 2011-05-21  Bruno Haible  <bruno@clisp.org>
52131         floorl: Respect rules for use of AC_LIBOBJ.
52132         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
52133         * modules/floorl (configure.ac): ... to here.
52135 2011-05-21  Bruno Haible  <bruno@clisp.org>
52137         floor: Respect rules for use of AC_LIBOBJ.
52138         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
52139         * modules/floor (configure.ac): ... to here.
52141 2011-05-21  Bruno Haible  <bruno@clisp.org>
52143         floorf: Move AC_LIBOBJ invocations to module description.
52144         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
52145         * modules/floorf (configure.ac): ... to here.
52147 2011-05-20  Bruno Haible  <bruno@clisp.org>
52149         sqrtl: Respect rules for use of AC_LIBOBJ.
52150         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
52151         * modules/sqrtl (configure.ac): ... to here.
52153 2011-05-20  Bruno Haible  <bruno@clisp.org>
52155         ldexpl: Respect rules for use of AC_LIBOBJ.
52156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
52157         * modules/ldexpl (configure.ac): ... to here.
52159 2011-05-20  Bruno Haible  <bruno@clisp.org>
52161         frexpl*: Respect rules for use of AC_LIBOBJ.
52162         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
52163         invocation from here...
52164         * modules/frexpl (configure.ac): ... to here.
52165         * modules/frexpl-nolibm (configure.ac): ... and here.
52167 2011-05-20  Bruno Haible  <bruno@clisp.org>
52169         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
52170         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
52171         invocation from here...
52172         * modules/frexp (configure.ac): ... to here.
52173         * modules/frexp-nolibm (configure.ac): ... and here.
52175 2011-05-20  Bruno Haible  <bruno@clisp.org>
52177         isnan: Respect rules for use of AC_LIBOBJ.
52178         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
52179         invocations here.
52180         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
52181         REPLACE_ISNAN.
52182         * modules/isnand (configure.ac): Likewise.
52183         * modules/isnanl (configure.ac): Likewise.
52185 2011-05-20  Bruno Haible  <bruno@clisp.org>
52187         isnanl*: Respect rules for use of AC_LIBOBJ.
52188         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
52189         invocation from here...
52190         * modules/isnanl (configure.ac): ... to here.
52191         * modules/isnanl-nolibm (configure.ac): ... and here.
52193 2011-05-20  Bruno Haible  <bruno@clisp.org>
52195         isnand*: Move AC_LIBOBJ invocations to module description.
52196         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
52197         invocation from here...
52198         * modules/isnand (configure.ac): ... to here.
52199         * modules/isnand-nolibm (configure.ac): ... and here.
52201 2011-05-20  Bruno Haible  <bruno@clisp.org>
52203         isnanf*: Move AC_LIBOBJ invocations to module description.
52204         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
52205         invocation from here...
52206         * modules/isnanf (configure.ac): ... to here.
52207         * modules/isnanf-nolibm (configure.ac): ... and here.
52209 2011-05-20  Bruno Haible  <bruno@clisp.org>
52211         isnan*: Separate the AC_LIBOBJ invocations.
52212         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
52213         AC_LIBOBJ invocation.
52214         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
52215         here.
52216         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
52217         AC_LIBOBJ invocation.
52218         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
52219         here.
52220         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
52221         AC_LIBOBJ invocation.
52222         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
52223         here.
52224         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
52226 2011-05-08  Bruno Haible  <bruno@clisp.org>
52228         isinf: Move AC_LIBOBJ invocations to module description.
52229         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
52230         * modules/isinf (configure.ac): ... to here.
52232 2011-05-08  Bruno Haible  <bruno@clisp.org>
52234         isfinite: Move AC_LIBOBJ invocations to module description.
52235         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
52236         * modules/isfinite (configure.ac): ... to here.
52238 2011-05-08  Bruno Haible  <bruno@clisp.org>
52240         isblank: Move AC_LIBOBJ invocations to module description.
52241         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
52242         here...
52243         * modules/isblank (configure.ac): ... to here.
52245 2011-05-08  Bruno Haible  <bruno@clisp.org>
52247         isapipe: Move AC_LIBOBJ invocations to module description.
52248         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
52249         gl_PREREQ_ISAPIPE invocations from here...
52250         * modules/isapipe (configure.ac): ... to here.
52251         (Depends-on): Update condition.
52253 2011-05-08  Bruno Haible  <bruno@clisp.org>
52255         ioctl: Move AC_LIBOBJ invocations to module description.
52256         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
52257         invocations from here...
52258         * modules/ioctl (configure.ac): ... to here.
52259         (Depends-on): Update condition.
52261 2011-05-08  Bruno Haible  <bruno@clisp.org>
52263         imaxdiv: Move AC_LIBOBJ invocations to module description.
52264         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
52265         invocations from here...
52266         * modules/imaxdiv (configure.ac): ... to here.
52268 2011-05-08  Bruno Haible  <bruno@clisp.org>
52270         imaxabs: Move AC_LIBOBJ invocations to module description.
52271         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
52272         invocations from here...
52273         * modules/imaxabs (configure.ac): ... to here.
52275 2011-05-08  Bruno Haible  <bruno@clisp.org>
52277         getaddrinfo: Move AC_LIBOBJ invocations to module description.
52278         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
52279         AC_LIBOBJ invocations from here...
52280         * modules/getaddrinfo (configure.ac): ... to here.
52281         (Depends-on): Add conditions.
52283 2011-05-08  Bruno Haible  <bruno@clisp.org>
52285         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52286         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
52287         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52288         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
52289         (gl_PREREQ_INET_PTON): ... from here.
52290         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
52291         gl_PREREQ_INET_PTON here.
52292         (Depends-on): Update condition.
52294 2011-05-08  Bruno Haible  <bruno@clisp.org>
52296         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52297         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
52298         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52299         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
52300         (gl_PREREQ_INET_NTOP): ... from here.
52301         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
52302         gl_PREREQ_INET_NTOP here.
52303         (Depends-on): Update condition.
52305 2011-05-08  Bruno Haible  <bruno@clisp.org>
52307         iconv_open: Move AC_LIBOBJ invocations to module description.
52308         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
52309         AC_LIBOBJ invocations from here...
52310         * modules/iconv_open (configure.ac): ... to here.
52312 2011-05-08  Bruno Haible  <bruno@clisp.org>
52314         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
52315         If module 'iconv_open' is among the main modules and module
52316         'iconv_open-utf' is among the tests dependencies, then
52317         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
52318         return the special iconv_t values. Therefore iconv() and iconv_close()
52319         must support these special iconv_t values, already in lib, not only in
52320         tests.
52321         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
52322         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
52323         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
52324         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
52325         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
52326         (Depends-on): Add the dependencies of iconv_open-utf.
52327         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
52328         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
52329         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
52331 2011-05-08  Bruno Haible  <bruno@clisp.org>
52333         group-member: Move AC_LIBOBJ invocations to module description.
52334         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
52335         gl_PREREQ_GROUP_MEMBER invocations from here...
52336         * modules/group-member (configure.ac): ... to here.
52338 2011-05-08  Bruno Haible  <bruno@clisp.org>
52340         grantpt: Move AC_LIBOBJ invocations to module description.
52341         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
52342         invocations from here...
52343         * modules/grantpt (configure.ac): ... to here.
52345 2011-05-08  Bruno Haible  <bruno@clisp.org>
52347         glob: Move AC_LIBOBJ invocations to module description.
52348         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
52349         from here...
52350         * modules/glob (configure.ac): ... to here.
52352 2011-05-08  Bruno Haible  <bruno@clisp.org>
52354         getusershell: Move AC_LIBOBJ invocations to module description.
52355         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
52356         Move AC_LIBOBJ invocation from here...
52357         * modules/getusershell (configure.ac): ... to here.
52358         (Depends-on): Update condition.
52360 2011-05-08  Bruno Haible  <bruno@clisp.org>
52362         gettimeofday: Move AC_LIBOBJ invocations to module description.
52363         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52364         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
52365         gl_PREREQ_GETTIMEOFDAY invocations from here...
52366         * modules/gettimeofday (configure.ac): ... to here.
52368 2011-05-08  Bruno Haible  <bruno@clisp.org>
52370         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
52371         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
52372         just gl_FUNC_TZSET.
52373         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
52374         (gl_FUNC_TZSET_CLOBBER): Remove actions.
52375         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
52376         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
52378 2011-05-08  Bruno Haible  <bruno@clisp.org>
52380         getsubopt: Move AC_LIBOBJ invocations to module description.
52381         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
52382         gl_PREREQ_GETSUBOPT invocations from here...
52383         * modules/getsubopt (configure.ac): ... to here.
52385 2011-05-08  Bruno Haible  <bruno@clisp.org>
52387         getpass-gnu: Move AC_LIBOBJ invocations to module description.
52388         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
52389         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
52390         * modules/getpass-gnu (configure.ac): ... to here.
52392 2011-05-08  Bruno Haible  <bruno@clisp.org>
52394         getpass: Move AC_LIBOBJ invocations to module description.
52395         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
52396         gl_PREREQ_GETPASS invocations from here...
52397         * modules/getpass (configure.ac): ... to here.
52399 2011-05-08  Bruno Haible  <bruno@clisp.org>
52401         getpagesize: Move AC_LIBOBJ invocations to module description.
52402         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
52403         from here...
52404         * modules/getpagesize (configure.ac): ... to here.
52406 2011-05-08  Bruno Haible  <bruno@clisp.org>
52408         getopt: Move AC_LIBOBJ invocations to module description.
52409         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
52410         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
52411         invocations from here...
52412         * modules/getopt-gnu (configure.ac): ... to here.
52413         * modules/getopt-posix (configure.ac): ... and here.
52414         (Depends-on): Update condition.
52416 2011-05-08  Bruno Haible  <bruno@clisp.org>
52418         getopt, argp: Respect rules for use of AC_LIBOBJ.
52419         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
52420         (gl_REPLACE_GETOPT_ALWAYS): New macro.
52421         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
52422         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
52424 2011-05-08  Bruno Haible  <bruno@clisp.org>
52426         getlogin_r: Move AC_LIBOBJ invocations to module description.
52427         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
52428         gl_PREREQ_GETLOGIN_R invocations from here...
52429         * modules/getlogin_r (configure.ac): ... to here.
52431 2011-05-08  Bruno Haible  <bruno@clisp.org>
52433         getlogin: Move AC_LIBOBJ invocations to module description.
52434         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
52435         here...
52436         * modules/getlogin (configure.ac): ... to here.
52438 2011-05-08  Bruno Haible  <bruno@clisp.org>
52440         getloadavg: Move AC_LIBOBJ invocations to module description.
52441         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
52442         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
52443         * modules/getloadavg (configure.ac): ... to here.
52445 2011-05-08  Bruno Haible  <bruno@clisp.org>
52447         gethrxtime: Move AC_LIBOBJ invocations to module description.
52448         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
52449         LIB_GETHRXTIME from here...
52450         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
52451         invocations from here...
52452         * modules/gethrxtime (configure.ac): ... to here.
52454 2011-05-08  Bruno Haible  <bruno@clisp.org>
52456         gethostname: Move AC_LIBOBJ invocations to module description.
52457         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
52458         gl_PREREQ_GETHOSTNAME invocations from here...
52459         * modules/gethostname (configure.ac): ... to here.
52461 2011-05-08  Bruno Haible  <bruno@clisp.org>
52463         getgroups: Move AC_LIBOBJ invocations to module description.
52464         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
52465         here...
52466         * modules/getgroups (configure.ac): ... to here.
52468 2011-05-08  Bruno Haible  <bruno@clisp.org>
52470         getdtablesize: Move AC_LIBOBJ invocations to module description.
52471         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
52472         invocation from here...
52473         * modules/getdtablesize (configure.ac): ... to here.
52475 2011-05-08  Bruno Haible  <bruno@clisp.org>
52477         getdomainname: Move AC_LIBOBJ invocations to module description.
52478         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
52479         gl_PREREQ_GETDOMAINNAME invocations from here...
52480         * modules/getdomainname (configure.ac): ... to here.
52482 2011-05-08  Bruno Haible  <bruno@clisp.org>
52484         getline: Move AC_LIBOBJ invocations to module description.
52485         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
52486         invocations from here...
52487         * modules/getline (configure.ac): ... to here.
52489 2011-05-08  Bruno Haible  <bruno@clisp.org>
52491         getline: Simplify.
52492         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
52493         It's already handled through the module dependency.
52495 2011-05-08  Bruno Haible  <bruno@clisp.org>
52497         getdelim: Move AC_LIBOBJ invocations to module description.
52498         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
52499         and gl_PREREQ_GETDELIM invocations from here...
52500         * modules/getdelim (configure.ac): ... to here.
52501         (Depends-on): Fix condition.
52503 2011-05-08  Bruno Haible  <bruno@clisp.org>
52505         getcwd: Move AC_LIBOBJ invocations to module description.
52506         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
52507         invocations from here...
52508         * modules/getcwd (configure.ac): ... to here.
52510 2011-05-08  Bruno Haible  <bruno@clisp.org>
52512         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
52513         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
52514         here...
52515         * modules/getcwd-lgpl (configure.ac): ... to here.
52517 2011-05-07  Bruno Haible  <bruno@clisp.org>
52519         crypto/gc: Move AC_LIBOBJ invocations to module description.
52520         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
52521         * modules/crypto/gc (configure.ac): ... to here.
52523 2011-05-07  Bruno Haible  <bruno@clisp.org>
52525         fwriting: Move AC_LIBOBJ invocations to module description.
52526         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
52527         here...
52528         * modules/fwriting (configure.ac): ... to here.
52530 2011-05-07  Bruno Haible  <bruno@clisp.org>
52532         fwritable: Move AC_LIBOBJ invocations to module description.
52533         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
52534         here...
52535         * modules/fwritable (configure.ac): ... to here.
52537 2011-05-07  Bruno Haible  <bruno@clisp.org>
52539         futimens: Move AC_LIBOBJ invocations to module description.
52540         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
52541         here...
52542         * modules/futimens (configure.ac): ... to here.
52544 2011-05-07  Bruno Haible  <bruno@clisp.org>
52546         ftruncate: Move AC_LIBOBJ invocations to module description.
52547         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
52548         gl_PREREQ_FTRUNCATE invocations from here...
52549         * modules/ftruncate (configure.ac): ... to here.
52551 2011-05-07  Bruno Haible  <bruno@clisp.org>
52553         fsync: Move AC_LIBOBJ invocations to module description.
52554         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
52555         invocations from here...
52556         * modules/fsync (configure.ac): ... to here.
52558 2011-05-07  Bruno Haible  <bruno@clisp.org>
52560         fsusage: Move AC_LIBOBJ invocations to module description.
52561         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
52562         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
52563         * modules/fsusage (configure.ac): ... to here.
52565 2011-05-07  Bruno Haible  <bruno@clisp.org>
52567         freopen: Move AC_LIBOBJ invocations to module description.
52568         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
52569         invocations from here...
52570         * modules/freopen (configure.ac): ... to here.
52572 2011-05-07  Bruno Haible  <bruno@clisp.org>
52574         free: Move AC_LIBOBJ invocations to module description.
52575         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
52576         invocations from here...
52577         * modules/free (configure.ac): ... to here.
52579 2011-05-07  Bruno Haible  <bruno@clisp.org>
52581         freadable: Move AC_LIBOBJ invocations to module description.
52582         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
52583         here...
52584         * modules/freadable (configure.ac): ... to here.
52586 2011-05-07  Bruno Haible  <bruno@clisp.org>
52588         fpurge: Move AC_LIBOBJ invocations to module description.
52589         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
52590         invocations from here...
52591         * modules/fpurge (configure.ac): ... to here.
52593 2011-05-07  Bruno Haible  <bruno@clisp.org>
52595         fpending: Move AC_LIBOBJ invocations to module description.
52596         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
52597         gl_FUNC_FPENDING.
52598         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
52599         invocations from here...
52600         * modules/fpending (configure.ac): ... to here.
52602 2011-05-07  Bruno Haible  <bruno@clisp.org>
52604         fopen: Move AC_LIBOBJ invocations to module description.
52605         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
52606         invocations from here...
52607         * modules/fopen (configure.ac): ... to here.
52609 2011-05-07  Bruno Haible  <bruno@clisp.org>
52611         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
52612         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
52613         gl_FUNC_FNMATCH_POSIX.
52614         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
52615         invocations from here...
52616         * modules/fnmatch (configure.ac): ... to here.
52617         * modules/fnmatch-gnu (configure.ac): ... and here.
52619 2011-05-07  Bruno Haible  <bruno@clisp.org>
52621         flock: Move AC_LIBOBJ invocations to module description.
52622         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
52623         invocations from here...
52624         * modules/flock (configure.ac): ... to here.
52626 2011-05-07  Bruno Haible  <bruno@clisp.org>
52628         fileblocks: Move AC_LIBOBJ invocations to module description.
52629         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
52630         gl_PREREQ_FILEBLOCKS invocations from here...
52631         * modules/fileblocks (configure.ac): ... to here.
52633 2011-05-06  Bruno Haible  <bruno@clisp.org>
52635         fflush: Move AC_LIBOBJ invocations to module description.
52636         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
52637         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
52638         invocations from here...
52639         * modules/fflush (configure.ac): ... to here.
52641 2011-05-06  Bruno Haible  <bruno@clisp.org>
52643         fdopendir: Move AC_LIBOBJ invocations to module description.
52644         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
52645         here...
52646         * modules/fdopendir (configure.ac): ... to here.
52647         (Depends-on): Improve conditions.
52649 2011-05-06  Bruno Haible  <bruno@clisp.org>
52651         _Exit: Move AC_LIBOBJ invocations to module description.
52652         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
52653         invocations from here...
52654         * modules/_Exit (configure.ac): ... to here.
52656 2011-05-21  Bruno Haible  <bruno@clisp.org>
52658         euidaccess: Respect rules for use of AC_LIBOBJ.
52659         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52660         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
52661         from here...
52662         * modules/euidaccess (configure.ac): ... to here.
52664 2011-05-06  Bruno Haible  <bruno@clisp.org>
52666         error: Move AC_LIBOBJ invocations to module description.
52667         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
52668         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
52669         invocations from here...
52670         * modules/error (configure.ac): ... to here.
52672 2011-05-06  Bruno Haible  <bruno@clisp.org>
52674         duplocale: Move AC_LIBOBJ invocations to module description.
52675         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
52676         gl_PREREQ_DUPLOCALE invocations from here...
52677         * modules/duplocale (configure.ac): ... to here.
52679 2011-05-05  Bruno Haible  <bruno@clisp.org>
52681         dirfd: Move AC_LIBOBJ invocations to module description.
52682         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
52683         gl_FUNC_DIRFD.
52684         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
52685         here...
52686         * modules/dirfd (configure.ac): ... to here.
52687         (Depends-on): Fix condition.
52689 2011-05-05  Bruno Haible  <bruno@clisp.org>
52691         chown: Respect rules for use of AC_LIBOBJ.
52692         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
52693         * modules/chown (configure.ac): ... to here.
52695 2011-05-05  Bruno Haible  <bruno@clisp.org>
52697         chdir-long: Move AC_LIBOBJ invocations to module description.
52698         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
52699         gl_PREREQ_CHDIR_LONG invocations from here...
52700         * modules/chdir-long (configure.ac): ... to here.
52702 2011-05-05  Bruno Haible  <bruno@clisp.org>
52704         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
52705         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
52706         from here...
52707         * modules/canonicalize-lgpl (configure.ac): ... to here.
52709 2011-05-05  Bruno Haible  <bruno@clisp.org>
52711         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
52712         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
52713         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
52714         REPLACE_CALLOC.
52715         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
52716         * modules/calloc-gnu (configure.ac): Likewise.
52718 2011-05-05  Bruno Haible  <bruno@clisp.org>
52720         btowc: Move AC_LIBOBJ invocations to module description.
52721         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
52722         invocations from here...
52723         * modules/btowc (configure.ac): ... to here.
52725 2011-05-21  Bruno Haible  <bruno@clisp.org>
52727         atexit: Move AC_LIBOBJ invocations to module description.
52728         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
52729         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
52730         here...
52731         * modules/atexit (configure.ac): ... to here.
52733 2011-05-05  Bruno Haible  <bruno@clisp.org>
52735         atoll: Move AC_LIBOBJ invocations to module description.
52736         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
52737         invocations from here...
52738         * modules/atoll (configure.ac): ... to here.
52740 2011-05-05  Bruno Haible  <bruno@clisp.org>
52742         argz: Move AC_LIBOBJ invocations to module description.
52743         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
52744         * modules/argz (configure.ac): ... to here.
52746 2011-05-05  Bruno Haible  <bruno@clisp.org>
52748         alphasort: Move AC_LIBOBJ invocations to module description.
52749         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
52750         gl_PREREQ_ALPHASORT invocations from here...
52751         * modules/alphasort (configure.ac): ... to here.
52753 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52755         verify: new macro verify_expr; verify_true deprecated
52756         * NEWS: Mention this.
52757         * doc/verify.texi (Compile-time Assertions): Document this.
52758         * lib/verify.h (verify_true): Deprecate.
52759         (verify_expr): New macro.
52760         * tests/test-verify.c (function): Test verify_expr.
52762 2011-06-14  Jim Meyering  <meyering@redhat.com>
52764         init.sh: give more portable redirection-related advice in a comment
52765         * tests/init.sh (stderr_fileno_): Update the advice in comments.
52766         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
52767         for lots of discussion.  Stefano Lattarini suggested the solution
52768         of putting "9>&2" after the command.  Reported by Bruno Haible.
52770 2011-06-13  Bruno Haible  <bruno@clisp.org>
52772         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
52773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
52774         'none'.
52776 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
52778         ftoastr: use strtof only if HAVE_STRTOF
52779         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
52780         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
52781         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
52782         * modules/ftoastr (configure.ac): Check for strtof.
52784 2011-06-13  Bruno Haible  <bruno@clisp.org>
52786         gnulib-tool: Addendum to 2011-06-08 commit.
52787         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
52788         and --witness-c-macro have been given, augment AM_CPPFLAGS.
52790 2011-06-13  Bruno Haible  <bruno@clisp.org>
52792         fseeko: Provide a non-inline replacement of fseek().
52793         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
52794         * modules/fseeko (Depends-on): Add fseek.
52795         * modules/fseek (License): Change to LGPLv2+.
52797 2011-06-13  Bruno Haible  <bruno@clisp.org>
52799         ftello: Provide a non-inline replacement of ftell().
52800         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
52801         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
52802         not have ftello() (such as on mingw).
52803         * modules/ftello (Depends-on): Add ftell.
52804         * modules/ftell (License): Change to LGPLv2+.
52806 2011-05-07  Bruno Haible  <bruno@clisp.org>
52808         ftell: Move AC_LIBOBJ invocations to module description.
52809         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
52810         * modules/ftell (configure.ac): ... to here.
52812 2011-05-07  Bruno Haible  <bruno@clisp.org>
52814         ftello: Respect rules for use of AC_LIBOBJ.
52815         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
52816         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
52817         here...
52818         * modules/ftello (configure.ac): ... to here.
52820 2011-05-07  Bruno Haible  <bruno@clisp.org>
52822         fseeko: Simplify.
52823         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
52824         (gl_FUNC_FSEEKO): Inline it here.
52826 2011-05-07  Bruno Haible  <bruno@clisp.org>
52828         fseek: Move AC_LIBOBJ invocations to module description.
52829         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
52830         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
52831         * modules/fseek (configure.ac): ... to here.
52833 2011-05-07  Bruno Haible  <bruno@clisp.org>
52835         fseek: Respect rules for use of AC_LIBOBJ.
52836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
52837         here...
52838         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
52840 2011-05-07  Bruno Haible  <bruno@clisp.org>
52842         fseeko: Respect rules for use of AC_LIBOBJ.
52843         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
52844         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
52845         here...
52846         * modules/fseeko (configure.ac): ... to here.
52848 2011-06-13  Bruno Haible  <bruno@clisp.org>
52850         gnulib-tool: Allow comments in the 'Depends-on' section.
52851         * doc/gnulib.texi (Module description): Mention comment syntax in the
52852         Depends-on section.
52853         * gnulib-tool (func_get_dependencies): Filter out comment lines.
52855 2011-06-13  Bruno Haible  <bruno@clisp.org>
52857         file-set.h: guard __attibute__ use, now that it's not always defined
52858         * lib/file-set.h (record_file): Use __attribute__ only with compiler
52859         versions that support it.  This fixes a coreutils build failure with
52860         the vendor cc on HP-UX 11.31.
52862 2011-06-12  Bruno Haible  <bruno@clisp.org>
52864         acl: Add support for HP-UX >= 11.11 JFS ACLs.
52865         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
52866         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
52867         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
52868         (acl, aclsort): New declarations.
52869         (aclv_nontrivial): New declaration.
52870         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
52871         (file_has_acl): Read also the second kind of HP-UX ACLs.
52872         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
52873         kind of HP-UX ACLs if the first kind fails.
52874         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
52875         second kind of HP-UX ACLs.
52876         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
52877         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
52878         agree.
52879         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
52880         hpuxjfs.
52881         Handle hpuxjfs.
52882         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
52883         hpuxjfs.
52884         Handle hpuxjfs.
52885         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
52886         (func_test_same_acls): Use both lsacl and getacl.
52887         Handle hpuxjfs.
52888         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
52889         (func_test_same_acls): Use both lsacl and getacl.
52890         Handle hpuxjfs.
52892 2011-06-12  Bruno Haible  <bruno@clisp.org>
52894         acl: Complete the 2010-08-10 fix.
52895         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
52896         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
52897         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
52898         explicitly.
52899         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
52900         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
52902 2011-06-12  Bruno Haible  <bruno@clisp.org>
52904         spawn-pipe tests: Comments.
52905         * tests/test-spawn-pipe-child.c (main): Update comment.
52906         Reported by James Youngman <jay@gnu.org>.
52908 2011-06-11  James Youngman  <jay@gnu.org>
52910         New module 'stat-size'.
52911         * modules/stat-size: New module.  Provides macros for accessing
52912         file size information in instances of struct stat.  Depends on the
52913         fileblocks module because it calls st_blocks.
52914         * lib/stat-size.h: New file, adapted from coreutils' system.h.
52915         * doc/gnulib.texi: Include stat-size.texi.
52916         * doc/stat-size.texi: Documentation for this module.
52917         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
52918         * m4/fileblocks.m4: Mention that stat-size depends on the call to
52919         AC_STRUCT_ST_BLOCKS.
52921 2011-06-09  Bruno Haible  <bruno@clisp.org>
52923         thread: Support pthreads-win32.
52924         * lib/glthread/thread.h (gl_thread_self): Define differently on
52925         pthreads-win32.
52926         (gl_null_thread): New declaration.
52927         (gl_thread_self_pointer): New macro.
52928         * lib/glthread/thread.c (gl_null_thread): New constant.
52929         * tests/test-lock.c: Use gl_thread_self_pointer instead of
52930         gl_thread_self.
52931         * tests/test-tls.c: Likewise.
52932         Suggested by Paul Eggert. Reported by Eric Blake.
52934 2011-06-09  Bruno Haible  <bruno@clisp.org>
52936         thread: Fix confusion between NULL and 0.
52937         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
52938         Reported by Paul Eggert.
52940 2011-06-09  Bruno Haible  <bruno@clisp.org>
52942         spawn-pipe tests: Avoid test failure on HP-UX 11.
52943         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
52944         is closed.
52946 2011-06-09  Bruno Haible  <bruno@clisp.org>
52948         acl tests: Fix compilation error on HP-UX 11.
52949         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
52951 2011-06-09  Bruno Haible  <bruno@clisp.org>
52953         rmdir: Avoid test failure on HP-UX 10.20.
52954         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
52955         EEXIST.
52957 2011-06-08  Eric Blake  <eblake@redhat.com>
52959         perror: fix test on mingw
52960         * modules/perror-tests (Depends-on): Add dup2.
52962         strerror_r-posix: fix on MacOS
52963         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
52964         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
52965         logic bug.
52966         * lib/strerror_r.c (strerror_r): Fix the bug.
52967         * lib/strerror.c (strerror): Likewise.
52968         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
52969         problem.
52970         * doc/posix-functions/strerror.texi (strerror): Likewise.
52971         * doc/posix-functions/perror.texi (perror): Likewise.
52972         * tests/test-strerror.c (main): Enhance test.
52973         * tests/test-strerror_r.c (main): Likewise.
52975 2011-06-08  Bruno Haible  <bruno@clisp.org>
52977         gnulib-tool: Better isolation between different gnulib-tool invocations.
52978         * gnulib-tool: New option --witness-c-macro.
52979         (witness_c_macro): New variable.
52980         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
52981         AM_CPPFLAGS define it as a C macro.
52982         (func_emit_tests_Makefile_am): Likewise.
52983         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
52984         read it from there.
52985         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
52986         m4_define, not AC_DEFUN.
52987         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
52988         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
52989         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
52990         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
52991         s|...|...|, to substitute the values of the GNULIB_* module indicator
52992         variables.
52993         * modules/dirent (Makefile.am): Likewise.
52994         * modules/fcntl-h (Makefile.am): Likewise.
52995         * modules/iconv-h (Makefile.am): Likewise.
52996         * modules/langinfo (Makefile.am): Likewise.
52997         * modules/locale (Makefile.am): Likewise.
52998         * modules/math (Makefile.am): Likewise.
52999         * modules/netdb (Makefile.am): Likewise.
53000         * modules/poll-h (Makefile.am): Likewise.
53001         * modules/pty (Makefile.am): Likewise.
53002         * modules/search (Makefile.am): Likewise.
53003         * modules/signal (Makefile.am): Likewise.
53004         * modules/spawn (Makefile.am): Likewise.
53005         * modules/stdio (Makefile.am): Likewise.
53006         * modules/stdlib (Makefile.am): Likewise.
53007         * modules/string (Makefile.am): Likewise.
53008         * modules/sys_ioctl (Makefile.am): Likewise.
53009         * modules/sys_select (Makefile.am): Likewise.
53010         * modules/sys_socket (Makefile.am): Likewise.
53011         * modules/sys_stat (Makefile.am): Likewise.
53012         * modules/sys_times (Makefile.am): Likewise.
53013         * modules/sys_utsname (Makefile.am): Likewise.
53014         * modules/sys_wait (Makefile.am): Likewise.
53015         * modules/termios (Makefile.am): Likewise.
53016         * modules/time (Makefile.am): Likewise.
53017         * modules/unistd (Makefile.am): Likewise.
53018         * modules/wchar (Makefile.am): Likewise.
53020 2011-06-08  Eric Blake  <eblake@redhat.com>
53022         strerror: simplify replacement
53023         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
53024         * modules/strerror (configure.ac): No prereqs needed here...
53025         * modules/strerror-override (configure.ac): ...but this needs it.
53026         (Files): Add file for needed prereq macro.
53028 2011-06-08  Bruno Haible  <bruno@clisp.org>
53030         strerror_r-posix: Tweaks.
53031         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
53032         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
53033         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
53034         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
53035         (gl_FUNC_STRERROR_R): ... to here.
53036         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
53038 2011-06-07  Eric Blake  <eblake@redhat.com>
53040         perror: document fixed bugs
53041         * doc/posix-functions/perror.texi (perror): Document recent
53042         patches.
53044 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
53046         stat-time: get_stat_birthtime failure is better-defined
53047         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
53048         return a timestamp whose tv_sec and tv_nsec values are both -1.
53049         Previously, the spec said only that the tv_nsec value was negative.
53050         This upward-compatible change simplifies GNU tar a bit.
53052 2011-06-07  Eric Blake  <eblake@redhat.com>
53054         strerror_r-posix: work around cygwin 1.7.9
53055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
53056         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
53057         bug without replacing strerror_r.
53058         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
53059         strerror_r is buggy, but without requiring strerror_r compilation.
53060         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
53062         test-perror: relax test to ignore cygwin bug
53063         * tests/test-perror2.c (main): Relax test on requiring detection
53064         of stream errors, and use unbuffered stream.
53065         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
53066         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
53067         * doc/posix-functions/fputc.texi (fputc): Likewise.
53068         * doc/posix-functions/fputs.texi (fputs): Likewise.
53069         * doc/posix-functions/fputws.texi (fputws): Likewise.
53070         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
53071         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
53072         * doc/posix-functions/getopt.texi (getopt): Likewise.
53073         * doc/posix-functions/perror.texi (perror): Likewise.
53074         * doc/posix-functions/printf.texi (printf): Likewise.
53075         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
53076         * doc/posix-functions/psignal.texi (psignal): Likewise.
53077         * doc/posix-functions/putc.texi (putc): Likewise.
53078         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
53079         Likewise.
53080         * doc/posix-functions/putchar.texi (putchar): Likewise.
53081         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
53082         Likewise.
53083         * doc/posix-functions/puts.texi (puts): Likewise.
53084         * doc/posix-functions/putwc.texi (putwc): Likewise.
53085         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53086         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53087         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53088         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
53089         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53090         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53091         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
53092         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
53094 2011-05-22  Bruno Haible  <bruno@clisp.org>
53096         strerror: Move AC_LIBOBJ invocations to module description.
53097         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
53098         gl_PREREQ_STRERROR invocations from here...
53099         * modules/strerror (configure.ac): ... to here.
53101 2011-05-21  Bruno Haible  <bruno@clisp.org>
53103         perror: Use common idiom.
53104         * modules/perror (configure.ac): Reorder statements.
53106 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53108         tests: fix usage message in 'mktempd_'
53109         * tests/init.sh (mktempd_): In the usage message, use literal
53110         'mktempd_', not '$ME' (which is even undefined), as the name of
53111         the subroutine.
53113 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53115         tests init: new function 'fatal_', for hard errors
53116         Before this patch, the only way offered by tests/init.sh to
53117         properly signal a hard error was the `framework_failure_'
53118         function.  But the error message issued by that function,
53119         as its name would suggest, refers to a set-up failure in the
53120         testsuite, while hard errors can obviously also be due to
53121         other reasons.  The best way to fix this inconsistency is to
53122         introduce a new function with a more general error message.
53123         * tests/init.sh (fatal_): New function.
53125 2011-06-06  Eric Blake  <eblake@redhat.com>
53127         canonicalize-lgpl: use common idiom
53128         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
53129         over newer POSIX -Rf.
53130         Reported by Bruno Haible.
53132         canonicalize-lgpl: work around AIX realpath bug
53133         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
53134         * doc/posix-functions/realpath.texi (realpath): Document it.
53135         Reported by Bruno Haible.
53137         strerror: work around FreeBSD bug
53138         * lib/strerror.c (strerror): Special case 0.
53139         Reported by Bruno Haible.
53141         strerror-override: avoid bloating errno module
53142         * modules/errno (Files, configure.ac): Move replacement strings...
53143         * modules/strerror-override: ...to new module.
53144         * modules/strerror (Depends-on): Add strerror-override.
53145         * modules/strerror_r-posix (Depends-on): Likewise.
53146         * MODULES.html.sh: Document new module.
53147         Reported by Bruno Haible.
53149 2011-06-06  Bruno Haible  <bruno@clisp.org>
53151         spawn-pipe tests: Rename program.
53152         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
53153         * tests/test-spawn-pipe-child.c: Update comment.
53154         * tests/test-spawn-pipe.sh: Update.
53155         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
53157         spawn-pipe tests: Link the child program only against libc.
53158         * tests/test-spawn-pipe-child.c: New file, extracted from
53159         tests/test-spawn-pipe.c.
53160         (main): Expect only one argument.
53161         (is_open): New function, copied from tests/test-pipe.c.
53162         * tests/test-spawn-pipe.c: Don't include <errno.h>.
53163         (child_main): Remove function.
53164         (test_pipe): Pass only one argument to the child program.
53165         (main): Remove child process code. Expect the child program's name as
53166         first argument.
53167         * tests/test-spawn-pipe.sh: Pass the child program's name as first
53168         argument.
53169         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
53170         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
53171         test-spawn-pipe-child against no libraries.
53173 2011-06-06  Bruno Haible  <bruno@clisp.org>
53175         careadlinkat: Avoid mismatch between ssize_t and int.
53176         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
53177         * lib/careadlinkat.c (careadlinkatcwd): Define always.
53179 2011-06-06  Jim Meyering  <meyering@redhat.com>
53181         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
53182         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
53183         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
53185 2011-06-05  Bruno Haible  <bruno@clisp.org>
53187         ansi-c++-opt: Interoperability with libtool.
53188         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
53189         set the variable to "no", not to ":".
53190         * NEWS: Mention the change.
53192 2011-06-05  Bruno Haible  <bruno@clisp.org>
53194         acl: Fix test failure on AIX 7.
53195         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
53196         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
53198 2011-06-05  Bruno Haible  <bruno@clisp.org>
53200         pipe-filter-ii: Fix test failure on AIX and IRIX.
53201         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
53202         with EAGAIN, retry with a smaller buffer size.
53204 2011-06-05  Bruno Haible  <bruno@clisp.org>
53206         localename: Fix link dependencies.
53207         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
53208         * modules/localename-tests (Makefile.am): Link test-localename with
53209         $(LIBTHREAD).
53211 2011-06-05  Bruno Haible  <bruno@clisp.org>
53213         error: Avoid gcc warning.
53214         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
53216 2011-06-05  Bruno Haible  <bruno@clisp.org>
53218         unsetenv: Avoid gcc warning.
53219         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
53221 2011-06-05  Bruno Haible  <bruno@clisp.org>
53223         setenv: Avoid gcc warning.
53224         * lib/setenv.c (setenv): Provide declaration if system lacks it.
53226 2011-06-05  Bruno Haible  <bruno@clisp.org>
53228         sys_select: Ensure memset is declared also on AIX 7.
53229         * lib/sys_select.in.h: Include <string.h> also on AIX.
53230         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
53231         self-contained also on AIX 7.1.
53233 2011-06-04  Jim Meyering  <meyering@redhat.com>
53235         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
53236         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
53237         function name, "error".
53238         (_gl_translatable_diag_func_re): New configurable variable.
53240 2011-06-04  Bruno Haible  <bruno@clisp.org>
53242         getopt: Avoid gcc warning.
53243         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
53245 2011-06-04  Bruno Haible  <bruno@clisp.org>
53247         strerror_r: Fix comments.
53248         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
53249         commit.
53251 2011-06-04  Bruno Haible  <bruno@clisp.org>
53253         perror: Fix compilation error.
53254         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
53255         Undefine fprintf, not sprintf.
53256         * modules/perror (Depends-on): Remove intprops, verify.
53258 2011-06-04  Bruno Haible  <bruno@clisp.org>
53260         setlocale: Enable replacement on Cygwin 1.5.
53261         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
53262         Cygwin 1.5.x.
53263         * doc/posix-functions/setlocale.texi: Mention that the problem with the
53264         LC_CTYPE category also exists on Cygwin 1.5.x.
53266 2011-06-04  Bruno Haible  <bruno@clisp.org>
53268         strerror-override: Don't disable symbol renamings.
53269         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
53270         * lib/strerror-override.c: Include config.h.
53271         (strerror_override): Don't undefine.
53273 2011-06-03  Bruno Haible  <bruno@clisp.org>
53275         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
53276         * lib/localename.h: Update copyright header.
53277         * lib/localename.c: Likewise.
53278         * lib/relocatable.h: Likewise.
53279         * lib/relocatable.c: Likewise.
53281 2011-06-02  Bruno Haible  <bruno@clisp.org>
53283         doc: Fix a module name.
53284         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
53286 2011-06-02  Bruno Haible  <bruno@clisp.org>
53288         pipe2: Remove dependency on 'nonblocking' module.
53289         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
53290         O_NONBLOCK is defined by gnulib.
53291         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
53292         is zero.
53293         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
53294         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
53295         defined by gnulib.
53296         (get_nonblocking_flag): New function.
53297         (main): Test O_NONBLOCK flag only if it is nonzero.
53298         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
53300 2011-06-03  Jim Meyering  <meyering@redhat.com>
53302         maint: three new prohibit-header-without-use rules
53303         Prohibit use of cloexec.h, posixver.h, same.h without use.
53304         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
53305         (sc_prohibit_posixver_without_use): Likewise.
53306         (sc_prohibit_same_without_use): Likewise.
53308 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53310         allocator: 'die' routine is now given requested size
53311         * lib/allocator.h (struct allocator.die): New size arg.
53312         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
53313         If the actual problem is an ssize_t limitation, not a size_t or
53314         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
53316 2011-06-01  Eric Blake  <eblake@redhat.com>
53318         strerror: drop strerror_r dependency
53319         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
53320         * lib/strerror-override.c (strerror_override): ...to new file.
53321         * lib/strerror-override.h: Add prototype.
53322         * lib/strerror-impl.h: Delete.
53323         * lib/strerror.c (strerror): New implementation.
53324         * modules/errno (Files): Add new files.
53325         (configure.ac): Compile new file as appropriate.
53326         * modules/strerror (Files): Drop unused file.
53327         (Depends-on): Drop strerror_r-posix.
53328         * MODULES.html.sh: Document strerror_r-posix.
53329         Requested by Sam Steingold.
53331         perror: call strerror_r directly
53332         * modules/perror (Files): Drop strerror-impl.h.
53333         * lib/perror.c (perror): Use our own stack buffer, rather than
53334         calling a wrapper that uses static storage.
53335         * doc/posix-functions/perror.texi (perror): Document a limitation
53336         of our replacement.
53338         strerror_r: fix includes for FreeBSD
53339         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
53340         since we use abort on some platforms.
53341         Reported by Matthias Bolte.
53343 2011-05-31  Bruno Haible  <bruno@clisp.org>
53345         Fix link errors in tests: openat-die uses gettext-h.
53346         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
53347         against $(LIBINTL).
53348         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
53349         against $(LIBINTL).
53350         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
53351         $(LIBINTL).
53352         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
53353         against $(LIBINTL).
53354         * modules/linkat-tests (Makefile.am): Link test-linkat against
53355         $(LIBINTL).
53356         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
53357         $(LIBINTL).
53358         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
53359         against $(LIBINTL).
53360         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
53361         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
53362         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
53363         $(LIBINTL).
53364         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
53365         $(LIBINTL).
53366         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
53367         $(LIBINTL).
53368         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53370 2011-05-31  Bruno Haible  <bruno@clisp.org>
53372         Fix link errors in tests: wait-process uses gettext-h.
53373         * modules/nonblocking-pipe-tests (Makefile.am): Set
53374         test_nonblocking_pipe_main_LDADD.
53375         * modules/nonblocking-socket-tests (Makefile.am): Link
53376         test-nonblocking-socket-main against $(LIBINTL).
53377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53379 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
53381         assert-h: work around 'verify' incompatibility
53382         * lib/verify.h: Use @...@ directives, not ifdef.
53383         * modules/assert-h (assert.h): Implement the directives.
53384         (assert.h): Substitute the symbol-prefix more consistently.
53386 2011-05-29  Jim Meyering  <meyering@redhat.com>
53388         trim: remove three superfluous assignments
53389         * lib/trim.c (trim2): Remove three superfluous assignments
53390         and correct brace positioning.
53392 2011-05-29  Bruno Haible  <bruno@clisp.org>
53394         wctype-h: Avoid namespace pollution on Solaris 2.6.
53395         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
53396         identifiers.
53397         * doc/posix-headers/wctype.texi: Mention the problem.
53398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53400 2011-05-28  Jim Meyering  <meyering@redhat.com>
53402         parse-datetime.y: accommodate -Wstrict-overflow
53403         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
53404         placate -Wstrict-overflow.
53406         trim: avoid a warning from -O2 -Wstrict-overflow
53407         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
53409 2011-05-29  Bruno Haible  <bruno@clisp.org>
53411         gnulib-tool: Fix bug in yesterday's commit.
53412         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
53413         twice.
53415 2011-05-29  Bruno Haible  <bruno@clisp.org>
53417         Allow multiple gnulib generated include files to be combined.
53418         * gnulib-tool (func_compute_include_guard_prefix): New function.
53419         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
53420         ${gl_include_guard_prefix} references.
53421         (func_import, func_create_testdir): Invoke
53422         func_compute_include_guard_prefix.
53423         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
53424         * lib/ctype.in.h: Likewise.
53425         * lib/dirent.in.h: Likewise.
53426         * lib/errno.in.h: Likewise.
53427         * lib/fcntl.in.h: Likewise.
53428         * lib/float.in.h: Likewise.
53429         * lib/getopt.in.h: Likewise.
53430         * lib/iconv.in.h: Likewise.
53431         * lib/langinfo.in.h: Likewise.
53432         * lib/locale.in.h: Likewise.
53433         * lib/math.in.h: Likewise.
53434         * lib/netdb.in.h: Likewise.
53435         * lib/netinet_in.in.h: Likewise.
53436         * lib/poll.in.h: Likewise.
53437         * lib/pthread.in.h: Likewise.
53438         * lib/pty.in.h: Likewise.
53439         * lib/sched.in.h: Likewise.
53440         * lib/se-selinux.in.h: Likewise.
53441         * lib/search.in.h: Likewise.
53442         * lib/signal.in.h: Likewise.
53443         * lib/spawn.in.h: Likewise.
53444         * lib/stdarg.in.h: Likewise.
53445         * lib/stddef.in.h: Likewise.
53446         * lib/stdint.in.h: Likewise.
53447         * lib/stdio.in.h: Likewise.
53448         * lib/stdlib.in.h: Likewise.
53449         * lib/string.in.h: Likewise.
53450         * lib/strings.in.h: Likewise.
53451         * lib/sys_file.in.h: Likewise.
53452         * lib/sys_ioctl.in.h: Likewise.
53453         * lib/sys_select.in.h: Likewise.
53454         * lib/sys_socket.in.h: Likewise.
53455         * lib/sys_stat.in.h: Likewise.
53456         * lib/sys_time.in.h: Likewise.
53457         * lib/sys_times.in.h: Likewise.
53458         * lib/sys_uio.in.h: Likewise.
53459         * lib/sys_utsname.in.h: Likewise.
53460         * lib/sys_wait.in.h: Likewise.
53461         * lib/sysexits.in.h: Likewise.
53462         * lib/termios.in.h: Likewise.
53463         * lib/time.in.h: Likewise.
53464         * lib/unistd.in.h: Likewise.
53465         * lib/wchar.in.h: Likewise.
53466         * lib/wctype.in.h: Likewise.
53467         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
53468         * modules/ctype (Makefile.am): Likewise.
53469         * modules/dirent (Makefile.am): Likewise.
53470         * modules/errno (Makefile.am): Likewise.
53471         * modules/fcntl-h (Makefile.am): Likewise.
53472         * modules/float (Makefile.am): Likewise.
53473         * modules/getopt-posix (Makefile.am): Likewise.
53474         * modules/iconv-h (Makefile.am): Likewise.
53475         * modules/langinfo (Makefile.am): Likewise.
53476         * modules/locale (Makefile.am): Likewise.
53477         * modules/math (Makefile.am): Likewise.
53478         * modules/netdb (Makefile.am): Likewise.
53479         * modules/netinet_in (Makefile.am): Likewise.
53480         * modules/poll-h (Makefile.am): Likewise.
53481         * modules/pthread (Makefile.am): Likewise.
53482         * modules/pty (Makefile.am): Likewise.
53483         * modules/sched (Makefile.am): Likewise.
53484         * modules/search (Makefile.am): Likewise.
53485         * modules/selinux-h (Makefile.am): Likewise.
53486         * modules/signal (Makefile.am): Likewise.
53487         * modules/spawn (Makefile.am): Likewise.
53488         * modules/stdarg (Makefile.am): Likewise.
53489         * modules/stddef (Makefile.am): Likewise.
53490         * modules/stdint (Makefile.am): Likewise.
53491         * modules/stdio (Makefile.am): Likewise.
53492         * modules/stdlib (Makefile.am): Likewise.
53493         * modules/string (Makefile.am): Likewise.
53494         * modules/strings (Makefile.am): Likewise.
53495         * modules/sys_file (Makefile.am): Likewise.
53496         * modules/sys_ioctl (Makefile.am): Likewise.
53497         * modules/sys_select (Makefile.am): Likewise.
53498         * modules/sys_socket (Makefile.am): Likewise.
53499         * modules/sys_stat (Makefile.am): Likewise.
53500         * modules/sys_time (Makefile.am): Likewise.
53501         * modules/sys_times (Makefile.am): Likewise.
53502         * modules/sys_uio (Makefile.am): Likewise.
53503         * modules/sys_utsname (Makefile.am): Likewise.
53504         * modules/sys_wait (Makefile.am): Likewise.
53505         * modules/sysexits (Makefile.am): Likewise.
53506         * modules/termios (Makefile.am): Likewise.
53507         * modules/time (Makefile.am): Likewise.
53508         * modules/unistd (Makefile.am): Likewise.
53509         * modules/wchar (Makefile.am): Likewise.
53510         * modules/wctype-h (Makefile.am): Likewise.
53511         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
53513 2011-05-29  Bruno Haible  <bruno@clisp.org>
53515         assert-h: Allow multiple gnulib generated replacements to coexist.
53516         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
53518 2011-05-29  Bruno Haible  <bruno@clisp.org>
53520         argp: Allow coexistence with strerror_r-posix module.
53521         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
53522         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
53523         by gnulib's <string.h> replacement), assume it has the POSIX signature,
53524         not the glibc signature.
53526 2011-05-28  Bruno Haible  <bruno@clisp.org>
53528         gnulib-tool: Alternative structure of testdirs, similar to --import.
53529         * gnulib-tool: New option --single-configure.
53530         (func_usage): Document it.
53531         (single_configure): New variable.
53532         (func_modules_transitive_closure_separately,
53533         func_modules_transitive_closure_separately,
53534         func_determine_use_libtests, func_modules_add_dummy_separately,
53535         func_modules_to_filelist_separately): New functions, extracted from
53536         func_import.
53537         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
53538         (func_import): Use the new functions.
53539         (func_create_testdir): Set final_modules. Handle $single_configure =
53540         true case.
53542 2011-05-28  Bruno Haible  <bruno@clisp.org>
53544         getloadavg: Remove an unreliable safety check.
53545         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
53546         getloadavg.c is in place.
53547         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
53548         Reported by Sam Steingold <sds@gnu.org>.
53550 2011-05-28  Bruno Haible  <bruno@clisp.org>
53552         doc: Cleanup yet another file produced by texinfo.tex.
53553         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
53555 2011-05-28  Bruno Haible  <bruno@clisp.org>
53557         Finish the conditional dependencies mechanism.
53558         * gnulib-tool: New option --no-conditional-dependencies.
53559         (func_usage): Document it. Don't mark --conditional-dependencies as
53560         experimental.
53561         (cond_dependencies): The possible values can now be true, false, empty.
53562         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
53563         (func_import): Store setting in gnulib-cache.m4 and read it from there.
53564         * doc/gnulib-tool.texi (Conditional dependencies): New section.
53566 2011-05-28  Bruno Haible  <bruno@clisp.org>
53568         doc: Use a recent texinfo.tex.
53569         * doc/Makefile (tex_opts): New variable.
53570         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
53572 2011-05-28  Jim Meyering  <meyering@redhat.com>
53574         intprops.h: adjust comment to match code change
53575         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
53576         only once, it *may* have side effects.  Also fix an unrelated typo.
53577         (_GL_INT_SIGNED): Likewise.
53579 2011-05-26  Simon Josefsson  <simon@josefsson.org>
53581         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
53583 2011-05-26  Bruno Haible  <bruno@clisp.org>
53585         mbsrchr: Avoid collision with system function on Interix.
53586         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
53587         Reported by Markus Duft <mduft@gentoo.org>.
53589 2011-05-15  James Youngman  <jay@gnu.org>
53591         getopt: for ambiguous options, enumerate the possibilities.
53592         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
53593         the ambiguous options when an ambiguous prefix is given. This was
53594         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
53595         glibc change was
53596         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
53598 2011-05-25  Eric Blake  <eblake@redhat.com>
53600         getcwd: work around mingw bug
53601         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
53602         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53603         Reported by Matthias Bolte.
53605 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
53607         test-intprops: disable -Wtype-limits diagnostics
53608         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
53609         diagnostics.  Otherwise, the integer overflow macros generate many
53610         diagnostics.  Reported by Jim Meyering in
53611         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
53613         intprops: shorten, to pacify gcc -Woverlength-strings
53614         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
53615         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
53616         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
53617         likely to run afoul of C compiler limits for string constant lengths.
53618         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
53620 2011-05-24  Eric Blake  <eblake@redhat.com>
53622         docs: document recently fixed glibc printf bug
53623         * doc/posix-functions/fprintf.texi (fprintf): Document it.
53624         * doc/posix-functions/printf.texi (printf): Likewise.
53625         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53626         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53628         closein-tests: convert to init.sh
53629         * modules/closein-tests (Files): Add init.sh
53630         * tests/test-closein.sh Use it.
53632         yesno-tests: convert to init.sh
53633         * modules/yesno-tests (Files): Add init.sh.
53634         * tests/test-yesno.sh: Use it.
53636         atexit-tests: ensure reliable exit status
53637         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
53638         Reported by Bruno Haible.
53640 2011-05-24  Bruno Haible  <bruno@clisp.org>
53642         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
53643         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
53644         gl_PREREQ_STRERROR_R invocations from here...
53645         * modules/strerror_r-posix (configure.ac): ... to here.
53647 2011-05-24  Eric Blake  <eblake@redhat.com>
53649         strerror_r: fix missing header
53650         * lib/strerror_r.c: Avoid compiler warning about snprintf.
53652         strerror_r: fix AIX test failures
53653         * lib/strerror_r.c (strerror_r): Convert silent truncation to
53654         ERANGE failure.
53656         strerror_r: fix Solaris test failures
53657         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
53658         failures.
53659         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
53661         strerror_r: enforce POSIX recommendations
53662         * lib/strerror_r.c (safe_copy): New helper method.
53663         (strerror_r): Guarantee a non-empty string.
53664         * tests/test-strerror_r.c (main): Enhance tests to incorporate
53665         recent POSIX rulings and to match our strerror guarantees.
53666         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
53668 2011-05-24  Jim Meyering  <meyering@redhat.com>
53670         test-perror2.c: avoid warning about unused variable
53671         * tests/test-perror2.c (main): Remove declaration of unused "fp".
53673 2011-05-24  Eric Blake  <eblake@redhat.com>
53675         perror: avoid spurious test failure on HP-UX
53676         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
53678         tests: fix logic bug in init.sh
53679         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
53680         shell.
53682 2011-05-24  Jim Meyering  <meyering@redhat.com>
53684         utimensat: do not reference an out-of-scope buffer
53685         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
53686         declared in an inner scope, yet "times" would be dereferenced outside
53687         the scope in which "ts" was valid.
53688         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
53689         of ts[2] "out/up", so that the use of aliased "times" (via
53690         "times = ts;") does not end up referencing an out-of-scope "ts"
53692         opendir-safer.c: don't clobber errno; don't close negative FD
53693         * lib/opendir-safer.c (opendir_safer):
53694         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
53695         file descriptor, and more importantly, don't clobber the
53696         offending errno value with EINVAL.  Before, upon failure
53697         of dup_safer, we would pass the negative file descriptor to
53698         fdopendir, which would clobber errno.
53700 2011-05-23  Bruno Haible  <bruno@clisp.org>
53702         idcache: Fix module description.
53703         * modules/idcache (Include): Set to "idcache.h".
53705 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
53707         gnulib-tool: fix portability problem with MacOS sed
53708         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
53709         before the "}".  Problem reported by Leo in
53710         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
53711         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
53712         sed_extract_condition1, sed_extract_condition2.
53714 2011-05-23  Bruno Haible  <bruno@clisp.org>
53716         hash: Simplify autoconf macro.
53717         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
53719 2011-05-23  Bruno Haible  <bruno@clisp.org>
53721         getugroups: Fix module description.
53722         * modules/getugroups (Include): Set to "getugroups.h".
53724 2011-05-23  Bruno Haible  <bruno@clisp.org>
53726         linkat: Simplify autoconf macro.
53727         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
53729 2011-05-23  Bruno Haible  <bruno@clisp.org>
53730             Eric Blake  <eblake@redhat.com>
53732         linkat, renameat: Update dependencies.
53733         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
53734         * modules/linkat (Depends-on): Likewise. Remove also readlink,
53735         symlinkat.
53737 2011-05-23  Jim Meyering  <meyering@redhat.com>
53739         maint.mk: more tight_scope improvements
53740         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
53741         (_gl_TS_headers): Define only in if-0'd block.
53742         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
53743         sometimes we must *not* use it.  Adjust uses accordingly.
53744         (sc_tight_scope): Use much simpler grep-based test to determine
53745         whether we skip this rule.
53747         maint.mk: generalize/improve the tight-scope rule
53748         * top/maint.mk: Emit a warning when the test is skipped.
53749         (_gl_TS_dir): Add $(srcdir)/ prefix.
53750         (_gl_TS_function_match): Simplify, rather than trying
53751         to enumerate common types.  Otherwise, it would fail to match an
53752         "extern unsigned char const *" declaration in idutils.
53753         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
53754         a way to support use of that type of macro.
53755         (_gl_TS_var_match): Simplify regexp.
53756         (_gl_TS_obj_files): New configurable variable.
53757         (_gl_TS_headers): Likewise.
53759 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53761         verify: fix bug when gnulib <assert.h> is also included
53762         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
53763         is defined, not if _GL_STATIC_ASSERT_H is not defined.
53764         Perhaps there's a better way, but this fixes the immediate problem.
53765         Problem reported by Bruno Haible in
53766         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
53768 2011-05-22  Bruno Haible  <bruno@clisp.org>
53770         xgetcwd: Simplify autoconf macro.
53771         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
53773 2011-05-22  Bruno Haible  <bruno@clisp.org>
53775         New module 'mktime-internal'.
53776         * modules/mktime-internal: New file.
53777         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
53778         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
53779         mktime_internal as a C macro if libc has __mktime_internal.
53780         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
53781         conditions.
53782         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
53784 2011-05-22  Bruno Haible  <bruno@clisp.org>
53786         timegm: Correct mktime replacement statements.
53787         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
53788         defining mktime as a C macro. This completes a 2009-07-28 commit.
53790 2011-05-22  Bruno Haible  <bruno@clisp.org>
53792         timegm: Simplify autoconf macro.
53793         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
53795 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
53797         clock-time: change to LGPLv2+.
53798         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
53799         BSD-like but we have no mark for that; this is good enough for now.
53801 2011-05-21  Bruno Haible  <bruno@clisp.org>
53803         strerror_r: Fix comments.
53804         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
53806 2011-05-21  Bruno Haible  <bruno@clisp.org>
53808         relocatable-prog-wrapper: Fix possible link error.
53809         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
53810         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
53811         (gl_FUNC_SETENV): ... to here.
53812         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
53813         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
53815 2011-05-21  Bruno Haible  <bruno@clisp.org>
53817         relocatable-prog-wrapper: Assume strerror() exists.
53818         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
53819         m4/strerror.m4.
53820         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
53821         * lib/relocwrapper.c: Remove mention of strerror module.
53822         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
53823         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
53824         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
53825         C macro.
53827 2011-05-21  Bruno Haible  <bruno@clisp.org>
53829         select: Simplify replacement idiom.
53830         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
53831         Win32 platforms.
53832         * lib/sys_select.in.h (select): Simplify accordingly.
53833         * modules/select (Depends-on): Likewise.
53835 2011-05-21  Bruno Haible  <bruno@clisp.org>
53837         mkdir-p: Simplify autoconf macro.
53838         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
53839         gl_FUNC_LCHOWN.
53841 2011-05-21  Eric Blake  <eblake@redhat.com>
53843         strerror_r: avoid clobbering strerror on cygwin
53844         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
53845         fall back instead to sys_errlist.
53846         * modules/strerror (configure.ac): Add witness.
53847         * tests/test-strerror_r.c (main): Enhance test.
53848         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
53849         * tests/test-perror2.c (main): Free memory before exit.
53851 2011-05-21  Bruno Haible  <bruno@clisp.org>
53853         mkdtemp: Use gnulib naming conventions.
53854         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
53855         * modules/mkdtemp (configure.ac): Update.
53857 2011-05-20  Eric Blake  <eblake@redhat.com>
53859         strerror_r: avoid corrupting errno on Solaris
53860         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
53861         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
53863         strerror_r: avoid compiler warning
53864         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
53866         strerror_r: simplify AIX code
53867         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
53869         test-perror: avoid spurious failure on FreeBSD
53870         * modules/perror-tests (Depends-on): Add strerror, now that
53871         strerror_r no longer pulls it in.
53873 2011-05-20  Bruno Haible  <bruno@clisp.org>
53875         strerror_r-posix: Remove unused dependencies.
53876         * modules/strerror_r-posix (Depends-on): Remove strerror.
53877         Reported by Eric Blake.
53879 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53881         intprops: remove assumption about A|B representation
53882         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
53883         is a valid integer if both A and B are.  Although this is true for
53884         all known practical hosts, the C standard doesn't guarantee it,
53885         and the code need not assume it.  Also, this change may work around
53886         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
53887         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
53889 2011-05-20  Eric Blake  <eblake@redhat.com>
53891         perror: work around FreeBSD bug
53892         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
53893         is broken.  Move AC_LIBOBJ...
53894         * modules/perror (configure.ac): Here.
53895         * doc/posix-functions/perror.texi (perror): Document this.
53896         * tests/test-perror2.c (main): Enhance test.
53898         test-perror: check for strerror interactions
53899         * tests/macros.h (STREQ): Add macro.
53900         * modules/perror-tests (Files): Add second test.
53901         * tests/test-perror2.c (main): New file.
53902         * doc/posix-functions/perror.texi (perror): Document glibc bug.
53904         test-perror: rewrite to use init script
53905         * modules/perror-tests (Files): Add init.sh.
53906         * tests/test-perror.sh: Use temporary directory.
53908 2011-05-20  Jim Meyering  <meyering@redhat.com>
53910         maint: replace misused "a" with "an"
53911         * doc/intprops.texi: "a integer"
53912         * doc/regex.texi: "a explanation"
53913         * lib/alignof.h: "a object"
53914         * lib/argmatch.h: "a explanation"
53915         * lib/argp-help.c: "a option" and "a OPTION_DOC"
53916         * lib/stdint.in.h: "a integer"
53917         * lib/userspec.c: "a owner"
53918         * doc/gnulib.texi: Fix "a idea", and reword.
53920 2011-05-19  Jim Meyering  <meyering@redhat.com>
53922         maint: correct misuse of "a" and "an"
53923         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
53924         * lib/argp-help.c: "an docum...": s/an/a/
53925         * lib/argp-parse.c: "An vector": s/An/A/
53926         * lib/execute.c: "an native": s/an/a/
53927         * lib/spawn-pipe.c: Likewise.
53928         * lib/gc.h: "an Gc_rc": s/an/a/
53929         * lib/unigbrk.in.h: "an grapheme": s/an/a/
53930         * lib/fts.c: "an stat.st_dev": s/an/a/
53932 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53934         intprops-tests: work around HP-UX 11.23 cc bug with constants
53935         * tests/test-intprops.c (VERIFY): New macro.
53936         (main): Use it, instead of verify, to work around the compiler bug; see
53937         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
53939         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
53940         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
53941         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
53942         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
53943         (_GL_REMAINDER_OVERFLOW): Use it.
53945         intprops-tests: revert unsigned part of previous change
53946         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
53947         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
53948         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
53949         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
53951 2011-05-19  Bruno Haible  <bruno@clisp.org>
53953         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
53954         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
53955         strerror_r() returned without filling the buffer.
53956         Reported by Eric Blake.
53958 2011-05-19  Eric Blake  <eblake@redhat.com>
53960         strerror_r: guarantee unchanged errno
53961         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
53962         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
53963         failure.
53964         * tests/test-strerror_r.c (main): Enhance test.
53966 2011-05-19  Bruno Haible  <bruno@clisp.org>
53968         strerror_r: Reorder #if blocks.
53969         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
53970         for consistency with the previous commit.
53972 2011-05-19  Bruno Haible  <bruno@clisp.org>
53974         perror: Avoid clobbering the strerror buffer when possible.
53975         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
53976         * lib/strerror.c: Include it.
53977         * modules/strerror (Files): Add lib/strerror-impl.h.
53978         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
53979         (my_strerror): New function, defined through lib/strerror-impl.h.
53980         (perror): Use it instead of strerror.
53981         * modules/perror (Files): Add lib/strerror-impl.h.
53982         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
53984 2011-05-19  Eric Blake  <eblake@redhat.com>
53986         strerror_r: fix on newer cygwin
53987         * lib/strerror_r.c (strerror_r): Cygwin now has
53988         __xpg_strerror_r, use it.
53990 2011-05-19  Bruno Haible  <bruno@clisp.org>
53992         strerror_r: Avoid clobbering the strerror buffer when possible.
53993         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
53994         (sys_nerr, sys_errlist): New declarations.
53995         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
53996         HP-UX, native Win32, IRIX, and 32-bit Solaris.
53997         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
53999 2011-05-19  Bruno Haible  <bruno@clisp.org>
54001         strerror_r: Fix test failure on mingw.
54002         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
54003         EXTEND_STRERROR_R.
54004         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
54005         macros from errno.in.h instead.
54007 2011-05-19  Eric Blake  <eblake@redhat.com>
54009         strerror: relax test for Solaris
54010         * tests/test-strerror.c (main): Permit Solaris behavior.
54011         * tests/test-strerror_r.c (main): Likewise.
54013         strerror: enforce POSIX ruling on strerror(0)
54014         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
54015         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54016         * lib/strerror_r.c (rpl_strerror_r): Work around it.
54017         * doc/posix-functions/strerror.texi (strerror): Document it.
54018         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
54019         * tests/test-strerror.c (main): Strengthen test.
54020         * tests/test-strerror_r.c (main): Likewise.
54022 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54024         intprop-tests: port to older and more-pedantic compilers
54025         * modules/intprops-tests (Files): Add tests/macros.h.
54026         * tests/test-intprops.c: Include macros.h.
54027         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
54028         it's no longer documented to expand to an integer constant expression.
54029         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
54030         argument is floating point, as it's no longer documented to expand
54031         to an integer constant expression in that case.
54032         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
54033         compiler bugs reported by Bruno Haible.  See
54034         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54035         (U0, U1): New constants, to work around the same bugs.  Also,
54036         in tests, use e.g., "(unsigned int) 39" rather than "39u".
54038         intprops: work around C compiler bugs
54039         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
54040         bug in Sun C 5.11 2010/08/13 and other compilers; see
54041         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54043         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
54044         * doc/intprops.texi (Integer Type Determination): Fix
54045         documentation for TYPE_IS_INTEGER: it returns an constant
54046         expression, not an integer constant expression.  Fix doc for
54047         TYPE_SIGNED: it returns an integer constant expression only if its
54048         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
54049         hardly worth documented that way....)
54051 2011-05-18  Bruno Haible  <bruno@clisp.org>
54053         strerror_r: Avoid clobbering the strerror buffer when possible.
54054         * lib/strerror_r.c (strerror_r): Merge the three implementations.
54055         Handle gnulib defined errno values here. When strerror() returns NULL
54056         or an empty string, return EINVAL.
54057         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
54058         gnulib defined errno values here.
54059         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
54061 2011-05-18  Eric Blake  <eblake@redhat.com>
54063         fnmatch: avoid compiler warning
54064         * lib/fnmatch_loop.c (FCT): Use correct type.
54065         Reported by Matthias Bolte.
54067 2011-05-13  Jim Meyering  <meyering@redhat.com>
54069         maint.mk: three new prohibit_<HDR>_without_use rules
54070         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
54071         (sc_prohibit_stdio-safer_without_use): Likewise.
54072         (sc_prohibit_xfreopen_without_use): Likewise.
54074 2011-05-17  Jim Meyering  <meyering@redhat.com>
54076         announce-gen: fail if the NEWS delta is empty
54077         If there's nothing noteworthy in NEWS, then either you forgot
54078         or you shouldn't be releasing.
54079         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
54081 2011-05-17  Pádraig Brady  <P@draigBrady.com>
54083         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
54084         reserved symbols starting with double underscore from the check.
54086 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54088         intprops: add doc
54089         * doc/intprops.texi: New file, documenting intprops.
54090         * doc/gnulib.texi (Particular Modules): Include it.
54092         verify: add doc to gnulib manual and fix example
54093         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
54094         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
54095         (Compile-time Assertions): Fix example so it can't overflow.
54097 2011-05-17  Jim Meyering  <meyering@redhat.com>
54099         warnings.m4: don't usurp save_CPPFLAGS variable name
54100         * m4/warnings.m4: Prefix local temporary variable name with gl_.
54102         doc: fix typo
54103         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
54105 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54106             Bruno Haible  <bruno@clisp.org>
54108         doc: Tweak recent change.
54109         * README (Portability guidelines): Tweak new text.
54110         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
54111         Interix 6.1.
54113 2011-05-16  Eric Blake  <eblake@redhat.com>
54115         inttypes: avoid autoconf warning
54116         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
54117         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54119 2011-05-16  Sam Steingold  <sds@gnu.org>
54120         and Eric Blake  <eblake@redhat.com>
54122         vc-list-files: accept multiple directory operands
54123         * build-aux/vc-list-files: Iterate over all remaining operands.
54125 2011-05-16  Bruno Haible  <bruno@clisp.org>
54127         Fix confusion regarding deprecated modules.
54128         * modules/calloc (Status, Notice): Mark module as deprecated, not
54129         obsolete.
54130         * modules/fnmatch-posix (Status, Notice): Likewise.
54131         * modules/getdate (Status, Notice): Likewise.
54132         * modules/getopt (Status, Notice): Likewise.
54133         * modules/malloc (Status, Notice): Likewise.
54134         * modules/pipe (Status, Notice): Likewise.
54135         * modules/realloc (Status, Notice): Likewise.
54136         * modules/rename-dest-slash (Status, Notice): Likewise.
54137         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
54138         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
54139         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
54140         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
54141         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
54143 2011-05-16  Bruno Haible  <bruno@clisp.org>
54145         doc: List the target platforms.
54146         * doc/gnulib-intro.texi (Target Platforms): New section.
54147         * doc/gnulib.texi (Introduction): Update menu.
54148         * README (Portability guidelines): Refer to the new section. Update
54149         statement about oldest supported environment. Remove rationale why
54150         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
54151         unportable C89 function.
54152         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
54153         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
54155 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54157         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
54159 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54161         intprops-tests: new module
54162         * modules/intprops-tests, tests/test-intprops.c: New files.
54164         intprops: add safe, portable integer overflow checking
54165         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
54166         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
54167         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
54168         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
54169         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
54170         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
54171         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
54172         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
54173         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
54174         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
54175         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
54177 2011-05-12  James Youngman  <jay@gnu.org>
54179         Add a test for glibc's Bugzilla bug #12378.
54180         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
54181         doesn't allow the literal matching of a lone "[" (which is
54182         required by POSIX).
54183         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
54185 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
54187         Sync glibc change fixing Bugzilla bug #12378.
54188         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
54189         beginning and fall back to matching as normal character if the
54190         string ends before the matching ']' is found.  This is what POSIX
54191         requires.
54193 2011-05-13  Eric Blake  <eblake@redhat.com>
54195         getcwd-lgpl: relax test for FreeBSD
54196         * doc/posix-functions/getcwd.texi (getcwd): Document portability
54197         issue.
54198         * tests/test-getcwd-lgpl.c (main): Relax test.
54199         Reported by Matthias Bolte.
54201 2011-05-11  Eric Blake  <eblake@redhat.com>
54203         test-fflush: silence compiler warning
54204         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
54206 2011-05-11  Bruno Haible  <bruno@clisp.org>
54208         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
54209         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
54210         * modules/canonicalize (Depends-on): Add 'nocrash'.
54211         * modules/canonicalize-lgpl (Depends-on): Likewise.
54212         * doc/posix-functions/realpath.texi: Update platforms list.
54213         Reported by Ryan Schmidt <ryandesign@macports.org>.
54215 2011-05-11  Bruno Haible  <bruno@clisp.org>
54217         group-member: Declare function in <unistd.h>.
54218         * lib/unistd.in.h (group_member): New declaration.
54219         * lib/group-member.h: Remove file.
54220         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
54221         * tests/test-unistd-c++.cc: Check signature of group_member.
54222         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
54223         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
54224         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
54225         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
54226         HAVE_GROUP_MEMBER.
54227         * modules/group-member (Files): Remove lib/group-member.h.
54228         (Depends-on): Add unistd. Specify conditions.
54229         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54230         (Include): Change to <unistd.h>.
54231         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
54232         HAVE_GROUP_MEMBER.
54233         * NEWS: Mention the change.
54234         * lib/euidaccess.c: Don't include group-member.h.
54236 2011-05-11  Bruno Haible  <bruno@clisp.org>
54238         group-member: Document module.
54239         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
54240         module.
54242 2011-05-11  Bruno Haible  <bruno@clisp.org>
54244         fclose: Fix mistake earlier today.
54245         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
54247 2011-05-11  Eric Blake  <eblake@redhat.com>
54249         fclose: preserve fflush errors
54250         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
54251         Reported by Jim Meyering.
54253         bootstrap: support a prereq of 'rpcgen -' on RHEL5
54254         * build-aux/bootstrap (check_versions): When no specific version
54255         is required, merely check that the app produces an exit status
54256         that indicates its existence.
54258         maint.mk: drop redundant check
54259         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
54260         the same but better.
54262 2011-05-11  Bruno Haible  <bruno@clisp.org>
54264         fclose: Fix possible link error.
54265         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
54266         unregister_shadow_fd. Improve comments.
54267         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
54268         Eric Blake.
54270 2011-05-11  Jim Meyering  <meyering@redhat.com>
54272         maint.mk: improve "can not" detection and generalize rule name
54273         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
54274         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
54275         Use the same technique as in sc_prohibit_doubled_word, so that
54276         we recognize "can not" also when the words are separated by a newline.
54277         Suggested by Eric Blake.
54278         (perl_filename_lineno_text_): Define.  Factored out of...
54279         (prohibit_doubled_word_): ...here.  Use the new definition.
54280         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
54281         (prohibit_undesirable_word_seq_RE_): New overridable variable.
54282         (ignore_undesirable_word_sequence_RE_): New overridable variable.
54284 2011-05-10  Eric Blake  <eblake@redhat.com>
54286         fclose: avoid double close race when possible
54287         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
54288         all but WINDOWS_SOCKETS.
54290 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
54292         openat: correct new comment
54293         * lib/openat-proc.c (openat_proc_name): Correct the comment.
54295 2011-05-10  Jim Meyering  <meyering@redhat.com>
54297         openat: add comments
54298         * lib/openat-proc.c (openat_proc_name): Add comments,
54299         mostly from Eric Blake.
54301 2011-05-09  Eric Blake  <eblake@redhat.com>
54303         openat: reduce syscalls in first probe of /proc
54304         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
54305         be a directory.  Simplify the probe for .. bugs.
54306         * modules/openat (Depends-on): Drop same-inode.
54307         Reported by Bastien ROUCARIES.
54309 2011-05-09  Jim Meyering  <meyering@redhat.com>
54311         maint.mk: change semantics/name of tight_scope variables
54312         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
54313         Rename variables to align with semantics that make them more useful.
54315         maint.mk: tweak new rule's name not to impinge
54316         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
54317         (sc_tight_scope): Use new rule name rather than $@-0.
54319         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
54320         * top/maint.mk (sc_tight_scope): New rule.
54321         (sc_tight_scope-0): New rule, ifdef'd out.
54322         (_gl_TS_dir): Default.
54323         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
54324         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
54326 2011-05-09  Simon Josefsson  <simon@josefsson.org>
54328         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
54329         Haible <bruno@clisp.org>.
54331 2011-05-08  Bruno Haible  <bruno@clisp.org>
54333         Comments.
54334         * m4/isnanf.m4: Add comment.
54335         * m4/isnanl.m4: Likewise.
54337 2011-05-08  Bruno Haible  <bruno@clisp.org>
54339         glob: Remove obsolete macro.
54340         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
54342 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
54344         intprops: Sun C 5.11 supports __typeof__
54345         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
54346         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
54347         which is new.
54348         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
54350         intprops: switch to usual gnulib indenting and naming
54351         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
54352         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
54354         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
54356 2011-05-08  Jim Meyering  <meyering@redhat.com>
54358         maint.mk: suppress "Entering/Leaving directory" diag in announcement
54359         * top/maint.mk (release-prep): Use make's --no-print-directory
54360         option when generating the announcement.  This eliminates the
54361         pesky "make[2]: Entering/Leaving directory" diagnostics in the
54362         generated announcement template.
54364 2011-05-08  Bruno Haible  <bruno@clisp.org>
54366         tzset: Fix gettimeofday wrapper on Solaris 2.6.
54367         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
54368         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
54370 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
54372         ignore-value, verify: Omit include files from lib_SOURCES.
54373         * modules/ignore-value, modules/verify (Makefile.am):
54374         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
54375         that leads Automake to duplicate use of am__objects_... variables
54376         in Makefile.in.  See
54377         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
54379 2011-05-07  Bruno Haible  <bruno@clisp.org>
54381         fclose: Simplify autoconf macro.
54382         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
54383         defined.
54385 2011-05-07  Bruno Haible  <bruno@clisp.org>
54387         canonicalize-lgpl: Fix autoconf macro ordering bug.
54388         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
54389         gl_STDLIB_H_DEFAULTS.
54391 2011-05-06  Eric Blake  <eblake@redhat.com>
54393         maintainer-makefile: make sc_po_check easier to tune
54394         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
54395         to probe for strings, such as an alternate location for gnulib.
54397         fclose: guarantee behavior on seekable stdin
54398         * modules/fclose (Depends-on): Add fflush.
54399         * doc/posix-functions/fclose.texi (fclose): Document this.
54400         * tests/test-fclose.c (main): Make test for this unconditional.
54402 2011-05-06  Bruno Haible  <bruno@clisp.org>
54404         fflush, fpurge: Relicense under LGPLv2+.
54405         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
54406         * modules/fpurge (License): Likewise.
54407         With permission from Eric Blake and Jim Meyering.
54408         Suggested by Eric Blake.
54410 2011-05-06  Karl Berry  <karl@gnu.org>
54412         * MODULES.html.sh (func_all_modules): remove exit.
54414 2011-05-06  Jim Meyering  <meyering@redhat.com>
54416         maint.mk: use info-gnu@ as the default only for a stable release
54417         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
54418         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
54419         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
54420         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
54422 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
54424         assert-h: new module, which supports C1X-style static_assert
54425         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
54426         * lib/verify.h: Revamp so that this can be copied into assert.h,
54427         while retaining the ability to use it standalone as before.
54428         Rename private identifiers so as not to encroach on the
54429         standard C namespace, since this is now used by assert.h.
54430         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
54431         the old verify_true.
54432         (_GL_VERIFY_TRUE): New macro, with much of the contents of
54433         the old verify_true.  Use _GL_VERIFY_TYPE.
54434         (_GL_VERIFY): New macro, with much of the contents of the old verify.
54435         (static_assert): New macro, if _GL_STATIC_ASSERT_H
54436         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
54437         defined when this file is copied into the replacement assert.h.
54438         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
54439         and _Static_assert is not built in.
54440         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
54441         defined, and use the new macros mentioned above.
54442         * doc/posix-headers/assert.texi: Document this.
54444 2011-05-05  Bruno Haible  <bruno@clisp.org>
54446         fclose, fflush: Respect rules for use of AC_LIBOBJ.
54447         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
54448         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
54449         gl_REPLACE_FCLOSE here.
54450         * modules/fflush (Depends-on): Remove fclose.
54451         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
54452         combination with module 'fclose'.
54454 2011-05-05  Bruno Haible  <bruno@clisp.org>
54456         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
54457         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
54458         gl_FUNC_FFLUSH.
54459         (gl_FUNC_FFLUSH): Use it.
54460         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
54461         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
54462         gl_REPLACE_FSEEKO here.
54464 2011-05-05  Bruno Haible  <bruno@clisp.org>
54466         tzset: Relicense under LGPL.
54467         * modules/tzset (License): Change to LGPL.
54468         No agreement needed; it's a no-op.
54470         strtoimax, strtoumax: Relicense under LGPL.
54471         * modules/strtoimax (License): Change to LGPL.
54472         * modules/strtoumax (License): Likewise.
54473         With permission from Jim Meyering, Paul Eggert:
54474         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
54475         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
54477         getgroups: Relicense under LGPL.
54478         * modules/getgroups (License): Change to LGPL.
54479         With permission from Jim Meyering, Paul Eggert, Eric Blake:
54480         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54481         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54482         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54484         nanosleep: Relicense under LGPL.
54485         * modules/nanosleep (License): Change to LGPL.
54486         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
54487         Haible:
54488         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54489         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54490         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54491         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54493         futimens: Relicense under LGPL.
54494         * modules/futimens (License): Change to LGPL.
54495         With permission from Eric Blake:
54496         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54498         fflush: Relicense under LGPL.
54499         * modules/fflush (License): Change to LGPL.
54500         With permission from Eric Blake, Bruno Haible, Jim Meyering:
54501         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54502         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54503         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
54505         tmpfile: Relicense under LGPL.
54506         * modules/tmpfile (License): Change to LGPL.
54507         With permission from Ben Pfaff:
54508         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54510         isfinite: Relicense under LGPL.
54511         * modules/isfinite (License): Change to LGPL.
54512         With permission from Ben Pfaff, Bruno Haible:
54513         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54514         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
54516         acosl..tanl: Relicense under LGPL.
54517         * modules/acosl (License): Change to LGPL.
54518         * modules/asinl (License): Likewise.
54519         * modules/atanl (License): Likewise.
54520         * modules/cosl (License): Likewise.
54521         * modules/expl (License): Likewise.
54522         * modules/logl (License): Likewise.
54523         * modules/sinl (License): Likewise.
54524         * modules/sqrtl (License): Likewise.
54525         * modules/tanl (License): Likewise.
54526         Source code originally from glibc and Paolo Bonzini. Agreements:
54527         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
54528         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
54530 2011-05-05  Bruno Haible  <bruno@clisp.org>
54532         signal: Define sighandler_t.
54533         * lib/signal.in.h (sighandler_t): New type.
54534         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
54535         whether sighandler_t is defined.
54536         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
54537         * modules/signal (Depends-on): Add extensions.
54538         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
54539         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
54540         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
54542 2011-05-05  Eric Blake  <eblake@redhat.com>
54544         maint: remove useless REPLACE_*_H macros
54545         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
54546         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
54547         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
54548         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
54549         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
54550         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
54551         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
54552         * m4/btowc.m4: Update callers.
54553         * m4/dirfd.m4: Likewise.
54554         * m4/duplocale.m4: Likewise.
54555         * m4/fchdir.m4: Likewise.
54556         * m4/fdopendir.m4: Likewise.
54557         * m4/inet_ntop.m4: Likewise.
54558         * m4/inet_pton.m4: Likewise.
54559         * m4/ioctl.m4: Likewise.
54560         * m4/mbrlen.m4: Likewise.
54561         * m4/mbrtowc.m4: Likewise.
54562         * m4/mbsinit.m4: Likewise.
54563         * m4/mbsnrtowcs.m4: Likewise.
54564         * m4/mbsrtowcs.m4: Likewise.
54565         * m4/poll.m4: Likewise.
54566         * m4/setlocale.m4: Likewise.
54567         * m4/wcrtomb.m4: Likewise.
54568         * m4/wcsnrtombs.m4: Likewise.
54569         * m4/wcsrtombs.m4: Likewise.
54570         * m4/wctob.m4: Likewise.
54571         * m4/wcwidth.m4: Likewise.
54572         * modules/posix_spawn: Likewise.
54573         * modules/posix_spawn_file_actions_addclose: Likewise.
54574         * modules/posix_spawn_file_actions_adddup2: Likewise.
54575         * modules/posix_spawn_file_actions_addopen: Likewise.
54576         * modules/posix_spawn_file_actions_destroy: Likewise.
54577         * modules/posix_spawn_file_actions_init: Likewise.
54578         * modules/posix_spawnattr_destroy: Likewise.
54579         * modules/posix_spawnattr_getflags: Likewise.
54580         * modules/posix_spawnattr_getpgroup: Likewise.
54581         * modules/posix_spawnattr_getschedparam: Likewise.
54582         * modules/posix_spawnattr_getschedpolicy: Likewise.
54583         * modules/posix_spawnattr_getsigdefault: Likewise.
54584         * modules/posix_spawnattr_getsigmask: Likewise.
54585         * modules/posix_spawnattr_init: Likewise.
54586         * modules/posix_spawnattr_setflags: Likewise.
54587         * modules/posix_spawnattr_setpgroup: Likewise.
54588         * modules/posix_spawnattr_setschedparam: Likewise.
54589         * modules/posix_spawnattr_setschedpolicy: Likewise.
54590         * modules/posix_spawnattr_setsigdefault: Likewise.
54591         * modules/posix_spawnattr_setsigmask: Likewise.
54592         * modules/posix_spawnp: Likewise.
54594 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
54596         Add option to do-release-commit-and-tag to specify branch.
54597         * build-aux/do-release-commit-and-tag: Add --branch.
54599 2011-05-03  Bruno Haible  <bruno@clisp.org>
54601         Avoid unnecessary compilation units, through conditional dependencies.
54602         * modules/accept (Depends-on): Add conditions to the dependencies.
54603         * modules/acosl (Depends-on): Likewise.
54604         * modules/argz (Depends-on): Likewise.
54605         * modules/asinl (Depends-on): Likewise.
54606         * modules/atanl (Depends-on): Likewise.
54607         * modules/atoll (Depends-on): Likewise.
54608         * modules/bind (Depends-on): Likewise.
54609         * modules/btowc (Depends-on): Likewise.
54610         * modules/canonicalize-lgpl (Depends-on): Likewise.
54611         * modules/ceil (Depends-on): Likewise.
54612         * modules/ceilf (Depends-on): Likewise.
54613         * modules/ceill (Depends-on): Likewise.
54614         * modules/chdir-long (Depends-on): Likewise.
54615         * modules/chown (Depends-on): Likewise.
54616         * modules/close (Depends-on): Likewise.
54617         * modules/connect (Depends-on): Likewise.
54618         * modules/cosl (Depends-on): Likewise.
54619         * modules/dirfd (Depends-on): Likewise.
54620         * modules/dprintf (Depends-on): Likewise.
54621         * modules/dprintf-posix (Depends-on): Likewise.
54622         * modules/error (Depends-on): Likewise.
54623         * modules/euidaccess (Depends-on): Likewise.
54624         * modules/expl (Depends-on): Likewise.
54625         * modules/faccessat (Depends-on): Likewise.
54626         * modules/fchdir (Depends-on): Likewise.
54627         * modules/fclose (Depends-on): Likewise.
54628         * modules/fcntl (Depends-on): Likewise.
54629         * modules/fdopendir (Depends-on): Likewise.
54630         * modules/fflush (Depends-on): Likewise.
54631         * modules/floor (Depends-on): Likewise.
54632         * modules/floorf (Depends-on): Likewise.
54633         * modules/floorl (Depends-on): Likewise.
54634         * modules/fnmatch (Depends-on): Likewise.
54635         * modules/fopen (Depends-on): Likewise.
54636         * modules/fprintf-posix (Depends-on): Likewise.
54637         * modules/frexp (Depends-on): Likewise.
54638         * modules/frexp-nolibm (Depends-on): Likewise.
54639         * modules/frexpl (Depends-on): Likewise.
54640         * modules/frexpl-nolibm (Depends-on): Likewise.
54641         * modules/fseek (Depends-on): Likewise.
54642         * modules/fsusage (Depends-on): Likewise.
54643         * modules/ftell (Depends-on): Likewise.
54644         * modules/ftello (Depends-on): Likewise.
54645         * modules/futimens (Depends-on): Likewise.
54646         * modules/getcwd (Depends-on): Likewise.
54647         * modules/getcwd-lgpl (Depends-on): Likewise.
54648         * modules/getdelim (Depends-on): Likewise.
54649         * modules/getdomainname (Depends-on): Likewise.
54650         * modules/getgroups (Depends-on): Likewise.
54651         * modules/gethostname (Depends-on): Likewise.
54652         * modules/getline (Depends-on): Likewise.
54653         * modules/getlogin_r (Depends-on): Likewise.
54654         * modules/getopt-posix (Depends-on): Likewise.
54655         * modules/getpeername (Depends-on): Likewise.
54656         * modules/getsockname (Depends-on): Likewise.
54657         * modules/getsockopt (Depends-on): Likewise.
54658         * modules/getsubopt (Depends-on): Likewise.
54659         * modules/getusershell (Depends-on): Likewise.
54660         * modules/glob (Depends-on): Likewise.
54661         * modules/grantpt (Depends-on): Likewise.
54662         * modules/iconv_open (Depends-on): Likewise.
54663         * modules/iconv_open-utf (Depends-on): Likewise.
54664         * modules/inet_ntop (Depends-on): Likewise.
54665         * modules/inet_pton (Depends-on): Likewise.
54666         * modules/ioctl (Depends-on): Likewise.
54667         * modules/isapipe (Depends-on): Likewise.
54668         * modules/isfinite (Depends-on): Likewise.
54669         * modules/isinf (Depends-on): Likewise.
54670         * modules/lchown (Depends-on): Likewise.
54671         * modules/ldexpl (Depends-on): Likewise.
54672         * modules/link (Depends-on): Likewise.
54673         * modules/linkat (Depends-on): Likewise.
54674         * modules/listen (Depends-on): Likewise.
54675         * modules/logl (Depends-on): Likewise.
54676         * modules/lstat (Depends-on): Likewise.
54677         * modules/mbrlen (Depends-on): Likewise.
54678         * modules/mbrtowc (Depends-on): Likewise.
54679         * modules/mbsinit (Depends-on): Likewise.
54680         * modules/mbsnrtowcs (Depends-on): Likewise.
54681         * modules/mbsrtowcs (Depends-on): Likewise.
54682         * modules/mbtowc (Depends-on): Likewise.
54683         * modules/memcmp (Depends-on): Likewise.
54684         * modules/mkdir (Depends-on): Likewise.
54685         * modules/mkdtemp (Depends-on): Likewise.
54686         * modules/mkfifo (Depends-on): Likewise.
54687         * modules/mkfifoat (Depends-on): Likewise.
54688         * modules/mknod (Depends-on): Likewise.
54689         * modules/mkostemp (Depends-on): Likewise.
54690         * modules/mkostemps (Depends-on): Likewise.
54691         * modules/mkstemp (Depends-on): Likewise.
54692         * modules/mkstemps (Depends-on): Likewise.
54693         * modules/mktime (Depends-on): Likewise.
54694         * modules/nanosleep (Depends-on): Likewise.
54695         * modules/open (Depends-on): Likewise.
54696         * modules/openat (Depends-on): Likewise.
54697         * modules/perror (Depends-on): Likewise.
54698         * modules/poll (Depends-on): Likewise.
54699         * modules/popen (Depends-on): Likewise.
54700         * modules/posix_spawn (Depends-on): Likewise.
54701         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
54702         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54703         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54704         * modules/posix_spawnp (Depends-on): Likewise.
54705         * modules/pread (Depends-on): Likewise.
54706         * modules/printf-posix (Depends-on): Likewise.
54707         * modules/ptsname (Depends-on): Likewise.
54708         * modules/putenv (Depends-on): Likewise.
54709         * modules/pwrite (Depends-on): Likewise.
54710         * modules/readline (Depends-on): Likewise.
54711         * modules/readlink (Depends-on): Likewise.
54712         * modules/readlinkat (Depends-on): Likewise.
54713         * modules/recv (Depends-on): Likewise.
54714         * modules/recvfrom (Depends-on): Likewise.
54715         * modules/regex (Depends-on): Likewise.
54716         * modules/remove (Depends-on): Likewise.
54717         * modules/rename (Depends-on): Likewise.
54718         * modules/renameat (Depends-on): Likewise.
54719         * modules/rmdir (Depends-on): Likewise.
54720         * modules/round (Depends-on): Likewise.
54721         * modules/roundf (Depends-on): Likewise.
54722         * modules/roundl (Depends-on): Likewise.
54723         * modules/rpmatch (Depends-on): Likewise.
54724         * modules/select (Depends-on): Likewise.
54725         * modules/send (Depends-on): Likewise.
54726         * modules/sendto (Depends-on): Likewise.
54727         * modules/setenv (Depends-on): Likewise.
54728         * modules/setlocale (Depends-on): Likewise.
54729         * modules/setsockopt (Depends-on): Likewise.
54730         * modules/shutdown (Depends-on): Likewise.
54731         * modules/sigaction (Depends-on): Likewise.
54732         * modules/signbit (Depends-on): Likewise.
54733         * modules/sigprocmask (Depends-on): Likewise.
54734         * modules/sinl (Depends-on): Likewise.
54735         * modules/sleep (Depends-on): Likewise.
54736         * modules/snprintf (Depends-on): Likewise.
54737         * modules/snprintf-posix (Depends-on): Likewise.
54738         * modules/socket (Depends-on): Likewise.
54739         * modules/sprintf-posix (Depends-on): Likewise.
54740         * modules/sqrtl (Depends-on): Likewise.
54741         * modules/stat (Depends-on): Likewise.
54742         * modules/strchrnul (Depends-on): Likewise.
54743         * modules/strdup-posix (Depends-on): Likewise.
54744         * modules/strerror (Depends-on): Likewise.
54745         * modules/strerror_r-posix (Depends-on): Likewise.
54746         * modules/strndup (Depends-on): Likewise.
54747         * modules/strnlen (Depends-on): Likewise.
54748         * modules/strptime (Depends-on): Likewise.
54749         * modules/strsep (Depends-on): Likewise.
54750         * modules/strsignal (Depends-on): Likewise.
54751         * modules/strstr-simple (Depends-on): Likewise.
54752         * modules/strtod (Depends-on): Likewise.
54753         * modules/strtoimax (Depends-on): Likewise.
54754         * modules/strtok_r (Depends-on): Likewise.
54755         * modules/strtoumax (Depends-on): Likewise.
54756         * modules/symlink (Depends-on): Likewise.
54757         * modules/symlinkat (Depends-on): Likewise.
54758         * modules/tanl (Depends-on): Likewise.
54759         * modules/tcgetsid (Depends-on): Likewise.
54760         * modules/tmpfile (Depends-on): Likewise.
54761         * modules/trunc (Depends-on): Likewise.
54762         * modules/truncf (Depends-on): Likewise.
54763         * modules/truncl (Depends-on): Likewise.
54764         * modules/uname (Depends-on): Likewise.
54765         * modules/unlink (Depends-on): Likewise.
54766         * modules/unlockpt (Depends-on): Likewise.
54767         * modules/unsetenv (Depends-on): Likewise.
54768         * modules/usleep (Depends-on): Likewise.
54769         * modules/utimensat (Depends-on): Likewise.
54770         * modules/vasprintf (Depends-on): Likewise.
54771         * modules/vdprintf (Depends-on): Likewise.
54772         * modules/vdprintf-posix (Depends-on): Likewise.
54773         * modules/vfprintf-posix (Depends-on): Likewise.
54774         * modules/vprintf-posix (Depends-on): Likewise.
54775         * modules/vsnprintf (Depends-on): Likewise.
54776         * modules/vsnprintf-posix (Depends-on): Likewise.
54777         * modules/vsprintf-posix (Depends-on): Likewise.
54778         * modules/wcrtomb (Depends-on): Likewise.
54779         * modules/wcscasecmp (Depends-on): Likewise.
54780         * modules/wcscspn (Depends-on): Likewise.
54781         * modules/wcsdup (Depends-on): Likewise.
54782         * modules/wcsncasecmp (Depends-on): Likewise.
54783         * modules/wcsnrtombs (Depends-on): Likewise.
54784         * modules/wcspbrk (Depends-on): Likewise.
54785         * modules/wcsrtombs (Depends-on): Likewise.
54786         * modules/wcsspn (Depends-on): Likewise.
54787         * modules/wcsstr (Depends-on): Likewise.
54788         * modules/wcstok (Depends-on): Likewise.
54789         * modules/wcswidth (Depends-on): Likewise.
54790         * modules/wctob (Depends-on): Likewise.
54791         * modules/wctomb (Depends-on): Likewise.
54792         * modules/wctype (Depends-on): Likewise.
54793         * modules/wcwidth (Depends-on): Likewise.
54794         * modules/write (Depends-on): Likewise.
54796 2011-05-03  Bruno Haible  <bruno@clisp.org>
54798         Support for conditional dependencies.
54799         * doc/gnulib.texi (Module description): Document the syntax of
54800         conditional dependencies.
54801         * gnulib-tool: New option --conditional-dependencies.
54802         (func_usage): Document it.
54803         (cond_dependencies): New variable.
54804         (func_get_automake_snippet_conditional,
54805         func_get_automake_snippet_unconditional): New functions, extracted from
54806         func_get_automake_snippet.
54807         (func_get_automake_snippet): Use them.
54808         (sed_first_32_chars): New variable.
54809         (func_module_shellfunc_name): New function.
54810         (func_module_shellvar_name): New function.
54811         (func_module_conditional_name): New function.
54812         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
54813         func_cond_module_condition): New functions.
54814         (func_modules_transitive_closure): Add support for conditional
54815         dependencies.
54816         (func_emit_lib_Makefile_am): For a conditional module, enclose the
54817         conditional automake snippet in an automake conditional.
54818         (func_emit_autoconf_snippets): Emit shell functions that contain the
54819         code for conditional modules.
54820         (func_import, func_create_testdir): Update specification.
54822 2011-05-03  Eric Blake  <eblake@redhat.com>
54824         test-getaddrinfo: report error information
54825         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
54827 2011-05-03  Jim Meyering  <meyering@redhat.com>
54829         bootstrap: avoid build failure when $GZIP is set
54830         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
54831         program name.  If defined at all, it is supposed to list gzip options.
54832         Reported by Alan Curry in http://debbugs.gnu.org/8609
54834 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
54836         readme-release: new module with release instructions
54837         * modules/readme-release: New module.
54838         * top/README-release: New file, from coreutils, grep, diffutils.
54839         * MODULES.html.sh (Support for maintaining and releasing): Add it.
54841 2011-05-02  Eric Blake  <eblake@redhat.com>
54843         fflush: also replace fclose when fixing fflush
54844         * modules/fflush (Depends-on): Add fclose.
54845         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
54846         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
54847         memstreams with no backing fd.
54848         * doc/posix-functions/fclose.texi (fclose): Document the use of
54849         fflush module to fix the bug.
54850         * tests/test-fclose.c (main): Relax test when fclose is used in
54851         isolation.
54853         fclose: add some tests
54854         * modules/fclose-tests: New test module.
54855         * tests/test-fclose.c: New file.
54856         * doc/posix-functions/fclose.texi (fclose): Document the bug.
54858         fclose: reduced dependencies
54859         * modules/fclose (Depends-on): Switch from fflush/fseeko to
54860         simpler lseek.
54861         * lib/fclose.c (rpl_fclose): Likewise.
54862         Reported by Simon Josefsson.
54864         exit: drop remaining clients
54865         * modules/argmatch (Depends-on): Replace exit with stdlib.
54866         * modules/copy-file (Depends-on): Likewise.
54867         * modules/execute (Depends-on): Likewise.
54868         * modules/exitfail (Depends-on): Likewise.
54869         * modules/obstack (Depends-on): Likewise.
54870         * modules/pagealign_alloc (Depends-on): Likewise.
54871         * modules/pipe-filter-gi (Depends-on): Likewise.
54872         * modules/pipe-filter-ii (Depends-on): Likewise.
54873         * modules/savewd (Depends-on): Likewise.
54874         * modules/spawn-pipe (Depends-on): Likewise.
54875         * modules/wait-process (Depends-on): Likewise.
54876         * modules/xsetenv (Depends-on): Likewise.
54877         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
54878         * modules/git-merge-changelog (Depends-on): Likewise.
54879         * modules/long-options (Depends-on): Likewise.
54880         * modules/pt_chown (Depends-on): Likewise.
54881         * modules/sysexits (Depends-on): Likewise.
54883         freading: relax license from LGPLv3+ to LGPLv2+
54884         * modules/freading (License): Relax LGPL version.
54886 2011-05-02  Bruno Haible  <bruno@clisp.org>
54888         fchdir: Remove unused dependencies.
54889         * modules/fchdir (Depends-on): Remove include_next.
54891 2011-05-02  Bruno Haible  <bruno@clisp.org>
54893         gnulib-tool: Refactor.
54894         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
54895         from func_emit_autoconf_snippets.
54896         (func_emit_autoconf_snippets): Use it.
54898 2011-05-02  Simon Josefsson  <simon@josefsson.org>
54900         * NEWS: Document removal of 'exit'.
54901         * modules/exit: Remove file.
54903 2011-05-01  Bruno Haible  <bruno@clisp.org>
54905         Update DEPENDENCIES.
54906         * DEPENDENCIES (gettext): Recommend the newest release.
54907         Reported by Simon Josefsson.
54909 2011-05-01  Bruno Haible  <bruno@clisp.org>
54911         gnulib-tool: Reduce code duplication.
54912         * gnulib-tool (func_emit_autoconf_snippets): New function.
54913         (func_import, func_create_testdir): Use it.
54915 2011-04-30  Eric Blake  <eblake@redhat.com>
54917         fclose: don't fail on non-seekable input stream
54918         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
54919         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
54920         since fflush is allowed to fail in that case.
54922 2011-04-30  Bruno Haible  <bruno@clisp.org>
54924         dup3: cleanup
54925         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
54927 2011-04-30  Bruno Haible  <bruno@clisp.org>
54929         netdb: Make it work in C++ mode.
54930         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
54931         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
54932         module.
54933         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
54934         gl_MODULE_INDICATOR_FOR_TESTS.
54935         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
54936         * modules/netdb-c++-tests: New file.
54937         * tests/test-netdb-c++.cc: New file.
54939 2011-04-30  Bruno Haible  <bruno@clisp.org>
54941         New modules 'vfscanf', 'vscanf'.
54942         * modules/vfscanf: New file.
54943         * modules/vscanf: New file.
54944         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
54945         here.
54946         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
54947         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
54949 2011-04-30  Bruno Haible  <bruno@clisp.org>
54951         passfd: Add comments.
54952         * lib/passfd.c: Add comments about platforms.
54954 2011-04-30  Bruno Haible  <bruno@clisp.org>
54956         sys_uio: Make <sys/uio.h> self-contained.
54957         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
54958         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
54960 2011-04-30  Bruno Haible  <bruno@clisp.org>
54962         sys_socket: Ensure 'struct iovec' definition.
54963         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
54964         <sys/socket.h>.
54965         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
54967 2011-04-30  Bruno Haible  <bruno@clisp.org>
54969         sys_uio: Protect definition of 'struct iovec'.
54970         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
54971         it as a C struct.
54973 2011-04-30  Bruno Haible  <bruno@clisp.org>
54975         manywarnings: fix indentation
54976         * m4/manywarnings.m4: Indent by 2 spaces consistently.
54978 2011-04-30  Pádraig Brady  <P@draigBrady.com>
54980         manywarnings: add -Wno-missing-field-initializers if needed.
54981         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
54982         option if it's needed to allow initialization with { 0, }
54984 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
54986         announce-gen: cosmetic improvement
54987         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
54989 2011-04-29  Jim Meyering  <meyering@redhat.com>
54991         vc-list-files: indent with spaces, not TABs
54992         * build-aux/vc-list-files: Convert leading TABs to spaces,
54993         to match the style of most other files in gnulib.
54995         announce-gen: indent with spaces, not TABs
54996         * build-aux/announce-gen: Convert all TABs to spaces, to match
54997         the style of most other files in gnulib.
54999 2011-04-29  Eric Blake  <eblake@redhat.com>
55001         quotearg: avoid uninitialized variable use
55002         * lib/quotearg.c (quoting_options_from_style): Initialize
55003         remaining fields, and ensure that custom styles are only used via
55004         quoting_options rather than quoting_style.
55006 2011-04-29  Jim Meyering  <meyering@redhat.com>
55008         maint.mk: remove unused VC-tag variable
55009         * top/maint.mk (VC-tag): Remove unused variable.
55011 2011-04-29  Bruno Haible  <bruno@clisp.org>
55013         netdb: fix gai_strerror replacements
55014         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
55015         * modules/netdb: Substitute it.
55017 2011-04-29  Jim Meyering  <meyering@redhat.com>
55019         test-getcwd.c: avoid new set-but-not-used warning
55020         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
55021         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
55022         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
55023         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
55025         test-hash.c: avoid a new shadowing warning
55026         * tests/test-hash.c (main): Don't shadow "dup".
55028 2011-04-28  Eric Blake  <eblake@redhat.com>
55030         getaddrinfo: fix gai_strerror signature
55031         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
55032         and work around mingw with UNICODE defined.
55033         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
55034         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
55035         * modules/netdb (Makefile.am): Substitute it.
55036         * lib/netdb.in.h (gai_strerror): Declare replacement.
55037         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
55038         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
55039         the fix.
55041         getsockopt: avoid compiler warning
55042         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
55043         Reported by Matthias Bolte.
55045         tests: drop unused link dependency
55046         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
55047         * modules/dirent-safer-tests (Makefile.am): Likewise.
55048         * modules/fdopendir-tests (Makefile.am): Likewise.
55049         * modules/mkfifoat-tests (Makefile.am): Likewise.
55050         * modules/openat-safer-tests (Makefile.am): Likewise.
55051         * modules/openat-tests (Makefile.am): Likewise.
55052         * modules/readlinkat-tests (Makefile.am): Likewise.
55053         * modules/symlinkat-tests (Makefile.am): Likewise.
55054         * modules/linkat-tests (Makefile.am): Likewise.
55055         (Depends-on): Switch to filenamecat-lgpl.
55056         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
55057         LIBINTL.
55058         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
55059         * tests/test-linkat.c (main): Don't require xalloc.
55061         hash, mgetgroups: drop xalloc dependency
55062         * lib/hash.c (includes): Adjust includes.
55063         * lib/mgetgroups.c (includes): Likewise.
55064         (xgetgroups): Move...
55065         * lib/xgetgroups.c: ...to new file.
55066         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
55067         * modules/xgetgroups: New file, split from...
55068         * modules/mgetgroups: ...here.
55069         (Depends-on): Add xalloc-oversized.
55070         * modules/hash (Depends-on): Likewise.
55071         * modules/hash-tests (Depends-on): Drop xalloc.
55072         (test_hash_LDADD): Drop unused library.
55073         * tests/test-hash.c (main): Break xalloc dependency.
55074         (includes): Drop unused include.
55076         xalloc-oversized: new module
55077         * modules/xalloc-oversized: New module.
55078         * modules/xalloc (Depends-on): Add it.
55079         * lib/xalloc.h (xalloc_oversized): Move...
55080         * lib/xalloc-oversized.h: ...into new file.
55082         utimecmp: drop dependency on xmalloc
55083         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
55084         due to memory pressure.
55085         * modules/utimecmp (Depends-on): Drop xalloc.
55087 2011-04-27  Eric Blake  <eblake@redhat.com>
55089         getcwd: fix mingw bugs
55090         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
55091         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
55092         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
55094 2011-04-27  Bruno Haible  <bruno@clisp.org>
55096         mkstemps: Ensure declaration on MacOS X 10.5.
55097         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
55098         * doc/glibc-functions/mkstemps.texi: Document header file problem on
55099         MacOS X.
55101 2011-04-27  Bruno Haible  <bruno@clisp.org>
55103         mkstemp: More documentation.
55104         * doc/posix-functions/mkstemp.texi: Document header file problem on
55105         MacOS X.
55107 2011-04-27  Bruno Haible  <bruno@clisp.org>
55109         mkstemp: Tweak configure message when cross-compiling.
55110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
55111         result as a guess.
55113 2011-04-27  Bruno Haible  <bruno@clisp.org>
55115         clean-temp: Clarify what it does.
55116         * lib/clean-temp.h: Add more comments.
55117         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
55118         module.
55119         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
55120         * doc/glibc-functions/mkstemps.texi: Likewise.
55121         * doc/glibc-functions/mkostemps.texi: Likewise.
55123 2011-04-27  Eric Blake  <eblake@redhat.com>
55125         fchdir: avoid extra chdir and fix test
55126         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
55127         getcwd-lgpl.
55128         * lib/fchdir.c (get_name): Any absolute name will do; it does not
55129         have to be canonical.
55130         (canonicalize_file_name): Drop unused macro.
55131         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
55133         filenamecat-lgpl: fix licence
55134         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
55135         when it was first created.
55137         linkat, renameat: add missing dependency
55138         * modules/linkat (Depends-on): Require getcwd-lgpl.
55139         * modules/renameat (Depends-on): Likewise.
55141         tests: reduce dependencies
55142         * tests/test-linkat.c (main): Use lighter-weight getcwd.
55143         * tests/test-renameat.c (main): Likewise.
55144         * modules/linkat-tests (Depends-on): Relax dependency.
55145         * modules/renameat-tests (Depends-on): Likewise.
55146         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
55147         dependency explicit.
55149         save-cwd: reduce default dependency
55150         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
55151         * lib/save-cwd.c: Update comments.
55152         * NEWS: Document the semantic change.
55154         getcwd: enhance tests
55155         * tests/test-getcwd-lgpl.c: New file, taken from...
55156         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
55157         repeat long path stress tests from m4 probe.
55158         * modules/getcwd-lgpl-tests: New module.
55159         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
55160         * m4/getcwd-abort-bug.m4: Update comment.
55161         * m4/getcwd-path-max.m4: Likewise.
55163         getcwd-lgpl: new module
55164         * modules/getcwd-lgpl: New module.
55165         * lib/getcwd-lgpl.c: New file.
55166         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55167         * MODULES.html.sh (lacking POSIX:2008): Likewise.
55168         * modules/getcwd (configure.ac): Set C witness.
55169         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
55171         getcwd: tweak comments
55172         * m4/getcwd-abort-bug.m4: Fix comments.
55173         * m4/getcwd-path-max.m4: Likewise.
55174         * m4/getcwd.m4: Likewise.
55176 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55177         and Eric Blake  <eblake@redhat.com>
55179         mkstemp: replace if system version uses wrong permissions
55180         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
55181         read/write mode bits set in file created by mkstemp.
55182         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
55184 2011-04-27  Eric Blake  <eblake@redhat.com>
55186         passfd: avoid compiler warning
55187         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
55188         Reported by Laine Stump.
55190 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
55192         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
55193         required by the NetBSD (and perhaps other 4.4BSD derived) join.
55195 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55196         and Eric Blake  <eblake@redhat.com>
55198         mkstemp: mention clean-temp module
55199         * lib/mkstemp.c: Add comment.
55200         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
55202 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
55204         inttypes: also provide default values for 32-bit tests
55205         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
55206         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
55208 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55210         strtoumax: remove dependency on strtoimax
55211         This is like the strtoull change of yesterday.
55212         * modules/strtoumax (Files): Add lib/strtoimax.c.
55213         (Depends-on): Remove strtoimax and add verify.
55215         inttypes-incomplete: new module
55216         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
55217         all but the PRI* and SCN* parts of gl_INTTYPES_H.
55218         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
55219         of gl_INTTYPES_H.
55220         (gl_INTTYPES_H): Rewrite in terms of these new macros.
55221         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
55222         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
55223         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
55224         * modules/strtoumax, modules/xstrtol (Depends-on):
55225         Depend on inttypes-incomplete, not inttypes.
55226         * modules/inttypes-incomplete: New module, containing the contents
55227         of the old modules/inttypes module, except that the Files: section
55228         omits m4/inttypes-pri.m4, and the configure.ac section invokes
55229         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
55230         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
55231         (Depends-on): Depend only on inttypes-incomplete.
55232         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
55234         inttypes: omit now-redundant strtoimax and strtoumax work
55235         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
55236         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
55238         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
55239         This supports apps that need pointers to strtoimax and strtoumax,
55240         and ports to HP-UX 11.00 64.bit, which has macros that expand to
55241         nonexistent functions.  See
55242         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
55243         et seq.
55244         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
55245         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
55246         a macro.
55247         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55249 2011-04-25  Simon Josefsson  <simon@josefsson.org>
55251         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
55253 2011-04-25  Bruno Haible  <bruno@clisp.org>
55255         strtol, strtoul: Mark modules as obsolete.
55256         * modules/strtol (Status, Notice): New sections.
55257         * modules/strtoul (Status, Notice): New sections.
55259 2011-04-25  Bruno Haible  <bruno@clisp.org>
55261         strtod: Remove check for strtod, unless supporting old platforms.
55262         * modules/strtod-obsolete: New file.
55263         * m4/strtod-obsolete.m4: New file.
55264         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
55265         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
55266         * modules/strtod (Depends-on): Add strtod-obsolete.
55267         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
55269 2011-04-25  Bruno Haible  <bruno@clisp.org>
55271         strcase: Make module obsolete.
55272         * modules/strcase (Status, Notice): New sections.
55274 2011-04-25  Bruno Haible  <bruno@clisp.org>
55276         dup2: Remove check for dup2, unless supporting old obsolete platforms.
55277         * modules/dup2-obsolete: New file.
55278         * m4/dup2-obsolete.m4: New file.
55279         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
55280         gl_FUNC_DUP2_OBSOLETE is not also defined.
55281         * modules/dup2 (Depends-on): Add dup2-obsolete.
55282         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
55284 2011-04-25  Bruno Haible  <bruno@clisp.org>
55286         strnlen: Avoid memchr related link error on old obsolete platforms.
55287         * modules/memchr-obsolete: New file.
55288         * m4/memchr-obsolete.m4: New file.
55289         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
55290         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
55291         * modules/memchr (Depends-on): Add memchr-obsolete.
55292         * modules/strnlen (Depends-on): Likewise.
55293         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
55295 2011-04-25  Jim Meyering  <meyering@redhat.com>
55297         maint.mk: makefile_at_at_check extend and clean up
55298         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
55299         in addition to */Makefile.am.
55300         Exempt legitimate uses of @VAR@ notation, e.g.,
55301         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
55302         Remove obsolete coreutils-specific comment.
55303         Prompted by discussion here:
55304         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
55306 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55308         strtoul: remove dependency on strtol
55309         This is so that 'configure' need not check for strtol merely because
55310         the application needs strtoul.
55311         * modules/strtoul (Files): Add lib/strtol.c.
55312         (Depends-on): Remove strtol.
55314         strtoull: remove dependency on strtoul
55315         This is like the strtoll change.
55316         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
55317         (Depends-on): Remove strtoul.
55319         strtoll: remove dependency on strtol
55320         This is so that 'configure' need not check for strtol merely because
55321         the application needs strtoll.
55322         * modules/strtoll (Files): Add lib/strtol.c.
55323         (Depends-on): Remove strtol.
55325 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55327         inttypes: Move some configure check to module 'imaxdiv'.
55328         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
55329         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
55330         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
55332 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55334         inttypes: Move some configure check to module 'imaxabs'.
55335         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
55336         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
55337         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
55339 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55341         inttypes: Remove configure tests that are not needed since 2009-12-31.
55342         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
55343         gl_cv_header_working_inttypes_h.
55345 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55347         * modules/strnlen (Depends-on): Remove memchr.
55348         The strnlen implementation doesn't need the memchr module's fixes; see
55349         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
55351         strtol: remove dependency on wchar
55352         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
55353         * modules/strtol (Depends-on): Remove wchar.
55355 2011-04-21  Eric Blake  <eblake@redhat.com>
55357         passfd: fix test regression on Linux
55358         * modules/passfd-tests (configure.ac): Correct socketpair check.
55360         passfd: speed up configure and drop unused code
55361         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
55362         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
55363         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
55364         Instead of probing at configure for unix_scm_rights_bsd44_way,
55365         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
55366         check to a struct member probe.
55367         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
55368         (sendfd, recvfd): Update preprocessor checks.
55369         * modules/passfd (Files): Reflect rename, and drop unused file.
55370         (Depends-on): Drop unused dependency.
55372         passfd: allow compilation on mingw
55373         * modules/sys_socket (Depends-on): Add sys_uio.
55374         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
55375         iovec and a minimal struct msghdr.
55376         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
55377         * tests/test-sys_socket.c (main): Enhance test.
55378         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
55379         guaranteed to provide what we need.
55380         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
55381         * modules/passfd-tests (Depends-on): Add sys_wait.
55382         * tests/test-passfd.c (main): Skip test on mingw, for now.
55383         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
55384         partial 'struct msghdr' implementation.
55386         sys_uio: new module
55387         * modules/sys_uio: New module.
55388         * modules/sys_uio-tests: Likewise.
55389         * lib/sys_uio.in.h: New file.
55390         * m4/sys_uio_h.m4: Likewise.
55391         * tests/test-sys_uio.c: Likewise.
55392         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
55393         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
55395 2011-04-20  Jim Meyering  <meyering@redhat.com>
55397         useless-if-before-free: avoid false-positive
55398         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
55399         disjunct so that it too requires a terminating ";".  Without that,
55400         this script would identify as useless one statement from gcc that
55401         was not:
55402           if (aligned_ptr)
55403             free (((void **) aligned_ptr) [-1]);
55405 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
55407         doc: update users.txt.
55408         * users.txt: Add barcode.
55410 2011-04-19  Bruno Haible  <bruno@clisp.org>
55412         ioctl: Remove link dependency on native Windows.
55413         * lib/fd-hook.h: Renamed from lib/close-hook.h.
55414         (gl_close_fn, gl_ioctl_fn): New types.
55415         (struct fd_hook): Renamed from struct close_hook. Change type of
55416         private_close_fn field. Add private_ioctl_fn field.
55417         (close_hook_fn): Add parameter for primary close method.
55418         (execute_close_hooks, execute_all_close_hooks): Likewise.
55419         (ioctl_hook_fn): New type.
55420         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
55421         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55422         argument.
55423         (unregister_fd_hook): Renamed from unregister_close_hook.
55424         * lib/fd-hook.c: Renamed from lib/close-hook.c.
55425         Don't include <unistd.h>.
55426         (close): Remove undef.
55427         (anchor): Update.
55428         (execute_close_hooks): Add argument for primary close method.
55429         (execute_all_close_hooks): Likewise.
55430         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
55431         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55432         argument. Allow each argument to be NULL.
55433         (unregister_fd_hook): Renamed from unregister_close_hook.
55434         * lib/close.c (rpl_close): Pass 'close' function pointer to
55435         execute_all_close_hooks.
55436         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
55437         (primary_ioctl): New function.
55438         (ioctl): Don't call ioctlsocket here. Instead, call
55439         execute_all_ioctl_hooks.
55440         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
55441         close method.
55442         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
55443         (fd_sockets_hook): Renamed from close_sockets_hook.
55444         (gl_sockets_startup, gl_sockets_cleanup): Update.
55445         * modules/fd-hook: Renamed from modules/close-hook. Update.
55446         * modules/close (Depends-on): Add fd-hook, remove close-hook.
55447         * modules/sockets (Depends-on): Likewise.
55448         * modules/ioctl (Depends-on): Add fd-hook.
55449         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
55450         GNULIB_SOCKET.
55452 2011-04-19  Bruno Haible  <bruno@clisp.org>
55454         Move the support of O_NONBLOCK in open() to the 'open' module.
55455         * modules/nonblocking (Depends-on): Remove 'open'.
55456         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
55457         gl_cv_have_open_O_NONBLOCK.
55458         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
55459         O_NONBLOCK support.
55460         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
55462 2011-04-17  Bruno Haible  <bruno@clisp.org>
55464         pipe2: Simplify code.
55465         * lib/pipe2.c (pipe2): Reduce code duplication.
55467 2011-04-17  Bruno Haible  <bruno@clisp.org>
55469         nonblocking: Add comment.
55470         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
55472 2011-04-17  Bruno Haible  <bruno@clisp.org>
55474         nonblocking: Add tests for sockets.
55475         * tests/test-nonblocking-socket.sh: New file.
55476         * tests/test-nonblocking-socket-main.c: New file.
55477         * tests/test-nonblocking-socket-child.c: New file.
55478         * tests/test-nonblocking-socket.h: New file.
55479         * tests/socket-server.h: New file.
55480         * tests/socket-client.h: New file.
55481         * modules/nonblocking-socket-tests: New file.
55482         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
55484 2011-04-17  Bruno Haible  <bruno@clisp.org>
55486         nonblocking: Add tests for pipes.
55487         * tests/test-nonblocking-pipe.sh: New file.
55488         * tests/test-nonblocking-pipe-main.c: New file.
55489         * tests/test-nonblocking-pipe-child.c: New file.
55490         * tests/test-nonblocking-pipe.h: New file.
55491         * tests/test-nonblocking-writer.h: New file.
55492         * tests/test-nonblocking-reader.h: New file.
55493         * tests/test-nonblocking-misc.h: New file.
55494         * modules/nonblocking-pipe-tests: New file.
55495         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
55497 2011-04-16  Bruno Haible  <bruno@clisp.org>
55499         gettext: Clarify the needed programmer actions.
55500         * modules/gettext (Notice): New field.
55501         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55503 2011-04-16  Bruno Haible  <bruno@clisp.org>
55505         strchrnul: Tweak last commit.
55506         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
55507         bug.
55508         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
55509         as in _GL_FUNCDECL_SYS.
55510         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
55511         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
55513 2011-04-15  Eric Blake  <eblake@redhat.com>
55515         strchrnul: work around cygwin bug
55516         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
55517         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
55518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
55519         * modules/string (Makefile.am): Substitute it.
55520         * lib/string.in.h (strchrnul): Use it.
55522 2011-04-15  Bruno Haible  <bruno@clisp.org>
55524         Don't require lib/stdio-write.c when only module 'stdio' is used.
55525         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
55526         invocation.
55527         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
55529 2011-04-14  Bruno Haible  <bruno@clisp.org>
55531         Support non-blocking pipe I/O in read() on native Windows.
55532         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
55533         (read): New declaration.
55534         * lib/read.c: New file.
55535         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
55536         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
55537         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
55538         vscanf): New declarations.
55539         * lib/stdio-read.c: New file.
55540         * m4/read.m4: New file.
55541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
55542         REPLACE_READ.
55543         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
55544         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55545         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
55546         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
55547         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
55548         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55549         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
55550         * modules/read: New file.
55551         * modules/nonblocking (Files): Add lib/stdio-read.c.
55552         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
55553         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
55554         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55555         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
55556         * modules/pread (Depends-on): Add read.
55557         * modules/safe-read (Depends-on): Likewise.
55558         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
55559         gets, scanf, vfscanf, vscanf): Verify signatures.
55560         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
55561         problem with non-blocking pipes.
55562         * doc/posix-functions/fgetc.texi: Likewise.
55563         * doc/posix-functions/fgets.texi: Likewise.
55564         * doc/posix-functions/fread.texi: Likewise.
55565         * doc/posix-functions/fscanf.texi: Likewise.
55566         * doc/posix-functions/getc.texi: Likewise.
55567         * doc/posix-functions/getchar.texi: Likewise.
55568         * doc/posix-functions/gets.texi: Likewise.
55569         * doc/posix-functions/scanf.texi: Likewise.
55570         * doc/posix-functions/vfscanf.texi: Likewise.
55571         * doc/posix-functions/vscanf.texi: Likewise.
55573 2011-04-14  Bruno Haible  <bruno@clisp.org>
55575         Support non-blocking pipe I/O in write() on native Windows.
55576         * lib/write.c (rpl_write): Split a write request that failed merely
55577         because the byte count was larger than the pipe buffer's size.
55578         * doc/posix-functions/write.texi: Mention the problem with large byte
55579         counts.
55581 2011-04-14  Bruno Haible  <bruno@clisp.org>
55583         wchar: Ensure that wchar_t gets defined on uClibc.
55584         * lib/wchar.in.h: On uClibc, include <stddef.h>.
55585         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
55587 2011-04-13  Bruno Haible  <bruno@clisp.org>
55589         safe-write, full-read: Avoid unnecessary compilation units.
55590         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
55591         (Depends-on): Remove safe-read. Add ssize_t.
55592         * modules/full-read (Files): Add lib/full-write.c.
55593         (Depends-on): Add full-write.
55595 2011-04-13  Bruno Haible  <bruno@clisp.org>
55597         Support non-blocking pipe I/O and SIGPIPE in pwrite().
55598         * modules/pwrite (Depends-on): Add 'write'.
55600 2011-04-13  Bruno Haible  <bruno@clisp.org>
55602         Support non-blocking pipe I/O in write() on native Windows.
55603         * lib/unistd.in.h (write): Enable replacement also if
55604         GNULIB_UNISTD_H_NONBLOCKING is 1.
55605         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
55606         (rpl_write): When failing to write on a non-blocking pipe, change
55607         errno from ENOSPC to EAGAIN.
55608         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
55609         putchar, puts, vfprintf, vprintf): Enable replacement also if
55610         GNULIB_STDIO_H_NONBLOCKING is 1.
55611         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
55612         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
55613         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
55614         CALL_WITH_SIGPIPE_EMULATION.
55615         (CALL_WITH_SIGPIPE_EMULATION): Use them.
55616         * m4/nonblocking.m4: New file.
55617         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
55618         for non-blocking I/O support.
55619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55620         GNULIB_UNISTD_H_NONBLOCKING.
55621         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
55622         required for non-blocking I/O support.
55623         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
55624         * modules/nonblocking (Files): Add m4/nonblocking.m4,
55625         lib/stdio-write.c, m4/asm-underscore.m4.
55626         (Depends-on): Add stdio, unistd.
55627         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
55628         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
55629         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
55630         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
55631         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
55632         problem with non-blocking pipes.
55633         * doc/posix-functions/fputc.texi: Likewise.
55634         * doc/posix-functions/fputs.texi: Likewise.
55635         * doc/posix-functions/fwrite.texi: Likewise.
55636         * doc/posix-functions/printf.texi: Likewise.
55637         * doc/posix-functions/putc.texi: Likewise.
55638         * doc/posix-functions/putchar.texi: Likewise.
55639         * doc/posix-functions/puts.texi: Likewise.
55640         * doc/posix-functions/vfprintf.texi: Likewise.
55641         * doc/posix-functions/vprintf.texi: Likewise.
55642         * doc/posix-functions/write.texi: Likewise.
55644 2011-04-10  Jim Meyering  <meyering@redhat.com>
55646         maint.mk: prohibit doubled words
55647         Detect them also when they're separated by a newline.
55648         There are 3 ways to customize it:
55649           - disable the test on a per file basis, as usual with rules using
55650             $(VC_LIST_EXCEPT)
55651           - replace the default doubled-word-selecting regexp (affects all files)
55652           - ignore a particular file-vs-doubled-word match
55653         I nearly used that last one to ignore the "is is" match in
55654         coreutils' NEWS file, since the text was "ls -is is ..."
55655         To do that, I would have added this line to cfg.mk:
55656           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
55657         but it would have ignored any "is is" match in NEWS.
55658         Low probability, but still...
55659         Instead, I changed the text, slightly:
55660           -  ls -is is now consistent with ls -lis in ignoring values returned
55661           +  "ls -is" is now consistent with ls -lis in ignoring values returned
55662         * top/maint.mk (prohibit_double_word_RE_): Provide default.
55663         (prohibit_doubled_word_): Define.
55664         (sc_prohibit_doubled_word): New rule.
55665         (sc_prohibit_the_the): Remove.  Subsumed by the above.
55667 2011-04-10  Jim Meyering  <meyering@redhat.com>
55669         maint: fix doubled-word typo in comment
55670         * m4/gethostname.m4: s/is is/it is/
55671         * m4/getdomainname.m4: Likewise.
55673 2011-04-10  Jim Meyering  <meyering@redhat.com>
55675         maint: remove doubled word: s/it it/it/
55676         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
55678 2011-04-10  Jim Meyering  <meyering@redhat.com>
55680         maint.mk: remove useless semicolon and backslash
55681         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
55682         semicolon and backslash.
55684 2011-04-10  Bruno Haible  <bruno@clisp.org>
55686         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
55687         * modules/stdint-tests (Depends-on): Add wchar.
55689 2011-04-10  Jim Meyering  <meyering@redhat.com>
55691         maint: remove doubled words in comments, e.g., s/a a/a/
55692         * lib/strptime.c (day_of_the_week): s/the the/the/
55693         * tests/test-chown.h (test_chown): s/a a/a/
55695         test-chown.h: correct a cast
55696         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
55697         when the destination is a stat.st_gid.
55699 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
55701         getaddrinfo: Fix test for sa_len member.
55702         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
55703         include <sys/types.h> before <sys/socket.h>.
55705 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55707         maint: change "can not" to "cannot"
55708         * doc/posix-functions/iconv.texi (iconv): This one crossed line
55709         boundaries.
55711 2011-04-09  Jim Meyering  <meyering@redhat.com>
55713         maint: change "a a" to "a"
55714         * tests/test-lchown.h (test_lchown): s/a a/a/
55716         maint.mk: prohibit \<the the\>
55717         * top/maint.mk (sc_prohibit_the_the): New rule.
55719         maint: fix "the the" in comment
55720         * lib/count-one-bits.h: s/the the/the/
55722         maint: change "can not" to "cannot"
55723         But do not change the occurrences in maintain.texi or in
55724         build-aux/po/Makefile.in.in, which I presume comes from gettext.
55725         * doc/gnulib-tool.texi: s/can not/cannot/
55726         * doc/posix-functions/accept.texi (accept): Likewise.
55727         * doc/posix-functions/socket.texi (socket): Likewise.
55728         * lib/mbrtowc.c: Likewise.
55730         maint.mk: prohibit use of "can not"
55731         * top/maint.mk (sc_prohibit_can_not): New rule.
55732         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
55734 2011-04-09  Bruno Haible  <bruno@clisp.org>
55736         careadlinkat: Guard against misuse of careadlinkatcwd.
55737         * lib/careadlinkat.c: Include <stdlib.h>.
55738         (careadlinkatcwd): Check that the fd argument is as expected.
55740 2011-04-09  Bruno Haible  <bruno@clisp.org>
55742         careadlinkat: Use common coding style.
55743         * lib/careadlinkat.c: Move gnulib includes after system includes.
55745 2011-04-09  Bruno Haible  <bruno@clisp.org>
55747         careadlinkat: Clarify specification.
55748         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
55749         (careadlinkatcwd): Add comment.
55750         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
55752 2011-04-09  Bruno Haible  <bruno@clisp.org>
55754         areadlinkat: Avoid link error on many platforms.
55755         * modules/areadlinkat (Depends-on): Add areadlink.
55757 2011-04-09  Bruno Haible  <bruno@clisp.org>
55759         allocator, careadlinkat: Fix double-inclusion guard.
55760         * lib/allocator.h: Fix double-inclusion guard.
55761         * lib/careadlinkat.h: Likewise.
55763 2011-04-09  Bruno Haible  <bruno@clisp.org>
55765         relocatable-prog-wrapper: Update after module 'areadlink' changed.
55766         * lib/relocwrapper.c: Update dependencies hierarchy.
55767         * build-aux/install-reloc: Update list of files to be compiled.
55768         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
55769         lib/allocator.[hc].
55771 2011-04-08  Eric Blake  <eblake@redhat.com>
55773         strftime: silence gnulib-tool warning
55774         * modules/strftime-tests (Depends-on): Drop automatic dependency.
55776 2011-04-08  Bruno Haible  <bruno@clisp.org>
55778         verify: Fix syntax error with GCC 4.6 in C++ mode.
55779         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
55780         (HAVE_STATIC_ASSERT): New macro.
55781         (verify_true, verify): Use 'static_assert' if it is supported and
55782         '_Static_assert' is not supported.
55784 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
55786         allocator: New module.
55787         * modules/allocator, lib/allocator.c: New files.
55788         * lib/allocator.h (stdlib_allocator): New decl.
55789         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
55790         Remove.  Do not include <stdlib.h>.
55791         (careadlinkat): Use stdlib_allocator instead of rolling our own.
55792         * modules/careadlinkat (Files): Remove lib/allocator.h.
55793         (Depends-on): Add allocator.
55795         stdlib: let modules use system malloc, realloc
55796         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
55797         if !_GL_USE_STDLIB_ALLOC.
55798         (malloc, realloc): Limit this change to a smaller scope.
55800         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
55801         (malloc, realloc): Don't #undef; no longer needed.
55802         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55803         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55804         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
55805         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55806         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55807         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55808         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
55809         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
55811         careadlinkat: rename members to avoid problem
55812         * lib/allocator.h (struct allocator): Rename members from
55813         malloc/realloc to allocate/reallocate, to avoid problems if malloc
55814         and realloc are #define'd.  Reported by Eric Blake in
55815         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
55816         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
55818 2011-04-08  Eric Blake  <eblake@redhat.com>
55820         nonblocking: reduce dependency
55821         * tests/test-nonblocking.c: Only test sockets when in use.
55822         * modules/nonblocking-tests (Depends-on): Drop socket.
55823         (Makefile.am): Link even if sockets are not present.
55824         * modules/pipe2-tests (Makefile.am): Likewise.
55825         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
55827         pipe2: fix O_NONBLOCK support on mingw
55828         * modules/pipe2 (Depends-on): Add nonblocking.
55829         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
55830         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
55831         * tests/test-nonblocking.c (main): Likewise.
55832         * modules/pipe2-tests (Makefile.am): Avoid link failure.
55834         fcntl-h: fix O_ACCMODE on cygwin
55835         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
55836         * lib/fcntl.in.h (O_ACCMODE): Fix it.
55838         pipe-filter: drop O_NONBLOCK workarounds
55839         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
55840         * modules/pipe-filter-ii (Depends-on): Likewise.
55841         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
55843         nonblocking: provide O_NONBLOCK for mingw
55844         * modules/nonblocking (Depends-on): Add open.
55845         (configure.ac): Set new witness macro.
55846         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
55847         * modules/fcntl-h (Makefile.am): Substitute it.
55848         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
55849         nonblocking module is in use.
55850         * lib/nonblocking.c: Adjust portability test.
55851         * lib/open.c (open): Don't let native open see gnulib flag.
55852         * tests/test-fcntl-h.c (main): Enhance test.
55853         * tests/test-open.h (test_open): Likewise.
55854         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
55856         careadlinkat: fix compilation error on mingw
55857         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
55858         within struct allocator.
55860 2011-04-06  Eric Blake  <eblake@redhat.com>
55862         binary-io: relicense under LGPLv2+
55863         * modules/binary-io (License): Relax to LGPLv2+.
55864         Requested for libvirt, and required by pipe2.
55866 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
55868         verify: use _Static_assert if available
55869         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
55870         (verify_true, verify): Use it if available.  This generates better
55871         diagnostics with GCC 4.6.0 and later.
55873 2011-04-05  Bruno Haible  <bruno@clisp.org>
55875         Remove leftover generated .h files after config.status changed.
55877         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
55878         GL_GENERATE_ALLOCA_H.
55879         * modules/alloca-opt (Makefile.am): Remove alloca.h if
55880         GL_GENERATE_ALLOCA_H evaluates to false.
55882         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
55883         GL_GENERATE_ARGZ_H.
55884         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
55885         evaluates to false.
55887         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
55888         GL_GENERATE_BYTESWAP_H.
55889         * modules/byteswap (Makefile.am): Remove byteswap.h if
55890         GL_GENERATE_BYTESWAP_H evaluates to false.
55892         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
55893         GL_GENERATE_ERRNO_H.
55894         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
55895         evaluates to false.
55897         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
55898         GL_GENERATE_FLOAT_H.
55899         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
55900         evaluates to false.
55902         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
55903         GL_GENERATE_FNMATCH_H.
55904         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
55905         GL_GENERATE_FNMATCH_H evaluates to false.
55907         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
55908         GL_GENERATE_GLOB_H.
55909         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
55910         evaluates to false.
55912         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
55913         automake conditional GL_GENERATE_ICONV_H.
55914         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
55915         evaluates to false.
55917         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
55918         GL_GENERATE_NETINET_IN_H.
55919         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
55920         GL_GENERATE_NETINET_IN_H evaluates to false.
55922         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
55923         conditional GL_GENERATE_PTHREAD_H.
55924         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
55925         * modules/pthread (Makefile.am): Remove pthread.h if
55926         GL_GENERATE_PTHREAD_H evaluates to false.
55928         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
55929         GL_GENERATE_SCHED_H.
55930         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
55931         evaluates to false.
55933         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
55934         conditional GL_GENERATE_SELINUX_CONTEXT_H.
55935         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
55936         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
55938         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
55939         GL_GENERATE_STDARG_H.
55940         * modules/stdarg (Makefile.am): Remove stdarg.h if
55941         GL_GENERATE_STDARG_H evaluates to false.
55943         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
55944         GL_GENERATE_STDBOOL_H.
55945         * modules/stdbool (Makefile.am): Remove stdbool.h if
55946         GL_GENERATE_STDBOOL_H evaluates to false.
55948         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
55949         conditional GL_GENERATE_STDDEF_H.
55950         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
55951         * modules/stddef (Makefile.am): Remove stddef.h if
55952         GL_GENERATE_STDDEF_H evaluates to false.
55954         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
55955         GL_GENERATE_STDINT_H.
55956         * modules/stdint (Makefile.am): Remove stdint.h if
55957         GL_GENERATE_STDINT_H evaluates to false.
55959         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
55960         GL_GENERATE_SYSEXITS_H.
55961         * modules/sysexits (Makefile.am): Remove sysexits.h if
55962         GL_GENERATE_SYSEXITS_H evaluates to false.
55964         Reported by Karl Berry and Ralf Wildenhues.
55966 2011-04-05  Bruno Haible  <bruno@clisp.org>
55968         Ensure to rebuild generated .h files when config.status has changed.
55969         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
55970         config.status.
55971         * modules/ctype (Makefile.am): Likewise.
55972         * modules/dirent (Makefile.am): Likewise.
55973         * modules/errno (Makefile.am): Likewise.
55974         * modules/fcntl-h (Makefile.am): Likewise.
55975         * modules/float (Makefile.am): Likewise.
55976         * modules/getopt-posix (Makefile.am): Likewise.
55977         * modules/glob (Makefile.am): Likewise.
55978         * modules/iconv-h (Makefile.am): Likewise.
55979         * modules/inttypes (Makefile.am): Likewise.
55980         * modules/langinfo (Makefile.am): Likewise.
55981         * modules/locale (Makefile.am): Likewise.
55982         * modules/math (Makefile.am): Likewise.
55983         * modules/netdb (Makefile.am): Likewise.
55984         * modules/netinet_in (Makefile.am): Likewise.
55985         * modules/poll-h (Makefile.am): Likewise.
55986         * modules/pthread (Makefile.am): Likewise.
55987         * modules/pty (Makefile.am): Likewise.
55988         * modules/sched (Makefile.am): Likewise.
55989         * modules/search (Makefile.am): Likewise.
55990         * modules/selinux-h (Makefile.am): Likewise.
55991         * modules/signal (Makefile.am): Likewise.
55992         * modules/spawn (Makefile.am): Likewise.
55993         * modules/stdarg (Makefile.am): Likewise.
55994         * modules/stdbool (Makefile.am): Likewise.
55995         * modules/stddef (Makefile.am): Likewise.
55996         * modules/stdint (Makefile.am): Likewise.
55997         * modules/stdio (Makefile.am): Likewise.
55998         * modules/stdlib (Makefile.am): Likewise.
55999         * modules/string (Makefile.am): Likewise.
56000         * modules/strings (Makefile.am): Likewise.
56001         * modules/sys_file (Makefile.am): Likewise.
56002         * modules/sys_ioctl (Makefile.am): Likewise.
56003         * modules/sys_select (Makefile.am): Likewise.
56004         * modules/sys_socket (Makefile.am): Likewise.
56005         * modules/sys_stat (Makefile.am): Likewise.
56006         * modules/sys_time (Makefile.am): Likewise.
56007         * modules/sys_times (Makefile.am): Likewise.
56008         * modules/sys_utsname (Makefile.am): Likewise.
56009         * modules/sys_wait (Makefile.am): Likewise.
56010         * modules/sysexits (Makefile.am): Likewise.
56011         * modules/termios (Makefile.am): Likewise.
56012         * modules/time (Makefile.am): Likewise.
56013         * modules/unistd (Makefile.am): Likewise.
56014         * modules/wchar (Makefile.am): Likewise.
56015         * modules/wctype-h (Makefile.am): Likewise.
56016         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
56018 2011-04-05  Bruno Haible  <bruno@clisp.org>
56020         pipe2: Relicense under LGPLv2+.
56021         * modules/pipe2 (License): Change to LGPLv2+.
56022         Requested by Eric Blake, for libvirt.
56024 2011-04-05  Bruce Korb  <bkorb@gnu.org>
56026         bootstrap: compute gnulib_extra_files after updating build_aux
56027         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
56028         change build_aux or also supply gnulib_extra_files.  Handle correctly.
56030 2011-04-05  Eric Blake  <eblake@redhat.com>
56032         bootstrap: preserve git whitelist item sorting
56033         * build-aux/bootstrap (sort_patterns): New function.
56034         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
56036 2011-04-05  Simon Josefsson  <simon@josefsson.org>
56038         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
56039         sc_space_tab check.
56041 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
56043         areadlink, areadlinkat: rewrite in terms of careadlinkat
56044         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
56045         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
56046         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
56047         (malloc, realloc): Remove #undefs.
56048         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
56049         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
56050         readlink, ssize_t, stdint, unistd.
56051         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
56052         areadlink, stdint.
56054         careadlinkat: new module
56055         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
56056         * modules/careadlinkat: New files, written by me with
56057         a review and feedback from Ben Pfaff in
56058         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
56060 2011-04-01  Bruno Haible  <bruno@clisp.org>
56062         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
56063         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
56064         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
56065         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
56066         Reported by Bruce Korb <bruce.korb@gmail.com>.
56068 2011-04-01  Bruno Haible  <bruno@clisp.org>
56070         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
56071         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
56072         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
56073         * modules/wcpcpy (Depends-on): Add extensions.
56074         * modules/wcpncpy (Depends-on): Likewise.
56075         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
56076         systems.
56077         * doc/posix-functions/wcpncpy.texi: Likewise.
56078         * doc/posix-functions/wcwidth.texi: Likewise.
56080 2011-03-31  Eric Blake  <eblake@redhat.com>
56082         nonblocking: fix mingw test failures
56083         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
56084         non-blocking flag on regular file.
56085         (get_nonblocking_flag): Set errno on invalid fd.
56086         * tests/test-nonblocking.c (main): Avoid test failure on
56087         directories if fchdir is not active.
56088         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
56090 2011-03-31  Bruno Haible  <bruno@clisp.org>
56092         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
56093         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
56094         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
56095         Reported by Simon Josefsson <simon@josefsson.org>.
56097 2011-03-31  Bruno Haible  <bruno@clisp.org>
56098         and Eric Blake  <eblake@redhat.com>
56100         nonblocking: new module
56101         * modules/nonblocking: New module.
56102         * modules/nonblocking-tests: Likewise.
56103         * lib/nonblocking.h: New file.
56104         * lib/nonblocking.c: Likewise.
56105         * tests/test-nonblocking.c: New test.
56106         * lib/ioctl.c (ioctl) [mingw]: Update comment.
56108 2011-03-30  Bruno Haible  <bruno@clisp.org>
56110         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
56111         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
56112         instead of 'printf' format for GCC >= 4.4.
56113         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
56114         (fprintf, printf, vfprintf, vprintf): Declare with
56115         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
56116         the system's vfprintf() function.
56117         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
56119 2011-03-30  Eric Blake  <eblake@redhat.com>
56121         passfd: fix scoping bug
56122         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
56123         before sendmsg/recvmsg.
56125         passfd: standardize coding conventions
56126         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
56127         can be learned at compile time.
56128         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
56129         ifdefs.
56130         (sendfd, recvfd): Follow gnulib code conventions.
56132         passfd: fix incorrect sendmsg arguments
56133         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
56134         incorrect msg_controllen value.
56135         * modules/passfd-tests (Depends-on): Check for alarm.
56136         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
56137         Reported by Bastien ROUCARIES.
56139 2011-03-30  Bruno Haible  <bruno@clisp.org>
56141         c-strcasestr: Relicense under LGPLv2+.
56142         * modules/c-strcasestr (License): Change to LGPLv2+.
56143         Requested by Eric Blake, for libvirt.
56145 2011-03-30  Simon Josefsson  <simon@josefsson.org>
56147         * users.txt: Add libidn2.  Fix libtasn1 link.
56149 2011-03-30  Jim Meyering  <meyering@redhat.com>
56151         tests: readlink* ("",... fails with EINVAL on newer kernels
56152         readlink and readlinkat have typically failed with ENOENT for
56153         the invalid, empty file name,  "".  However, with the advent
56154         of linux-2.6.39, they fail with EINVAL.
56155         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
56156         when operating on the empty file name.
56157         * tests/test-readlink.h (test_readlink): Likewise.
56159 2011-03-29  Bruno Haible  <bruno@clisp.org>
56161         Relicense some modules under LGPLv2+, for libidn2.
56162         * modules/array-mergesort (License): Change to LGPLv2+.
56163         * modules/c-strcaseeq (License): Likewise.
56164         * modules/striconveh (License): Likewise.
56165         * modules/striconveha (License): Likewise.
56166         * modules/uniconv/base (License): Likewise.
56167         * modules/uniconv/u8-conv-from-enc (License): Likewise.
56168         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
56169         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
56170         * modules/unictype/base (License): Likewise.
56171         * modules/unictype/bidiclass-of (License): Likewise.
56172         * modules/unictype/category-M (License): Likewise.
56173         * modules/unictype/category-none (License): Likewise.
56174         * modules/unictype/category-of (License): Likewise.
56175         * modules/unictype/category-test (License): Likewise.
56176         * modules/unictype/category-test-withtable (License): Likewise.
56177         * modules/unictype/combining-class (License): Likewise.
56178         * modules/unictype/joiningtype-of (License): Likewise.
56179         * modules/unictype/scripts (License): Likewise.
56180         * modules/uninorm/base (License): Likewise.
56181         * modules/uninorm/canonical-decomposition (License): Likewise.
56182         * modules/uninorm/composition (License): Likewise.
56183         * modules/uninorm/decompose-internal (License): Likewise.
56184         * modules/uninorm/decomposition-table (License): Likewise.
56185         * modules/uninorm/nfc (License): Likewise.
56186         * modules/uninorm/nfd (License): Likewise.
56187         * modules/uninorm/u32-normalize (License): Likewise.
56188         * modules/unistr/base (License): Likewise.
56189         * modules/unistr/u32-cpy (License): Likewise.
56190         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
56191         * modules/unistr/u32-to-u8 (License): Likewise.
56192         * modules/unistr/u32-uctomb (License): Likewise.
56193         * modules/unistr/u8-check (License): Likewise.
56194         * modules/unistr/u8-mblen (License): Likewise.
56195         * modules/unistr/u8-mbtouc (License): Likewise.
56196         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
56197         * modules/unistr/u8-mbtoucr (License): Likewise.
56198         * modules/unistr/u8-prev (License): Likewise.
56199         * modules/unistr/u8-strlen (License): Likewise.
56200         * modules/unistr/u8-to-u32 (License): Likewise.
56201         * modules/unistr/u8-uctomb (License): Likewise.
56202         * modules/unitypes (License): Likewise.
56203         Requested by Simon Josefsson.
56205 2011-03-29  Simon Josefsson  <simon@josefsson.org>
56207         lib-symbol-visibility: Add a notice.
56208         * modules/lib-symbol-visibility (Notice): New field.
56210 2011-03-29  Bruno Haible  <bruno@clisp.org>
56212         getaddrinfo: Doc fix.
56213         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
56214         section "fixed in Gnulib".
56216 2011-03-28  Simon Josefsson  <simon@josefsson.org>
56218         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
56219         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
56221 2011-03-26  Bruno Haible  <bruno@clisp.org>
56223         unictype/property-byname: Reduce the number of load-time relocations.
56224         * lib/unictype/pr_byname.c: Include <stdlib.h>.
56225         (UC_PROPERTY_INDEX_*): New enumeration values.
56226         (uc_property_byname): Convert an index from the lookup table to an
56227         uc_property_t.
56228         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
56229         values.
56231 2011-03-26  Bruno Haible  <bruno@clisp.org>
56233         unictype/property-byname: Allow omitted word separators and aliases.
56234         * lib/unictype/pr_byname.gperf: Add property names without word
56235         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
56236         for 'space'.
56238 2011-03-26  Bruno Haible  <bruno@clisp.org>
56240         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
56241         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
56242         also hyphens to space.
56243         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
56244         without spaces.
56245         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
56247 2011-03-26  Bruno Haible  <bruno@clisp.org>
56249         unictype/joiningtype-byname: Recognize long names as well.
56250         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
56251         a long name.
56252         * lib/unictype/joiningtype_byname.c: Include <string.h>,
56253         unictype/joiningtype_byname.h.
56254         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
56255         * lib/unictype/joiningtype_byname.gperf: New file.
56256         * modules/unictype/joiningtype-byname (Files): Add
56257         lib/unictype/joiningtype_byname.gperf.
56258         (Depends-on): Add gperf.
56259         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
56260         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
56261         long names.
56263         Tests for module 'unictype/joiningtype-longname'.
56264         * modules/unictype/joiningtype-longname-tests: New file.
56265         * tests/unictype/test-joiningtype_longname.c: New file.
56267         New module 'unictype/joiningtype-longname'.
56268         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
56269         * lib/unictype/joiningtype_longname.c: New file.
56270         * modules/unictype/joiningtype-longname: New file.
56271         * modules/unictype/joiningtype-all (Depends-on): Add
56272         unictype/joiningtype-longname.
56274 2011-03-26  Bruno Haible  <bruno@clisp.org>
56276         unictype/bidiclass-byname: Recognize long names as well.
56277         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
56278         name.
56279         * lib/unictype/bidi_byname.c: Include <string.h>,
56280         unictype/bidi_byname.h.
56281         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
56282         * lib/unictype/bidi_byname.gperf: New file.
56283         * modules/unictype/bidiclass-byname (Files): Add
56284         lib/unictype/bidi_byname.gperf.
56285         (Depends-on): Add gperf.
56286         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
56287         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
56288         long names.
56290         Tests for module 'unictype/bidiclass-longname'.
56291         * modules/unictype/bidiclass-longname-tests: New file.
56292         * tests/unictype/test-bidi_longname.c: New file.
56294         New module 'unictype/bidiclass-longname'.
56295         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
56296         * lib/unictype/bidi_longname.c: New file.
56297         * modules/unictype/bidiclass-longname: New file.
56298         * modules/unictype/bidiclass-all (Depends-on): Add
56299         unictype/bidiclass-longname.
56301 2011-03-26  Bruno Haible  <bruno@clisp.org>
56303         unictype/bidi*: Rename modules.
56304         * modules/unictype/bidiclass-all: Renamed from
56305         modules/unictype/bidicategory-all.
56306         * modules/unictype/bidiclass-name: Renamed from
56307         modules/unictype/bidiclass-name.
56308         (Description): Update.
56309         * modules/unictype/bidiclass-name-tests: Renamed from
56310         modules/unictype/bidicategory-name-tests.
56311         * modules/unictype/bidiclass-byname: Renamed from
56312         modules/unictype/bidicategory-byname.
56313         (Description): Update.
56314         * modules/unictype/bidiclass-byname-tests: Renamed from
56315         modules/unictype/bidicategory-byname-tests.
56316         * modules/unictype/bidiclass-of: Renamed from
56317         modules/unictype/bidicategory-of.
56318         (Description): Update.
56319         * modules/unictype/bidiclass-of-tests: Renamed from
56320         modules/unictype/bidicategory-of-tests.
56321         * modules/unictype/bidiclass-test: Renamed from
56322         modules/unictype/bidicategory-test.
56323         (Description): Update.
56324         * modules/unictype/bidiclass-test-tests: Renamed from
56325         modules/unictype/bidicategory-test-tests.
56326         * modules/unictype/bidicategory-all: New file, a simple redirection.
56327         * modules/unictype/bidicategory-name: Likewise.
56328         * modules/unictype/bidicategory-byname: Likewise.
56329         * modules/unictype/bidicategory-of: Likewise.
56330         * modules/unictype/bidicategory-test: Likewise.
56331         * modules/unictype/property-bidi-* (Dependencies): Update.
56332         * lib/unictype/bidi_*.c: Update comment.
56334 2011-03-26  Bruno Haible  <bruno@clisp.org>
56336         unictype/bidi*: Rename functions, part 2.
56337         * modules/unictype/bidicategory-name (configure.ac): Update required
56338         libunistring version.
56339         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
56341 2011-03-25  Bruno Haible  <bruno@clisp.org>
56343         New module 'unictype/combining-class-all'.
56344         * modules/unictype/combining-class-all: New file.
56346         Tests for module 'unictype/combining-class-byname'.
56347         * modules/unictype/combining-class-byname-tests: New file.
56348         * tests/unictype/test-combiningclass_byname.c: New file.
56350         New module 'unictype/combining-class-byname'.
56351         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
56352         * lib/unictype/combiningclass_byname.c: New file.
56353         * lib/unictype/combiningclass_byname.gperf: New file.
56354         * modules/unictype/combining-class-byname: New file.
56356         Tests for module 'unictype/combining-class-longname'.
56357         * modules/unictype/combining-class-longname-tests: New file.
56358         * tests/unictype/test-combiningclass_longname.c: New file.
56360         New module 'unictype/combining-class-longname'.
56361         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
56362         * lib/unictype/combiningclass_longname.c: New file.
56363         * modules/unictype/combining-class-longname: New file.
56365         Tests for module 'unictype/combining-class-name'.
56366         * modules/unictype/combining-class-name-tests: New file.
56367         * tests/unictype/test-combiningclass_name.c: New file.
56369         New module 'unictype/combining-class-name'.
56370         * lib/unictype.in.h (uc_combining_class_name): New declaration.
56371         * lib/unictype/combiningclass_name.c: New file.
56372         * modules/unictype/combining-class-name: New file.
56374 2011-03-25  Bruno Haible  <bruno@clisp.org>
56376         unictype/combining-class: Rename source files.
56377         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
56378         of unictype/combining.h.
56379         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
56380         Update.
56381         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
56382         * modules/unictype/combining-class (Description): Fix.
56383         (Files, Makefile.am): Update.
56384         * tests/unictype/test-combiningclass.c: Renamed from
56385         tests/unictype/test-combining.c.
56386         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
56388 2011-03-25  Bruno Haible  <bruno@clisp.org>
56390         unictype: Update list of canonical combining classes.
56391         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
56393 2011-03-25  Bruno Haible  <bruno@clisp.org>
56395         unictype/category-byname: Recognize long names as well.
56396         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
56397         a long name.
56398         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
56399         unictype/categ_byname.h.
56400         (UC_CATEGORY_INDEX_*): New enumeration values.
56401         (uc_general_category_byname): Use uc_general_category_lookup and
56402         convert from index to value.
56403         * lib/unictype/categ_byname.gperf: New file.
56404         * modules/unictype/category-byname (Files): Add
56405         lib/unictype/categ_byname.gperf.
56406         (Depends-on): Add gperf.
56407         (Makefile.am): Add rule for generating unictype/categ_byname.h.
56408         * tests/unictype/test-categ_byname.c (main): Test the recognition of
56409         long names.
56411         Tests for module 'unictype/category-longname'.
56412         * modules/unictype/category-longname-tests: New file.
56413         * tests/unictype/test-categ_longname.c: New file.
56415         New module 'unictype/category-longname'.
56416         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
56417         * lib/unictype/categ_longname.c: New file.
56418         * modules/unictype/category-longname: New file.
56419         * modules/unictype/category-all (Depends-on): Add it.
56421 2011-03-25  Bruno Haible  <bruno@clisp.org>
56423         Tests for module 'unictype/category-LC'.
56424         * modules/unictype/category-LC-tests: New file.
56425         * tests/unictype/test-categ_LC.c: New file, automatically generated.
56427         New module 'unictype/category-LC'.
56428         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
56429         (UC_CATEGORY_LC): New declaration.
56430         (UC_CASED_LETTER): New macro.
56431         * lib/gen-uni-tables.c (is_category_LC): New function.
56432         (output_categories): Also handle category LC.
56433         (UC_CATEGORY_MASK_LC): New enumeration value.
56434         (general_category_byname): Also handle category LC.
56435         * lib/unictype/categ_LC.c: New file.
56436         * lib/unictype/categ_LC.h: New file, automatically generated.
56437         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
56438         category LC.
56439         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
56440         * modules/unictype/category-LC: New file.
56441         * modules/unictype/category-byname (Depends-on): Add
56442         unictype/category-LC.
56443         * modules/unictype/category-all (Depends-on): Likewise.
56445 2011-03-25  Eric Blake  <eblake@redhat.com>
56447         xmalloc: revert yesterday's regression
56448         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
56449         realloc's underlying behavior (allowing allocation of zero-size
56450         objects, especially if malloc-gnu is also in use).
56452 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
56454         maint.mk: add missing version to VC-tag
56455         * top/maint.mk: git tag was missing actual tag name; add it.
56457         valgrind: do leak checking, and exit with code 1 on error (not 0)
56458         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
56459         to VALGRIND.
56461 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
56463         posix-modules: say what it does.
56464         * posix-modules: Add a line to the --help output saying what it does.
56466 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
56468         xmalloc: Do not leak if underlying realloc is C99 compatible.
56469         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
56470         This avoids a leak on C99-based systems.  See
56471         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
56473 2011-03-24  Eric Blake  <eblake@redhat.com>
56475         realloc: document portability problem
56476         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
56477         passing 0 size to realloc.
56479 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
56481         doc: update users.txt
56482         * users.txt: Add cvsps, tmpwatch
56484 2011-03-23  Matt Rice  <ratmice@gmail.com>
56486         doc: update users.txt
56487         * users.txt: Add gdb.
56489 2011-03-23  Jim Meyering  <meyering@redhat.com>
56491         doc: update users.txt
56492         Looking through matches up to the following URL (there are still
56493         several more pages), I found several projects that use gnulib:
56494         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
56495         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
56496         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
56498 2011-03-22  Bruno Haible  <bruno@clisp.org>
56500         unictype/bidi*: Rename functions.
56501         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
56502         uc_bidi_class, uc_is_bidi_class): New declarations.
56503         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
56504         uc_bidi_category_byname.
56505         (uc_bidi_category_byname): New function.
56506         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
56507         u_bidi_category_name.
56508         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
56509         (uc_bidi_category_name): New function.
56510         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
56511         uc_bidi_category.
56512         (uc_bidi_category): New function.
56513         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
56514         uc_is_bidi_category. Invoke uc_bidi_class.
56515         (uc_is_bidi_category): New function.
56516         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
56517         instead of uc_bidi_category_byname.
56518         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
56519         instead of uc_bidi_category_name.
56520         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
56521         uc_bidi_category.
56522         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
56523         instead of uc_is_bidi_category.
56525 2011-03-21  Bruno Haible  <bruno@clisp.org>
56527         New module 'unictype/joininggroup-all'.
56528         * modules/unictype/joininggroup-all: New file.
56530         Tests for module 'unictype/joininggroup-of'.
56531         * modules/unictype/joininggroup-of-tests: New file.
56532         * tests/unictype/test-joininggroup_of.c: New file.
56533         * tests/unictype/test-joininggroup_of.h: New file, automatically
56534         generated by gen-uni-tables.
56536         New module 'unictype/joininggroup-of'.
56537         * modules/unictype/joininggroup-of: New file.
56538         * lib/unictype/joininggroup_of.c: New file.
56539         * lib/unictype/joininggroup_of.h: New file, automatically generated by
56540         gen-uni-tables.
56542         Tests for module 'unictype/joininggroup-byname'.
56543         * modules/unictype/joininggroup-byname-tests: New file.
56544         * tests/unictype/test-joininggroup_byname.c: New file.
56546         New module 'unictype/joininggroup-byname'.
56547         * modules/unictype/joininggroup-byname: New file.
56548         * lib/unictype/joininggroup_byname.c: New file.
56549         * lib/unictype/joininggroup_byname.gperf: New file.
56551         Tests for module 'unictype/joininggroup-name'.
56552         * modules/unictype/joininggroup-name-tests: New file.
56553         * tests/unictype/test-joininggroup_name.c: New file.
56555         New module 'unictype/joininggroup-name'.
56556         * modules/unictype/joininggroup-name: New file.
56557         * lib/unictype/joininggroup_name.c: New file.
56558         * lib/unictype/joininggroup_name.h: New file.
56560         New module 'unictype/joiningtype-all'.
56561         * modules/unictype/joiningtype-all: New file.
56563         Tests for module 'unictype/joiningtype-of'.
56564         * modules/unictype/joiningtype-of-tests: New file.
56565         * tests/unictype/test-joiningtype_of.c: New file.
56566         * tests/unictype/test-joiningtype_of.h: New file, automatically
56567         generated by gen-uni-tables.
56569         New module 'unictype/joiningtype-of'.
56570         * modules/unictype/joiningtype-of: New file.
56571         * lib/unictype/joiningtype_of.c: New file.
56572         * lib/unictype/joiningtype_of.h: New file, automatically generated by
56573         gen-uni-tables.
56575         Tests for module 'unictype/joiningtype-byname'.
56576         * modules/unictype/joiningtype-byname-tests: New file.
56577         * tests/unictype/test-joiningtype_byname.c: New file.
56579         New module 'unictype/joiningtype-byname'.
56580         * modules/unictype/joiningtype-byname: New file.
56581         * lib/unictype/joiningtype_byname.c: New file.
56583         Tests for module 'unictype/joiningtype-name'.
56584         * modules/unictype/joiningtype-name-tests: New file.
56585         * tests/unictype/test-joiningtype_name.c: New file.
56587         New module 'unictype/joiningtype-name'.
56588         * modules/unictype/joiningtype-name: New file.
56589         * lib/unictype/joiningtype_name.c: New file.
56591         unictype: Add support for Arabic shaping properties.
56592         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
56593         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
56594         declarations.
56595         (UC_JOINING_GROUP_*): New enumeration values.
56596         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
56597         declarations.
56598         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
56599         (unicode_joining_type): New variable.
56600         (UC_JOINING_GROUP_*): New enumeration values.
56601         (unicode_joining_group): New variable.
56602         (fill_arabicshaping, joining_type_as_c_identifier,
56603         output_joining_type_test, output_joining_type,
56604         joining_group_as_c_identifier, output_joining_group_test,
56605         output_joining_group): New functions.
56606         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
56607         fill_arabicshaping and output_joining_type_test, output_joining_type,
56608         output_joining_group_test, output_joining_group.
56609         Reported by Simon Josefsson.
56611 2011-03-21  Jim Meyering  <meyering@redhat.com>
56613         strftime: fix a bug in yesterday's change
56614         * lib/strftime.c (add): Accommodate width's initial value of -1.
56615         Otherwise, nstrftime would copy uninitialized data into
56616         the result buffer.
56618 2011-03-21  Jim Meyering  <meyering@redhat.com>
56620         tests: add strftime-tests module
56621         * tests/test-strftime.c: New file.
56622         * modules/strftime-tests: New module.
56624 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
56626         strftime: don't assume a byte count fits in 'int'
56627         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
56628         found this problem by static analysis, using gcc -Wstrict-overflow
56629         (GCC 4.5.2, x86-64).  This reported an optimization that depended
56630         on an integer overflow having undefined behavior, but it turns out
56631         that the argument is a size, which might not fit in 'int' anyway,
56633 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
56635         stdio: don't require ignore_value around fwrite
56637         This patch works around libc bug 11959
56638         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
56639         Without this patch, applications must often write
56640         ignore_value (fwrite (...)) even though the ignore_value is
56641         not helpful here.  It's common to write many objects, using
56642         fwrite/printf/etc., and then use ferror to detect output error.
56644         I considered making this patch optional, but decided against it,
56645         because libc is obviously being inconsistent here: there is no
56646         reason libc should insist that user code must inspect fwrite
56647         return's value without also insisting that it inspect printf's,
56648         putchar's, etc.  If user code wants to have a strict style where
56649         all these functions' values are checked (so that ferror need not
56650         be checked), we could add support for that style in a new gnulib
56651         module, but in the meantime it's better to be consistent and to
56652         support common usage.
56654         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
56655         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
56656         that we are compiling in checking mode, and if not C++, and
56657         if not already wrapping fwrite for some other reason.
56658         (fwrite): #define to rpl_fwrite if the latter is defined.
56660 2011-03-20  Bruno Haible  <bruno@clisp.org>
56662         verror: Fix compilation error introduced on 2011-02-13.
56663         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
56664         instead of __attribute__.
56665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56667 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
56668             Bruno Haible  <bruno@clisp.org>
56670         socklen: do not depend on sys_socket
56671         While trying to modify Emacs to use gnulib's socklen module,
56672         I discovered a circular dependency: socklen depends on sys_socket
56673         and vice versa.  Emacs can use socklen, but it does not need
56674         sys_socket because it has its own substitute for sys/socket.h.
56675         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
56676         gl_TYPE_SOCKLEN_T.
56677         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
56678         gl_PREREQ_SYS_H_SOCKET.
56679         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
56680         gl_PREREQ_SYS_H_SOCKET.
56681         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
56682         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
56683         * modules/socklen (Depends-on): Do not depend on sys_socket.
56684         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
56686 2011-03-20  Jim Meyering  <meyering@redhat.com>
56688         maint.mk: sort file names *after* new transformation
56689         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
56690         prefix would have led to an unwarranted failure in GNU parted.
56691         Sort after that transformation.
56693 2011-03-19  Jim Meyering  <meyering@redhat.com>
56695         maint.mk: fix po-file syntax-check rule
56696         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
56697         Patch by Bruno Haible.
56699 2011-03-19  Bruno Haible  <bruno@clisp.org>
56701         socklen: Update comment.
56702         * m4/socklen.m4: Update comment about platforms.
56704 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56705             Bruno Haible  <bruno@clisp.org>
56707         inet_ntop, inet_pton: Simplify.
56708         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
56709         documented to provide socklen_t and we already depend on sys_socket.
56710         * modules/inet_pton (Depends-on): Likewise.
56711         * lib/arpa_inet.in.h: Adjust comment.
56713 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56714             Bruno Haible  <bruno@clisp.org>
56716         netdb: Simplify.
56717         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
56718         documented to provide socklen_t and we already depend on sys_socket.
56719         * lib/netdb.in.h: Adjust comment.
56721 2011-03-19  Bruno Haible  <bruno@clisp.org>
56723         sys_socket, netdb: Document problem with socklen_t.
56724         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
56725         platforms.
56726         * doc/posix-headers/netdb.texi: Likewise.
56728 2011-03-18  Eric Blake  <eblake@redhat.com>
56730         maint.mk: let po check work in VPATH build
56731         * top/maint.mk (po_file): Allow cfg.mk override.
56732         (sc_po_check): Allow VPATH use.
56733         Reported by Jiri Denemark.
56735 2011-03-16  Jim Meyering  <meyering@redhat.com>
56737         maint.mk: allow fine-grained syntax-check exclusion via Make variables
56738         Before, you would have had to create one .x-sc_ file per rule in order
56739         to exempt offending files.  Now, you may instead use a Make variable --
56740         usually defined in cfg.mk -- whose name identifies the affected rule.
56741         * top/maint.mk (_sc_excl): Define.
56742         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
56743         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
56745 2011-03-13  Bruno Haible  <bruno@clisp.org>
56747         ignore-value tests: Avoid warnings.
56748         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
56749         empty for gcc < 3.4.
56751 2011-03-13  Bruno Haible  <bruno@clisp.org>
56753         passfd: Fix link error on Solaris.
56754         * modules/passfd (Description): Correct.
56755         (Depends-on): Add socketlib.
56756         (Link): New section.
56757         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
56759 2011-03-13  Bruno Haible  <bruno@clisp.org>
56761         passfd: Fix link error on AIX 5.2.
56762         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
56764 2011-03-13  Bruno Haible  <bruno@clisp.org>
56766         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
56767         * lib/sys_socket.in.h: Include <stddef.h>.
56768         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
56769         CMSG_FIRSTHDR. Remove unused variable.
56771 2011-03-13  Bruno Haible  <bruno@clisp.org>
56773         passfd: Fix compilation error on OpenBSD.
56774         * lib/passfd.c: Include <sys/uio.h>.
56776 2011-03-13  Bruno Haible  <bruno@clisp.org>
56778         passfd test: Fix warnings.
56779         * tests/test-passfd.c: Include <sys/wait.h>.
56780         (main): Fix typo.
56782 2011-03-13  Bruno Haible  <bruno@clisp.org>
56784         passfd module, part 4, tweaks.
56785         * tests/test-passfd.c: Reorder includes.
56786         (main): Fix perror and printf calls.
56788 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
56790         passfd module, part 4.
56791         * modules/passfd-tests: New file.
56792         * tests/test-passfd.c: New file.
56794 2011-03-13  Jim Meyering  <meyering@redhat.com>
56796         Makefile: rely on GNU make; derive syntax-check rule names
56797         Rather than requiring that each sc_ rule be listed as a dependent
56798         of "check", use features of GNU make to derive the list.
56799         * Makefile (syntax-check-rules): Define.
56800         (check): Depend on the new variable, not the hard-coded list.
56802 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
56803             Bruno Haible  <bruno@clisp.org>
56805         passfd module, part 3.
56806         * lib/passfd.h (recvfd): Add a flags argument.
56807         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
56808         (recvfd): Add a flags argument.
56809         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
56810         exists.
56811         * modules/passfd (Depends-on): Add cloexec.
56812         Suggested by Eric Blake.
56814 2011-03-13  Bruno Haible  <bruno@clisp.org>
56816         passfd module, part 2, tweaks.
56817         * modules/passfd (Files): Reorder.
56818         (Depends-on): Remove errno.
56819         (Include): Remove <sys/socket.h>, <sys/un.h>.
56820         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
56821         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
56822         specification header. Include <sys/socket.h> always. Don't include
56823         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
56824         (sendfd): Clarify that it sets errno when it fails.
56825         (recvfd): Fix specification.
56827 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
56829         passfd module, part 2.
56830         * modules/passfd: New file.
56831         * lib/passfd.h: New file.
56832         * lib/passfd.c: New file.
56834 2011-03-12  Bruno Haible  <bruno@clisp.org>
56836         wcswidth, mbswidth: Avoid integer overflow.
56837         * lib/wcswidth.c: Include <limits.h>.
56838         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
56839         * lib/mbswidth.c: Include <limits.h>.
56840         (mbsnwidth): Avoid 'int' overflow.
56841         Reported by Jim Meyering.
56843 2011-03-12  Bruno Haible  <bruno@clisp.org>
56845         futimens, utimensat: Avoid endless recursion on Solaris 10.
56846         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
56847         Solaris.
56848         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
56849         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
56851 2011-03-11  Jim Meyering  <meyering@redhat.com>
56853         maint.mk: relax a regexp to accommodate other formatting styles
56854         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
56855         between "ngettext" and the following "(".
56857 2011-03-11  Pádraig Brady  <P@draigBrady.com>
56859         maint.mk: suppress a false positive warning
56860         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
56861         diagnostics are marked with ngettext.
56863 2011-03-10  Eric Blake  <eblake@redhat.com>
56865         wchar: add explicit dependencies, for Tru64
56866         * modules/mbmemcasecoll (Depends-on): Add wchar.
56867         * modules/mbtowc (Depends-on): Likewise.
56868         * modules/vasnprintf (Depends-on): Likewise.
56869         * modules/unistdio/u-printf-args (Depends-on): Likewise.
56870         * modules/wctomb (Depends-on): Likewise.
56871         Reported by Peter O'Gorman.
56873 2011-03-08  Bruno Haible  <bruno@clisp.org>
56875         passfd module, part 1, tweaks.
56876         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
56877         Improve indentation. Improve AC_MSG_CHECKING messages.
56878         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
56879         gl_SOCKET_FAMILIES.
56881 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
56883         passfd module, part 1.
56884         * m4/afunix.m4: New file.
56885         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
56886         sockets.
56888 2011-03-08  Bruno Haible  <bruno@clisp.org>
56890         regex-quote: New API.
56891         * lib/regex-quote.h: Include <stdbool.h>.
56892         (struct regex_quote_spec): New type.
56893         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
56894         New declarations.
56895         (regex_quote_length, regex_quote_copy, regex_quote): Take a
56896         'const struct regex_quote_spec *' argument.
56897         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
56898         (pcre_special): New constant.
56899         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
56900         New functions.
56901         (regex_quote_length, regex_quote_copy, regex_quote): Take a
56902         'const struct regex_quote_spec *' argument.
56903         * modules/regex-quote (Depends-on): Add stdbool.
56904         * tests/test-regex-quote.c (check): Update for new API. Add test for
56905         anchored results.
56906         * NEWS: Mention the API change.
56907         Reported by Reuben Thomas and Eric Blake.
56909 2011-03-06  Bruno Haible  <bruno@clisp.org>
56911         regex-quote: Fix creation of POSIX extended regular expressions.
56912         * lib/regex-quote.c (ere_special): Add grouping and alternation
56913         operators.
56915 2011-03-05  Bruno Haible  <bruno@clisp.org>
56917         doc: Improve doc regarding autopoint vs. gnulib.
56918         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
56919         disable autopoint while running autoreconf.
56920         Suggested by Ralf Wildenhues.
56922 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56924         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
56925         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
56927 2011-03-03  Bruce Korb  <bkorb@gnu.org>
56929         parse-duration: remove xalloc.h dependency
56930         * lib/parse-duration.c (parse_period): handle NULL return from
56931         strdup instead of calling xstrdup().
56932         * modules/parse-duration: remove "xalloc" dependency
56934 2011-03-03  Matthew Booth  <mbooth@redhat.com>
56936         bootstrap: honor m4_base when running aclocal
56937         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
56939 2011-03-02  Jim Meyering  <meyering@redhat.com>
56941         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
56942         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
56943         on request from Matt Booth.
56945 2011-03-01  Eric Blake  <eblake@redhat.com>
56947         test-link: work on Hurd
56948         * tests/test-link.h (test_link): Hurd rejects linking directories
56949         with EISDIR instead of the POSIX-mandated EPERM.
56951 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
56953         stdio: simplify by moving files to printf-posix, sigpipe
56954         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
56955         since this symbol is needed only if printf is replaced.
56956         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
56957         Require gl_ASM_SYMBOL_PREFIX.
56958         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
56959         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
56960         (Depends-on): Add 'raise'.
56961         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
56962         * modules/stdio (Files): Remove lib/stdio-write.c,
56963         m4/asm-underscore.m4.
56964         (Depends-on): Remove 'raise'.
56966         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
56967         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
56968         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
56969         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
56971 2011-02-28  Bruno Haible  <bruno@clisp.org>
56973         localcharset: Assume ANSI C behaviour of free().
56974         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
56975         calling free().
56976         Suggested by Simon Josefsson <simon@josefsson.org>.
56978 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
56979             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
56980             Bruno Haible  <bruno@clisp.org>  (tiny change)
56982         On Cygwin, use /proc file system instead of win32 API.
56983         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
56984         Win32 file names.
56985         (DllMain): Simplify by removing Cygwin specific code.
56986         (find_shared_library_fullname): Use Linux specific implementation also
56987         for Cygwin.
56988         (get_shared_library_fullname): Update accordingly.
56989         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
56990         Win32 file names.
56991         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
56992         Cygwin specific code.
56994 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
56995             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
56997         Fix OpenMP flag detection for various Fortran compilers.
56998         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
56999         OpenMP-conditional compilation construct, to force compile
57000         failure with missing OpenMP flag.
57001         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
57003 2011-02-25  Eric Blake  <eblake@redhat.com>
57005         strstr: expand test coverage
57006         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
57007         compilation.
57008         * tests/test-memmem.c (main): Duplicate tests.
57009         * tests/test-strcasestr.c (main): Likewise.
57010         * tests/test-c-strcasestr.c (main): Likewise.
57012 2011-02-25  Jim Meyering  <meyering@redhat.com>
57014         maint.mk: detect missing-NL-at-EOF, too
57015         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
57016         it also detects when a file lacks a newline at EOF.
57017         (require_exactly_one_NL_at_EOF_): Renamed from
57018         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
57019         since people may well have .x-sc_... file names tied to the
57020         existing name.  Suggested by Eric Blake.
57022 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57024         dirname: move m4/dos.m4 functionality into lib/dosname.h
57026         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
57027         extracts symbols from it, puts them into config.h; but it's much
57028         easier to use the symbols directly.  filename.h already does this,
57029         but it disagrees with dos.m4 in some respects.  This patch
57030         introduces a different include file dosname.h that packages up
57031         dos.m4, and then later we can work on merging filename.h and
57032         dosname.h.  Applications that need only the easy-to-configure
57033         symbols should consider including dosname.h rather than dirname.h.
57034         * NEWS: Mention incompatible changes.
57035         * m4/dos.m4: Remove.
57036         * lib/dosname.h, modules/dosname: New files.
57037         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
57038         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
57039         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
57040         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
57041         Include dosname.h, not dirname.h.
57042         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
57043         Include dosname.h, for definitions of symbols like ISSLASH
57044         that used to be in config.h.
57045         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
57046         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57047         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57048         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57049         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
57050         * modules/rmdir (Files): Likewise.
57051         * modules/stat (Files): Likewise.
57052         * modules/unlink (Files): Likewise.
57053         * modules/dirname-lgpl (Depends-on): Add dosname.
57054         * modules/lstat (Depends-on): Likewise.
57055         * modules/openat (Depends-on): Likewise.
57056         * modules/rmdir (Depends-on): Likewise.
57057         * modules/savewd (Depends-on): Likewise.
57058         * modules/stat (Depends-on): Likewise.
57059         * modules/unlink (Depends-on): Likewise.
57060         * modules/openat (Depends-on): Remove dirname-lgpl.
57061         * modules/savewd (Depends-on): Likewise.
57062         * tests/test-dirname.c: Do not use removed symbols like
57063         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
57064         the remaining symbols, e.g., ISSLASH ('\\').
57066 2011-02-25  Eric Blake  <eblake@redhat.com>
57068         strstr: revert patches that introduced bug and pessimization
57069         * lib/str-two-way.h: Add another reference.
57070         (two_way_short_needle, two_way_long_needle): Revert changes from
57071         2011-02-24; they pessimize search speed.
57072         (critical_factorization): Partially revert changes from
57073         2010-06-22; they violate the requirement that the left half of the
57074         needle be smaller than the period of the needle.
57076 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57078         filenamecat: remove unnecessary dependency on dirname-lgpl
57079         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
57080         is no direct dependency, just an indirect one via filenamecat-lgpl.
57082         remove: remove unnecessary use of m4/dos.m4
57083         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
57084         * modules/remove (FILES): Remove m4/dos.m4.
57086         * lib/openat-proc.c: Don't include dirname.h; not needed.
57088         backupfile: remove unnecessary use of m4/dos.m4
57089         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
57090         of its symbols are used by the backupfile code.  backupfile.c does
57091         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
57092         for the rare case of programs that want all their backup file
57093         names to live within 8+3 limits, and dos.m4 doesn't address that.
57094         * modules/backupfile (Files): Remove m4/dos.m4.
57096 2011-02-24  Jim Meyering  <meyering@redhat.com>
57098         strstr: fix a bug whereby strstr would mistakenly return NULL
57099         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
57100         in period calculation.
57101         (two_way_long_needle): Likewise.
57102         The original problem was reported by Mike Stump in
57103         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
57104         Ralf Wildenhues provided the short needle and haystack.
57105         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
57106         Add a more involved test to trigger the bug in two_way_long_needle.
57108 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57110         gnulib-tool: remove use of bold display in help screen
57111         * gnulib-tool (func_usage): Do not use bold display anymore in the
57112         help screen.  That was just meant to be a temporary emphasis for a
57113         backward-incompatible change.
57115 2011-02-23  Bruno Haible  <bruno@clisp.org>
57117         Fix misindentation of preprocessor directives.
57118         * lib/argp-namefrob.h: Reindent preprocessor directives.
57119         * lib/getopt_int.h (struct _getopt_data): Likewise.
57120         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
57121         * lib/vasnprintf.c (decode_long_double): Likewise.
57122         * tests/test-argmatch.c: Insert blank lines, for clarity.
57123         * tests/test-exclude.c: Likewise.
57125 2011-02-22  Bruno Haible  <bruno@clisp.org>
57127         ioctl: Fix for MacOS X in 64-bit mode.
57128         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
57129         value.
57130         Suggested by Eric Blake.
57131         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
57133 2011-02-22  Jim Meyering  <meyering@redhat.com>
57135         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
57136         * Makefile (sc_cpp_indent_check): Don't limit the check to files
57137         in lib/.
57139 2011-02-22  Eric Blake  <eblake@redhat.com>
57141         maint: avoid any CDPATH issue
57142         * Makefile (sc_cpp_indent_check): Anchor cd argument.
57144         maint: adjust cpp indentation for my modules, as well
57145         * Makefile (sc_cpp_indent_check): Add my name.
57146         * lib/fbufmode.c: Filter through cppi.
57147         * lib/fpurge.c: Likewise.
57148         * lib/freadable.c: Likewise.
57149         * lib/freading.c: Likewise.
57150         * lib/fwritable.c: Likewise.
57151         * lib/fwriting.c: Likewise.
57152         * lib/sigaction.c: Likewise.
57154 2011-02-22  Jim Meyering  <meyering@redhat.com>
57156         maint: adjust cpp indentation to reflect nesting depth
57157         I.e., in a block of code that begins with an unnested "#if",
57158         put one space between the "#" in column 1 and following token.
57159         For example,
57160         -#include <sys/vfs.h>
57161         +# include <sys/vfs.h>
57162         Do this only in .c files that are part of a module I maintain.
57163         * lib/linkat.c: Filter through cppi.
57164         * lib/nanosleep.c: Likewise.
57165         * lib/openat.c: Likewise.
57166         * lib/openat-die.c: Likewise.
57167         * lib/dup3.c: Likewise.
57168         * lib/fchownat.c: Likewise.
57169         * lib/flock.c: Likewise.
57170         * lib/fsync.c: Likewise.
57171         * lib/fts.c: Likewise.
57172         * lib/getpass.c: Likewise.
57173         * lib/gettimeofday.c: Likewise.
57174         * lib/userspec.c: Likewise.
57175         * Makefile (sc_cpp_indent_check): New rule, to check this.
57177 2011-02-22  Bruno Haible  <bruno@clisp.org>
57179         New module 'wctomb'.
57180         * lib/stdlib.in.h (wctomb): New declaration.
57181         * lib/wctomb.c: New file.
57182         * lib/wctomb-impl.h: New file.
57183         * m4/wctomb.m4: New file.
57184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
57185         REPLACE_WCTOMB.
57186         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
57187         REPLACE_WCTOMB.
57188         * modules/wctomb: New file.
57189         * tests/test-stdlib-c++.cc: Test signature of wctomb.
57190         * doc/posix-functions/wctomb.texi: Mention the new module.
57191         * modules/wctob (Depends-on): Add wctomb.
57193 2011-02-22  Bruno Haible  <bruno@clisp.org>
57195         New module 'mbtowc'.
57196         * lib/stdlib.in.h (mbtowc): New declaration.
57197         * lib/mbtowc.c: New file.
57198         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
57199         * m4/mbtowc.m4: New file.
57200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
57201         REPLACE_MBTOWC.
57202         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
57203         REPLACE_MBTOWC.
57204         * modules/mbtowc: New file.
57205         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
57206         * doc/posix-functions/mbtowc.texi: Mention the new module.
57207         * modules/btowc (Depends-on): Add mbtowc.
57209 2011-02-22  Bruno Haible  <bruno@clisp.org>
57211         wcrtomb: Add more tests for native Windows platforms.
57212         * tests/test-wcrtomb-w32-1.sh: New file.
57213         * tests/test-wcrtomb-w32-2.sh: New file.
57214         * tests/test-wcrtomb-w32-3.sh: New file.
57215         * tests/test-wcrtomb-w32-4.sh: New file.
57216         * tests/test-wcrtomb-w32-5.sh: New file.
57217         * tests/test-wcrtomb-w32.c: New file.
57218         * modules/wcrtomb-tests (Files): Add them.
57219         (Makefile.am): Arrange to run these tests.
57220         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
57221         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
57223 2011-02-20  Bruno Haible  <bruno@clisp.org>
57225         wcrtomb: Enhance test.
57226         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
57228 2011-02-20  Bruno Haible  <bruno@clisp.org>
57230         mbrtowc: Tiny optimization.
57231         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
57233 2011-02-20  Jim Meyering  <meyering@redhat.com>
57235         test-exclude.c: remove unmatched #endif
57236         * tests/test-exclude.c: Remove stray #endif, left over from
57237         the change of a week ago.
57239 2011-02-19  Jim Meyering  <meyering@redhat.com>
57241         git-version-gen: skip "-dirty" check when appropriate
57242         * build-aux/git-version-gen: Don't run any git commands when the
57243         version string comes from .tarball-version.  Prior to this, we
57244         would run git update-index --refresh even from a just-unpacked
57245         tarball directory, and that could affect a .git/ directory in a
57246         parent of the build directory.  Reported by Mike Frysinger.
57248 2011-02-19  Bruno Haible  <bruno@clisp.org>
57250         unictype/property-byname: Reduce the size of the 'data' segment.
57251         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
57253 2011-02-19  Bruno Haible  <bruno@clisp.org>
57255         unictype/scripts: Reduce the size of the 'data' segment.
57256         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
57257         '%pic'.
57258         * lib/unictype/scripts_byname.gperf: Regenerated.
57260 2011-02-19  Bruno Haible  <bruno@clisp.org>
57262         stdint: Update documentation.
57263         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
57265 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
57267         stdint: omit redundant check for wchar.h
57268         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
57269         always tests whether wchar.h exists, so remove the now-redundant test.
57271 2011-02-18  Bruno Haible  <bruno@clisp.org>
57273         stdint: Cut dependency to module 'wchar'.
57274         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
57275         include the necessary prerequisites.
57276         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
57277         * modules/stdint (Depends-on): Remove wchar.
57278         (Makefile.am): Substitute HAVE_WCHAR_H.
57279         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
57281 2011-02-18  Eric Blake  <eblake@redhat.com>
57283         longlong: skip, rather than fail, on cross-compilation
57284         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
57285         when cross-compiling; regression from 2011-02-16.
57287 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57289         * NEWS: Mention 2011-02-08 change to stdlib.
57291 2011-02-17  Bruno Haible  <bruno@clisp.org>
57293         getloadavg: Add comments about platforms.
57294         * m4/getloadavg.m4: Add comment.
57295         * lib/getloadavg.c: Likewise.
57297 2011-02-17  Bruno Haible  <bruno@clisp.org>
57299         getloadavg: Fix link error on Solaris 2.6.
57300         * modules/getloadavg (Link): New section.
57301         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
57302         linking test-getloadavg.
57303         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
57304         getloadavg.
57306 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57308         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
57309         It was 'int', but this doesn't match the IRIX 6.5 manual.
57310         Suggested by Bruno Haible in
57311         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
57313 2011-02-17  Bruno Haible  <bruno@clisp.org>
57315         havelib: Fix comments.
57316         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
57317         change.
57319 2011-02-17  Bruno Haible  <bruno@clisp.org>
57321         havelib: Update config.rpath.
57322         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
57324 2011-02-17  Bruno Haible  <bruno@clisp.org>
57326         getloadavg test: Add some plausibility checks.
57327         * tests/test-getloadavg.c (check_avg): Print a warning when the value
57328         is improbable.
57330 2011-02-16  Eric Blake  <eblake@redhat.com>
57332         maintainer-makefile: make syntax-check a no-op from tarballs
57333         * top/maint.mk (no-vc-detected): New rule.
57334         (local-checks-available): Use it to avoid hanging if someone tries
57335         'make syntax-check' from a tarball.  Also append to any non-syntax
57336         checks already defined in cfg.mk.
57338 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
57340         longlong: tune, particularly for common case of c99
57342         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
57343         or running anything if c99, or if unsigned long long int does not
57344         work.  In either case, we know the answer without further tests.
57345         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
57346         it at most once, and use its results for both long long int and
57347         unsigned long long int.  This is more likely to be efficient in
57348         the common case where the program wants to check for both long
57349         long int and unsigned long long int.
57350         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
57351         since the answer is already known.
57353 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
57355         getloadavg: set errno
57356         * lib/getloadavg.c: Set errno when returning -1.  If no other
57357         error number looks appropriate, set it to ENOSYS if the getloadavg
57358         looks like it can't possibly ever work, ENOTSUP otherwise.
57359         Suggested by Bruno Haible in
57360         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
57362         getloadavg: trim unused parts and speed up 'configure'
57363         * NEWS: Document this.
57364         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
57365         always compiled if getloadavg is absent.
57366         Move test code to ...
57367         * tests/test-getloadavg.c: New file, containing previous
57368         contents of test from lib/getloadavg.c.  It also contains
57369         suggestions by Bruno Haible in
57370         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
57371         * modules/getloadavg-tests: New file.
57372         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
57373         Do tests in the same order as they're needed for getloadavg.c.
57374         Omit setgid-related tests that generate symbols KMEM_GROUP,
57375         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
57376         Do only the tests that are needed to see whether the system has
57377         getloadavg, moving the other tests into ...
57378         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
57379         NLIST_NAME_UNION; nobody should be using it.  Do not define
57380         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
57381         relevant, as the user of this module shouldn't care how getloadavg
57382         is implemented.
57384         getloadavg: omit unused var
57385         * lib/getloadavg.c (getloadavg): Omit unused local variable.
57387 2011-02-15  Jim Meyering  <meyering@redhat.com>
57389         doc: update users.txt
57390         * users.txt: Update iwhd's URL.
57392 2011-02-13  Bruno Haible  <bruno@clisp.org>
57394         Consistent macro naming for macros that use GCC __attribute__.
57395         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
57396         _ATTRIBUTE_NONNULL_.
57397         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
57398         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
57399         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
57400         ATTRIBUTE_DEPRECATED.
57401         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
57402         ATTRIBUTE_NORETURN.
57403         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57404         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57405         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57406         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57407         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
57408         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
57409         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
57410         ATTRIBUTE_SENTINEL.
57411         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
57412         ATTRIBUTE_RETURN_CHECK.
57413         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
57414         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
57415         ATTRIBUTE_NORETURN.
57416         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
57417         Reported by Paul Eggert.
57419 2011-02-13  Bruno Haible  <bruno@clisp.org>
57421         Don't interfere with a program's definition of __attribute__.
57422         * lib/argp.h (__attribute__): Remove definition.
57423         (_GL_ATTRIBUTE_FORMAT): New macro.
57424         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
57425         * lib/argp-fmtstream.h (__attribute__): Remove definition.
57426         (_GL_ATTRIBUTE_FORMAT): New macro.
57427         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
57428         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
57429         GCC 3 or newer.
57430         * lib/error.h (__attribute__): Remove definition.
57431         (_GL_ATTRIBUTE_FORMAT): New macro.
57432         (error, error_at_line): Use it.
57433         * lib/hash.h (__attribute__): Remove definition.
57434         (ATTRIBUTE_WUR): Update definition. Define always.
57435         * lib/openat.h (__attribute__): Remove definition.
57436         (ATTRIBUTE_NORETURN): Update definition. Define always.
57437         * lib/sigpipe-die.h (__attribute__): Remove definition.
57438         (ATTRIBUTE_NORETURN): Update definition. Define always.
57439         * lib/vasnprintf.h (__attribute__): Remove definition.
57440         (_GL_ATTRIBUTE_FORMAT): New macro.
57441         (asnprintf, vasnprintf): Use it.
57442         * lib/xalloc.h (__attribute__): Remove definition.
57443         (ATTRIBUTE_NORETURN): Update definition. Define always.
57444         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
57445         * lib/xmemdup0.h (__attribute__): Remove definition.
57446         (ATTRIBUTE_NORETURN): Update definition. Define always.
57447         * lib/xprintf.h (__attribute__): Remove definition.
57448         (_GL_ATTRIBUTE_FORMAT): New macro.
57449         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
57450         * lib/xstrtol.h (__attribute__): Remove definition.
57451         (ATTRIBUTE_NORETURN): Update definition. Define always.
57452         * lib/xvasprintf.h (__attribute__): Remove definition.
57453         (_GL_ATTRIBUTE_FORMAT): New macro.
57454         (xasprintf, xvasprintf): Use it.
57455         * tests/test-argmatch.c (__attribute__): Remove definition.
57456         (ATTRIBUTE_NORETURN): Update definition. Define always.
57457         * tests/test-exclude.c (__attribute__): Remove definition.
57458         (ATTRIBUTE_NORETURN): Update definition. Define always.
57459         Reported by Paul Eggert.
57461 2011-02-13  Bruno Haible  <bruno@clisp.org>
57463         mbrtowc: Add more tests for native Windows platforms.
57464         * tests/test-mbrtowc-w32-1.sh: New file.
57465         * tests/test-mbrtowc-w32-2.sh: New file.
57466         * tests/test-mbrtowc-w32-3.sh: New file.
57467         * tests/test-mbrtowc-w32-4.sh: New file.
57468         * tests/test-mbrtowc-w32-5.sh: New file.
57469         * tests/test-mbrtowc-w32.c: New file.
57470         * modules/mbrtowc-tests (Files): Add them.
57471         (Makefile.am): Arrange to run these tests.
57472         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
57473         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
57475 2011-02-13  Bruno Haible  <bruno@clisp.org>
57477         mbrtowc: Work around native Windows bug.
57478         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
57479         guess when no suitable locale for testing was found.
57480         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
57482 2011-02-13  Bruno Haible  <bruno@clisp.org>
57484         mbsinit: Work around mingw bug.
57485         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
57486         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
57487         Windows.
57488         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
57490 2011-02-13  Bruno Haible  <bruno@clisp.org>
57492         mbsinit: Don't crash for a NULL argument.
57493         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
57494         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
57496 2011-02-13  Bruno Haible  <bruno@clisp.org>
57498         Don't interfere with a program's definition of __attribute__.
57499         * lib/stdio.in.h (__attribute__): Remove definition.
57500         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
57501         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
57502         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
57503         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
57504         * lib/string.in.h (__attribute__): Remove definition.
57505         Reported by Paul Eggert.
57507 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57509         stdlib: don't get in the way of non-GCC __attribute__
57510         See thread starting at
57511         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
57512         Revert previous stdlib change, installing the following instead:
57513         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
57514         to get in the way of a non-GCC compiler that supports __attribute__.
57515         (_GL_ATTRIBUTE_RETURN): New macro.
57516         (_Exit): Use it instead of __attribute__.
57518 2011-02-12  Bruno Haible  <bruno@clisp.org>
57520         quotearg test: Avoid test failure on mingw.
57521         * tests/test-quotearg.sh: Convert the locale identifier from native
57522         Windows syntax to Unix syntax.
57524 2011-02-12  Bruno Haible  <bruno@clisp.org>
57526         setlocale: Prefer gnulib's override over libintl's override.
57527         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
57528         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
57529         GNULIB_defined_setlocale is set.
57531 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57533         stdlib: support non-GCC __attribute__
57535         Fix a serious and tricky problem encountered when attempting to
57536         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
57537         5.5, but it crashed due to memory corruption on Solaris 10 with
57538         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
57539         bits that are otherwise zero.  This tagging is optional inside
57540         Emacs but is preferred and is used when __attribute__ ((__aligned
57541         (8))) works, as it does with both recent-enough GCC and with Sun C
57542         5.11.  However, Sun C 5.11 is not GCC and does not #define
57543         __GNUC__ and __GNUC_MINOR__.
57545         When I added the getloadavg module to Emacs, it brought in
57546         stdlib.in.h, which contained this fragment:
57548            #ifndef __attribute__
57549            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
57550            #  define __attribute__(Spec)   /* empty */
57551            # endif
57552            #endif
57554         When files that include <stdlib.h> were compiled with Sun C 5.11,
57555         the above code disabled __attribute__ ((__aligned (8))), which
57556         caused variables to not be properly aligned, which eventually led
57557         to the pointer corruption mentioned above.  (This was a bit hard
57558         to diagnose, unfortunately.)
57560         Several "#define __attribute__(X) /* empty */" code snippets need
57561         to be eradicated from Gnulib to work with non-GCC compilers that
57562         support __attribute__.  The Autoconf way to do this is to test for
57563         each kind of attribute that we want support for, and selectively
57564         enable that in source code.
57566         Fix this problem just for stdlib.h, by adding a test for the
57567         __noreturn__ attribute, and change stdlib.in.h to use that test
57568         when needed.  This technique can be easily generalized to the
57569         other *.in.h files and attributes, and a similar technique can be
57570         used for *.h and *.c files.  This patch is enough to solve the
57571         problem for Emacs + getloadavg, and I thought I'd publish it for
57572         feedback before undertaking further, similar fixes in other
57573         modules.
57575         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
57576         because it's not needed for stdlib.h.  It merely substitutes the
57577         value directly into stdlib.h.  We may well need to #define it, or
57578         similar symbols, for other modules, but it's nice to also have an
57579         option to not #define it for applications like Emacs that do not
57580         need it.
57582         * lib/stdlib.in.h (__attribute__): Do not #define.
57583         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
57584         be defined only if the _Exit module is also used.
57585         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
57586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
57587         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
57588         platforms.
57589         * modules/_Exit (Files): Add m4/attribute.m4.
57590         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
57591         * m4/attribute.m4: New file.
57593 2011-02-12  Bruno Haible  <bruno@clisp.org>
57595         wcsrtombs: Work around bug on native Windows.
57596         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
57597         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
57598         instead of len.
57599         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
57601 2011-02-12  Bruno Haible  <bruno@clisp.org>
57603         mbsrtowcs: Work around bug on native Windows.
57604         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
57605         against mingw bug.
57606         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
57608 2011-02-12  Bruno Haible  <bruno@clisp.org>
57610         Avoid setlocale bugs in tests.
57611         * modules/btowc (Dependencies): Add setlocale.
57612         * modules/c-strcase (Dependencies): Likewise.
57613         * modules/mbmemcasecmp (Dependencies): Likewise.
57614         * modules/mbmemcasecoll (Dependencies): Likewise.
57615         * modules/mbrtowc (Dependencies): Likewise.
57616         * modules/mbscasecmp (Dependencies): Likewise.
57617         * modules/mbscasestr (Dependencies): Likewise.
57618         * modules/mbschr (Dependencies): Likewise.
57619         * modules/mbscspn (Dependencies): Likewise.
57620         * modules/mbsinit (Dependencies): Likewise.
57621         * modules/mbsncasecmp (Dependencies): Likewise.
57622         * modules/mbsnrtowcs (Dependencies): Likewise.
57623         * modules/mbspbrk (Dependencies): Likewise.
57624         * modules/mbspcasecmp (Dependencies): Likewise.
57625         * modules/mbsrchr (Dependencies): Likewise.
57626         * modules/mbsrtowcs (Dependencies): Likewise.
57627         * modules/mbsspn (Dependencies): Likewise.
57628         * modules/mbsstr (Dependencies): Likewise.
57629         * modules/nl_langinfo (Dependencies): Likewise.
57630         * modules/quotearg (Dependencies): Likewise.
57631         * modules/unicase/locale-language (Dependencies): Likewise.
57632         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
57633         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
57634         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
57635         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
57636         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
57637         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
57638         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
57639         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
57640         * modules/vasnprintf-posix (Dependencies): Likewise.
57641         * modules/wcrtomb (Dependencies): Likewise.
57642         * modules/wcsnrtombs (Dependencies): Likewise.
57643         * modules/wcsrtombs (Dependencies): Likewise.
57645 2011-02-12  Bruno Haible  <bruno@clisp.org>
57647         setlocale: Workaround native Windows bug.
57648         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
57649         succeeds but sets LC_CTYPE to "C", report a failure.
57650         * tests/test-setlocale2.sh: New file.
57651         * tests/test-setlocale2.c: New file.
57652         * modules/setlocale-tests (Files): Add the new files.
57653         (Makefile.am): Enable test-setlocale2.sh test.
57654         * doc/posix-functions/setlocale.texi: Mention workaround.
57656 2011-02-11  Bruno Haible  <bruno@clisp.org>
57658         Tests for module 'setlocale'.
57659         * modules/setlocale-tests: New file.
57660         * tests/test-setlocale1.sh: New file.
57661         * tests/test-setlocale1.c: New file.
57663         New module 'setlocale'.
57664         * lib/locale.in.h (setlocale): New declaration.
57665         * lib/setlocale.c: New file, based on
57666         gettext/gettext-runtime/intl/setlocale.c.
57667         * m4/setlocale.m4: New file.
57668         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
57669         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
57670         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
57671         REPLACE_SETLOCALE.
57672         * modules/setlocale: New file.
57673         * tests/test-locale-c++.cc: Test the declaration of setlocale.
57674         * doc/posix-functions/setlocale.texi: Mention the new module.
57676 2011-02-11  Bruno Haible  <bruno@clisp.org>
57678         Prepare for locale dependent tests on mingw.
57679         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
57680         because it has the wrong locale encoding.
57681         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
57682         French_France.1252 instead of "fr".
57683         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
57684         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
57685         because it has the wrong locale encoding.
57686         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
57687         native Windows, try Turkish_Turkey.65001.
57688         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
57689         Chinese_China.54936.
57691         Prepare for locale dependent tests on mingw.
57692         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
57693         differently.
57694         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
57695         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
57696         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57697         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57699 2011-02-11  Eric Blake  <eblake@redhat.com>
57701         strptime: avoid compiler warnings
57702         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
57703         compiler warnings about dead code.
57704         Reported by Daniel P. Berrange.
57706 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
57708         doc: update users.txt
57709         * users.txt: Add rcs.
57711 2011-02-10  John W. Eaton  <jwe@gnu.org>
57713         doc: update users.txt
57714         * users.txt: Add octave.
57716 2011-02-10  Jim Meyering  <meyering@redhat.com>
57718         doc: update users.txt
57719         * users.txt: Add iwhd.
57721 2011-02-09  Bruno Haible  <bruno@clisp.org>
57723         gnulib-tool: Make copyright notice adjustment more robust.
57724         * gnulib-tool (func_import): In sed_transform_main_lib_file,
57725         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
57726         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
57727         License".
57728         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
57730 2011-02-06  Bruno Haible  <bruno@clisp.org>
57732         New module 'towctrans'.
57733         * modules/towctrans: New file.
57734         * lib/wctype.in.h (towctrans): New declaration.
57735         * lib/towctrans.c: New file.
57736         * lib/towctrans-impl.h: New file.
57737         * m4/towctrans.m4: New file.
57738         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
57739         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
57740         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
57741         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
57742         * doc/posix-functions/towctrans.texi: Mention the new module.
57744 2011-02-06  Bruno Haible  <bruno@clisp.org>
57746         New module 'wctrans'.
57747         * modules/wctrans: New file.
57748         * lib/wctype.in.h (wctrans): New declaration.
57749         * lib/wctrans.c: New file.
57750         * lib/wctrans-impl.h: New file.
57751         * m4/wctrans.m4: New file.
57752         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
57753         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
57754         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
57755         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
57756         * doc/posix-functions/wctrans.texi: Mention the new module.
57758 2011-02-06  Bruno Haible  <bruno@clisp.org>
57760         New module 'iswctype'.
57761         * modules/iswctype: New file.
57762         * lib/wctype.in.h (iswctype): New declaration.
57763         * lib/iswctype.c: New file.
57764         * lib/iswctype-impl.h: New file.
57765         * m4/iswctype.m4: New file.
57766         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
57767         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
57768         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
57769         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
57770         * doc/posix-functions/iswctype.texi: Mention the new module and the
57771         HP-UX 11.00 problem.
57773 2011-02-06  Bruno Haible  <bruno@clisp.org>
57775         New module 'wctype'.
57776         * modules/wctype: Change to represent the wctype() substitute.
57777         * lib/wctype.in.h (wctype): New declaration.
57778         * lib/wctype.c: New file.
57779         * lib/wctype-impl.h: New file.
57780         * m4/wctype.m4: New file.
57781         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
57782         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
57783         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
57784         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
57785         * doc/posix-functions/wctype.texi: Mention the new module and the
57786         HP-UX 11.00 problem.
57788 2011-02-06  Bruno Haible  <bruno@clisp.org>
57790         wctype-h: Ensure wctype_t and wctrans_t are defined.
57791         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
57792         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
57793         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
57794         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
57795         HAVE_WCTRANS_T.
57796         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
57798 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
57800         flock: fix license typo
57802         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
57803         omitted.
57805 2011-02-08  Bruno Haible  <bruno@clisp.org>
57807         Split large sed scripts, for HP-UX sed.
57808         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
57809         to avoid HP-UX limit of 99 commands, in the near future.
57810         * modules/stdlib (Makefile.am): Likewise.
57811         * modules/unistd (Makefile.am): Likewise.
57812         * modules/wchar (Makefile.am): Likewise.
57813         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57814         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
57815         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
57817 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
57818             Bruno Haible  <bruno@clisp.org>
57820         stdlib: improve random_r modularization
57821         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
57822         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
57823         you also need the random_r module to get this material right.
57824         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
57825         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
57826         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
57828 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
57830         stdlib: don't depend on stdint
57831         * lib/stdlib.in.h: Don't include <stdint.h> merely because
57832         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
57833         be independent of whether stdint.h is needed.
57834         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
57835         here, instead of ...
57836         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
57837         struct random_data should be using the random_r module, not just
57838         the stdlib module (which wouldn't make sense: what package needs
57839         just struct random_data without also needing random_r?).
57840         * modules/stdlib (Depends-on): Remove stdint.
57842         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
57843         See the thread rooted at
57844         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
57845         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
57846         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
57847         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
57848         __VMS)); previously it was always included (via fcntl--.h).
57849         (getloadavg): Do not use c_strtod.  Instead, approximate it by
57850         hand; this is good enough for load averages.  Also, do not use
57851         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
57852         flags directly if available and don't bother otherwise.  (Packages
57853         that need the extra reliability should use the modules that define
57854         these flags on older platforms that lack them.)
57855         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
57856         fcntl-safer.
57858 2011-02-08  Jim Meyering  <meyering@redhat.com>
57860         di-set.h, ino-map.h: add multiple-inclusion guard
57861         Technically, the guard is required only for ino-map.h, due to its
57862         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
57863         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
57864         * lib/ino-map.h: Likewise.
57866 2011-02-06  Bruno Haible  <bruno@clisp.org>
57868         iswblank: Ensure declaration on glibc systems.
57869         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
57870         * modules/iswblank (Dependencies): Add 'extensions'.
57871         * doc/posix-functions/iswblank.texi: Document the glibc problem.
57873 2011-02-06  Bruno Haible  <bruno@clisp.org>
57875         New module 'iswblank'.
57876         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
57877         * modules/iswblank: New file.
57878         * modules/wctype-h (Files): Remove lib/iswblank.c.
57879         (Makefile.am): Substitute GNULIB_ISWBLANK.
57880         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
57881         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
57882         (gl_WCTYPE_H_DEFAULTS): New macro.
57883         (gl_WCTYPE_H): Require it. Remove iswblank related code.
57884         * modules/iswblank-tests: New file.
57885         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
57886         * tests/test-wctype-h.c (main): Remove iswblank tests.
57887         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
57888         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
57889         of 'wctype-h'.
57890         * NEWS: Mention the change.
57891         * modules/mbchar (Depends-on): Add iswblank.
57893 2011-02-08  Bruno Haible  <bruno@clisp.org>
57895         di-set tests: Refactor.
57896         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
57897         unnecessary includes.
57898         (ASSERT): Remove macro.
57899         (main): Make C90 compliant by avoiding variable declaration after
57900         statement.
57901         * modules/di-set-tests (Files): Add tests/macros.h.
57903 2011-02-08  Bruno Haible  <bruno@clisp.org>
57905         ino-map tests: Refactor.
57906         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
57907         unnecessary includes.
57908         (ASSERT): Remove macro.
57909         (main): Make C90 compliant by avoiding variable declaration after
57910         statement.
57911         * modules/ino-map-tests (Files): Add tests/macros.h.
57913 2011-02-08  Jim Meyering  <meyering@redhat.com>
57915         di-set: add "const" to a cast
57916         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
57917         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
57919 2011-02-06  Bruno Haible  <bruno@clisp.org>
57921         Rename module 'wctype' to 'wctype-h'.
57922         * modules/wctype-h: Renamed from modules/wctype.
57923         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
57924         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
57925         (Files, Depends-on, Makefile.am): Update.
57926         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
57927         (Files, Makefile.am): Update.
57928         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
57929         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
57930         * doc/posix-headers/wctype.texi: Update.
57931         * doc/posix-functions/iswalnum.texi: Update.
57932         * doc/posix-functions/iswalpha.texi: Update.
57933         * doc/posix-functions/iswblank.texi: Update.
57934         * doc/posix-functions/iswcntrl.texi: Update.
57935         * doc/posix-functions/iswdigit.texi: Update.
57936         * doc/posix-functions/iswgraph.texi: Update.
57937         * doc/posix-functions/iswlower.texi: Update.
57938         * doc/posix-functions/iswprint.texi: Update.
57939         * doc/posix-functions/iswpunct.texi: Update.
57940         * doc/posix-functions/iswspace.texi: Update.
57941         * doc/posix-functions/iswupper.texi: Update.
57942         * doc/posix-functions/iswxdigit.texi: Update.
57943         * doc/posix-functions/towlower.texi: Update.
57944         * doc/posix-functions/towupper.texi: Update.
57945         * NEWS: Mention the change.
57946         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
57947         * modules/mbchar (Dependencies): Likewise.
57948         * modules/mbswidth (Dependencies): Likewise.
57949         * modules/quotearg (Dependencies): Likewise.
57950         * modules/regex (Dependencies): Likewise.
57951         * modules/wcscasecmp (Dependencies): Likewise.
57952         * modules/wcsncasecmp (Dependencies): Likewise.
57953         * modules/wcwidth (Dependencies): Likewise.
57955 2011-02-06  Bruno Haible  <bruno@clisp.org>
57957         New module 'wcswidth'.
57958         * modules/wcswidth: New file.
57959         * lib/wchar.in.h (wcswidth): New declaration.
57960         * lib/wcswidth.c: New file.
57961         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
57962         * m4/wcswidth.m4: New file.
57963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
57964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
57965         REPLACE_WCSWIDTH.
57966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
57967         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
57968         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
57969         * doc/posix-functions/wcswidth.texi: Mention the new module.
57971 2011-02-06  Bruno Haible  <bruno@clisp.org>
57973         New module 'wcstok'.
57974         * modules/wcstok: New file.
57975         * lib/wchar.in.h (wcstok): New declaration.
57976         * lib/wcstok.c: New file.
57977         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
57978         * m4/wcstok.m4: New file.
57979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
57980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
57981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
57982         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
57983         * doc/posix-functions/wcstok.texi: Mention the new module.
57985 2011-02-06  Bruno Haible  <bruno@clisp.org>
57987         New module 'wcsstr'.
57988         * modules/wcsstr: New file.
57989         * lib/wchar.in.h (wcsstr): New declaration.
57990         * lib/wcsstr.c: New file.
57991         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
57992         * m4/wcsstr.m4: New file.
57993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
57994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
57995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
57996         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
57997         * doc/posix-functions/wcsstr.texi: Mention the new module.
57999 2011-02-06  Bruno Haible  <bruno@clisp.org>
58001         New module 'wcspbrk'.
58002         * modules/wcspbrk: New file.
58003         * lib/wchar.in.h (wcspbrk): New declaration.
58004         * lib/wcspbrk.c: New file.
58005         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
58006         * m4/wcspbrk.m4: New file.
58007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
58008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
58009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
58010         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
58011         * doc/posix-functions/wcspbrk.texi: Mention the new module.
58013 2011-02-06  Bruno Haible  <bruno@clisp.org>
58015         New module 'wcsspn'.
58016         * modules/wcsspn: New file.
58017         * lib/wchar.in.h (wcsspn): New declaration.
58018         * lib/wcsspn.c: New file.
58019         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
58020         * m4/wcsspn.m4: New file.
58021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
58022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
58023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
58024         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
58025         * doc/posix-functions/wcsspn.texi: Mention the new module.
58027 2011-02-06  Bruno Haible  <bruno@clisp.org>
58029         New module 'wcscspn'.
58030         * modules/wcscspn: New file.
58031         * lib/wchar.in.h (wcscspn): New declaration.
58032         * lib/wcscspn.c: New file.
58033         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
58034         * m4/wcscspn.m4: New file.
58035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
58036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
58037         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
58038         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
58039         * doc/posix-functions/wcscspn.texi: Mention the new module.
58041 2011-02-06  Bruno Haible  <bruno@clisp.org>
58043         New module 'wcsrchr'.
58044         * modules/wcsrchr: New file.
58045         * lib/wchar.in.h (wcsrchr): New declaration.
58046         * lib/wcsrchr.c: New file.
58047         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
58048         * m4/wcsrchr.m4: New file.
58049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
58050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
58051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
58052         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
58053         * doc/posix-functions/wcsrchr.texi: Mention the new module.
58055 2011-02-06  Bruno Haible  <bruno@clisp.org>
58057         New module 'wcschr'.
58058         * modules/wcschr: New file.
58059         * lib/wchar.in.h (wcschr): New declaration.
58060         * lib/wcschr.c: New file.
58061         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
58062         * m4/wcschr.m4: New file.
58063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
58064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
58065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
58066         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
58067         * doc/posix-functions/wcschr.texi: Mention the new module.
58069 2011-02-06  Bruno Haible  <bruno@clisp.org>
58071         New module 'wcsdup'.
58072         * modules/wcsdup: New file.
58073         * lib/wchar.in.h (wcsdup): New declaration.
58074         * lib/wcsdup.c: New file.
58075         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
58076         * m4/wcsdup.m4: New file.
58077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
58078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
58079         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
58080         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
58081         * doc/posix-functions/wcsdup.texi: Mention the new module.
58083 2011-02-06  Bruno Haible  <bruno@clisp.org>
58085         New module 'wcsxfrm'.
58086         * modules/wcsxfrm: New file.
58087         * lib/wchar.in.h (wcsxfrm): New declaration.
58088         * lib/wcsxfrm.c: New file.
58089         * lib/wcsxfrm-impl.h: New file.
58090         * m4/wcsxfrm.m4: New file.
58091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
58092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
58093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
58094         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
58095         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
58097 2011-02-06  Bruno Haible  <bruno@clisp.org>
58099         New module 'wcscoll'.
58100         * modules/wcscoll: New file.
58101         * lib/wchar.in.h (wcscoll): New declaration.
58102         * lib/wcscoll.c: New file.
58103         * lib/wcscoll-impl.h: New file.
58104         * m4/wcscoll.m4: New file.
58105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
58106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
58107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
58108         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
58109         * doc/posix-functions/wcscoll.texi: Mention the new module.
58111 2011-02-06  Bruno Haible  <bruno@clisp.org>
58113         New module 'wcsncasecmp'.
58114         * modules/wcsncasecmp: New file.
58115         * lib/wchar.in.h (wcsncasecmp): New declaration.
58116         * lib/wcsncasecmp.c: New file.
58117         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
58118         * m4/wcsncasecmp.m4: New file.
58119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
58120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
58121         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
58122         HAVE_WCSNCASECMP.
58123         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
58124         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
58126 2011-02-06  Bruno Haible  <bruno@clisp.org>
58128         New module 'wcscasecmp'.
58129         * modules/wcscasecmp: New file.
58130         * lib/wchar.in.h (wcscasecmp): New declaration.
58131         * lib/wcscasecmp.c: New file.
58132         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
58133         * m4/wcscasecmp.m4: New file.
58134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
58135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
58136         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
58137         HAVE_WCSCASECMP.
58138         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
58139         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
58141 2011-02-05  Bruno Haible  <bruno@clisp.org>
58143         New module 'wcsncmp'.
58144         * modules/wcsncmp: New file.
58145         * lib/wchar.in.h (wcsncmp): New declaration.
58146         * lib/wcsncmp.c: New file.
58147         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
58148         * m4/wcsncmp.m4: New file.
58149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
58150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
58151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
58152         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
58153         * doc/posix-functions/wcsncmp.texi: Mention the new module.
58155 2011-02-05  Bruno Haible  <bruno@clisp.org>
58157         New module 'wcscmp'.
58158         * modules/wcscmp: New file.
58159         * lib/wchar.in.h (wcscmp): New declaration.
58160         * lib/wcscmp.c: New file.
58161         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
58162         * m4/wcscmp.m4: New file.
58163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
58164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
58165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
58166         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
58167         * doc/posix-functions/wcscmp.texi: Mention the new module.
58169 2011-02-05  Bruno Haible  <bruno@clisp.org>
58171         New module 'wcsncat'.
58172         * modules/wcsncat: New file.
58173         * lib/wchar.in.h (wcsncat): New declaration.
58174         * lib/wcsncat.c: New file.
58175         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
58176         * m4/wcsncat.m4: New file.
58177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
58178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
58179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
58180         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
58181         * doc/posix-functions/wcsncat.texi: Mention the new module.
58183 2011-02-05  Bruno Haible  <bruno@clisp.org>
58185         New module 'wcscat'.
58186         * modules/wcscat: New file.
58187         * lib/wchar.in.h (wcscat): New declaration.
58188         * lib/wcscat.c: New file.
58189         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
58190         * m4/wcscat.m4: New file.
58191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
58192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
58193         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
58194         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
58195         * doc/posix-functions/wcscat.texi: Mention the new module.
58197 2011-02-05  Bruno Haible  <bruno@clisp.org>
58199         New module 'wcpncpy'.
58200         * modules/wcpncpy: New file.
58201         * lib/wchar.in.h (wcpncpy): New declaration.
58202         * lib/wcpncpy.c: New file.
58203         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
58204         * m4/wcpncpy.m4: New file.
58205         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
58206         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
58207         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
58208         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
58209         * doc/posix-functions/wcpncpy.texi: Mention the new module.
58211 2011-02-05  Bruno Haible  <bruno@clisp.org>
58213         New module 'wcsncpy'.
58214         * modules/wcsncpy: New file.
58215         * lib/wchar.in.h (wcsncpy): New declaration.
58216         * lib/wcsncpy.c: New file.
58217         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
58218         * m4/wcsncpy.m4: New file.
58219         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
58220         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
58221         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
58222         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
58223         * doc/posix-functions/wcsncpy.texi: Mention the new module.
58225 2011-02-05  Bruno Haible  <bruno@clisp.org>
58227         New module 'wcpcpy'.
58228         * modules/wcpcpy: New file.
58229         * lib/wchar.in.h (wcpcpy): New declaration.
58230         * lib/wcpcpy.c: New file.
58231         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
58232         * m4/wcpcpy.m4: New file.
58233         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
58234         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
58235         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
58236         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
58237         * doc/posix-functions/wcpcpy.texi: Mention the new module.
58239 2011-02-05  Bruno Haible  <bruno@clisp.org>
58241         New module 'wcscpy'.
58242         * modules/wcscpy: New file.
58243         * lib/wchar.in.h (wcscpy): New declaration.
58244         * lib/wcscpy.c: New file.
58245         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
58246         * m4/wcscpy.m4: New file.
58247         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
58248         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
58249         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
58250         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
58251         * doc/posix-functions/wcscpy.texi: Mention the new module.
58253 2011-02-05  Bruno Haible  <bruno@clisp.org>
58255         New module 'wcsnlen'.
58256         * modules/wcsnlen: New file.
58257         * lib/wchar.in.h (wcsnlen): New declaration.
58258         * lib/wcsnlen.c: New file.
58259         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
58260         * m4/wcsnlen.m4: New file.
58261         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
58262         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
58263         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
58264         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
58265         * doc/posix-functions/wcsnlen.texi: Mention the new module.
58267 2011-02-05  Bruno Haible  <bruno@clisp.org>
58269         New module 'wcslen'.
58270         * modules/wcslen: New file.
58271         * lib/wchar.in.h (wcslen): New declaration.
58272         * lib/wcslen.c: New file.
58273         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
58274         * m4/wcslen.m4: New file.
58275         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
58276         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
58277         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
58278         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
58279         * doc/posix-functions/wcslen.texi: Mention the new module.
58281 2011-02-05  Bruno Haible  <bruno@clisp.org>
58283         New module 'wmemset'.
58284         * modules/wmemset: New file.
58285         * lib/wchar.in.h (wmemset): New declaration.
58286         * lib/wmemset.c: New file.
58287         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
58288         * m4/wmemset.m4: New file.
58289         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
58290         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
58291         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
58292         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
58293         * doc/posix-functions/wmemset.texi: Mention the new module.
58295 2011-02-05  Bruno Haible  <bruno@clisp.org>
58297         New module 'wmemmove'.
58298         * modules/wmemmove: New file.
58299         * lib/wchar.in.h (wmemmove): New declaration.
58300         * lib/wmemmove.c: New file.
58301         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
58302         * m4/wmemmove.m4: New file.
58303         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
58304         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
58305         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
58306         HAVE_WMEMMOVE.
58307         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
58308         * doc/posix-functions/wmemmove.texi: Mention the new module.
58310 2011-02-05  Bruno Haible  <bruno@clisp.org>
58312         New module 'wmemcpy'.
58313         * modules/wmemcpy: New file.
58314         * lib/wchar.in.h (wmemcpy): New declaration.
58315         * lib/wmemcpy.c: New file.
58316         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
58317         * m4/wmemcpy.m4: New file.
58318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
58319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
58320         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
58321         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
58322         * doc/posix-functions/wmemcpy.texi: Mention the new module.
58324 2011-02-05  Bruno Haible  <bruno@clisp.org>
58326         New module 'wmemcmp'.
58327         * modules/wmemcmp: New file.
58328         * lib/wchar.in.h (wmemcmp): New declaration.
58329         * lib/wmemcmp.c: New file.
58330         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
58331         * m4/wmemcmp.m4: New file.
58332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
58333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
58334         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
58335         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
58336         * doc/posix-functions/wmemcmp.texi: Mention the new module.
58338 2011-02-07  Jim Meyering  <meyering@redhat.com>
58340         di-set, ino-map: new modules, from coreutils
58341         * lib/di-set.c: New file.
58342         * lib/di-set.h: Likewise.
58343         * lib/ino-map.c: Likewise.
58344         * lib/ino-map.h: Likewise.
58345         * modules/di-set: Likewise.
58346         * modules/di-set-tests: Likewise.
58347         * modules/ino-map: Likewise.
58348         * modules/ino-map-tests: Likewise.
58349         * tests/test-di-set.c: Likewise.
58350         * tests/test-ino-map.c: Likewise.
58352 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
58354         getloadavg: merge minor changes from Emacs
58356         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
58357         (getloadavg): Use memset, not bzero.
58359         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
58360         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
58361         clash (bug#86).
58363 2010-11-14  Bruno Haible  <bruno@clisp.org>
58365         Allow multiple gnulib generated replacements to coexist.
58366         * lib/getopt.in.h (struct option): Avoid identical redefinition.
58367         * lib/inttypes.in.h (imaxdiv_t): Likewise.
58368         * lib/langinfo.in.h (nl_item): Likewise.
58369         * lib/math.in.h (_NaN, NAN): Likewise.
58370         * lib/netdb.in.h (struct addrinfo): Likewise.
58371         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
58372         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
58373         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
58374         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
58375         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
58376         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
58377         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
58378         pthread_mutexattr_init, pthread_mutexattr_settype,
58379         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
58380         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
58381         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
58382         pthread_spin_trylock, pthread_spin_unlock): Likewise.
58383         * lib/sched.in.h (struct sched_param): Likewise.
58384         * lib/se-selinux.in.h (security_class_t, security_context_t,
58385         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
58386         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
58387         lsetfilecon, fsetfilecon, security_check_context,
58388         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
58389         Likewise.
58390         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
58391         Likewise.
58392         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
58393         _gl_function_taking_int_returning_void_t, union sigval,
58394         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
58395         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
58396         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
58397         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
58398         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
58399         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
58400         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
58401         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
58402         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
58403         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
58404         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
58405         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
58406         socklen_t, rpl_fd_isset): Likewise.
58407         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
58408         * lib/sys_time.in.h (struct timeval): Likewise.
58409         * lib/sys_times.in.h (struct tms): Likewise.
58410         * lib/sys_utsname.in.h (struct utsname):
58411         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
58412         * lib/unistd.in.h (getpagesize): Likewise.
58413         * lib/wchar.in.h (mbstate_t): Likewise.
58414         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58415         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
58416         towlower, towupper): Likewise.
58417         Reported by Sam Steingold <sds@gnu.org>.
58419 2011-02-05  Eric Blake  <eblake@redhat.com>
58421         unsetenv: work around Haiku issues
58422         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
58423         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
58425 2010-12-30  Bruce Korb  <bkorb@gnu.org>
58427         libposix: avoid calling error() within libposix
58428         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
58429         is defined.
58431 2011-02-05  Eric Blake  <eblake@redhat.com>
58433         strerror_r-posix: port to cygwin
58434         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
58435         implementation.
58436         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
58437         * tests/test-strerror_r.c (main): Fix test.
58438         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
58439         issue.
58441 2011-02-05  Bruno Haible  <bruno@clisp.org>
58443         New module 'wmemchr'.
58444         * modules/wmemchr: New file.
58445         * lib/wchar.in.h (wmemchr): New declaration.
58446         * lib/wmemchr.c: New file.
58447         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
58448         * m4/wmemchr.m4: New file.
58449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
58450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
58451         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
58452         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
58453         * doc/posix-functions/wmemchr.texi: Mention the new module.
58455 2011-02-04  Eric Blake  <eblake@redhat.com>
58457         fdopendir: detect FreeBSD bug
58458         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
58459         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
58461 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58463         stdbool: do not define HAVE_STDBOOL_H
58464         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
58465         AC_HEADER_STDBOOL.  All uses changed.  Do not define
58466         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
58467         imported from the latest Autoconf git.  It was motivated by Emacs,
58468         which uses gnulib but does not need HAVE_STDBOOL_H.
58470 2011-02-04  Bruno Haible  <bruno@clisp.org>
58472         wcsnrtombs: Prepare for new module wwcsnrtombs.
58473         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
58474         * lib/wcsnrtombs.c: Include it.
58475         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
58477         wcsrtombs: Prepare for new module wwcsrtombs.
58478         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
58479         * lib/wcsrtombs.c: Include it.
58480         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
58482         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
58483         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
58484         * lib/mbsnrtowcs.c: Include it.
58485         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
58487         mbsrtowcs: Prepare for new module mbsrtowwcs.
58488         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
58489         * lib/mbsrtowcs.c: Include it.
58490         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
58492 2011-02-04  Bruno Haible  <bruno@clisp.org>
58494         vasnprintf: Reduce use of malloc for small format strings.
58495         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
58496         (arguments): Add room for the first 7 arguments.
58497         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
58498         (char_directives, u8_directives, u16_directives, u32_directives): Add
58499         room for the first 7 directives.
58500         * lib/printf-parse.c: Include <string.h>.
58501         (PRINTF_PARSE): Change memory handling code so that it uses the first
58502         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
58503         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
58504         Reported by Pádraig Brady <P@draigbrady.com>.
58506 2011-01-31  Eric Blake  <eblake@redhat.com>
58508         dup2: work around Haiku bug
58509         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
58510         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
58511         * doc/posix-functions/dup2.texi (dup2): Document the bug.
58512         * tests/test-dup2.c (main): Enhance test.
58514 2011-01-31  Simon Josefsson  <simon@josefsson.org>
58516         doc: off_t is not available in eglibc 2.11.2 stdio.h.
58517         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
58518         declared by eglibc 2.11.2.
58519         * lib/stdio.in.h: Likewise.
58521 2011-01-31  Eric Blake  <eblake@redhat.com>
58523         ignore-value: add missing test dependency
58524         * tests/test-ignore-value.c: Revert previous change; stdio.h
58525         provides off_t.
58526         * modules/ignore-value-tests (Depends-on): Add missing dependency.
58528 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
58530         mktime: clarify long_int width checking
58531         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
58532         the top level, to make it clearer that the assumption about
58533         long_int width is being checked.  See
58534         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
58536 2011-01-30  Simon Josefsson  <simon@josefsson.org>
58538         ignore-value: Fix self-test.
58539         * tests/test-ignore-value.c: Include sys/types.h for off_t.
58541 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58543         TYPE_MAXIMUM: avoid theoretically undefined behavior
58544         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
58545         negative number, which the C Standard says has undefined behavior.
58546         In practice this is not a problem, but might as well do it by the book.
58547         Reported by Rich Felker and Eric Blake; see
58548         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
58549         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
58550         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58551         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58552         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
58553         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58554         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
58556         mktime: #undef mktime before #defining it
58557         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
58559         mktime: systematically normalize tm_isdst comparisons
58560         * lib/mktime.c (isdst_differ): New function.
58561         (__mktime_internal): Use it systematically for all isdst comparisons.
58562         This completes the fix for libc BZ #6723, and removes the need for
58563         normalizing tm_isdst.  See
58564         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
58565         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
58567         mktime: fix some integer overflow issues and sidestep the rest
58569         This was prompted by a bug report by Benjamin Lindner for MinGW
58570         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
58571         His bug is due to signed integer overflow (0 - INT_MIN), and I
58572         I scanned through mktime.c looking for other integer overflow
58573         problems, fixing all the bugs I found.
58575         Although the C Standard says the resulting code is still not safe
58576         in the presence of integer overflow, in practice it should be good
58577         enough for all real-world two's-complement implementations, except
58578         for debugging environments that deliberately trap on integer
58579         overflow (e.g., gcc -ftrapv).
58581         * lib/mktime.c (WRAPV): New macro.
58582         (SHR): Also check that long_int and time_t shift right in the
58583         usual way, before using the fast-but-unportable method.
58584         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
58585         used.  The code already assumed two's complement, so there's
58586         no need to test for alternatives.  All uses removed.
58587         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
58588         the C standard.  Problem reported by Rich Felker in
58589         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
58590         (twos_complement_arithmetic): Also check long_int and time_t.
58591         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
58592         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
58593         (__mktime_internal): Avoid integer overflow with unary subtraction
58594         in two instances where -1 - X is an adequate replacement for -X,
58595         since the calculations are approximate.
58597 2011-01-29  Eric Blake  <eblake@redhat.com>
58599         mktime: avoid infinite loop
58600         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
58601         type; behavior is still undefined but portable to all known targets.
58602         Reported by Rich Felker.
58604 2011-01-29  Simon Josefsson  <simon@josefsson.org>
58606         rename, unlink, same-inode: Relicense.
58607         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
58608         * modules/unlink (License): Likewise.
58609         * modules/same-inode (License): Likewise.
58611 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58613         mktime: avoid problems on NetBSD 5 / i386
58614         * lib/mktime.c (long_int): New type.  This works around a problem
58615         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
58616         but time_t is 64 bits, and where I expect the existing code is
58617         wrong in some cases.
58618         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
58619         (ydhms_diff): Bring back the compile-time check for wide-enough
58620         year and yday.
58622         mktime: fix misspelling in comment
58623         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
58624         This merges all recent glibc changes of importance.
58626 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58628         move-if-change: cope with concurrent mv of identical file.
58629         * build-aux/move-if-change (CMPPROG): Accept environment
58630         variable as an override for `cmp'.
58631         (usage): Document CMPPROG.
58632         Adjust comparison to drop stdout.  Cope with failure of mv if
58633         the target file exists and is identical to the source, for
58634         parallel builds.
58635         Report from H.J. Lu against binutils in PR binutils/12283.
58637 2011-01-28  Bruce Korb  <bkorb@gnu.org>
58639         * users.txt: Mention sharutils.
58641 2011-01-28  Simon Josefsson  <simon@josefsson.org>
58643         * users.txt: Mention OATH Toolkit.
58645 2011-01-27  Bruno Haible  <bruno@clisp.org>
58647         Prepare for supporting FreeBSD 10.
58648         * build-aux/config.libpath: Remove handling of freebsd1*.
58650 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
58652         Prepare for supporting FreeBSD 10.
58653         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
58654         match FreeBSD 10.0.
58656 2011-01-27  Bruno Haible  <bruno@clisp.org>
58658         vma-iter, get-rusage-as: Add OpenBSD support.
58659         * modules/vma-iter (configure.ac): Test for mquery.
58660         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
58661         * lib/vma-iter.c: Include <sys/mman.h>.
58662         (vma_iterate): Add an implementation based on mquery().
58663         * lib/resource-ext.h (get_rusage_as): Update comments.
58664         * lib/get-rusage-as.c: Likewise.
58665         * lib/get-rusage-data.c: Likewise.
58667 2011-01-26  Karl Berry  <karl@gnu.org>
58669         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
58670         variables to make it easier to override the makeinfo program used.
58672 2011-01-26  Eric Blake  <eblake@redhat.com>
58674         fcntl: work around Haiku F_DUPFD bugs
58675         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
58676         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
58677         cloexec bit on duplication.
58678         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
58680 2011-01-26  Bruno Haible  <bruno@clisp.org>
58682         Enable memory leak tests on AIX.
58683         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
58684         * tests/test-fprintf-posix3.c (main): Likewise.
58686 2011-01-26  Bruno Haible  <bruno@clisp.org>
58688         Tests for module 'get-rusage-data'.
58689         * modules/get-rusage-data-tests: New file.
58690         * tests/test-get-rusage-data.c: New file.
58692         New module 'get-rusage-data'.
58693         * lib/resource-ext.h (get_rusage_data): New declaration.
58694         * lib/get-rusage-data.c: New file.
58695         * modules/get-rusage-data: New file.
58697 2011-01-25  Bruno Haible  <bruno@clisp.org>
58699         get-rusage-as: Allow for easier testing.
58700         * lib/resource-ext.h (get_rusage_as): Add comment.
58701         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
58702         (main): New function for interactive testing.
58704 2011-01-25  Bruno Haible  <bruno@clisp.org>
58706         vma-iter: Treat Haiku like BeOS.
58707         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
58708         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
58710 2011-01-25  Eric Blake  <eblake@redhat.com>
58712         c-stack: fix regression on cygwin when libsigsegv is present
58713         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
58715 2011-01-24  Bruno Haible  <bruno@clisp.org>
58717         vma-iter: Avoid empty intervals.
58718         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
58719         on an empty interval.
58721 2011-01-24  Jim Meyering  <meyering@redhat.com>
58723         u64: remove unnecessary #include
58724         * lib/u64.h: Don't include <stddef.h>.  It was not used.
58726 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58728         Allow the user to avoid the HAVE_RAW_DECL_* macros.
58729         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
58731 2011-01-23  Bruno Haible  <bruno@clisp.org>
58733         New module 'vma-iter'.
58734         * lib/vma-iter.h: New file.
58735         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
58736         * modules/vma-iter: New file.
58737         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
58738         for get_rusage_as_via_iterator.
58739         (vma_iterate_callback): New function.
58740         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
58741         * modules/get-rusage-as (Depends-on): Add vma-iter.
58743 2011-01-23  Bruno Haible  <bruno@clisp.org>
58745         uninorm: Tweak includes.
58746         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
58747         Reported by Jim Meyering.
58749 2011-01-23  Bruno Haible  <bruno@clisp.org>
58751         get-rusage-as: Improve on NetBSD.
58752         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
58753         /proc, like on FreeBSD.
58755 2011-01-23  Jim Meyering  <meyering@redhat.com>
58757         xreadlink.h: remove unnecessary #include
58758         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
58760         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
58761         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
58763 2011-01-23  Bruno Haible  <bruno@clisp.org>
58765         get-rusage-as: Fix bug.
58766         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
58767         original limit when aborting the first loop.
58769 2011-01-23  Bruno Haible  <bruno@clisp.org>
58771         wctype: Ensure valid C syntax.
58772         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
58773         unconditionally, instead of gl_NEXT_HEADERS conditionally.
58775 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58777         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
58778         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
58779         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
58780         as they are needed only for configure's test case.
58781         This removes two unnecessary symbols from config.h.
58783         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
58784         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
58785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
58786         AC_CHECK_HEADERS_ONCE on a header that we also invoke
58787         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
58788         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
58789         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
58790         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
58791         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58792         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
58793         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58794         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58795         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58796         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
58797         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
58798         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58799         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
58800         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58802 2011-01-21  Eric Blake  <eblake@redhat.com>
58804         maintainer-makefile: work with older git for submodule check
58805         * top/maint.mk (public-submodule-commit): Rewrite to avoid
58806         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
58807         Reported by Matthias Bolte.
58809         bootstrap: minor portability fixes
58810         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
58811         (usage): Omit leading capital and trailing . on help phrases, per
58812         GNU Coding Standards.
58813         (check_versions, top level): Prefix messages with script name.
58815 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
58817         bootstrap: support --no-git option
58818         * build-aux/bootstrap: Add --no-git option, to be used when
58819         --gnulib-srcdir points to the exact desired checkout.
58821 2011-01-21  Eric Blake  <eblake@redhat.com>
58823         strerror_r-posix: work with glibc 2.13
58824         * lib/strerror_r.c (strerror_r): Fix return type.
58826 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58827             Bruno Haible  <bruno@clisp.org>
58829         uN_strstr: New unit tests.
58830         * modules/unistr/u8-strstr-tests: New file.
58831         * modules/unistr/u16-strstr-tests: New file.
58832         * modules/unistr/u32-strstr-tests: New file.
58833         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
58834         * tests/unistr/test-u8-strstr.c: New file.
58835         * tests/unistr/test-u16-strstr.c: New file.
58836         * tests/unistr/test-u32-strstr.c: New file.
58838 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58839             Bruno Haible  <bruno@clisp.org>
58841         Make uN_strstr functions O(n) worst-case.
58842         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
58843         16-bit and 32-bit unit cases, use the unibyte algorithm from
58844         lib/mbsstr.c.
58845         * lib/unistr/u8-strstr.c: Include <string.h>.
58846         (UNIT_IS_UINT8_T): New macro.
58847         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
58848         (U_STRLEN, U_STRNLEN): New macros.
58849         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
58850         (U_STRLEN, U_STRNLEN): New macros.
58851         * modules/unistr/u8-strstr (Depends-on): Add strstr.
58852         (configure.ac): Update required libunistring version.
58853         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
58854         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
58855         malloca.
58856         (configure.ac): Update required libunistring version.
58857         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
58858         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
58859         malloca.
58860         (configure.ac): Update required libunistring version.
58862 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58863             Bruno Haible  <bruno@clisp.org>
58865         Prepare for faster uN_strstr functions.
58866         * lib/str-kmp.h: Support definable UNITs.
58867         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
58868         needle_len argument.
58869         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
58870         * lib/mbscasestr.c (mbscasestr): Likewise.
58872 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58874         malloca-tests: make faster by unsetting MALLOC_PERTURB_
58875         * tests/test-malloca.c (main): Unset the environment variable
58876         to greatly speed up the test.
58877         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
58878         * modules/malloca-tests: Depend on unsetenv.
58880 2011-01-21  Pádraig Brady  <P@draigBrady.com>
58882         ignore-value: remove stdint dependency
58883         * lib/ignore-value.h: Remove <stdint.h>
58884         * modules/ignore-value: Remove stdint dependency.
58886 2011-01-21  Jim Meyering  <meyering@redhat.com>
58888         maint.mk: adjust variable name to be consistent with other gl_ vars
58889         * top/maint.mk (gl_public_submodule_commit): Rename the variable
58890         to be lower case.
58892 2011-01-20  Jim Meyering  <meyering@redhat.com>
58894         maint.mk: make "check" depend on public-submodule-commit by default
58895         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
58897 2011-01-20  Bruno Haible  <bruno@clisp.org>
58899         mbfile, mbiter: Complete change from 2008-12-21.
58900         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
58901         * m4/mbiter.m4 (gl_MBITER): Likewise.
58903 2011-01-20  Jim Meyering  <meyering@redhat.com>
58905         init.sh: insert space between each function name and "()"
58906         * tests/init.sh: Make it a little easier to see that a function's
58907         name is "warn_", and not "warn" when looking at the first part of
58908         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
58910 2011-01-20  Jim Meyering  <meyering@redhat.com>
58912         mountlist: clean up code formatting
58913         * lib/mountlist.c (read_file_system_list): Split a long line,
58914         correct bracing style, use NULL in place of "(struct statfs *)0",
58915         don't parenthesize return value, add spaces around "=" and after
58916         ";-in-for-stmt".
58918 2011-01-14  Markus Duft  <mduft@gentoo.org>
58920         mountlist: add support for Interix
58921         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
58922         Apply statvfs to all entries of /dev/fs.
58923         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
58924         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
58926 2011-01-20  Jim Meyering  <meyering@redhat.com>
58928         maint.mk: improve the public-submodule-commit rule
58929         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
58930         to suppress printing of its commands... unless V=1.
58931         Add git submodule's --quiet option to suppress printing of e.g.,
58932         "Entering gnulib" output.
58933         "cd" into $(srcdir) before running git submodule.
58935 2011-01-20  Bruno Haible  <bruno@clisp.org>
58937         include_next: Fix bug introduced on 2011-01-18.
58938         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
58939         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
58940         ac_cv_header_... variable if the second argument is not 'check'.
58941         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
58942         gl_NEXT_HEADERS_INTERNAL.
58944 2011-01-20  Bruno Haible  <bruno@clisp.org>
58946         Allow the user to avoid the GNULIB_TEST_* macros.
58947         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
58948         Suggested by Paul Eggert.
58950 2011-01-14  Jim Meyering  <meyering@redhat.com>
58952         bootstrap: avoid failure when there is no .gitmodules file
58953         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
58954         has been assigned to, even when its value is the empty string.
58955         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
58956         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
58957         Reported by John W. Eaton <jwe@gnu.org>.
58959 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58961         assume <ctype.h>, ..., <time.h> exist
58962         For years gnulib has been assuming the existence of the headers
58963         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
58964         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
58965         them, since they don't appear to be needed.
58966         * README (Portability guidelines): Document this.
58967         * lib/flock.c: Assume <fcntl.h> exists.
58968         * lib/regex_internal.h: Assume <locale.h> exists.
58969         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
58970         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
58971         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
58972         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
58973         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
58974         * m4/regex.m4 (gl_REGEX): Likewise.
58975         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
58976         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
58977         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
58978         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
58979         * tests/test-argp.c: Likewise.
58980         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
58982         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
58983         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
58984         AA_APPLE_UNIVERSAL_BUILD.  See
58985         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
58986         * NEWS: Document this.
58988 2011-01-19  Eric Blake  <eblake@redhat.com>
58990         c-stack: assume stack overflow if SA_SIGINFO unsupported
58991         * lib/c-stack.c (SIGACTION_WORKS): Rename...
58992         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
58993         sigaction will work.
58994         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
58995         behavior match Linux.
58996         * tests/test-c-stack.c (main): Prefer NULL for pointers.
58998         stdbool-tests: accommodate Haiku
58999         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
59001         binary-io: fix O_TEXT on Haiku
59002         * modules/binary-io (Depends-on): Add fcntl-h.
59003         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
59004         than blindly undefining O_TEXT.
59005         Reported by Scott McCreary.
59007 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59009         include_next: do not check for standard headers like stddef.h
59011         I found this problem when modifying Emacs to use gnulib.
59012         I noticed that it added HAVE_STDDEF_H to config.h, even though
59013         gnulib always assumes <stddef.h> exists as per README and this
59014         symbol is unnecessary.
59015         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
59016         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
59017         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
59018         faster for headers like stddef.h that are known to exist.
59019         (gl_CHECK_NEXT_HEADERS): Use it.
59020         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
59021         rather than gl_CHECK_NEXT_HEADERS.
59022         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
59023         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
59025 2011-01-18  Eric Blake  <eblake@redhat.com>
59027         ansi-c++-opt: skip C++ dependency style if C++ is unused
59028         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
59029         tests when we know C++ compilation is not desired.
59030         Reported by Scott McCreary.
59032 2011-01-18  Bruno Haible  <bruno@clisp.org>
59034         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
59035         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
59036         (main): Perform test also when getrlimit and setrlimit don't exist or
59037         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
59038         limiting the address space size using setrlimit, compare the address
59039         space size before and after the test.
59040         * tests/test-dprintf-posix2.c: Likewise.
59041         * tests/test-fprintf-posix3.sh: Update skip messages.
59042         * tests/test-dprintf-posix2.sh: Likewise.
59043         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
59044         * modules/dprintf-posix-tests (Depends-on): Likewise.
59045         Reported by Bruce Korb <bkorb@gnu.org> and
59046         Gary V. Vaughan <gary@gnu.org>.
59048 2011-01-18  Bruno Haible  <bruno@clisp.org>
59050         get-rusage-as: Improvement for Cygwin.
59051         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
59052         areas that are merely reserved.
59054 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59056         strftime: remove dependencies on multibyte modules
59058         strftime depended on mbrlen, mbsinit, and wchar, but these modules
59059         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
59060         only if __osf__ is defined, and I suspect OSF doesn't need these
59061         other modules.  If my guess is wrong, we'll need to come up with a
59062         variant of strftime that doesn't need the multibyte modules.
59064         I discovered this problem when attempting modify Emacs to use the
59065         strftime module.  With the previous gnulib, this caused Emacs to
59066         need 31 new files, ranging from lib/config.charset to
59067         m4/wint_t.m4.  This was overkill and I expect would be offputting
59068         to the Emacs maintainers.  After this change, only 6 new files are
59069         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
59070         stdbool.m4, and tm_gmtoff.m4.
59072         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
59073         Suggested by Bruno Haible in
59074         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
59075         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
59076         and do not check for wchar.h.
59077         * modules/strftime (Files): Remove m4/mbstate_t.m4.
59078         (Depends-on): Remove mbrlen, mbsinit, wchar.
59080 2011-01-18  Bruno Haible  <bruno@clisp.org>
59082         Tests for module 'get-rusage-as'.
59083         * modules/get-rusage-as-tests: New file.
59084         * tests/test-get-rusage-as.c: New file.
59086         New module 'get-rusage-as'.
59087         * modules/get-rusage-as: New file.
59088         * lib/resource-ext.h: New file.
59089         * lib/get-rusage-as.c: New file.
59091 2011-01-17  Eric Blake  <eblake@redhat.com>
59093         sigaction: relax license from LGPLv3+ to LGPLv2+
59094         * modules/sigaction (License): Relax to LGPLv2+.
59096 2011-01-14  Bruno Haible  <bruno@clisp.org>
59098         filemode: Make function declarations usable in C++ mode.
59099         * lib/filemode.h: Enclose function declarations in extern "C" block.
59100         Reported by John W. Eaton <jwe@gnu.org>.
59102 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
59104         save-cwd: no longer include "xgetcwd.h"
59105         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
59106         This avoids a compilation failure in projects that use save-cwd
59107         without also using the xgetcwd module.
59109 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59111         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
59112         This is so that a program like Emacs, which needs only dtoastr,
59113         does not have to bother with distributing and compiling ftoastr
59114         and ldtoastr.
59115         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
59116         * modules/dtoastr, modules/ldtoastr: New files.
59117         * modules/ftoastr: Now works just for 'float'.
59118         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
59119         (Makefile.am): Remove ftoastr.h (not needed and no effect),
59120         dtoastr.c, ldtoastr.c.
59122 2011-01-11  Jim Meyering  <meyering@redhat.com>
59124         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
59125         There is no need to work around the lack of the fchdir function,
59126         since gnulib can now provide a replacement when required.
59127         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
59128         * modules/save-cwd (Depends-on): Add fchdir.
59130 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59132         openat, save-cwd: avoid xmalloc
59134         This removes a direct (but undocumented) dependency of openat on
59135         xalloc, along with an indirect dependency via save-cwd.  It also
59136         removes a dependency of save-cwd on xgetcwd, and thereby
59137         indirectly on xalloc.  This change causes the openat substitute
59138         to fall back on save_cwd when memory is tight, and for save_cwd to
59139         fail instead of dying when memory is tight, but that's good enough.
59140         Problem and initial idea for fix reported by Bastien Roucaries in
59141         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
59143         * lib/openat-proc.c: Include stdlib.h (for malloc), not
59144         xalloc.h (for xmalloc).
59145         (openat_proc_name): Use malloc, not xmalloc.
59146         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
59147         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
59149         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
59150         This avoids heap allocation for file names whose lengths are in
59151         the range 512..1023, with the upper bound increasing to at most
59152         4031 depending on the platform's PATH_MAX.  (We do not want
59153         pathmax.h here as it might supply a non-constant PATH_MAX.)
59154         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
59155         Perhaps they should be moved to malloca.h?
59156         (OPENAT_BUFFER_SIZE): Use them.
59158 2011-01-10  Bruno Haible  <bruno@clisp.org>
59160         doc: Update users.txt.
59161         * users.txt: Add recutils.
59163 2011-01-09  Karl Berry  <karl@gnu.org>
59165         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
59167         * doc/configmake.texi: New file.
59168         * doc/gnulib.texi: Include it.
59169         * modules/configmake: Move documentation from here.
59171 2011-01-09  Bruno Haible  <bruno@clisp.org>
59173         Update to Unicode 6.0.0.
59174         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
59175         (get_lbp): Update for Unicode 6.0.0.
59176         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
59177         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
59178         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
59179         U+11001, U+11038..U+11046. Remove U+06DE.
59180         (uc_width): Fix bounds of planes.
59181         * tests/uniwidth/test-uc_width2.sh: Same updates as in
59182         lib/uniwidth/width.c.
59183         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
59184         trailing whitespace removed.
59185         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
59186         without comments, but with the original copyright notice.
59187         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
59188         * lib/unicase/ignorable.h: Likewise.
59189         * lib/unicase/tocasefold.h: Likewise.
59190         * lib/unicase/tolower.h: Likewise.
59191         * lib/unicase/totitle.h: Likewise.
59192         * lib/unicase/toupper.h: Likewise.
59193         * lib/unictype/bidi_of.h: Likewise.
59194         * lib/unictype/blocks.h: Likewise.
59195         * lib/unictype/categ_C.h: Likewise.
59196         * lib/unictype/categ_Cn.h: Likewise.
59197         * lib/unictype/categ_L.h: Likewise.
59198         * lib/unictype/categ_Ll.h: Likewise.
59199         * lib/unictype/categ_Lm.h: Likewise.
59200         * lib/unictype/categ_Lo.h: Likewise.
59201         * lib/unictype/categ_Lu.h: Likewise.
59202         * lib/unictype/categ_M.h: Likewise.
59203         * lib/unictype/categ_Mc.h: Likewise.
59204         * lib/unictype/categ_Me.h: Likewise.
59205         * lib/unictype/categ_Mn.h: Likewise.
59206         * lib/unictype/categ_N.h: Likewise.
59207         * lib/unictype/categ_Nd.h: Likewise.
59208         * lib/unictype/categ_No.h: Likewise.
59209         * lib/unictype/categ_P.h: Likewise.
59210         * lib/unictype/categ_Po.h: Likewise.
59211         * lib/unictype/categ_S.h: Likewise.
59212         * lib/unictype/categ_Sc.h: Likewise.
59213         * lib/unictype/categ_Sk.h: Likewise.
59214         * lib/unictype/categ_Sm.h: Likewise.
59215         * lib/unictype/categ_So.h: Likewise.
59216         * lib/unictype/categ_of.h: Likewise.
59217         * lib/unictype/combining.h: Likewise.
59218         * lib/unictype/ctype_alnum.h: Likewise.
59219         * lib/unictype/ctype_alpha.h: Likewise.
59220         * lib/unictype/ctype_graph.h: Likewise.
59221         * lib/unictype/ctype_lower.h: Likewise.
59222         * lib/unictype/ctype_print.h: Likewise.
59223         * lib/unictype/ctype_punct.h: Likewise.
59224         * lib/unictype/ctype_upper.h: Likewise.
59225         * lib/unictype/decdigit.h: Likewise.
59226         * lib/unictype/digit.h: Likewise.
59227         * lib/unictype/numeric.h: Likewise.
59228         * lib/unictype/pr_alphabetic.h: Likewise.
59229         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59230         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59231         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59232         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59233         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59234         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59235         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59236         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59237         * lib/unictype/pr_case_ignorable.h: Likewise.
59238         * lib/unictype/pr_cased.h: Likewise.
59239         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
59240         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
59241         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
59242         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
59243         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
59244         * lib/unictype/pr_combining.h: Likewise.
59245         * lib/unictype/pr_composite.h: Likewise.
59246         * lib/unictype/pr_currency_symbol.h: Likewise.
59247         * lib/unictype/pr_decimal_digit.h: Likewise.
59248         * lib/unictype/pr_deprecated.h: Likewise.
59249         * lib/unictype/pr_format_control.h: Likewise.
59250         * lib/unictype/pr_grapheme_base.h: Likewise.
59251         * lib/unictype/pr_grapheme_extend.h: Likewise.
59252         * lib/unictype/pr_grapheme_link.h: Likewise.
59253         * lib/unictype/pr_id_continue.h: Likewise.
59254         * lib/unictype/pr_id_start.h: Likewise.
59255         * lib/unictype/pr_ideographic.h: Likewise.
59256         * lib/unictype/pr_lowercase.h: Likewise.
59257         * lib/unictype/pr_math.h: Likewise.
59258         * lib/unictype/pr_numeric.h: Likewise.
59259         * lib/unictype/pr_other_alphabetic.h: Likewise.
59260         * lib/unictype/pr_other_id_continue.h: Likewise.
59261         * lib/unictype/pr_other_math.h: Likewise.
59262         * lib/unictype/pr_punctuation.h: Likewise.
59263         * lib/unictype/pr_sentence_terminal.h: Likewise.
59264         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59265         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59266         * lib/unictype/pr_unified_ideograph.h: Likewise.
59267         * lib/unictype/pr_uppercase.h: Likewise.
59268         * lib/unictype/pr_xid_continue.h: Likewise.
59269         * lib/unictype/pr_xid_start.h: Likewise.
59270         * lib/unictype/scripts.h: Likewise.
59271         * lib/unictype/scripts_byname.gperf: Likewise.
59272         * lib/unictype/sy_java_ident.h: Likewise.
59273         * lib/unigbrk/gbrkprop.h: Likewise.
59274         * lib/unilbrk/lbrkprop1.h: Likewise.
59275         * lib/unilbrk/lbrkprop2.h: Likewise.
59276         * lib/uninorm/decomposition-table2.h: Likewise.
59277         * lib/uniwbrk/wbrkprop.h: Likewise.
59278         * tests/unicase/test-cased.c: Likewise.
59279         * tests/unicase/test-ignorable.c: Likewise.
59280         * tests/unicase/test-uc_tolower.c: Likewise.
59281         * tests/unicase/test-uc_totitle.c: Likewise.
59282         * tests/unicase/test-uc_toupper.c: Likewise.
59283         * tests/unictype/test-categ_C.c: Likewise.
59284         * tests/unictype/test-categ_Cn.c: Likewise.
59285         * tests/unictype/test-categ_L.c: Likewise.
59286         * tests/unictype/test-categ_Ll.c: Likewise.
59287         * tests/unictype/test-categ_Lm.c: Likewise.
59288         * tests/unictype/test-categ_Lo.c: Likewise.
59289         * tests/unictype/test-categ_Lu.c: Likewise.
59290         * tests/unictype/test-categ_M.c: Likewise.
59291         * tests/unictype/test-categ_Mc.c: Likewise.
59292         * tests/unictype/test-categ_Me.c: Likewise.
59293         * tests/unictype/test-categ_Mn.c: Likewise.
59294         * tests/unictype/test-categ_N.c: Likewise.
59295         * tests/unictype/test-categ_Nd.c: Likewise.
59296         * tests/unictype/test-categ_No.c: Likewise.
59297         * tests/unictype/test-categ_P.c: Likewise.
59298         * tests/unictype/test-categ_Po.c: Likewise.
59299         * tests/unictype/test-categ_S.c: Likewise.
59300         * tests/unictype/test-categ_Sc.c: Likewise.
59301         * tests/unictype/test-categ_Sk.c: Likewise.
59302         * tests/unictype/test-categ_Sm.c: Likewise.
59303         * tests/unictype/test-categ_So.c: Likewise.
59304         * tests/unictype/test-ctype_alnum.c: Likewise.
59305         * tests/unictype/test-ctype_alpha.c: Likewise.
59306         * tests/unictype/test-ctype_graph.c: Likewise.
59307         * tests/unictype/test-ctype_lower.c: Likewise.
59308         * tests/unictype/test-ctype_print.c: Likewise.
59309         * tests/unictype/test-ctype_punct.c: Likewise.
59310         * tests/unictype/test-ctype_upper.c: Likewise.
59311         * tests/unictype/test-decdigit.h: Likewise.
59312         * tests/unictype/test-digit.h: Likewise.
59313         * tests/unictype/test-numeric.h: Likewise.
59314         * tests/unictype/test-pr_alphabetic.c: Likewise.
59315         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59316         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59317         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59318         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59319         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59320         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59321         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59322         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59323         * tests/unictype/test-pr_case_ignorable.c: Likewise.
59324         * tests/unictype/test-pr_cased.c: Likewise.
59325         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
59326         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
59327         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
59328         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
59329         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
59330         * tests/unictype/test-pr_combining.c: Likewise.
59331         * tests/unictype/test-pr_composite.c: Likewise.
59332         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59333         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59334         * tests/unictype/test-pr_deprecated.c: Likewise.
59335         * tests/unictype/test-pr_format_control.c: Likewise.
59336         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59337         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59338         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59339         * tests/unictype/test-pr_id_continue.c: Likewise.
59340         * tests/unictype/test-pr_id_start.c: Likewise.
59341         * tests/unictype/test-pr_ideographic.c: Likewise.
59342         * tests/unictype/test-pr_lowercase.c: Likewise.
59343         * tests/unictype/test-pr_math.c: Likewise.
59344         * tests/unictype/test-pr_numeric.c: Likewise.
59345         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59346         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59347         * tests/unictype/test-pr_other_math.c: Likewise.
59348         * tests/unictype/test-pr_punctuation.c: Likewise.
59349         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59350         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59351         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59352         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59353         * tests/unictype/test-pr_uppercase.c: Likewise.
59354         * tests/unictype/test-pr_xid_continue.c: Likewise.
59355         * tests/unictype/test-pr_xid_start.c: Likewise.
59356         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
59357         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
59358         changes.
59359         * lib/unictype/categ_Cc.h: Likewise.
59360         * lib/unictype/categ_Cf.h: Likewise.
59361         * lib/unictype/categ_Co.h: Likewise.
59362         * lib/unictype/categ_Cs.h: Likewise.
59363         * lib/unictype/categ_Lt.h: Likewise.
59364         * lib/unictype/categ_Nl.h: Likewise.
59365         * lib/unictype/categ_Pc.h: Likewise.
59366         * lib/unictype/categ_Pd.h: Likewise.
59367         * lib/unictype/categ_Pe.h: Likewise.
59368         * lib/unictype/categ_Pf.h: Likewise.
59369         * lib/unictype/categ_Pi.h: Likewise.
59370         * lib/unictype/categ_Ps.h: Likewise.
59371         * lib/unictype/categ_Z.h: Likewise.
59372         * lib/unictype/categ_Zl.h: Likewise.
59373         * lib/unictype/categ_Zp.h: Likewise.
59374         * lib/unictype/categ_Zs.h: Likewise.
59375         * lib/unictype/ctype_blank.h: Likewise.
59376         * lib/unictype/ctype_cntrl.h: Likewise.
59377         * lib/unictype/ctype_digit.h: Likewise.
59378         * lib/unictype/ctype_space.h: Likewise.
59379         * lib/unictype/ctype_xdigit.h: Likewise.
59380         * lib/unictype/mirror.h: Likewise.
59381         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59382         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59383         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59384         * lib/unictype/pr_bidi_control.h: Likewise.
59385         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59386         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59387         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59388         * lib/unictype/pr_bidi_pdf.h: Likewise.
59389         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59390         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59391         * lib/unictype/pr_dash.h: Likewise.
59392         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59393         * lib/unictype/pr_diacritic.h: Likewise.
59394         * lib/unictype/pr_extender.h: Likewise.
59395         * lib/unictype/pr_hex_digit.h: Likewise.
59396         * lib/unictype/pr_hyphen.h: Likewise.
59397         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59398         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59399         * lib/unictype/pr_ignorable_control.h: Likewise.
59400         * lib/unictype/pr_iso_control.h: Likewise.
59401         * lib/unictype/pr_join_control.h: Likewise.
59402         * lib/unictype/pr_left_of_pair.h: Likewise.
59403         * lib/unictype/pr_line_separator.h: Likewise.
59404         * lib/unictype/pr_logical_order_exception.h: Likewise.
59405         * lib/unictype/pr_non_break.h: Likewise.
59406         * lib/unictype/pr_not_a_character.h: Likewise.
59407         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59408         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59409         * lib/unictype/pr_other_id_start.h: Likewise.
59410         * lib/unictype/pr_other_lowercase.h: Likewise.
59411         * lib/unictype/pr_other_uppercase.h: Likewise.
59412         * lib/unictype/pr_paired_punctuation.h: Likewise.
59413         * lib/unictype/pr_paragraph_separator.h: Likewise.
59414         * lib/unictype/pr_pattern_syntax.h: Likewise.
59415         * lib/unictype/pr_pattern_white_space.h: Likewise.
59416         * lib/unictype/pr_private_use.h: Likewise.
59417         * lib/unictype/pr_quotation_mark.h: Likewise.
59418         * lib/unictype/pr_radical.h: Likewise.
59419         * lib/unictype/pr_soft_dotted.h: Likewise.
59420         * lib/unictype/pr_space.h: Likewise.
59421         * lib/unictype/pr_titlecase.h: Likewise.
59422         * lib/unictype/pr_variation_selector.h: Likewise.
59423         * lib/unictype/pr_white_space.h: Likewise.
59424         * lib/unictype/pr_zero_width.h: Likewise.
59425         * lib/unictype/sy_c_ident.h: Likewise.
59426         * lib/unictype/sy_c_whitespace.h: Likewise.
59427         * lib/unictype/sy_java_whitespace.h: Likewise.
59428         * lib/uninorm/composition-table.gperf: Likewise.
59429         * lib/uninorm/decomposition-table1.h: Likewise.
59430         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
59431         LB8.
59432         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59433         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59434         * modules/unictype/*: Bump version number of expected libunistring
59435         version.
59437 2011-01-09  Bruno Haible  <bruno@clisp.org>
59439         Update to Unicode 5.2.0.
59440         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
59441         trailing whitespace removed.
59443 2011-01-09  Bruno Haible  <bruno@clisp.org>
59445         New Unicode character properties, from Unicode 5.2.0.
59446         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
59447         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
59448         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
59449         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
59450         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
59451         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
59452         uc_is_property_cased, uc_is_property_case_ignorable,
59453         uc_is_property_changes_when_lowercased,
59454         uc_is_property_changes_when_uppercased,
59455         uc_is_property_changes_when_titlecased,
59456         uc_is_property_changes_when_casefolded,
59457         uc_is_property_changes_when_casemapped): New declarations.
59458         * lib/unictype/pr_byname.gperf: Add the new properties.
59459         * modules/unictype/property-byname (Depends-on): Depend on the new
59460         properties modules.
59461         * modules/unictype/property-all (Depends-on): Likewise.
59462         * MODULES.html.sh (Unicode string functions): Add
59463         unictype/property-case-ignorable, unictype/property-cased,
59464         unictype/property-changes-when-casefolded,
59465         unictype/property-changes-when-casemapped,
59466         unictype/property-changes-when-lowercased,
59467         unictype/property-changes-when-titlecased,
59468         unictype/property-changes-when-uppercased.
59470         New module 'unictype/property-changes-when-casemapped'.
59471         * modules/unictype/property-changes-when-casemapped: New file.
59472         * lib/unictype/pr_changes_when_casemapped.c: New file.
59473         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
59474         generated by gen-uni-tables.
59475         * modules/unictype/property-changes-when-casemapped-tests: New file.
59476         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
59477         automatically generated by gen-uni-tables.
59479         New module 'unictype/property-changes-when-casefolded'.
59480         * modules/unictype/property-changes-when-casefolded: New file.
59481         * lib/unictype/pr_changes_when_casefolded.c: New file.
59482         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
59483         generated by gen-uni-tables.
59484         * modules/unictype/property-changes-when-casefolded-tests: New file.
59485         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
59486         automatically generated by gen-uni-tables.
59488         New module 'unictype/property-changes-when-titlecased'.
59489         * modules/unictype/property-changes-when-titlecased: New file.
59490         * lib/unictype/pr_changes_when_titlecased.c: New file.
59491         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
59492         generated by gen-uni-tables.
59493         * modules/unictype/property-changes-when-titlecased-tests: New file.
59494         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
59495         automatically generated by gen-uni-tables.
59497         New module 'unictype/property-changes-when-uppercased'.
59498         * modules/unictype/property-changes-when-uppercased: New file.
59499         * lib/unictype/pr_changes_when_uppercased.c: New file.
59500         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
59501         generated by gen-uni-tables.
59502         * modules/unictype/property-changes-when-uppercased-tests: New file.
59503         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
59504         automatically generated by gen-uni-tables.
59506         New module 'unictype/property-changes-when-lowercased'.
59507         * modules/unictype/property-changes-when-lowercased: New file.
59508         * lib/unictype/pr_changes_when_lowercased.c: New file.
59509         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
59510         generated by gen-uni-tables.
59511         * modules/unictype/property-changes-when-lowercased-tests: New file.
59512         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
59513         automatically generated by gen-uni-tables.
59515         New module 'unictype/property-case-ignorable'.
59516         * modules/unictype/property-case-ignorable: New file.
59517         * lib/unictype/pr_case_ignorable.c: New file.
59518         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
59519         by gen-uni-tables.
59520         * modules/unictype/property-case-ignorable-tests: New file.
59521         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
59522         generated by gen-uni-tables.
59524         New module 'unictype/property-cased'.
59525         * modules/unictype/property-cased: New file.
59526         * lib/unictype/pr_cased.c: New file.
59527         * lib/unictype/pr_cased.h: New file, automatically generated by
59528         gen-uni-tables.
59529         * modules/unictype/property-cased-tests: New file.
59530         * tests/unictype/test-pr_cased.c: New file, automatically generated by
59531         gen-uni-tables.
59533 2011-01-09  Bruno Haible  <bruno@clisp.org>
59535         Update to Unicode 5.2.0.
59536         * lib/gen-uni-tables.c (output_predicate, output_category,
59537         output_combclass, output_bidi_category, output_decimal_digit_test,
59538         output_decimal_digit, output_digit_test, output_digit,
59539         output_numeric_test, output_numeric, output_mirror, output_scripts,
59540         output_scripts_byname, output_blocks, output_ident_category): Fix
59541         comment header.
59542         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
59543         get_wbp.
59544         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
59545         items.
59546         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
59547         Changes_When_Lowercased, Changes_When_Uppercased,
59548         Changes_When_Titlecased, Changes_When_Casefolded,
59549         Changes_When_Casemapped.
59550         (is_property_alphabetic, is_property_default_ignorable_code_point):
59551         Update for Unicode 5.2.0.
59552         (is_property_cased, is_property_case_ignorable,
59553         is_property_changes_when_lowercased,
59554         is_property_changes_when_uppercased,
59555         is_property_changes_when_titlecased,
59556         is_property_changes_when_casefolded,
59557         is_property_changes_when_casemapped): New functions.
59558         (output_properties): Output also the properties cased, case_ignorable,
59559         changes_when_lowercased, changes_when_uppercased,
59560         changes_when_titlecased, changes_when_casefolded,
59561         changes_when_casemapped.
59562         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
59563         Unicode TR#11 revision 17 -> 19.
59564         (LBP_CP): New enumeration value.
59565         (LBP_*): Adjust values accordingly.
59566         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
59567         TR#14 revision 22 -> 24.
59568         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
59569         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
59570         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
59571         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
59572         is_WBP_MIDLETTER.
59573         (output_composition_tables): Allow for 24 bits instead of 16 bits in
59574         the code1 and code2 of each composition rule.
59575         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
59576         * lib/unicase/ignorable.h: Likewise.
59577         * lib/unicase/tocasefold.h: Likewise.
59578         * lib/unicase/tolower.h: Likewise.
59579         * lib/unicase/totitle.h: Likewise.
59580         * lib/unicase/toupper.h: Likewise.
59581         * lib/unictype/bidi_of.h: Likewise.
59582         * lib/unictype/blocks.h: Likewise.
59583         * lib/unictype/categ_C.h: Likewise.
59584         * lib/unictype/categ_Cf.h: Likewise.
59585         * lib/unictype/categ_Cn.h: Likewise.
59586         * lib/unictype/categ_L.h: Likewise.
59587         * lib/unictype/categ_Ll.h: Likewise.
59588         * lib/unictype/categ_Lm.h: Likewise.
59589         * lib/unictype/categ_Lo.h: Likewise.
59590         * lib/unictype/categ_Lu.h: Likewise.
59591         * lib/unictype/categ_M.h: Likewise.
59592         * lib/unictype/categ_Mc.h: Likewise.
59593         * lib/unictype/categ_Mn.h: Likewise.
59594         * lib/unictype/categ_N.h: Likewise.
59595         * lib/unictype/categ_Nd.h: Likewise.
59596         * lib/unictype/categ_Nl.h: Likewise.
59597         * lib/unictype/categ_No.h: Likewise.
59598         * lib/unictype/categ_P.h: Likewise.
59599         * lib/unictype/categ_Pd.h: Likewise.
59600         * lib/unictype/categ_Po.h: Likewise.
59601         * lib/unictype/categ_S.h: Likewise.
59602         * lib/unictype/categ_Sc.h: Likewise.
59603         * lib/unictype/categ_So.h: Likewise.
59604         * lib/unictype/categ_of.h: Likewise.
59605         * lib/unictype/combining.h: Likewise.
59606         * lib/unictype/ctype_alnum.h: Likewise.
59607         * lib/unictype/ctype_alpha.h: Likewise.
59608         * lib/unictype/ctype_graph.h: Likewise.
59609         * lib/unictype/ctype_lower.h: Likewise.
59610         * lib/unictype/ctype_print.h: Likewise.
59611         * lib/unictype/ctype_punct.h: Likewise.
59612         * lib/unictype/ctype_upper.h: Likewise.
59613         * lib/unictype/decdigit.h: Likewise.
59614         * lib/unictype/digit.h: Likewise.
59615         * lib/unictype/numeric.h: Likewise.
59616         * lib/unictype/pr_alphabetic.h: Likewise.
59617         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59618         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59619         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59620         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59621         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59622         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59623         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59624         * lib/unictype/pr_combining.h: Likewise.
59625         * lib/unictype/pr_composite.h: Likewise.
59626         * lib/unictype/pr_currency_symbol.h: Likewise.
59627         * lib/unictype/pr_dash.h: Likewise.
59628         * lib/unictype/pr_decimal_digit.h: Likewise.
59629         * lib/unictype/pr_deprecated.h: Likewise.
59630         * lib/unictype/pr_diacritic.h: Likewise.
59631         * lib/unictype/pr_extender.h: Likewise.
59632         * lib/unictype/pr_grapheme_base.h: Likewise.
59633         * lib/unictype/pr_grapheme_extend.h: Likewise.
59634         * lib/unictype/pr_grapheme_link.h: Likewise.
59635         * lib/unictype/pr_id_continue.h: Likewise.
59636         * lib/unictype/pr_id_start.h: Likewise.
59637         * lib/unictype/pr_ideographic.h: Likewise.
59638         * lib/unictype/pr_ignorable_control.h: Likewise.
59639         * lib/unictype/pr_logical_order_exception.h: Likewise.
59640         * lib/unictype/pr_lowercase.h: Likewise.
59641         * lib/unictype/pr_numeric.h: Likewise.
59642         * lib/unictype/pr_other_alphabetic.h: Likewise.
59643         * lib/unictype/pr_punctuation.h: Likewise.
59644         * lib/unictype/pr_sentence_terminal.h: Likewise.
59645         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59646         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59647         * lib/unictype/pr_unified_ideograph.h: Likewise.
59648         * lib/unictype/pr_uppercase.h: Likewise.
59649         * lib/unictype/pr_xid_continue.h: Likewise.
59650         * lib/unictype/pr_xid_start.h: Likewise.
59651         * lib/unictype/pr_zero_width.h: Likewise.
59652         * lib/unictype/scripts.h: Likewise.
59653         * lib/unictype/scripts_byname.gperf: Likewise.
59654         * lib/unictype/sy_java_ident.h: Likewise.
59655         * lib/unigbrk/gbrkprop.h: Likewise.
59656         * lib/unilbrk/lbrkprop1.h: Likewise.
59657         * lib/unilbrk/lbrkprop2.h: Likewise.
59658         * lib/unilbrk/lbrktables.h: Likewise.
59659         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
59660         LBP_CP. Implement rule LB30.
59661         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
59662         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
59663         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
59664         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
59665         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
59666         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
59667         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
59668         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
59669         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
59670         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
59671         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
59672         bits instead of 16 bits in the code1 and code2 of each composition
59673         rule.
59674         (uc_composition): Update for Unicode 5.2.0.
59675         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
59676         * lib/uninorm/decomposition-table2.h: Likewise.
59677         * lib/uniwbrk/wbrkprop.h: Likewise.
59678         * tests/unicase/test-cased.c: Likewise.
59679         * tests/unicase/test-ignorable.c: Likewise.
59680         * tests/unicase/test-uc_tolower.c: Likewise.
59681         * tests/unicase/test-uc_totitle.c: Likewise.
59682         * tests/unicase/test-uc_toupper.c: Likewise.
59683         * tests/unictype/test-categ_C.c: Likewise.
59684         * tests/unictype/test-categ_Cf.c: Likewise.
59685         * tests/unictype/test-categ_Cn.c: Likewise.
59686         * tests/unictype/test-categ_L.c: Likewise.
59687         * tests/unictype/test-categ_Ll.c: Likewise.
59688         * tests/unictype/test-categ_Lm.c: Likewise.
59689         * tests/unictype/test-categ_Lo.c: Likewise.
59690         * tests/unictype/test-categ_Lu.c: Likewise.
59691         * tests/unictype/test-categ_M.c: Likewise.
59692         * tests/unictype/test-categ_Mc.c: Likewise.
59693         * tests/unictype/test-categ_Mn.c: Likewise.
59694         * tests/unictype/test-categ_N.c: Likewise.
59695         * tests/unictype/test-categ_Nd.c: Likewise.
59696         * tests/unictype/test-categ_Nl.c: Likewise.
59697         * tests/unictype/test-categ_No.c: Likewise.
59698         * tests/unictype/test-categ_P.c: Likewise.
59699         * tests/unictype/test-categ_Pd.c: Likewise.
59700         * tests/unictype/test-categ_Po.c: Likewise.
59701         * tests/unictype/test-categ_S.c: Likewise.
59702         * tests/unictype/test-categ_Sc.c: Likewise.
59703         * tests/unictype/test-categ_So.c: Likewise.
59704         * tests/unictype/test-ctype_alnum.c: Likewise.
59705         * tests/unictype/test-ctype_alpha.c: Likewise.
59706         * tests/unictype/test-ctype_graph.c: Likewise.
59707         * tests/unictype/test-ctype_lower.c: Likewise.
59708         * tests/unictype/test-ctype_print.c: Likewise.
59709         * tests/unictype/test-ctype_punct.c: Likewise.
59710         * tests/unictype/test-ctype_upper.c: Likewise.
59711         * tests/unictype/test-decdigit.h: Likewise.
59712         * tests/unictype/test-digit.h: Likewise.
59713         * tests/unictype/test-numeric.h: Likewise.
59714         * tests/unictype/test-pr_alphabetic.c: Likewise.
59715         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59716         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59717         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59718         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59719         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59720         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59721         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59722         * tests/unictype/test-pr_combining.c: Likewise.
59723         * tests/unictype/test-pr_composite.c: Likewise.
59724         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59725         * tests/unictype/test-pr_dash.c: Likewise.
59726         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59727         * tests/unictype/test-pr_deprecated.c: Likewise.
59728         * tests/unictype/test-pr_diacritic.c: Likewise.
59729         * tests/unictype/test-pr_extender.c: Likewise.
59730         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59731         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59732         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59733         * tests/unictype/test-pr_id_continue.c: Likewise.
59734         * tests/unictype/test-pr_id_start.c: Likewise.
59735         * tests/unictype/test-pr_ideographic.c: Likewise.
59736         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59737         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59738         * tests/unictype/test-pr_lowercase.c: Likewise.
59739         * tests/unictype/test-pr_numeric.c: Likewise.
59740         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59741         * tests/unictype/test-pr_punctuation.c: Likewise.
59742         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59743         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59744         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59745         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59746         * tests/unictype/test-pr_uppercase.c: Likewise.
59747         * tests/unictype/test-pr_xid_continue.c: Likewise.
59748         * tests/unictype/test-pr_xid_start.c: Likewise.
59749         * tests/unictype/test-pr_zero_width.c: Likewise.
59750         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
59751         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
59752         changed behaviour: line breaking is now disallowed between a letter
59753         or '=' and '('.
59754         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59755         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59756         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59757         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
59758         * tests/uniwidth/test-uc_width2.sh: Same updates as in
59759         lib/uniwidth/width.c.
59760         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
59761         without comments, but with the original copyright notice.
59762         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
59763         changes.
59764         * lib/unictype/categ_Cc.h: Likewise.
59765         * lib/unictype/categ_Co.h: Likewise.
59766         * lib/unictype/categ_Cs.h: Likewise.
59767         * lib/unictype/categ_Lt.h: Likewise.
59768         * lib/unictype/categ_Me.h: Likewise.
59769         * lib/unictype/categ_Pc.h: Likewise.
59770         * lib/unictype/categ_Pe.h: Likewise.
59771         * lib/unictype/categ_Pf.h: Likewise.
59772         * lib/unictype/categ_Pi.h: Likewise.
59773         * lib/unictype/categ_Ps.h: Likewise.
59774         * lib/unictype/categ_Sk.h: Likewise.
59775         * lib/unictype/categ_Sm.h: Likewise.
59776         * lib/unictype/categ_Z.h: Likewise.
59777         * lib/unictype/categ_Zl.h: Likewise.
59778         * lib/unictype/categ_Zp.h: Likewise.
59779         * lib/unictype/categ_Zs.h: Likewise.
59780         * lib/unictype/ctype_blank.h: Likewise.
59781         * lib/unictype/ctype_cntrl.h: Likewise.
59782         * lib/unictype/ctype_digit.h: Likewise.
59783         * lib/unictype/ctype_space.h: Likewise.
59784         * lib/unictype/ctype_xdigit.h: Likewise.
59785         * lib/unictype/mirror.h: Likewise.
59786         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59787         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59788         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59789         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59790         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59791         * lib/unictype/pr_bidi_control.h: Likewise.
59792         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59793         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59794         * lib/unictype/pr_bidi_pdf.h: Likewise.
59795         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59796         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59797         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59798         * lib/unictype/pr_format_control.h: Likewise.
59799         * lib/unictype/pr_hex_digit.h: Likewise.
59800         * lib/unictype/pr_hyphen.h: Likewise.
59801         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59802         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59803         * lib/unictype/pr_iso_control.h: Likewise.
59804         * lib/unictype/pr_join_control.h: Likewise.
59805         * lib/unictype/pr_left_of_pair.h: Likewise.
59806         * lib/unictype/pr_line_separator.h: Likewise.
59807         * lib/unictype/pr_math.h: Likewise.
59808         * lib/unictype/pr_non_break.h: Likewise.
59809         * lib/unictype/pr_not_a_character.h: Likewise.
59810         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59811         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59812         * lib/unictype/pr_other_id_continue.h: Likewise.
59813         * lib/unictype/pr_other_id_start.h: Likewise.
59814         * lib/unictype/pr_other_lowercase.h: Likewise.
59815         * lib/unictype/pr_other_math.h: Likewise.
59816         * lib/unictype/pr_other_uppercase.h: Likewise.
59817         * lib/unictype/pr_paired_punctuation.h: Likewise.
59818         * lib/unictype/pr_paragraph_separator.h: Likewise.
59819         * lib/unictype/pr_pattern_syntax.h: Likewise.
59820         * lib/unictype/pr_pattern_white_space.h: Likewise.
59821         * lib/unictype/pr_private_use.h: Likewise.
59822         * lib/unictype/pr_quotation_mark.h: Likewise.
59823         * lib/unictype/pr_radical.h: Likewise.
59824         * lib/unictype/pr_soft_dotted.h: Likewise.
59825         * lib/unictype/pr_space.h: Likewise.
59826         * lib/unictype/pr_titlecase.h: Likewise.
59827         * lib/unictype/pr_variation_selector.h: Likewise.
59828         * lib/unictype/pr_white_space.h: Likewise.
59829         * lib/unictype/sy_c_ident.h: Likewise.
59830         * lib/unictype/sy_c_whitespace.h: Likewise.
59831         * lib/unictype/sy_java_whitespace.h: Likewise.
59832         * modules/uni*/*: Bump version number of expected libunistring version.
59833         Reported by Simon Josefsson.
59835 2011-01-09  Karl Heuer  <kwzh@gnu.org>
59837         useless-if-before-free: fix typo in --help and make the internal,
59838         automatic version date update process work once again.
59839         --help output contained a NUL character instead of the
59840         backslash-zero that was intended.  Also, the "must lie within
59841         the first 8 lines" line is on line 9, and hence not getting
59842         automatically updated.
59843         * build-aux/useless-if-before-free: Fix the former by adding a
59844         backslash, and the latter by condensing the three lines of what-it-does
59845         to a single line, leaving one line of slack for the future.
59847 2011-01-09  Bruno Haible  <bruno@clisp.org>
59849         uniwidth/width: Fix width of U+1D173..U+1D17A.
59850         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
59851         symbolic_width, output_width_property_test): New functions.
59852         (main): Invoke output_nonspacing_property, output_width_property_test.
59853         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
59854         U+1D173..U+1D17A.
59855         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
59856         1.
59857         * modules/uniwidth/*: Bump version number of expected libunistring
59858         version.
59859         * modules/unilbrk/*: Likewise.
59861 2011-01-08  Bruno Haible  <bruno@clisp.org>
59863         uninorm tests: Preserve copyright of Unicode data file.
59864         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
59865         Mention modifications.
59867 2011-01-08  Bruno Haible  <bruno@clisp.org>
59869         gen-uni-tables: Prepare for Unicode 5.2.0.
59870         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
59871         (debug_output_lbp, output_lbp): Update.
59873 2011-01-08  Bruno Haible  <bruno@clisp.org>
59875         unilbrk: Clarify gen-uni-tables.c code.
59876         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
59877         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
59878         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
59880 2011-01-07  Bruno Haible  <bruno@clisp.org>
59882         strtod: Restore errno when successfully parsing Infinity or NaN.
59883         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
59884         restore the original errno.
59886 2011-01-07  Bruno Haible  <bruno@clisp.org>
59888         remove test: Avoid failure on HP-UX 11.
59889         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
59891 2011-01-07  Bruno Haible  <bruno@clisp.org>
59893         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
59894         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
59895         error code.
59897 2011-01-07  Pádraig Brady  <P@draigBrady.com>
59899         ignore-value: fixup comments, and add Eric Blake
59900         as an author since he rewrote the macros.
59901         * lib/ignore-value.h (ignore_value):  State that
59902         we now support aggregates.  Also specify exactly
59903         when the GCC warn_unused_result feature was added.
59905 2011-01-06  Eric Blake  <eblake@redhat.com>
59907         ignore-value: support aggregate types
59908         * lib/ignore-value.h (ignore_value): Provide separate gcc
59909         definition.
59910         * modules/ignore-value-tests: New test module.
59911         * tests/test-ignore-value.c: New test.
59913         maint.mk: improve sc_prohibit_strcmp regex
59914         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
59915         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
59916         definition of STRNEQ.
59918         signal: work around Haiku issue with SIGBUS
59919         * lib/siglist.h: Add comment.
59920         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
59921         strsignal's favoring of SIGSEGV.
59922         * tests/test-signal.c (main): Avoid test failure.
59923         * doc/posix-headers/signal.texi (signal.h): Document the issue.
59924         Reported by Scott McCreary.
59926         maint.mk: add pre-release check to ensure submodule commits are public
59927         * top/maint.mk (public-submodule-commit): New rule.
59928         (submodule-checks): New variable.
59929         (alpha beta stable): Depend on the variable.
59931 2011-01-05  Pádraig Brady  <P@draigBrady.com>
59932         and Jim Meyering  <meyering@redhat.com>
59934         ignore-value: make ignore_value more generic; deprecate ignore_ptr
59935         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
59936         (ATTRIBUTE_DEPRECATED): Define.
59937         (_ignore_case): New function.
59938         (ignore_value): New macro, to replace the old function.
59939         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
59940         * modules/ignore-value (Depends-on): Add stdint.
59942 2011-01-04  Eric Blake  <eblake@redhat.com>
59944         doc: regenerate INSTALL
59945         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
59946         @firstparagraphindent support, now that autoconf dropped it.
59947         (INSTALL_PRELUDE): Reinstate old macro.
59948         * doc/install.texi: Resync from autoconf.
59949         * doc/INSTALL: Reflect recent autoconf update.
59950         * doc/INSTALL.ISO: Likewise.
59951         * doc/INSTALL.UTF-8: Likewise.
59952         Reported by Karl Berry.
59954 2011-01-04  Bruce Korb  <address@hidden>
59956         git-version-gen: avoid a sub-shell
59957         * build-aux/git-version-gen: Redirect stderr in `...` via
59958         "exec 2>...", rather than via an added sub-shell.
59960 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
59962         git-version-gen: use (...) rather than sh -c '...'
59963         * build-aux/git-version-gen: Rather than hard-coding a shell's name
59964         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
59966 2011-01-03  Jim Meyering  <meyering@redhat.com>
59968         git-version-gen: convert leading TABs to spaces
59969         * build-aux/git-version-gen: Expand leading TABs.
59971         git-version-gen: handle failed "git rev-list"
59972         * build-aux/git-version-gen: Rather than leaking a "fatal" error
59973         from git and proceeding as if it had succeeded but printed no SHA1
59974         checksums, suppress the diagnostic and handle the failure.
59975         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
59977         git-version-gen: include command name in one more diagnostic
59978         * build-aux/git-version-gen: When the required .tarball-version file
59979         was missing or unreadable, you might see the diagnostic from "cat",
59980         but no trace of the name of the invoking script.  Now, you still see
59981         the diagnostic from cat, but also get one from "git-version-gen: ".
59982         Inspired by a patch from Bruce Korb.
59984         update-copyright: adjust test to match changed code
59985         * tests/test-update-copyright.sh: Change test's expected output
59986         to match new actual output.
59988 2011-01-02  Bruno Haible  <bruno@clisp.org>
59990         getlogin_r: Avoid test failure on HP-UX 11.
59991         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
59992         ERANGE when the second argument is zero.
59993         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
59994         portability problem.
59996 2011-01-02  Bruce Korb  <bkorb@gnu.org>
59998         * build-aux/update-copyright: doc Simon's changes
60000 2011-01-02  Simon Josefsson  <simon@josefsson.org>
60002         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
60003         environment variable.
60005 2011-01-02  Bruno Haible  <bruno@clisp.org>
60007         unigbrk: Avoid gcc warnings.
60008         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
60009         unused variable.
60010         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
60011         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
60012         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
60013         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
60014         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
60015         Change type of first argument to 'const char *'.
60016         (main): Remove unused variable.
60017         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
60018         type of first argument to 'const char *'.
60019         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
60020         Likewise.
60021         (main): Change type of variable 's'.
60022         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
60023         to 'int'.
60025 2011-01-02  Bruno Haible  <bruno@clisp.org>
60027         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
60028         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
60029         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
60030         bug.
60031         * lib/pwrite.c: Undo 2010-12-31 patch.
60032         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
60034 2011-01-02  Bruno Haible  <bruno@clisp.org>
60036         pread: Fix test whether it works.
60037         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
60039 2011-01-02  Bruno Haible  <bruno@clisp.org>
60041         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
60042         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
60043         ends in "6". Don't require a specific month name. Try also the locale
60044         names found on HP-UX 11 and Solaris 7.
60046 2011-01-02  Bruno Haible  <bruno@clisp.org>
60048         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
60049         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
60050         C linkage.
60051         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
60053 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60055         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
60056         for consistency, since the "cluster" term is not used elsewhere.
60057         * lib/unigbrk.in.h: Update name.
60058         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
60059         * lib/unigbrk/u16-grapheme-next.c: Update name.
60060         * lib/unigbrk/u16-grapheme-prev.c: Update name.
60061         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
60062         * lib/unigbrk/u32-grapheme-next.c: Update name.
60063         * lib/unigbrk/u32-grapheme-prev.c: Update name.
60064         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
60065         * lib/unigbrk/u8-grapheme-next.c: Update name.
60066         * lib/unigbrk/u8-grapheme-prev.c: Update name.
60067         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
60068         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
60069         Suggested by Bruno Haible.
60071 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60073         Remove module 'u8-grapheme-len' as too redundant with
60074         'u8-grapheme-next'.
60075         * modules/unigbrk/u8-grapheme-len: Delete file.
60076         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
60077         * lib/unigbrk.in.h: Remove prototype for deleted function.
60078         * lib/unigbrk/u8-grapheme-len.c: Delete file.
60079         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
60081         Remove module 'u16-grapheme-len' as too redundant with
60082         'u16-grapheme-next'.
60083         * modules/unigbrk/u16-grapheme-len: Delete file.
60084         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
60085         * lib/unigbrk.in.h: Remove prototype for deleted function.
60086         * lib/unigbrk/u16-grapheme-len.c: Delete file.
60087         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
60089         Remove module 'u32-grapheme-len' as too redundant with
60090         'u32-grapheme-next'.
60091         * modules/unigbrk/u32-grapheme-len: Delete file.
60092         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
60093         * lib/unigbrk.in.h: Remove prototype for deleted function.
60094         * lib/unigbrk/u32-grapheme-len.c: Delete file.
60095         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
60097         Suggested by Bruno Haible.
60099 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60101         * unigbrk.in.h: Fix typo: "ben" => "been".
60102         Reported by Bruno Haible.
60104 2011-01-01  Jim Meyering  <meyering@redhat.com>
60106         maint: update almost all copyright ranges to include 2011
60107         Run the new "make update-copyright" rule.
60109 2011-01-01  Jim Meyering  <meyering@redhat.com>
60111         maint: update-copyright: exempt doc/INSTALL*
60112         * Makefile (update-copyright): Also exclude doc/INSTALL*,
60113         since they are generated.  Suggested by Bruno Haible.
60115 2011-01-01  Jim Meyering  <meyering@redhat.com>
60117         maint: refine the update-copyright rule
60118         * Makefile (update-copyright): Also exclude any file that includes
60119         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
60120         code that merely generates the comment.
60122 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60124         New module 'u8-grapheme-len'.
60125         * modules/unigbrk/u8-grapheme-len: New file.
60126         * modules/unigbrk/u8-grapheme-len-tests: New file.
60127         * lib/unigbrk.in.h: Add prototype for new function.
60128         * lib/unigbrk/u8-grapheme-len.c: New file.
60129         * tests/unigbrk/test-u8-grapheme-len.c: New file.
60131         New module 'u16-grapheme-len'.
60132         * modules/unigbrk/u16-grapheme-len: New file.
60133         * modules/unigbrk/u16-grapheme-len-tests: New file.
60134         * lib/unigbrk.in.h: Add prototype for new function.
60135         * lib/unigbrk/u16-grapheme-len.c: New file.
60136         * tests/unigbrk/test-u16-grapheme-len.c: New file.
60138         New module 'u32-grapheme-len'.
60139         * modules/unigbrk/u32-grapheme-len: New file.
60140         * modules/unigbrk/u32-grapheme-len-tests: New file.
60141         * lib/unigbrk.in.h: Add prototype for new function.
60142         * lib/unigbrk/u32-grapheme-len.c: New file.
60143         * tests/unigbrk/test-u32-grapheme-len.c: New file.
60145         New module 'u8-grapheme-next'.
60146         * modules/unigbrk/u8-grapheme-next: New file.
60147         * modules/unigbrk/u8-grapheme-next-tests: New file.
60148         * lib/unigbrk.in.h: Add prototype for new function.
60149         * lib/unigbrk/u8-grapheme-next.c: New file.
60150         * tests/unigbrk/test-u8-grapheme-next.c: New file.
60152         New module 'u16-grapheme-next'.
60153         * modules/unigbrk/u16-grapheme-next: New file.
60154         * modules/unigbrk/u16-grapheme-next-tests: New file.
60155         * lib/unigbrk.in.h: Add prototype for new function.
60156         * lib/unigbrk/u16-grapheme-next.c: New file.
60157         * tests/unigbrk/test-u16-grapheme-next.c: New file.
60159         New module 'u32-grapheme-next'.
60160         * modules/unigbrk/u32-grapheme-next: New file.
60161         * modules/unigbrk/u32-grapheme-next-tests: New file.
60162         * lib/unigbrk.in.h: Add prototype for new function.
60163         * lib/unigbrk/u32-grapheme-next.c: New file.
60164         * tests/unigbrk/test-u32-grapheme-next.c: New file.
60166         New module 'u8-grapheme-prev'.
60167         * modules/unigbrk/u8-grapheme-prev: New file.
60168         * modules/unigbrk/u8-grapheme-prev-tests: New file.
60169         * lib/unigbrk.in.h: Add prototype for new function.
60170         * lib/unigbrk/u8-grapheme-prev.c: New file.
60171         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
60173         New module 'u16-grapheme-prev'.
60174         * modules/unigbrk/u16-grapheme-prev: New file.
60175         * modules/unigbrk/u16-grapheme-prev-tests: New file.
60176         * lib/unigbrk.in.h: Add prototype for new function.
60177         * lib/unigbrk/u16-grapheme-prev.c: New file.
60178         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
60180         New module 'u32-grapheme-prev'.
60181         * modules/unigbrk/u32-grapheme-prev: New file.
60182         * modules/unigbrk/u32-grapheme-prev-tests: New file.
60183         * lib/unigbrk.in.h: Add prototype for new function.
60184         * lib/unigbrk/u32-grapheme-prev.c: New file.
60185         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
60187         New module 'u8-grapheme-breaks'.
60188         * modules/unigbrk/u8-grapheme-breaks: New file.
60189         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
60190         * lib/unigbrk.in.h: Add prototype for new function.
60191         * lib/unigbrk/u8-grapheme-breaks.c: New file.
60192         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
60194         New module 'u16-grapheme-breaks'.
60195         * modules/unigbrk/u16-grapheme-breaks: New file.
60196         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
60197         * lib/unigbrk.in.h: Add prototype for new function.
60198         * lib/unigbrk/u16-grapheme-breaks.c: New file.
60199         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
60201         New module 'u32-grapheme-breaks'.
60202         * modules/unigbrk/u32-grapheme-breaks: New file.
60203         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
60204         * lib/unigbrk.in.h: Add prototype for new function.
60205         * lib/unigbrk/u32-grapheme-breaks.c: New file.
60206         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
60208         New module 'ulc-grapheme-breaks'.
60209         * modules/unigbrk/ulc-grapheme-breaks: New file.
60210         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
60211         * m4/locale-ar.m4: New file.
60212         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
60213         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
60214         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
60216 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60218         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
60219         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
60220         modified how this file was generated before I initially submitted
60221         the module, but failed to regenerate it.  This meant that several
60222         of the level2 entries were wrong.
60223         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
60224         Remove the division-by-2 that is folded into the table now that
60225         gbrkprop.h has been regenerated properly.  Now -1 entries are
60226         handled correctly.
60228         New module 'unigbrk/uc-gbrk-prop-tests'.
60229         * modules/unigbrk/uc-gbrk-prop-tests: New file.
60230         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
60231         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
60232         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
60234 2011-01-01  Bruno Haible  <bruno@clisp.org>
60236         Avoid use of hexadecimal escapes.
60237         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
60238         instead of hexadecimal escapes.
60240 2011-01-01  Jim Meyering  <meyering@redhat.com>
60242         maint: new rule to update copyright year ranges
60243         * Makefile (update-copyright): New rule.
60245         maint: indent with TABs in Makefile
60246         * Makefile: Expand leading sequences of spaces to TABs
60248         version-etc: update the copyright year it reports
60249         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
60251 2010-12-31  Bruno Haible  <bruno@clisp.org>
60253         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
60254         * lib/isfinite.c (zerof, zerod, zerol): New variables.
60255         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
60256         zero.
60258 2010-12-31  Bruno Haible  <bruno@clisp.org>
60260         pwrite: Work around HP-UX 11.11 bug.
60261         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
60262         works and set REPLACE_PWRITE if not.
60263         * lib/pwrite.c (pwrite): Add an implementation that uses the system
60264         function.
60265         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
60267 2010-12-31  Bruno Haible  <bruno@clisp.org>
60269         pread: Work around HP-UX 11 bugs.
60270         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
60271         and set REPLACE_PREAD if not.
60272         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
60274 2010-12-31  Eric Blake  <eblake@redhat.com>
60276         nl_langinfo: fix YESEXPR on Irix 6.5
60277         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
60278         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
60279         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
60280         it.
60282 2010-12-31  Bruno Haible  <bruno@clisp.org>
60284         iconv: Document HP-UX 11 bug.
60285         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
60287 2010-12-31  Bruno Haible  <bruno@clisp.org>
60289         ldexpl: Fix link error on HP-UX 11.
60290         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
60291         LDEXPL_LIBM, using $ISNANL_LIBM.
60293 2010-12-31  Eric Blake  <eblake@redhat.com>
60295         ftello: avoid compilation failure with SunStudio c89
60296         * lib/ftello.c (ftello): Use lseek, not llseek.
60298         tests: avoid failing coreutils tests on cygwin
60299         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
60300         (create_exe_shims_): Return 0 when skipping.
60302 2010-12-31  Bruno Haible  <bruno@clisp.org>
60304         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
60305         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
60307 2010-12-31  Bruno Haible  <bruno@clisp.org>
60309         waitpid: Fix link error in C++ mode.
60310         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
60312 2010-12-31  Bruno Haible  <bruno@clisp.org>
60314         isnan: Use GCC built-ins when possible.
60315         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
60316         __builtin_isnan.
60317         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
60318         (isnan): Define using GCC built-ins for GCC >= 4.0.
60320 2010-12-31  Bruno Haible  <bruno@clisp.org>
60322         isnand: Fix mistake.
60323         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
60324         __builtin_isnand.
60326 2010-12-31  Bruno Haible  <bruno@clisp.org>
60328         open: Avoid C++ error on HP-UX 11.
60329         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
60331 2010-12-31  Bruno Haible  <bruno@clisp.org>
60333         time_r: Add missing declarations on HP-UX 11.
60334         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
60335         instead of HAVE_LOCALTIME_R.
60336         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
60337         HAVE_LOCALTIME_R always.
60338         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
60339         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
60340         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
60341         HAVE_LOCALTIME_R.
60342         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
60343         * doc/posix-functions/localtime_r.texi: Likewise.
60345 2010-12-29  Eric Blake  <eblake@redhat.com>
60347         mountlist: tweak previous commit
60348         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
60349         Reported by Paul Eggert.
60351         mountlist: fix local drive detection on cygwin
60352         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
60353         that works for cygwin.
60355 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60357         ftoastr, snprintf: ftoastr + snprintf module
60358         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
60359         since the snprintf module now should be good enough here.
60360         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
60361         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
60362         and gl_MODULE_INDICATOR([snprintf]), but the former enables
60363         GNULIB_SNPRINTF only for the test directory, and the latter
60364         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
60365         seems to suffice by itself.
60367 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60369         alloca: one step towards thread-safety
60370         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
60371         need for a static variable.  All callers changed.  This does not
60372         make the alloca replacement thread-safe, but it's one step.
60374         tests: minor indenting change
60375         * tests/init.sh: Sync from coreutils housekeeping patch
60376         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
60377         to keep lines within 80 columns.
60379 2010-12-28  Jim Meyering  <meyering@redhat.com>
60381         regex: don't infloop on persistent failing calloc
60382         * lib/regexec.c (build_trtable): Return failure indication upon
60383         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
60384         In glibc, this was fixed for version 2.13:
60385         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
60387 2010-12-28  Bruno Haible  <bruno@clisp.org>
60388             Paul Eggert <eggert@cs.ucla.edu>
60390         linkat: Make implementation robust against system behaviour variations.
60391         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
60392         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
60393         way, and to -2 if it needs a generic runtime test.
60394         * lib/linkat.c (solaris_optimized_link_immediate,
60395         solaris_optimized_link_follow): New functions.
60396         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
60397         (check_same_link): Use it.
60399 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
60401         New module 'unigbrk/base'.
60402         * modules/unigbrk/base: New file.
60403         * lib/unigbrk.in.h: New file.
60405         New module 'unigbrk/uc-gbrk-prop'.
60406         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
60407         * modules/unigbrk/uc-gbrk-prop: New file.
60408         * lib/unigbrk/gbrkprop.h: New file.
60409         * lib/unigbrk/uc-gbrk-prop.c: New file.
60411         New module 'unigbrk/uc-is-grapheme-break'.
60412         * modules/unigbrk/uc-is-grapheme-break: New file.
60413         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
60414         * lib/unigbrk/uc-is-grapheme-break.c: New file.
60415         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
60416         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
60417         * tests/unigbrk/GraphemeBreakTest.txt: New file.
60419         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
60421 2010-12-27  Bruno Haible  <bruno@clisp.org>
60423         linkat test: Avoid failure on Solaris 11 2010-11.
60424         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
60426 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60428         utimens: work around glibc rounding bug on more platforms
60429         * lib/utimens.c (fdutimens): Work around rounding bug even if
60430         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
60431         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
60433 2010-12-27  Bruno Haible  <bruno@clisp.org>
60435         select tests: Improve comments.
60436         * tests/test-select.c (do_select): Add comments.
60438 2010-12-27  Bruno Haible  <bruno@clisp.org>
60440         select tests: Safer way of handling timeout.
60441         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
60442         at every invocation.
60444 2010-12-27  Bruno Haible  <bruno@clisp.org>
60446         select tests: Use 'bool' where appropriate.
60447         * tests/test-select.c (connect_to_socket): Change argument type to
60448         'bool'.
60450 2010-12-27  Bruno Haible  <bruno@clisp.org>
60452         select tests: Use existing modules.
60453         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
60454         (configure.ac): Don't test for unistd.h.
60455         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
60456         declared in <unistd.h>.
60458 2010-12-27  Bruno Haible  <bruno@clisp.org>
60460         mbrtowc: Work around a Solaris 7 bug.
60461         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
60462         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
60463         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
60464         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
60465         MBRTOWC_NULL_ARG1_BUG.
60466         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
60467         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
60468         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
60469         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
60471 2010-12-27  Jim Meyering  <meyering@redhat.com>
60473         read-file.c: tweak syntax
60474         * lib/read-file.c (fread_file): Remove space after "*" in function
60475         definitions.
60477 2010-12-27  Bruno Haible  <bruno@clisp.org>
60479         times test: Avoid gcc warnings on OSF/1.
60480         * tests/test-times.c (main): Cast printf arguments from clock_t to
60481         'long int'.
60483 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60485         utimens: work around glibc rounding bug on older Linux kernels
60486         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
60487         on Linux with a glibc whose utimes might not work, then work
60488         around a longstanding glibc bug involving rounding rather than
60489         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
60490         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
60492 2010-12-26  Bruno Haible  <bruno@clisp.org>
60494         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
60495         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
60496         _GL_CXXALIAS_SYS.
60497         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60499 2010-12-26  Bruno Haible  <bruno@clisp.org>
60501         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
60502         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
60503         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
60504         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
60505         looking for the declaration.
60506         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60507         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
60508         problem.
60509         * doc/posix-functions/inet_pton.texi: Likewise.
60511 2010-12-26  Bruno Haible  <bruno@clisp.org>
60513         arpa_inet: Use the common idioms with C++ support.
60514         * lib/arpa_inet.in.h: Include c++defs.h.
60515         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
60516         support.
60517         * modules/arpa_inet (Depends-on): Add c++defs.
60518         (Makefile.am): Substitute the contents of c++defs.h.
60519         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
60520         * modules/arpa_inet-c++-tests: New file.
60521         * tests/test-arpa_inet-c++.cc: New file.
60523 2010-12-25  Bruno Haible  <bruno@clisp.org>
60525         Fix more C++ link errors on Solaris 8.
60526         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
60527         $(LIB_EACCESS).
60528         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
60529         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
60530         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
60531         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
60532         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
60534 2010-12-25  Bruno Haible  <bruno@clisp.org>
60536         printf-posix: Fix link error when a non-GCC compiler is used.
60537         * lib/stdio.in.h (printf): When not using GCC, override printf
60538         correctly.
60539         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60541 2010-12-25  Bruno Haible  <bruno@clisp.org>
60543         strerror_r-posix: Update doc.
60544         * doc/posix-functions/strerror_r.texi: Update doc about the return
60545         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
60547 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60549         utimens: simplify the logic of the previous change
60550         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
60551         This should not affect whether the test succeeds or fails.
60553         utimens: configure better on hosts with NFS clock skew
60554         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
60555         uses the clock of the local host.  It might use the clock of the
60556         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
60557         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
60559 2010-12-25  Bruno Haible  <bruno@clisp.org>
60561         ptsname test: Avoid failure on Solaris.
60562         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
60563         open a pseudo-terminal; don't use BSD-style ptys.
60564         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
60566 2010-12-25  Bruno Haible  <bruno@clisp.org>
60568         ptsname: Avoid ERANGE failure on some systems.
60569         * lib/ptsname.c (buffer): Increase size.
60571 2010-12-25  Bruno Haible  <bruno@clisp.org>
60573         rename, renameat: Avoid test failures at NFS mounted locations.
60574         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
60575         so that subsequent mkdir calls succeed.
60577 2010-12-25  Bruno Haible  <bruno@clisp.org>
60579         iswblank: Fix C++ link error on Solaris 8.
60580         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
60581         _GL_FUNCDECL_SYS.
60583 2010-12-25  Bruno Haible  <bruno@clisp.org>
60585         unistd: Fix C++ link error on Solaris 8.
60586         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
60588 2010-12-25  Bruno Haible  <bruno@clisp.org>
60590         readlink doc: Mention an old glibc bug.
60591         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
60593 2010-12-25  Bruno Haible  <bruno@clisp.org>
60595         fcntl-h: Fix for use of C++ on glibc systems.
60596         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60597         also on glibc systems in C++ mode.
60598         Reported by Gary V. Vaughan <gary@gnu.org>.
60600 2010-12-25  Bruno Haible  <bruno@clisp.org>
60602         roundl-ieee: Make it work on OSF/1 5.1 with cc.
60603         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
60605 2010-12-25  Bruno Haible  <bruno@clisp.org>
60607         truncl-ieee: Make it work on OSF/1 5.1 with cc.
60608         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
60609         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
60610         test whether truncl works according to ISO C 99 with IEC 60559.
60611         * m4/truncl-ieee.m4: New file.
60612         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
60613         m4/signbit.m4.
60614         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
60616 2010-12-25  Bruno Haible  <bruno@clisp.org>
60618         ceill-ieee: Make it work on OSF/1 5.1 with cc.
60619         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
60620         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
60621         test whether ceill works according to ISO C 99 with IEC 60559.
60622         * m4/ceill-ieee.m4: New file.
60623         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
60624         m4/signbit.m4.
60625         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
60627 2010-12-25  Bruno Haible  <bruno@clisp.org>
60629         Ensure all prerequisites of <wchar.h> are included.
60630         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
60631         before <wchar.h>.
60632         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
60633         gl_MBRLEN_NUL_RETVAL): Likewise.
60634         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
60635         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
60636         AC_FUNC_MBRTOWC): Likewise.
60637         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
60638         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60639         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
60640         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
60641         Likewise.
60642         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
60643         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
60644         (gl_WCHAR_H): Improve comments.
60645         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60647 2010-12-25  Bruno Haible  <bruno@clisp.org>
60649         strtok_r: Fix C syntax error in autoconf macro.
60650         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
60651         characters in test program.
60653 2010-12-24  Bruno Haible  <bruno@clisp.org>
60655         ceil, trunc, round: Fix gcc warnings.
60656         * lib/ceil.c (MIN): Undefine before redefining.
60657         * lib/trunc.c (MIN): Likewise.
60658         * lib/round.c (MIN): Likewise.
60659         Include <math.h> first.
60661 2010-12-24  Bruno Haible  <bruno@clisp.org>
60663         select tests: Avoid failures on OSF/1 5.1.
60664         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
60665         failure of closing the last socket; it may fail with ECONNRESET.
60667 2010-12-24  Eric Blake  <eblake@redhat.com>
60669         stdint: avoid HP-UX 10.20 preprocessor bug
60670         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
60671         than #if.
60672         * tests/test-floor2.c (main): Likewise.
60673         Reported by Peter O'Gorman.
60675         pipe: make obsoletion transition easier
60676         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
60677         * modules/pipe (Files): Include revived file.
60678         (Include): Drop reference, to mirror getdate's behavior.
60680 2010-12-24  Bruno Haible  <bruno@clisp.org>
60682         sys_socket: Hide mismatch of declarations on NonStop Kernel.
60683         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
60684         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
60685         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60687 2010-12-24  Bruno Haible  <bruno@clisp.org>
60689         gethostname: Ensure declaration on NonStop Kernel.
60690         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
60691         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60693 2010-12-24  Bruno Haible  <bruno@clisp.org>
60695         sys_select: Ensure all necessary types on NonStop Kernel.
60696         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
60697         include <sys/time.h>.
60698         * doc/posix-headers/sys_select.texi: Mention that it's missing on
60699         NonStop Kernel.
60700         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60702 2010-12-24  Bruno Haible  <bruno@clisp.org>
60704         sys_select: Remove unneeded include.
60705         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
60706         have <sys/select.h>.
60708 2010-12-24  Bruno Haible  <bruno@clisp.org>
60710         gethostname: Provide a fallback for HOST_NAME_MAX.
60711         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
60712         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
60713         instead.
60714         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60716 2010-12-24  Bruno Haible  <bruno@clisp.org>
60718         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
60719         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
60720         (SA_RESTART): Likewise.
60721         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60723 2010-12-24  Bruno Haible  <bruno@clisp.org>
60725         signal: Define NSIG.
60726         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
60727         * tests/test-signal.c (nsig): New variable.
60728         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60730 2010-12-24  Bruno Haible  <bruno@clisp.org>
60732         rename, renameat: Avoid test failures on OSF/1 5.1.
60733         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
60734         alternative error codes.
60735         * tests/test-renameat.c (main): Likewise.
60737 2010-12-24  Bruno Haible  <bruno@clisp.org>
60739         *printf: Detect large precisions bug on Solaris 10/SPARC.
60740         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
60741         by Paul Eggert.
60742         * tests/test-snprintf-posix.h (test_function): Add this test code here
60743         too.
60744         * tests/test-sprintf-posix.h (test_function): Likewise.
60745         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60746         * tests/test-vasprintf-posix.c (test_function): Likewise.
60747         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
60748         around by gnulib.
60749         * doc/posix-functions/printf.texi: Likewise.
60750         * doc/posix-functions/snprintf.texi: Likewise.
60751         * doc/posix-functions/sprintf.texi: Likewise.
60752         * doc/posix-functions/vfprintf.texi: Likewise.
60753         * doc/posix-functions/vprintf.texi: Likewise.
60754         * doc/posix-functions/vsnprintf.texi: Likewise.
60755         * doc/posix-functions/vsprintf.texi: Likewise.
60756         * doc/posix-functions/dprintf.texi: Undo last commit.
60757         * doc/posix-functions/vdprintf.texi: Likewise.
60759 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60761         tests: port test-fdutimensat.c to Solaris 8
60762         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
60763         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
60764         On Solaris 8, it fails with errno == ENOSYS, because there is no
60765         futimens (so it can't use the fd), and there is no lutimens (so it
60766         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
60768         vsnprintf: make more consistent with snprintf; doc fixes
60770         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
60771         the byte count return problem was promoted from the snprintf-posix
60772         to the snprintf module.
60773         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
60774         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
60775         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
60776         * tests/test-snprintf.c (main): Check the byte count returned.
60777         * tests/test-vsnprintf.c (main): Likewise.
60779 2010-12-23  Eric Blake  <eblake@redhat.com>
60781         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
60782         * modules/sigpipe (License): Relax license.
60784 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60786         doc: document Solaris printf bug with large float precisions
60787         * doc/posix-functions/dprintf.texi (dprintf):
60788         * doc/posix-functions/fprintf.texi (fprintf):
60789         * doc/posix-functions/printf.texi (printf):
60790         * doc/posix-functions/snprintf.texi (snprintf):
60791         * doc/posix-functions/sprintf.texi (sprintf):
60792         * doc/posix-functions/vdprintf.texi (vdprintf):
60793         * doc/posix-functions/vfprintf.texi (vfprintf):
60794         * doc/posix-functions/vprintf.texi (vprintf):
60795         * doc/posix-functions/vsnprintf.texi (vsnprintf):
60796         * doc/posix-functions/vsprintf.texi (vsprintf):
60797         Mention that these functions mishandle large floating point
60798         precisions on Solaris 10.  The same bug is also present in Solaris
60799         8, and I assume earlier.  This causes "cd gnulib-tests; make
60800         check" to fail on Solaris 8 (and I assume, later) when building
60801         the latest coreutils, in test-vasprintf-posix's call to
60802         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
60803         the wide flavors (e.g., wprintf) so this patch just updates the
60804         documentation for the narrow ones.
60806         test-posixtm.c: add two tests
60807         * tests/test-posixtm.c: Add two tests, to highlight the
60808         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
60809         around this bug; this is merely to document it.
60811 2010-12-22  Bruno Haible  <bruno@clisp.org>
60813         getlogin_r: Work around portability problem on OSF/1.
60814         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
60815         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
60816         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
60817         test for a truncated result.
60818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
60819         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
60820         * modules/getlogin_r (Depends-on): Add memchr.
60821         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
60823 2010-12-22  Bruno Haible  <bruno@clisp.org>
60825         ptsname: Avoid test failure on OSF/1 5.1.
60826         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
60827         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
60828         (same_slave): New function.
60829         (main): Use it to compare ptsname's result with the expected file name.
60831 2010-12-22  Bruno Haible  <bruno@clisp.org>
60833         Port extended stdio modules to HP NonStop Kernel.
60834         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
60835         macros.
60836         * lib/fbufmode.c: Update comments.
60837         * lib/fflush.c: Likewise.
60838         * lib/fpurge.c: Likewise.
60839         * lib/freadable.c: Likewise.
60840         * lib/freadahead.c: Likewise.
60841         * lib/freading.c: Likewise.
60842         * lib/freadptr.c: Likewise.
60843         * lib/freadseek.c: Likewise.
60844         * lib/fseeko.c: Likewise.
60845         * lib/fseterr.c: Likewise.
60846         * lib/fwritable.c: Likewise.
60847         * lib/fwriting.c: Likewise.
60848         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60850 2010-12-22  Bruno Haible  <bruno@clisp.org>
60852         ttyname_r: Work around bug on OSF/1 5.1.
60853         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
60854         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
60855         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
60856         present.
60857         * lib/ttyname_r.c (ttyname_r): Update comments.
60859 2010-12-22  Bruno Haible  <bruno@clisp.org>
60861         round: Implement result sign according to IEEE 754.
60862         * lib/round.c (MIN, MINUS_ZERO): New macros.
60863         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
60864         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
60865         * tests/test-round-ieee.c (main): Likewise.
60866         * tests/test-roundl-ieee.c (main): Likewise.
60868         trunc: Implement result sign according to IEEE 754.
60869         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
60870         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
60871         * tests/test-trunc2.c: Include minus-zero.h.
60872         (MINUS_ZERO): New macro.
60873         (trunc_reference): Keep in sync with lib/trunc.c.
60874         * tests/test-truncf2.c: Include minus-zero.h.
60875         (MINUS_ZERO): New macro.
60876         (truncf_reference): Keep in sync with lib/trunc.c.
60877         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
60878         * tests/test-trunc-ieee.c (main): Likewise.
60879         * tests/test-truncl-ieee.c (main): Likewise.
60881         ceil: Implement result sign according to IEEE 754.
60882         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
60883         (FUNC): Return -0.0 for -1 < x < 0.
60884         * tests/test-ceil2.c: Include minus-zero.h.
60885         (MINUS_ZERO): New macro.
60886         (ceil_reference): Keep in sync with lib/ceil.c.
60887         * tests/test-ceilf2.c: Include minus-zero.h.
60888         (MINUS_ZERO): New macro.
60889         (ceilf_reference): Keep in sync with lib/ceil.c.
60890         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
60891         * tests/test-ceil-ieee.c (main): Likewise.
60892         * tests/test-ceill-ieee.c (main): Likewise.
60894         floor: Implement result sign according to IEEE 754.
60895         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
60896         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
60897         * tests/test-floorf2.c (floorf_reference): Likewise.
60898         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
60899         * tests/test-floor-ieee.c (main): Likewise.
60900         * tests/test-floorl-ieee.c (main): Likewise.
60902 2010-12-22  Bruno Haible  <bruno@clisp.org>
60904         getaddrinfo: Update doc.
60905         * doc/posix-functions/gai_strerror.texi: Return type is also different
60906         on AIX and HP-UX.
60908 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60910         getaddrinfo, inet_ntop: Update doc for Solaris.
60911         * doc/posix-functions/gai_strerror.texi: Return type is also an
60912         issue on Solaris 9 and earlier.
60913         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
60914         on Solaris 10 and earlier.
60916 2010-12-21  Bruno Haible  <bruno@clisp.org>
60918         New module 'roundl-ieee'.
60919         * modules/roundl-ieee: New file.
60920         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
60921         test whether roundl works according to ISO C 99 with IEC 60559.
60922         * m4/roundl-ieee.m4: New file.
60923         * modules/roundl-ieee-tests: New file.
60924         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
60925         * tests/test-roundl.c (main): Remove signbit tests.
60926         * modules/roundl-tests (Depends-on): Remove signbit.
60927         * doc/posix-functions/roundl.texi: Mention the new module.
60929 2010-12-21  Bruno Haible  <bruno@clisp.org>
60931         New module 'truncl-ieee'.
60932         * modules/truncl-ieee: New file.
60933         * modules/truncl-ieee-tests: New file.
60934         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
60935         * tests/test-truncl.c (main): Remove signbit tests.
60936         * modules/truncl-tests (Depends-on): Remove signbit.
60937         * doc/posix-functions/truncl.texi: Mention the new module.
60939 2010-12-21  Bruno Haible  <bruno@clisp.org>
60941         New module 'ceill-ieee'.
60942         * modules/ceill-ieee: New file.
60943         * modules/ceill-ieee-tests: New file.
60944         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
60945         * tests/test-ceill.c (main): Remove signbit tests.
60946         * modules/ceill-tests (Depends-on): Remove signbit.
60947         * doc/posix-functions/ceill.texi: Mention the new module.
60949 2010-12-21  Bruno Haible  <bruno@clisp.org>
60951         New module 'floorl-ieee'.
60952         * modules/floorl-ieee: New file.
60953         * modules/floorl-ieee-tests: New file.
60954         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
60955         * tests/test-floorl.c (main): Remove signbit tests.
60956         * modules/floorl-tests (Depends-on): Remove signbit.
60957         * doc/posix-functions/floorl.texi: Mention the new module.
60959 2010-12-21  Bruno Haible  <bruno@clisp.org>
60961         New module 'round-ieee'.
60962         * modules/round-ieee: New file.
60963         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
60964         whether round works according to ISO C 99 with IEC 60559.
60965         * m4/round-ieee.m4: New file.
60966         * modules/round-ieee-tests: New file.
60967         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
60968         * tests/test-round1.c (main): Remove signbit tests.
60969         * modules/round-tests (Depends-on): Remove 'signbit'.
60970         * doc/posix-functions/round.texi: Mention the new module.
60972 2010-12-21  Bruno Haible  <bruno@clisp.org>
60974         New module 'trunc-ieee'.
60975         * modules/trunc-ieee: New file.
60976         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
60977         whether trunc works according to ISO C 99 with IEC 60559.
60978         * m4/trunc-ieee.m4: New file.
60979         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
60980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
60981         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
60982         * modules/trunc-ieee-tests: New file.
60983         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
60984         * tests/test-trunc1.c (main): Remove signbit tests.
60985         * modules/trunc-tests (Depends-on): Remove 'signbit'.
60986         * doc/posix-functions/trunc.texi: Mention the new module.
60988 2010-12-21  Bruno Haible  <bruno@clisp.org>
60990         New module 'ceil-ieee'.
60991         * modules/ceil-ieee: New file.
60992         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
60993         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
60994         ISO C 99 with IEC 60559.
60995         * m4/ceil-ieee.m4: New file.
60996         * modules/ceil (Files): Add lib/ceil.c.
60997         (Depends-on): Add 'float'.
60998         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
60999         * lib/math.in.h (ceil): New declaration.
61000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
61001         REPLACE_CEIL.
61002         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
61003         * modules/ceil-ieee-tests: New file.
61004         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
61005         * tests/test-math-c++.cc: Check the signature of 'ceil'.
61006         * doc/posix-functions/ceil.texi: Mention the new module.
61008 2010-12-21  Bruno Haible  <bruno@clisp.org>
61010         New module 'floor-ieee'.
61011         * modules/floor-ieee: New file.
61012         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
61013         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
61014         ISO C 99 with IEC 60559.
61015         * m4/floor-ieee.m4: New file.
61016         * modules/floor (Files): Add lib/floor.c.
61017         (Depends-on): Add 'float'.
61018         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61019         * lib/math.in.h (floor): New declaration.
61020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
61021         REPLACE_FLOOR.
61022         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
61023         * modules/floor-ieee-tests: New file.
61024         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
61025         * tests/test-math-c++.cc: Check the signature of 'floor'.
61026         * doc/posix-functions/floor.texi: Mention the new module.
61028 2010-12-21  Bruno Haible  <bruno@clisp.org>
61030         New module 'roundf-ieee'.
61031         * modules/roundf-ieee: New file.
61032         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
61033         test whether roundf works according to ISO C 99 with IEC 60559.
61034         * m4/roundf-ieee.m4: New file.
61035         * modules/roundf-ieee-tests: New file.
61036         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
61037         * tests/test-roundf1.c (main): Remove signbit tests.
61038         * modules/roundf-tests (Depends-on): Remove 'signbit'.
61039         * doc/posix-functions/roundf.texi: Mention the new module.
61041 2010-12-21  Bruno Haible  <bruno@clisp.org>
61043         New module 'truncf-ieee'.
61044         * modules/truncf-ieee: New file.
61045         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
61046         test whether truncf works according to ISO C 99 with IEC 60559.
61047         * m4/truncf-ieee.m4: New file.
61048         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
61049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
61050         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
61051         * modules/truncf-ieee-tests: New file.
61052         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
61053         * tests/test-truncf1.c (main): Remove signbit tests.
61054         * modules/truncf-tests (Depends-on): Remove 'signbit'.
61055         * doc/posix-functions/truncf.texi: Mention the new module.
61057 2010-12-21  Bruno Haible  <bruno@clisp.org>
61059         New module 'ceilf-ieee'.
61060         * modules/ceilf-ieee: New file.
61061         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
61062         test whether ceilf works according to ISO C 99 with IEC 60559.
61063         * m4/ceilf-ieee.m4: New file.
61064         * modules/ceilf-ieee-tests: New file.
61065         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
61066         * tests/test-ceilf1.c (main): Remove signbit tests.
61067         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
61068         * doc/posix-functions/ceilf.texi: Mention the new module.
61070 2010-12-21  Bruno Haible  <bruno@clisp.org>
61072         New module 'floorf-ieee'.
61073         * modules/floorf-ieee: New file.
61074         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
61075         test whether floorf works according to ISO C 99 with IEC 60559.
61076         * m4/floorf-ieee.m4: New file.
61077         * modules/floorf-ieee-tests: New file.
61078         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
61079         * tests/test-floorf1.c (main): Remove signbit tests.
61080         * modules/floorf-tests (Depends-on): Remove 'signbit'.
61081         * doc/posix-functions/floorf.texi: Mention the new module.
61083 2010-12-21  Bruno Haible  <bruno@clisp.org>
61085         Support for minus zero in autoconf macros.
61086         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
61087         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
61088         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
61089         * tests/minus-zero.h: Update comments.
61091 2010-12-21  Bruno Haible  <bruno@clisp.org>
61093         Tests for module 'ceil'.
61094         * modules/ceil-tests: New file.
61095         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
61096         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
61098 2010-12-21  Bruno Haible  <bruno@clisp.org>
61100         Tests for module 'floor'.
61101         * modules/floor-tests: New file.
61102         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
61103         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
61105 2010-12-21  Bruno Haible  <bruno@clisp.org>
61107         math: Fix indentation.
61108         * lib/math.in.h (floorf): Fix indentation.
61110 2010-12-21  Bruno Haible  <bruno@clisp.org>
61112         Fix cross-compilation guesses on Solaris.
61113         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
61114         not match "solaris2.10".
61115         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61116         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
61117         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
61119 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61121         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
61122         This fixes a problem observed with the latest coreutils snapshot
61123         that caused a test to fail on Solaris 8.  src/csplit.c's call
61124         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
61125         earlier, instead of returning the number of bytes that would have
61126         been generated; this causes csplit to incorrectly report memory
61127         exhaustion.
61128         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
61129         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
61130         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
61131         comments to match.
61132         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
61133         Fix typo in matching older versions of Solaris: "solaris2.10"
61134         is matched by the shell pattern "solaris2.[0-9]*".  This matters
61135         only for guessing while cross-compiling.
61136         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
61138 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
61140         ftoastr: fix comment again
61141         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61142         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
61143         Also, simplify example a bit by using flags = 0.
61145 2010-12-20  Bruno Haible  <bruno@clisp.org>
61147         round*, trunc*: Update documentation regarding glibc.
61148         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
61149         * doc/posix-functions/round.texi: Likewise.
61150         * doc/posix-functions/roundl.texi: Likewise.
61151         * doc/posix-functions/truncf.texi: Likewise.
61152         * doc/posix-functions/trunc.texi: Likewise.
61153         * doc/posix-functions/truncl.texi: Likewise.
61155 2010-12-20  Bruno Haible  <bruno@clisp.org>
61157         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
61158         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
61159         * doc/posix-functions/round.texi: Likewise.
61160         * doc/posix-functions/roundl.texi: Likewise.
61162 2010-12-20  Bruno Haible  <bruno@clisp.org>
61164         ttyname_r: Add missing declaration on HP-UX 11.
61165         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
61166         HAVE_TTYNAME_R.
61167         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
61168         declared. Set HAVE_TTYNAME_R always.
61169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61170         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
61171         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
61172         HAVE_TTYNAME_R.
61173         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
61175 2010-12-20  Bruno Haible  <bruno@clisp.org>
61177         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
61178         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
61179         * doc/posix-functions/getlogin_r.texi: Likewise.
61180         * tests/test-getlogin.c: Include <errno.h>.
61181         (main): Avoid test failure on HP-UX 11.11.
61182         * tests/test-getlogin_r.c (main): Likewise.
61184 2010-12-20  Bruno Haible  <bruno@clisp.org>
61186         getlogin_r: Add missing declaration on HP-UX 11.
61187         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
61188         declared also when it exists as a function.
61189         * doc/posix-functions/getlogin_r.texi: Document this workaround.
61191 2010-12-20  Bruno Haible  <bruno@clisp.org>
61193         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
61194         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
61195         through wcrtomb.
61197 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61199         ftoastr: fix comment
61200         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61201         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
61203 2010-12-19  Bruno Haible  <bruno@clisp.org>
61205         isnan: Ensure it is a macro.
61206         * lib/math.in.h (isnan): Define as a macro if not already a macro.
61207         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
61208         Solaris.
61210 2010-12-19  Bruno Haible  <bruno@clisp.org>
61212         ldexpl test: Fix link error on OSF/1 5.1.
61213         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
61215 2010-12-19  Bruno Haible  <bruno@clisp.org>
61217         wctype: Make it work in C++ mode on OSF/1 5.1.
61218         * lib/wctype.in.h (iswblank): Declare but not define here.
61219         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
61220         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
61221         * modules/wctype (Files): Add lib/iswblank.c.
61223 2010-12-19  Bruno Haible  <bruno@clisp.org>
61225         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
61226         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
61227         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
61229 2010-12-19  Bruno Haible  <bruno@clisp.org>
61231         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
61232         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
61233         _POSIX_PII_SOCKET.
61234         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
61235         * doc/posix-functions/recvfrom.texi: Likewise.
61236         * doc/posix-functions/send.texi: Likewise.
61237         * doc/posix-functions/sendto.texi: Likewise.
61239 2010-12-19  Bruno Haible  <bruno@clisp.org>
61241         tcgetsid: Add missing declaration on OSF/1 5.1.
61242         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
61243         HAVE_TCGETSID.
61244         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
61245         Don't set HAVE_TCGETSID.
61246         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
61247         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
61248         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
61249         HAVE_TCGETSID.
61250         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
61252 2010-12-19  Bruno Haible  <bruno@clisp.org>
61254         stdio: Fix problem with popen() declaration on OSF/1 5.1.
61255         * lib/stdio.in.h: During the include_next statement, let recursive
61256         includes of this file include only the system header file.
61258 2010-12-19  Bruno Haible  <bruno@clisp.org>
61260         iconv_open: Fix regression from 2010-12-04.
61261         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
61262         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
61264 2010-12-19  Bruno Haible  <bruno@clisp.org>
61266         stdbool test: Avoid a gcc warning.
61267         * tests/test-stdbool.c (main): Fail if e1 is false.
61268         Reported by Jim Meyering.
61270 2010-12-19  Jim Meyering  <meyering@redhat.com>
61272         setenv: restore to working order
61273         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
61274         mistakenly removed.
61275         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
61276         HAVE_SETENV.
61277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
61278         HAVE_SETENV.
61280 2010-12-19  Bruno Haible  <bruno@clisp.org>
61282         Document some different function declarations on OSF/1 5.1.
61283         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
61284         * doc/posix-functions/inet_ntop.texi: Likewise.
61285         * doc/posix-functions/gethostname.texi: Likewise.
61286         * lib/unistd.in.h (gethostname): Update comment.
61288 2010-12-19  Bruno Haible  <bruno@clisp.org>
61290         doc: Mention vasprintf-posix module.
61291         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
61292         the 'vasprintf-posix' module.
61293         * doc/glibc-functions/vasprintf.texi: Likewise.
61295 2010-12-19  Bruno Haible  <bruno@clisp.org>
61297         unsetenv: Add missing declaration on OSF/1 5.1.
61298         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
61299         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
61300         Don't set HAVE_UNSETENV. In the test program, set _BSD.
61301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
61302         not HAVE_UNSETENV.
61303         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
61304         HAVE_UNSETENV.
61305         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
61307 2010-12-19  Bruno Haible  <bruno@clisp.org>
61309         setenv: Add missing declaration on OSF/1 5.1.
61310         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
61311         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
61312         declared. Don't set HAVE_SETENV.
61313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
61314         not HAVE_SETENV.
61315         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
61316         HAVE_SETENV.
61317         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
61319 2010-12-19  Bruno Haible  <bruno@clisp.org>
61321         nl_langinfo tests: Avoid gcc warning.
61322         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
61324 2010-12-19  Bruno Haible  <bruno@clisp.org>
61326         mknod: Avoid error in C++ mode on OSF/1 with GCC.
61327         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
61328         _GL_CXXALIAS_SYS.
61330 2010-12-19  Bruno Haible  <bruno@clisp.org>
61332         stdbool: Relax test.
61333         * tests/test-stdbool.c (e): Don't require that casts from a variable's
61334         address to 'bool' work in static initializer, for compilers other than
61335         GCC.
61337 2010-12-19  Bruno Haible  <bruno@clisp.org>
61339         ftello: Add missing declaration on OSF/1 5.1.
61340         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
61341         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
61342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
61343         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
61344         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
61346 2010-12-19  Bruno Haible  <bruno@clisp.org>
61348         fseeko: Add missing declaration on OSF/1 5.1.
61349         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
61350         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
61351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
61352         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
61353         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
61355 2010-12-19  Bruno Haible  <bruno@clisp.org>
61357         fchdir: Add missing declaration on OSF/1 5.1.
61358         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
61359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
61360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
61361         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
61362         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
61364 2010-12-19  Bruno Haible  <bruno@clisp.org>
61366         relocatable-prog-wrapper: Separate from relocatable-prog.
61367         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
61368         uninstall-relocwrapper rule here.
61369         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
61370         Reported by Ian Beckwith <ianb@erislabs.net>.
61372 2010-12-19  Bruno Haible  <bruno@clisp.org>
61374         unistr/u8-mbsnlen: Add missing dependency.
61375         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
61376         Reported by Ian Beckwith <ianb@erislabs.net>.
61378 2010-12-19  Bruno Haible  <bruno@clisp.org>
61380         iconv: Make it possible again to use this module without 'iconv-h'.
61381         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
61382         if it is not defined.
61383         Reported by Ian Beckwith <ianb@erislabs.net>.
61385 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61387         acl: port to Solaris 8 when copying from tmpfs to ufs
61388         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
61389         error number.  Problem observed on Solaris 8 with latest
61390         coreutils, with "mv A B", where A is on a tmpfs file system and B
61391         is on a ufs file system.  This caused coreutils' mv/part-symlink
61392         test to fail.
61394         tests: set fail=0 at start
61395         * tests/init.sh (setup_): Move fail=0 initialization here ...
61396         (mktempd_): ... from here, so that tests can rely on fail being
61397         set to 0 initially.  This fixes a problem in coreutils; see:
61398         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
61400 2010-12-18  Bruno Haible  <bruno@clisp.org>
61402         memmem-simple: Stylistic changes.
61403         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
61404         Fix preprocessor directive indentation.
61406 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61408         memmem, memmem-simple: reorganize and expand empty needle check
61409         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
61410         functional checks to memmem-simple so that one has a fully functional
61411         memmem by using just this module.
61412         Restrict the performance only check to the memmem module.
61413         Also expand the empty needle check to ensure the correct
61414         pointer is returned, not just a non NULL pointer.
61415         * doc/glibc-functions/memmem.texi: Rearrange the portability
61416         documentation to correlate with the rearranged checks.
61417         Clarify exactly how the memmem and memmem-simple modules
61418         relate to each other.
61420 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61421             Bruno Haible  <bruno@clisp.org>
61423         Improve cross-compilation guesses for uClibc.
61424         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
61425         that uClibc does not have the glibc bug.
61426         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
61427         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
61429 2010-12-14  Eric Blake  <eblake@redhat.com>
61431         configmake: provide fallbacks for oldest supported autotools
61432         * m4/configmake.m4: New file.
61433         * modules/configmake (Files): Ship it.
61434         (configure.ac): Use it to guarantee fallbacks.
61436 2010-12-13  Pádraig Brady  <P@draigBrady.com>
61438         read-file: Improve handling of large files
61439         * lib/read-file.c (fread_file): Minimize realloc()s
61440         for regular files, and better manage sizes around SIZE_MAX.
61442 2010-12-13  Eric Blake  <eblake@redhat.com>
61444         cloexec, fcntl: relax license
61445         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
61446         consent from all contributors.
61447         * modules/fcntl (License): Likewise.
61449 2010-12-10  Bruno Haible  <bruno@clisp.org>
61451         Tests for module 'pipe-posix'.
61452         * modules/pipe-posix-tests: New file.
61453         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
61455 2010-12-10  Bruno Haible  <bruno@clisp.org>
61457         pipe-posix: Make it work in C++ mode.
61458         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
61459         (pipe): Use common idiom, not a macro definition.
61460         * lib/pipe.c: New file.
61461         * m4/pipe.m4: New file.
61462         * modules/pipe-posix (Description): Enhance.
61463         (Files): Add lib/pipe.c, m4/pipe.m4.
61464         (configure.ac): Invoke gl_FUNC_PIPE.
61465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
61466         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
61467         * tests/test-unistd-c++.cc: Check the signature of pipe.
61469 2010-12-10  Bruno Haible  <bruno@clisp.org>
61471         Rename module 'pipe' to 'spawn-pipe'.
61472         * modules/spawn-pipe: New file, renamed from modules/pipe.
61473         (Files, configure.ac, Makefile.am): Update.
61474         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
61475         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
61476         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
61477         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
61478         "spawn-pipe.h" instead of "pipe.h".
61479         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
61480         to gl_SPAWN_PIPE.
61481         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
61482         (Files, Makefile.am): Update.
61483         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
61484         Update.
61485         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
61486         Include "spawn-pipe.h" instead of "pipe.h".
61487         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
61488         * lib/javacomp.c: Likewise.
61489         * lib/javaversion.c: Likewise.
61490         * lib/pipe-filter-gi.c: Likewise.
61491         * lib/pipe-filter-ii.c: Likewise.
61492         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
61493         * modules/javacomp (Depends-on): Likewise.
61494         * modules/javaversion (Depends-on): Likewise.
61495         * modules/pipe-filter-gi (Depends-on): Likewise.
61496         * modules/pipe-filter-ii (Depends-on): Likewise.
61497         * MODULES.html.sh (Executing programs): Update.
61498         * NEWS: Mention the change.
61500 2010-12-10  Eric Blake  <eblake@redhat.com>
61502         pipe-posix: new module
61503         * modules/pipe-posix: New file.
61504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
61505         (gl_UNISTD_H): Check for declaration.
61506         * modules/unistd (Makefile.am): Substitute it.
61507         * lib/unistd.in.h (pipe): Provide it for mingw.
61508         * doc/posix-functions/pipe.texi (pipe): Update documentation.
61509         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
61511 2010-12-07  Bruno Haible  <bruno@clisp.org>
61513         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
61514         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
61515         u8_strcmp_gnu.
61516         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
61518 2010-12-06  Bruno Haible  <bruno@clisp.org>
61520         Update internal documentation.
61521         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
61523 2010-12-04  Bruno Haible  <bruno@clisp.org>
61525         Put more information about failed tests into the test return codes.
61526         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
61527         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
61528         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61529         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61530         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
61531         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61532         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61533         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61534         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
61535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61536         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
61537         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61538         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
61539         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61540         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
61541         returns a bit mask.
61542         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
61543         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
61544         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
61545         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
61546         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
61547         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61548         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61550         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61551         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61552         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61553         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61554         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61555         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61556         * m4/link.m4 (gl_FUNC_LINK): Likewise.
61557         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61558         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
61559         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
61560         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61561         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
61562         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61563         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
61564         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
61565         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61566         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61567         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
61568         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
61569         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61570         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61571         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
61572         gl_PRINTF_PRECISION): Likewise.
61573         * m4/regex.m4 (gl_REGEX): Likewise.
61574         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
61575         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
61576         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
61577         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61578         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61579         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61580         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
61581         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
61582         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61583         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61584         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
61585         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
61586         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61587         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61588         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61589         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
61590         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
61591         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61593         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
61594         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
61595         enumerated value.
61596         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
61598 2010-12-04  Bruno Haible  <bruno@clisp.org>
61600         Update for Solaris 11 2010-11.
61601         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
61602         Express, released in November 2010.
61604 2010-12-04  Bruno Haible  <bruno@clisp.org>
61606         nproc: Relax license.
61607         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
61608         and Paul Eggert.
61609         Requested by Ludovic Courtès <ludo@gnu.org>.
61611 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61613         utimecmp: fine-grained src to nearby coarse-grained dest
61615         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
61616         and the source is on a file system with higher-resolution time
61617         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
61618         not work, and the time stamps are close together, the algorithm to
61619         determine the exact resolution from the read-back mtime was buggy:
61620         it had a "!=" where it should have had an "==".  This bug has been
61621         in the code ever since it was introduced to gnulib.
61622         Problem reported by Dan Jacobson in
61623         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
61625 2010-11-30  Bruno Haible  <bruno@clisp.org>
61627         strerror_r-posix: Fix autoconf test.
61628         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
61630 2010-11-28  Bruno Haible  <bruno@clisp.org>
61631             Paul Eggert  <eggert@cs.ucla.edu>
61633         Tests for module 'getdomainname'.
61634         * modules/getdomainname-tests: New file.
61635         * tests/test-getdomainname.c: New file, based on
61636         tests/test-gethostname.c.
61638 2010-11-28  Bruno Haible  <bruno@clisp.org>
61639             Paul Eggert  <eggert@cs.ucla.edu>
61641         getdomainname: Use the system function when possible.
61642         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
61643         (getdomainname): Replace if needed. Provide the declaration if it is
61644         missing. Don't use _GL_CXXALIAS_SYS_CAST.
61645         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
61646         (getdomainname): When the system has getdomainname, call the system
61647         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
61648         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
61649         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
61650         found in libnsl. Look for the declaration also in <netdb.h>. Replace
61651         the function if its second argument is of type 'int' or if it is found
61652         in libnsl.
61653         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
61654         <sys/systeminfo.h> and sysinfo().
61655         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
61656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61657         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
61658         HAVE_GETDOMAINNAME.
61659         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
61660         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
61661         * doc/glibc-functions/getdomainname.texi: Document the problems with
61662         the getdomainname declaration.
61664 2010-11-28  Bruno Haible  <bruno@clisp.org>
61666         sys_socket: Ensure ss_family field on AIX.
61667         * lib/sys_socket.in.h (ss_family): New macro definition.
61668         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
61669         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
61670         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
61671         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
61672         * modules/sys_socket (Makefile.am): Substitute
61673         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
61674         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
61676 2010-11-27  Bruno Haible  <bruno@clisp.org>
61678         readline: Improve configure output.
61679         * m4/readline.m4 (gl_FUNC_READLINE): Make the
61680         "checking for readline..." result understandable.
61682 2010-11-27  Bruno Haible  <bruno@clisp.org>
61684         *printf-posix: Detect a bug on Solaris 10/x86.
61685         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
61686         for floating-point output.
61687         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
61688         directive.
61689         * tests/test-snprintf-posix.h (test_function): Likewise.
61690         * tests/test-sprintf-posix.h (test_function): Likewise.
61691         * tests/test-vasprintf-posix.c (test_function): Likewise.
61692         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
61693         * doc/posix-functions/printf.texi: Likewise.
61694         * doc/posix-functions/snprintf.texi: Likewise.
61695         * doc/posix-functions/sprintf.texi: Likewise.
61696         * doc/posix-functions/vfprintf.texi: Likewise.
61697         * doc/posix-functions/vprintf.texi: Likewise.
61698         * doc/posix-functions/vsnprintf.texi: Likewise.
61699         * doc/posix-functions/vsprintf.texi: Likewise.
61700         * doc/glibc-functions/obstack_printf.texi: Likewise.
61701         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
61703 2010-11-27  Bruno Haible  <bruno@clisp.org>
61705         Fix link error when module libunistring-optional is in use.
61706         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
61707         * modules/striconveha-tests (Makefile.am): Likewise.
61709 2010-11-27  Bruno Haible  <bruno@clisp.org>
61711         regex: Mention link dependencies.
61712         * modules/regex (Link): New section.
61713         * modules/rpmatch (Link): Likewise.
61714         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
61716 2010-11-27  Bruno Haible  <bruno@clisp.org>
61718         ftoastr: Fix compilation error on Solaris.
61719         * lib/ftoastr.c: Include <config.h>.
61721 2010-11-27  Bruno Haible  <bruno@clisp.org>
61723         getloadavg: Update documentation.
61724         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
61726 2010-11-27  Bruno Haible  <bruno@clisp.org>
61728         sys_socket: Fix test whether the functions are declared.
61729         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
61730         not <sys/select.h>.
61732 2010-11-27  Bruno Haible  <bruno@clisp.org>
61734         getpass: Make sure to get system declaration on some platforms.
61735         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
61736         gl_USE_SYSTEM_EXTENSIONS.
61737         * modules/getpass (Depends-on): Add extensions.
61739 2010-11-26  Bruno Haible  <bruno@clisp.org>
61741         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
61742         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
61743         'iconv' module is present.
61744         (ICONV_CONST): New macro.
61745         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
61746         ICONV_CONST.
61747         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
61748         set ICONV_CONST.
61749         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
61750         here.
61751         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
61752         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
61753         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
61754         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
61755         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
61756         present.
61758 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61760         ftoastr: comment fix
61761         * lib/ftoastr.c: "little" -> "little or no" in comment
61763 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
61765         stdint: port to GCC 4.3 + OSX + Octave
61766         On this platform, stdint.h is buggy and defines int64_t to long
61767         long int.  The replacement defined it to long int, causing
61768         problems with C++ style name mangling.  Instead, trust the system
61769         definition if INT64_MAX is defined, and likewise for the unsigned
61770         variant.   Problem reported by Jarno Rajahalme in
61771         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
61772         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
61773         and don't mess with int64_t and INT64_MAX in this case.
61774         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
61776 2010-11-24  Bruno Haible  <bruno@clisp.org>
61778         doc: Corrections regarding MacOS X 10.4 and 10.5.
61779         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
61780         MacOS X.
61781         Reported by Simon Josefsson.
61783 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
61785         Uninstall ".bin" files installed by relocwrapper.
61786         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
61787         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
61788         unless it is already there.
61790 2010-11-21  Bruno Haible  <bruno@clisp.org>
61792         Update for NetBSD 5.0.
61793         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
61794         NetBSD; the test fails on NetBSD 5.0.
61795         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
61796         about NetBSD.
61798 2010-11-21  Bruno Haible  <bruno@clisp.org>
61800         Update for HP-UX 11.23 and HP-UX 11.31.
61801         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
61802         HP-UX.
61804 2010-11-21  Bruno Haible  <bruno@clisp.org>
61806         Update for MacOS X 10.5.
61807         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
61808         MacOS X; the test fails on MacOS X 10.5.8.
61809         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
61810         about MacOS X.
61812 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
61814         bootstrap: add bootstrap_sync option.
61815         See discussion at
61816         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
61817         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
61818         * build-aux/bootstrap: Accept --bootstrap-sync to update
61819         bootstrap if it is not identical to the local gnulib's
61820         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
61821         enable this by default.  Accept --no-bootstrap-sync to disable
61822         it.
61824 2010-11-20  Bruno Haible  <bruno@clisp.org>
61826         Ensure that <features.h> is included before __GLIBC__ is tested.
61827         * lib/printf-parse.h: Include <features.h>.
61828         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
61829         Reported by Mike Frysinger <vapier@gentoo.org>.
61831         Ensure that <features.h> is included before __GLIBC__ is tested.
61832         * lib/wchar.in.h: Include <features.h>.
61833         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
61834         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
61835         Reported by Mike Frysinger <vapier@gentoo.org>.
61837         Ensure that <features.h> is included before __GLIBC__ is tested.
61838         * lib/arpa_inet.in.h: Include <features.h>.
61839         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
61840         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
61841         Reported by Mike Frysinger <vapier@gentoo.org>.
61843         Ensure that <features.h> is included before __GLIBC__ is tested.
61844         * build-aux/link-warning.h: Include <features.h>.
61845         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
61846         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
61847         Reported by Mike Frysinger <vapier@gentoo.org>.
61849         Ensure that <features.h> is included before __GLIBC__ is tested.
61850         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
61851         Reported by Mike Frysinger <vapier@gentoo.org>.
61853 2010-11-20  Bruno Haible  <bruno@clisp.org>
61855         memmem: Fix autoconf test.
61856         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
61858 2010-11-20  Bruno Haible  <bruno@clisp.org>
61860         Port to uClibc.
61861         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
61862         * lib/fcntl.in.h: Likewise.
61863         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
61864         * lib/mbrtowc.c (mbrtowc): Likewise.
61865         * lib/relocatable.c (find_shared_library_fullname): Likewise.
61866         * lib/strerror_r.c: Likewise.
61867         * lib/unistr/u8-strnlen.c: Likewise.
61868         * lib/vasnprintf.c (decimal_point_char): Likewise.
61869         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
61870         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
61871         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
61872         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
61873         * tests/test-sigaction.c (handler, main): Likewise.
61874         * lib/freading.h: Treat uClibc like a non-glibc platform.
61875         * lib/freading.c: Likewise.
61876         * lib/gettext.h: Likewise.
61877         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
61878         Likewise.
61879         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
61880         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61881         * lib/propername.c (proper_name_utf8): Likewise.
61882         * lib/spawn.in.h: Likewise.
61883         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
61884         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
61885         mem_cd_iconveh_internal): Likewise.
61886         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
61887         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
61888         strstr, strcasestr): Likewise.
61889         * lib/unicodeio.c (unicode_to_mb): Likewise.
61890         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
61891         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
61892         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
61893         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
61894         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
61895         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
61896         * lib/unistr/u8-stpncpy.c: Likewise.
61897         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61898         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
61899         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61900         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61901         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
61902         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
61903         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
61904         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
61905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
61906         Likewise.
61907         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61908         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61909         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
61910         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61911         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61912         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
61913         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61914         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
61915         * tests/test-getopt.h (OPTIND_MIN): Likewise.
61916         * tests/test-striconveha.c (main): Likewise.
61917         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61918         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
61919         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
61920         * doc/posix-functions/getline.texi: Likewise.
61921         Reported by Mike Frysinger <vapier@gentoo.org>.
61923 2010-11-20  Bruno Haible  <bruno@clisp.org>
61925         nproc: Fix condition.
61926         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
61927         HAVE_PTHREAD_AFFINITY_NP.
61929 2010-11-20  Bruno Haible  <bruno@clisp.org>
61931         Fix a comment.
61932         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
61934 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
61936         ftoastr: don't assume snprintf
61937         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
61938         Implement a subset of snprintf here, by using sprintf safely.
61939         * modules/ftoastr (Depends-on): Remove snprintf.
61941 2010-11-19  Jim Meyering  <meyering@redhat.com>
61943         test-rename.h: fix compilation failure
61944         * tests/test-rename.h (test_rename): Add omitted "}".
61946 2010-11-17  Jim Meyering  <meyering@redhat.com>
61948         maint.mk: add a URL discussing the no-@acronym policy
61949         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
61951 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
61953         ftoastr: depend on snprintf, improve comments
61954         * lib/ftoastr.c: Also mention Loitsch's draft.
61955         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
61956         needed in the current implementation, but it might simplify
61957         speeding up the code later.
61958         * modules/ftoastr: Depend on snprintf; this improves portability.
61959         Suggested by Bruno Haible in the same email.
61961         ftoastr: port to hosts lacking strtof and strtold
61962         Problem reported by Bruno Haible in
61963         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
61964         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
61965         environment and strtold (and presumably strtof) are not available.
61966         * modules/ftoastr (Files): Add m4/c-strtod.m4.
61967         (configure.ac): Require gl_C99_STRTOLD.
61969 2010-11-18  Bruno Haible  <bruno@clisp.org>
61971         c-strtold: Avoid link error on AIX 7.
61972         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
61973         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
61974         (gl_C_STRTOLD): Test whether strtold_l exists.
61975         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61977 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61979         intprops: new macro INT_BITS_STRLEN_BOUND
61980         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
61981         ftoastr.h.  This exposes an internal of intprops.h that was formerly
61982         not exposed.  Also, it uses a slightly tighter bound than before;
61983         though this makes no practical difference, we might as well be as
61984         tight as we easily can.
61986         ftoastr: new module, for lossless conversion of floats to short strings
61987         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
61988         * modules/ftoastr: New files.
61990 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61992         bootstrap: port to Solaris sed
61993         * build-aux/bootstrap (get_version): Port to Solaris sed.
61994         See Ralf Wildenhues's note in
61995         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
61997 2010-11-14  Jim Meyering  <meyering@redhat.com>
61999         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
62000         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
62001         and move definition closer to sole use.
62003 2010-11-13  Jim Meyering  <meyering@redhat.com>
62005         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
62006         Now we require at least autoconf-2.59, which means the work-around
62007         is no longer needed.
62008         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
62009         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62010         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62011         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62012         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62014 2010-11-13  Bruno Haible  <bruno@clisp.org>
62016         rename, renameat: Avoid test failures at NFS mounted locations.
62017         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
62018         functions.
62019         (test_rename): Use assert_nonexistent.
62020         * tests/test-rename.c: Include <dirent.h>.
62021         * tests/test-renameat.c: Likewise.
62022         Reported by Gary V. Vaughan <gary@gnu.org>.
62024         rename, renameat: Document Linux bug with NFS
62025         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
62026         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
62027         * doc/posix-functions/renameat.texi: Likewise.
62028         Suggested by Eric Blake.
62030 2010-11-13  Bruno Haible  <bruno@clisp.org>
62032         rename test: Add comments.
62033         * tests/test-rename.h (test_rename): Add structure and comments.
62035 2010-11-13  Eric Blake  <eblake@redhat.com>
62037         maintainer-makefile: cover a few more files
62038         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
62039         scripts generated within C files, for libvirt.
62041 2010-11-13  Bruno Haible  <bruno@clisp.org>
62043         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
62044         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
62045         character, return the number of bytes that belong together, not always
62046         1.
62047         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
62048         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
62049         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
62050         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
62051         number of bytes of an invalid character.
62052         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
62053         (main): Invoke it.
62054         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
62055         results.
62056         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
62057         malformed byte sequences.
62058         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
62059         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
62060         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
62061         Reported by Ben Pfaff and Paolo Bonzini.
62063 2010-11-13  Bruno Haible  <bruno@clisp.org>
62065         openat: Work around glibc bug with fchownat() and empty file names.
62066         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
62067         (gl_FUNC_FCHOWNAT): Invoke it.
62068         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
62069         * doc/posix-functions/fchownat.texi: Document the glibc bug.
62070         Reported by Gary V. Vaughan <gary@gnu.org>.
62072 2010-11-13  Bruno Haible  <bruno@clisp.org>
62074         openat: Ensure autoconf macro ordering.
62075         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
62076         gl_USE_SYSTEM_EXTENSIONS.
62077         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
62079 2010-11-13  Bruno Haible  <bruno@clisp.org>
62081         Update comments.
62082         * lib/unistr/u8-check.c: Update file name in comments.
62083         * lib/unistr/u8-mblen.c: Likewise.
62084         * lib/unistr/u8-prev.c: Likewise.
62085         * lib/unistr/u8-strmblen.c: Likewise.
62086         * lib/unistr/u8-strmbtouc.c: Likewise.
62088 2010-11-13  Jim Meyering  <meyering@redhat.com>
62090         tests: avoid test failure on Solaris 10 due to lack of PATH export
62091         * tests/test-update-copyright.sh: Don't forget to export PATH.
62093         init.sh: ensure that IFS is defined, just in case...
62094         * tests/init.sh (setup_): Ensure that IFS is defined,
62095         so that saving and restoring it works as expected.  This
62096         appears to be useful at least for an old version of dash
62097         from a long time ago (RH 6).  See here for details:
62098         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
62100         maint.mk: tighten "test a == b" check
62101         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
62102         test to files that contain something like #!/bin/sh.
62103         Without this, coreutils would get two false positives in
62104         the comments of C source files.
62106 2010-11-12  Eric Blake  <eblake@redhat.com>
62108         bootstrap: fix typo in previous attempt
62109         * build-aux/bootstrap (buildreq): Correct the grouping.
62110         Reported by Paul Eggert.
62112         maintainer-makefile: prohibit test x == x
62113         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
62114         Based on a report by Matthias Bolte.
62116         bootstrap: allow FreeBSD gzip
62117         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
62118         which has no '.' and goes to stderr.
62119         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
62120         Reported by Matthias Bolte.
62122         maintainer-makefile: check for i18n setup
62123         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
62124         will likely work.
62126 2010-11-12  Bruno Haible  <bruno@clisp.org>
62128         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
62129         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
62130         * lib/nanosleep.c (nanosleep): Likewise.
62132 2010-11-11  Bruno Haible  <bruno@clisp.org>
62134         fcntl-h: Fix for use of C++ on glibc systems.
62135         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62136         also on glibc systems in C++ mode.
62137         Reported by Gary V. Vaughan <gary@gnu.org>.
62139 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62141         mknod: avoid false failure with dash
62142         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
62144 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62146         unlink: Fix "is it should" typo in diagnostic.
62147         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
62148         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
62150 2010-11-11  Bruno Haible  <bruno@clisp.org>
62152         Tests for module 'strerror_r-posix'.
62153         * modules/strerror_r-posix-tests: New file.
62154         * tests/test-strerror_r.c: New file.
62155         * tests/test-string-c++.cc: Check the signature of strerror_r.
62157         New module 'strerror_r-posix'.
62158         * lib/string.in.h (strerror_r): New declaration.
62159         * lib/strerror_r.c: New file.
62160         * m4/strerror_r.m4: New file.
62161         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
62162         of strerror_r.
62163         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
62164         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62165         * modules/strerror_r-posix: New file.
62166         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
62167         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62168         * doc/posix-functions/strerror_r.texi: Mention the new module and the
62169         portability problems.
62171 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
62173         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
62174         line is also considered for output. Quoted function name in shell
62175         command, so temporary files for functions like MyClass::operator()
62176         are removed correctly without errors.
62178 2010-11-09  Bruno Haible  <bruno@clisp.org>
62180         * doc/posix-functions/strerror.texi: List more failing platforms.
62182         * doc/posix-functions/strerror.texi: Add a comment.
62184 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62186         fdopendir: fix bug on MacOS X when low on file descriptors
62188         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
62189         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
62190         All callers changed.
62191         (fdopendir): Invoke save_cwd at the top level, not after using
62192         multiple dup() calls to use up file descriptors.  Then retry
62193         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
62194         less than the maximum number of open file descriptors, because
62195         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
62196         on Mac OS X 10.6.4 for tar 1.24
62197         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
62198         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
62199         and for tar 1.25
62200         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
62202 2010-11-07  Bruno Haible  <bruno@clisp.org>
62204         vasnprintf: Support I flag on glibc systems.
62205         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
62206         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
62207         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
62208         snprintf function.
62209         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
62210         glibc systems.
62211         * tests/test-vasnprintf-posix3.c: New file.
62212         * modules/vasnprintf-posix-tests (Files): Add it.
62213         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
62215 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62217         [html] Fix copy/paste bug: Use unique name for compiler warnings.
62218         * MODULES.html.sh: For compiler warnings, use name
62219         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
62221 2010-11-05  Eric Blake  <eblake@redhat.com>
62223         ceil, floor: avoid spurious failure with icc
62224         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
62225         [denormals-as-zero] when optimizing without -mieee-fp option.
62226         * tests/test-floorf2.c (floorf_reference): Likewise.
62227         * tests/test-ceilf1.c (dummy): New function.
62228         (main): Use it to outsmart icc's optimization.
62229         * tests/test-floorf1.c (dummy, main): Likewise.
62231         tests: require working signbit
62232         * modules/ceilf-tests (Depends-on): Add signbit.
62233         * modules/ceill-tests (Depends-on): Likewise.
62234         * modules/floorf-tests (Depends-on): Likewise.
62235         * modules/floorl-tests (Depends-on): Likewise.
62236         * modules/round-tests (Depends-on): Likewise.
62237         * modules/roundf-tests (Depends-on): Likewise.
62238         * modules/roundl-tests (Depends-on): Likewise.
62239         * modules/trunc-tests (Depends-on): Likewise.
62240         * modules/truncf-tests (Depends-on): Likewise.
62241         * modules/truncl-tests (Depends-on): Likewise.
62243         strtod: work around icc bug
62244         * lib/strtod.c (minus_zero): Define to working value.
62245         (strtod): Use it to avoid icc bug.
62247         copysign: enhance tests
62248         * modules/copysign-tests (Files): Add minus-zero.h.
62249         * tests/test-copysign.c (main): Also test zeros.
62251 2010-11-04  Eric Blake  <eblake@redhat.com>
62253         ceil, floor, round, trunc: enhance tests of -0
62254         * tests/test-ceilf1.c (main): Ensure correct sign of result.
62255         * tests/test-ceill.c (main): Likewise.
62256         * tests/test-floorf1.c (main): Likewise.
62257         * tests/test-floorl.c (main): Likewise.
62258         * tests/test-round1.c (main): Likewise.
62259         * tests/test-roundf1.c (main): Likewise.
62260         * tests/test-roundl.c (main): Likewise.
62261         * tests/test-trunc1.c (main): Likewise.
62262         * tests/test-truncf1.c (main): Likewise.
62263         * tests/test-truncl.c (main): Likewise.
62265 2010-11-04  Eric Blake  <eblake@redhat.com>
62267         frexp, tests: work around ICC bug with -zero
62268         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
62269         works with more compilers.
62270         * tests/minus-zero.h: New file.
62271         * modules/ceilf-tests (Files): Include it.
62272         * modules/ceill-tests (Files): Likewise.
62273         * modules/floorf-tests (Files): Likewise.
62274         * modules/floorl-tests (Files): Likewise.
62275         * modules/frexp-nolibm-tests (Files): Likewise.
62276         * modules/frexp-tests (Files): Likewise.
62277         * modules/frexpl-nolibm-tests (Files): Likewise.
62278         * modules/frexpl-tests (Files): Likewise.
62279         * modules/isnan-tests (Files): Likewise.
62280         * modules/isnand-nolibm-tests (Files): Likewise.
62281         * modules/isnand-tests (Files): Likewise.
62282         * modules/isnanf-nolibm-tests (Files): Likewise.
62283         * modules/isnanf-tests (Files): Likewise.
62284         * modules/isnanl-nolibm-tests (Files): Likewise.
62285         * modules/isnanl-tests (Files): Likewise.
62286         * modules/round-tests (Files): Likewise.
62287         * modules/roundf-tests (Files): Likewise.
62288         * modules/roundl-tests (Files): Likewise.
62289         * modules/ldexpl-tests (Files): Likewise.
62290         * modules/signbit-tests (Files): Likewise.
62291         * modules/snprintf-posix-tests (Files): Likewise.
62292         * modules/sprintf-posix-tests (Files): Likewise.
62293         * modules/strtod-tests (Files): Likewise.
62294         * modules/trunc-tests (Files): Likewise.
62295         * modules/truncf-tests (Files): Likewise.
62296         * modules/truncl-tests (Files): Likewise.
62297         * modules/vsnprintf-posix-tests (Files): Likewise.
62298         * modules/vsprintf-posix-tests (Files): Likewise.
62299         * modules/vasnprintf-posix-tests (Files): Likewise.
62300         * modules/vasprintf-posix-tests (Files): Likewise.
62301         * tests/test-ceilf1.c (main): Use it.
62302         * tests/test-ceill.c (main): Likewise.
62303         * tests/test-floorf1.c (main): Likewise.
62304         * tests/test-floorl.c (main): Likewise.
62305         * tests/test-frexp.c (main): Likewise.
62306         * tests/test-frexpl.c (main): Likewise.
62307         * tests/test-isnan.c (main): Likewise.
62308         * tests/test-isnand.h (main): Likewise.
62309         * tests/test-isnanf.h (main): Likewise.
62310         * tests/test-isnanl.h (main): Likewise.
62311         * tests/test-ldexpl.c (main): Likewise.
62312         * tests/test-round.c (main): Likewise.
62313         * tests/test-roundf.c (main): Likewise.
62314         * tests/test-roundl.c (main): Likewise.
62315         * tests/test-signbit.c (test_signbitf, test_signbitd)
62316         (test_signbitl): Likewise.
62317         * tests/test-snprintf-posix.h (test_function): Likewise.
62318         * tests/test-sprintf-posix.h (test_function): Likewise.
62319         * tests/test-strtod.c (main): Likewise.
62320         * tests/test-trunc1.c (main): Likewise.
62321         * tests/test-truncf1.c (main): Likewise.
62322         * tests/test-truncl.c (main): Likewise.
62324         isnanl: work around icc bug
62325         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
62327 2010-11-03  Eric Blake  <eblake@redhat.com>
62329         tests: fix compiler warnings
62330         * tests/test-getopt.h (test_getopt): Fix condition.
62331         * tests/test-getopt_long.h (test_getopt_long): Likewise.
62332         * tests/test-pipe2.c (main): Likewise.
62333         * tests/test-quotearg-simple.c (main): Avoid icc warning.
62335         utimens: fix broken m4 test
62336         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
62338 2010-10-28  Bruno Haible  <bruno@clisp.org>
62340         posix_spawn*, getdtablesize: Relax license.
62341         * modules/posix_spawn (License): Change to LGPLv2+.
62342         * modules/posix_spawnp (License): Likewise.
62343         * modules/posix_spawn-internal (License): Likewise.
62344         * modules/posix_spawnattr_init (License): Likewise.
62345         * modules/posix_spawnattr_getflags (License): Likewise.
62346         * modules/posix_spawnattr_setflags (License): Likewise.
62347         * modules/posix_spawnattr_getpgroup (License): Likewise.
62348         * modules/posix_spawnattr_setpgroup (License): Likewise.
62349         * modules/posix_spawnattr_getschedparam (License): Likewise.
62350         * modules/posix_spawnattr_setschedparam (License): Likewise.
62351         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
62352         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
62353         * modules/posix_spawnattr_getsigdefault (License): Likewise.
62354         * modules/posix_spawnattr_setsigdefault (License): Likewise.
62355         * modules/posix_spawnattr_getsigmask (License): Likewise.
62356         * modules/posix_spawnattr_setsigmask (License): Likewise.
62357         * modules/posix_spawnattr_destroy (License): Likewise.
62358         * modules/posix_spawn_file_actions_init (License): Likewise.
62359         * modules/posix_spawn_file_actions_addclose (License): Likewise.
62360         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
62361         * modules/posix_spawn_file_actions_addopen (License): Likewise.
62362         * modules/posix_spawn_file_actions_destroy (License): Likewise.
62363         * modules/getdtablesize (License): Likewise.
62364         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
62366 2010-10-26  Bruno Haible  <bruno@clisp.org>
62368         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
62369         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
62370         Cygwin and mingw.
62371         Suggested by Eric Blake.
62373 2010-10-26  Bruno Haible  <bruno@clisp.org>
62375         stdio: Work around compilation error due to renameat() on Solaris 10.
62376         * lib/stdio.in.h: Include <unistd.h> on Solaris.
62377         * lib/renameat.c: Don't include <unistd.h> here.
62378         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
62379         Reported by Paul Eggert and Eric Blake.
62381 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62383         renameat: port to Solaris 10, which declares renameat in unistd.h
62385         * lib/renameat.c: Include unistd.h before stdio.h, because
62386         Solaris 10 declares renameat in unistd.h.  Problem encountered
62387         when building GNU tar 1.24 on Solaris 10.
62389 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62391         fdopendir: fix C89 compilation
62392         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
62393         compilers.
62395 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
62397         inttostr: simplify by removing unnecessary redundancy
62398         * lib/anytostr.c: Don't include verify.h.
62399         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
62400         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
62401         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
62402         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
62403         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
62404         Likewise.
62405         * modules/inttostr (Depends-on): Remove 'verify'.
62407 2010-10-23  Bruno Haible  <bruno@clisp.org>
62409         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
62410         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
62411         Reported by Eric Blake.
62413 2010-10-23  Bruno Haible  <bruno@clisp.org>
62415         Tests: Fix LOCALE_JA on MirBSD 10.
62416         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
62417         to an UTF-8 locale.
62418         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
62419         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62420         Reported by Eric Blake.
62422 2010-10-21  Bruno Haible  <bruno@clisp.org>
62424         nl_langinfo test: Avoid test failure on NetBSD 5.
62425         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
62426         Reported by Eric Blake.
62428 2010-10-21  Eric Blake  <eblake@redhat.com>
62430         c-stack: work around libsigsegv 2.8 bug
62431         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
62432         overflow on at least PowerPC64.
62434 2010-10-17  Bruno Haible  <bruno@clisp.org>
62436         userspec: Drop redundant file.
62437         * modules/userspec (Files): Remove lib/inttostr.h.
62439 2010-10-17  Bruno Haible  <bruno@clisp.org>
62441         nl_langinfo tests: Silence some warnings.
62442         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
62443         Reported by Jim Meyering.
62445 2010-10-17  Bruno Haible  <bruno@clisp.org>
62447         Make use of GCC's attribute __alloc_size__.
62448         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
62449         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
62450         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
62451         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
62452         __alloc_size__.
62453         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
62454         Suggested by Jim Meyering.
62456 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
62458         bootstrap: anchor .gitignore entries.
62459         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
62460         with...
62461         (insert_vc_ignore): ... this new function, which prepends `/' to
62462         all .gitignore entries before passing them to
62463         insert_sorted_if_absent.
62465 2010-10-16  Bruno Haible  <bruno@clisp.org>
62467         nextafter: Fix configure check.
62468         * modules/nextafter (configure.ac): Correct expected prototype.
62470 2010-10-16  Bruno Haible  <bruno@clisp.org>
62472         termios: Update documentation.
62473         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
62475 2010-10-16  Bruno Haible  <bruno@clisp.org>
62477         tests: Make them compile with TinyCC.
62478         * tests/test-strstr.c (main): Remove parentheses around array
62479         initializer.
62481 2010-10-15  Eric Blake  <eblake@redhat.com>
62483         ignore-value: make header idempotent
62484         * lib/ignore-value.h: Add double-inclusion guards.
62485         Reported by Stefan Berger.
62487 2010-10-15  Jim Meyering  <meyering@redhat.com>
62489         GNUmakefile: handle "stable" target, not "major"
62490         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
62491         lists in maint.mk and announce-gen.  Without this, "make stable"
62492         would fail to ensure that $(VERSION) is up to date.
62494 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
62496         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
62497         & co.
62499 2010-10-14  Bruno Haible  <bruno@clisp.org>
62501         vasnprintf: Don't set errno to 0.
62502         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
62503         block that sets it to 0.
62504         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
62506 2010-10-14  Bruno Haible  <bruno@clisp.org>
62508         socketlib: Fix.
62509         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
62510         gl_PREREQ_SYS_H_WINSOCK2.
62511         Reported by Ian Beckwith <ianb@erislabs.net>.
62513 2010-10-13  Jim Meyering  <meyering@redhat.com>
62515         test-select-stdin.c: avoid warn_unused_result warnings
62516         * tests/test-select-stdin.c: Include "macros.h".
62517         ASSERT that read and fflush succeed.
62519 2010-10-13  Jim Meyering  <meyering@redhat.com>
62521         git-version-gen: do require git-VC'd files in cwd
62522         * build-aux/git-version-gen: Reject a git version string
62523         if there are no commits associated with the current directory.
62524         This avoids an unlikely false-positive (unrelated dir whose parent
62525         repository also contains a tag matching v*), as pointed out
62526         by Giuseppe Scrivano in
62527         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
62529 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62531         argv-iter: omit nonconforming declaration
62532         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
62533         enum arg_iter_err declaration, which doesn't conform to C99.
62534         Solaris 10 cc warns about this.
62536 2010-10-13  Eric Blake  <eblake@redhat.com>
62538         termios: fix compilation on mingw
62539         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
62540         (gl_TERMIOS_H): Adjust it on mingw.
62541         * modules/termios (Makefile.am): Substitute new key.
62542         * lib/termios.in.h (includes): Make include_next conditional.
62543         * doc/posix-headers/termios.texi (termios.h): Update
62544         documentation.
62545         Reported by Daniel P. Berrange.
62547 2010-10-13  Jim Meyering  <meyering@redhat.com>
62549         git-version-gen: don't require that .git/ be in the current dir
62550         * build-aux/git-version-gen: Adjust this script so that it works
62551         when run from any working directory beneath the top-level .git/-
62552         containing directory.  Inspired by a patch from Giuseppe Scrivano,
62553         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
62555         test-select: avoid warn_unused_result warnings
62556         * tests/test-select.c: Include "macros.h".
62557         ASSERT that each call to read, write, and pipe succeeds.
62558         While not technically required, also check each "close".
62559         * modules/select-tests (Files): Add tests/macros.h.
62561         test-symlinkat: remove declaration of unused local
62562         * tests/test-symlinkat.c (main): Remove unused local, "buf".
62564         test-inttostr: avoid shadowing warnings
62565         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
62566         and use malloc rather than the stack for the same reason as
62567         mentioned in the comment justifying the other allocation.
62569 2010-10-11  Bruno Haible  <bruno@clisp.org>
62571         stdlib: Allow multiple gnulib generated replacements to coexist.
62572         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
62573         Reported by Sam Steingold <sds@gnu.org>.
62575 2010-10-11  Jim Meyering  <meyering@redhat.com>
62577         fix a documentation typo
62578         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
62580 2010-10-11  Eric Blake  <eblake@redhat.com>
62582         futimens: work around Solaris 11 bug
62583         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
62584         * tests/test-futimens.h (test_futimens): Enhance, rather than
62585         weaken test.
62586         * doc/posix-functions/futimens.texi (futimens): Document the bug.
62588 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62590         Indentation.
62591         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
62592         higher-level operators more to the left.
62594 2010-10-11  Jim Meyering  <meyering@redhat.com>
62596         test-futimens: avoid unwarranted test failure on Solaris 5.11
62597         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
62598         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
62599         because it tries to dereference the NULL name argument.
62601 2010-10-11  Bruno Haible  <bruno@clisp.org>
62603         Indentation.
62604         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
62605         indentation.
62607 2010-10-11  Jim Meyering  <meyering@redhat.com>
62609         spawn.in.h: make indentation consistent with parentheses
62610         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
62611         Make indentation consistent with parentheses.
62613 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
62615         Fix mismatched parens in previous commit
62616         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
62617         parens.
62619 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62621         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
62623         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
62624         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
62625         * lib/malloca.c: Include "verify.h".
62626         (verify1): Remove, replacing with a verify call.
62627         * lib/relocwrapper.c (verify1): Likewise.
62628         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
62629         Likewise.
62630         * modules/malloca (Depends-on): Add 'verify'.
62631         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
62632         * modules/vasnprintf (Depends-on): Add 'verify'.
62633         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62634         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62635         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62636         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62637         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62638         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62639         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62641         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
62643         Formerly the style was sometimes 2*X - 1, because the C standard
62644         was wrongly thought to disallow ?: in integral constant expressions.
62645         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
62646         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
62647         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
62648         * lib/stdint.in.h (_verify_intmax_size): Likewise.
62649         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
62650         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
62651         verify that time_t cannot be floating.
62653 2010-10-08  Eric Blake  <eblake@redhat.com>
62655         time: enforce recent POSIX ruling that time_t is integral
62656         * lib/time.in.h (__time_t_must_be_integral): Detect any
62657         problematic systems, allowing the rest of gnulib to assume POSIX.
62659 2010-10-08  Jim Meyering  <meyering@redhat.com>
62661         fdopendir: fix a bug on systems lacking openat and /proc support
62662         OpenBSD 4.7 is one such system.  The most noticeable effect was
62663         failure of any application making nontrivial use of fts: rm, du,
62664         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
62665           ./rm: traversal failed: `a': Bad file descriptor
62666         Debugging that, you see that even though FD 6 was closed just
62667         prior to the opendir call in fd_clone_opendir, its resulting
62668         dir->dd_fd was 8, rather than the expected value of 6:
62670         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
62671         93                close (fd);
62672         (gdb) n
62673         94                dir = fd_clone_opendir (dupfd);
62674         (gdb) n
62675         95                saved_errno = errno;
62676         (gdb) p dir->dd_fd
62677         $11 = 8
62679         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
62680         The problem is that on OpenBSD, fd_clone_opendir has to resort
62681         to using the old-style save/restore CWD mechanism, due to its
62682         lack of openat/proc support, and *that* would steal the FD (6)
62683         that opendir was supposed to use.
62685         The fix is to squirrel away the desired FD so that save_cwd uses a
62686         different one, and then free the dest FD right before calling opendir.
62687         That guarantees opendir will use the required file descriptor.
62689         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
62691 2010-10-08  Bruno Haible  <bruno@clisp.org>
62693         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
62694         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
62696 2010-10-08  Bruno Haible  <bruno@clisp.org>
62698         nanosleep: Make replacement POSIX compliant.
62699         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
62700         is out of range.
62701         Reported by Jim Meyering.
62703 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62705         bootstrap: add hook for altering gnulib.mk, for Bison
62706         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
62707         the Bison bootstrapping process can rewrite file names and variables
62708         in this file before later parts of 'bootstrap' use the file.
62709         Bison wants to include lib/gnulib.mk from the top-level makefile,
62710         so it needs the file names in this file to be relative to the top
62711         level, not relative to lib; plus it needs variable names to be
62712         rewritten.
62713         (slurp): Use the new function.
62715         bootstrap: reformat for readability
62716         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
62718 2010-10-08  Eric Blake  <eblake@redhat.com>
62720         docs: update cygwin progress
62721         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
62722         1.7.7.
62723         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
62724         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
62725         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
62726         * doc/posix-functions/carg.texi (carg): Likewise.
62727         * doc/posix-functions/cargf.texi (cargf): Likewise.
62728         * doc/posix-functions/casin.texi (casin): Likewise.
62729         * doc/posix-functions/casinf.texi (casinf): Likewise.
62730         * doc/posix-functions/casinh.texi (casinh): Likewise.
62731         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
62732         * doc/posix-functions/catan.texi (catan): Likewise.
62733         * doc/posix-functions/catanf.texi (catanf): Likewise.
62734         * doc/posix-functions/catanh.texi (catanh): Likewise.
62735         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
62736         * doc/posix-functions/ccos.texi (ccos): Likewise.
62737         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
62738         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
62739         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
62740         * doc/posix-functions/cexp.texi (cexp): Likewise.
62741         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
62742         * doc/posix-functions/cimag.texi (cimag): Likewise.
62743         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
62744         * doc/posix-functions/clog.texi (clog): Likewise.
62745         * doc/posix-functions/clogf.texi (clogf): Likewise.
62746         * doc/posix-functions/conj.texi (conj): Likewise.
62747         * doc/posix-functions/conjf.texi (conjf): Likewise.
62748         * doc/posix-functions/cpow.texi (cpow): Likewise.
62749         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
62750         * doc/posix-functions/cproj.texi (cproj): Likewise.
62751         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
62752         * doc/posix-functions/creal.texi (creal): Likewise.
62753         * doc/posix-functions/crealf.texi (crealf): Likewise.
62754         * doc/posix-functions/csin.texi (csin): Likewise.
62755         * doc/posix-functions/csinf.texi (csinf): Likewise.
62756         * doc/posix-functions/csinh.texi (csinh): Likewise.
62757         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
62758         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
62759         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
62760         * doc/posix-functions/ctan.texi (ctan): Likewise.
62761         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
62762         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
62763         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
62764         * doc/posix-headers/complex.texi (complex.h): Likewise.
62766 2010-10-07  Jim Meyering  <meyering@redhat.com>
62768         parse-datetime: avoid compilation failure on OpenBSD 4.7
62769         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
62770         This works around a compilation failure on OpenBSD 4.7:
62771         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
62773 2010-10-07  Eric Blake  <eblake@redhat.com>
62775         docs: update cygwin progress
62776         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
62777         1.7.6.
62778         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62779         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
62780         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
62781         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
62782         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
62783         Likewise.
62784         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
62785         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
62786         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
62787         Likewise.
62788         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
62789         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
62790         Likewise.
62791         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
62792         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
62793         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
62794         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
62795         Likewise.
62796         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
62797         Likewise.
62798         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
62800         docs: update parse-datetime history
62801         * doc/parse-datetime.texi (Authors of parse_datetime): Better
62802         documentation of this function's history and alternatives.
62804         cygwin: use more robust version check
62805         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
62806         exclude an eventual cygwin 1.9.1.
62807         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62808         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
62809         (gl_FUNC_STRCASESTR): Likewise.
62810         Reported by Bruno Haible.
62812 2010-10-06  Bruno Haible  <bruno@clisp.org>
62814         string, sys_select: Avoid #including large headers unless necessary.
62815         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
62816         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
62817         OSF/1, BeOS, Haiku.
62818         Reported by Jim Meyering.
62820 2010-10-05  Eric Blake  <eblake@redhat.com>
62822         memmem, strstr, strcasestr: fix bug with long periodic needle
62823         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
62824         periodic needle having false positive.
62825         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
62826         and cygwin 1.7.7.
62827         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
62828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
62829         (gl_FUNC_STRCASESTR): Likewise.
62830         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62831         * tests/test-memmem.c (main): Expose the bug.
62832         * tests/test-strcasestr.c (main): Likewise.
62833         * tests/test-strstr.c (main): Likewise.
62834         * tests/test-c-strcasestr.c (main): Likewise.
62835         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
62836         * doc/posix-functions/strstr.texi (strstr): Likewise.
62837         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
62838         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
62840 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62842         parse-datetime: do some more renaming
62843         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
62844         parse_datetime, not get_date.  Mention the renaming.
62845         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
62846         in comments.
62847         * m4/bison.m4: Likewise.
62849 2010-10-05  Eric Blake  <eblake@redhat.com>
62851         parse-datetime: better name than get_date
62852         * NEWS: Reword the deprecation notice.
62853         * modules/get_date: Rename to modules/parse-datetime.
62854         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
62855         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
62856         * lib/get_date.y: Rename to lib/parse-datetime.y.
62857         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
62858         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
62859         * doc/getdate.texi: Provide fallback wrapper.
62860         * lib/getdate.h: Move guts, and wrap...
62861         * lib/parse-datetime.h: ...new file.
62862         * lib/parse-datetime.y (get_date): Rename...
62863         (parse_datetime): ...to this.
62864         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
62865         (gl_PARSE_DATETIME): ...to this.
62866         * doc/posix-functions/getdate.texi (get_date): Provide fallback
62867         documentation.
62868         * modules/getdate (Files): Provide fallback docs and header.
62869         (Notice, Depends-on): Update references.
62870         * tests/test-parse-datetime.c: Likewise.
62871         * DEPENDENCIES: Likewise.
62872         * MODULES.html.sh (Date and time <time.h>): Likewise.
62873         * doc/parse-datetime.texi (Date input formats)
62874         (Authors of parse_datetime): Likewise.
62875         * modules/parse-datetime (Files, configure.ac, Makefile.am)
62876         (Include): Likewise.
62877         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
62878         * gnulib-tool: Likewise.
62879         * m4/bison.m4 (gl_BISON): Likewise.
62880         Suggested by Bruno Haible.
62882 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62884         more ports to Solaris tr, which needs [] around ranges
62885         * gnulib-tool: Solaris tr needs [] around ranges.
62886         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
62887         * tests/test-pipe-filter-gi1.c (main): Likewise.
62888         * tests/test-pipe-filter-ii1.c (main): Likewise.
62890 2010-10-05  Eric Blake  <eblake@redhat.com>
62892         bootstrap: fix Solaris regression
62893         * build-aux/bootstrap (check_versions): Solaris tr still needs []
62894         around ranges.
62895         Reported by Pádraig Brady.
62897         bootstrap: work with pkg-config
62898         * build-aux/bootstrap (check_versions): Also transliterate - in
62899         prerequisite name.
62900         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
62901         prerequisites that were already found, to avoid confusion.
62902         Reported by Justin Clift.
62904         faccessat: remove unused wrappers
62905         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
62906         presence of these wrappers dragged in -lgen on Solaris.
62907         Reported by Clemens Brogi; fix suggested by Paul Eggert.
62909 2010-10-05  Jim Meyering  <meyering@redhat.com>
62911         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
62912         * Makefile (sc_pragma_columns): New syntax-check rule.
62914 2010-10-04  Bruno Haible  <bruno@clisp.org>
62916         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
62917         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
62918         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
62919         Reported by Bruce Korb and Eric Blake.
62921 2010-10-04  Bruno Haible  <bruno@clisp.org>
62923         threadlib: Make option --with-libpth-prefix work.
62924         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
62925         use $LIBPTH, not just -lpth.
62927 2010-10-04  Bruno Haible  <bruno@clisp.org>
62929         Avoid line length limitation from HP NonStop system header files.
62930         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
62931         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
62932         * lib/ctype.in.h: Likewise.
62933         * lib/dirent.in.h: Likewise.
62934         * lib/errno.in.h: Likewise.
62935         * lib/fcntl.in.h: Likewise.
62936         * lib/float.in.h: Likewise.
62937         * lib/getopt.in.h: Likewise.
62938         * lib/iconv.in.h: Likewise.
62939         * lib/inttypes.in.h: Likewise.
62940         * lib/langinfo.in.h: Likewise.
62941         * lib/locale.in.h: Likewise.
62942         * lib/math.in.h: Likewise.
62943         * lib/netdb.in.h: Likewise.
62944         * lib/netinet_in.in.h: Likewise.
62945         * lib/poll.in.h: Likewise.
62946         * lib/pthread.in.h: Likewise.
62947         * lib/pty.in.h: Likewise.
62948         * lib/sched.in.h: Likewise.
62949         * lib/se-selinux.in.h: Likewise.
62950         * lib/search.in.h: Likewise.
62951         * lib/signal.in.h: Likewise.
62952         * lib/spawn.in.h: Likewise.
62953         * lib/stdarg.in.h: Likewise.
62954         * lib/stddef.in.h: Likewise.
62955         * lib/stdint.in.h: Likewise.
62956         * lib/stdio.in.h: Likewise.
62957         * lib/stdlib.in.h: Likewise.
62958         * lib/string.in.h: Likewise.
62959         * lib/strings.in.h: Likewise.
62960         * lib/sys_file.in.h: Likewise.
62961         * lib/sys_ioctl.in.h: Likewise.
62962         * lib/sys_select.in.h: Likewise.
62963         * lib/sys_socket.in.h: Likewise.
62964         * lib/sys_stat.in.h: Likewise.
62965         * lib/sys_time.in.h: Likewise.
62966         * lib/sys_times.in.h: Likewise.
62967         * lib/sys_utsname.in.h: Likewise.
62968         * lib/sys_wait.in.h: Likewise.
62969         * lib/sysexits.in.h: Likewise.
62970         * lib/termios.in.h: Likewise.
62971         * lib/time.in.h: Likewise.
62972         * lib/unistd.in.h: Likewise.
62973         * lib/wchar.in.h: Likewise.
62974         * lib/wctype.in.h: Likewise.
62975         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
62976         * modules/ctype (Makefile.am): Likewise.
62977         * modules/dirent (Makefile.am): Likewise.
62978         * modules/errno (Makefile.am): Likewise.
62979         * modules/fcntl-h (Makefile.am): Likewise.
62980         * modules/float (Makefile.am): Likewise.
62981         * modules/getopt-posix (Makefile.am): Likewise.
62982         * modules/iconv-h (Makefile.am): Likewise.
62983         * modules/inttypes (Makefile.am): Likewise.
62984         * modules/langinfo (Makefile.am): Likewise.
62985         * modules/locale (Makefile.am): Likewise.
62986         * modules/math (Makefile.am): Likewise.
62987         * modules/netdb (Makefile.am): Likewise.
62988         * modules/netinet_in (Makefile.am): Likewise.
62989         * modules/poll-h (Makefile.am): Likewise.
62990         * modules/pthread (Makefile.am): Likewise.
62991         * modules/pty (Makefile.am): Likewise.
62992         * modules/sched (Makefile.am): Likewise.
62993         * modules/search (Makefile.am): Likewise.
62994         * modules/selinux-h (Makefile.am): Likewise.
62995         * modules/signal (Makefile.am): Likewise.
62996         * modules/spawn (Makefile.am): Likewise.
62997         * modules/stdarg (Makefile.am): Likewise.
62998         * modules/stddef (Makefile.am): Likewise.
62999         * modules/stdint (Makefile.am): Likewise.
63000         * modules/stdio (Makefile.am): Likewise.
63001         * modules/stdlib (Makefile.am): Likewise.
63002         * modules/string (Makefile.am): Likewise.
63003         * modules/strings (Makefile.am): Likewise.
63004         * modules/sys_file (Makefile.am): Likewise.
63005         * modules/sys_ioctl (Makefile.am): Likewise.
63006         * modules/sys_select (Makefile.am): Likewise.
63007         * modules/sys_socket (Makefile.am): Likewise.
63008         * modules/sys_stat (Makefile.am): Likewise.
63009         * modules/sys_time (Makefile.am): Likewise.
63010         * modules/sys_times (Makefile.am): Likewise.
63011         * modules/sys_utsname (Makefile.am): Likewise.
63012         * modules/sys_wait (Makefile.am): Likewise.
63013         * modules/sysexits (Makefile.am): Likewise.
63014         * modules/termios (Makefile.am): Likewise.
63015         * modules/time (Makefile.am): Likewise.
63016         * modules/unistd (Makefile.am): Likewise.
63017         * modules/wchar (Makefile.am): Likewise.
63018         * modules/wctype (Makefile.am): Likewise.
63020 2010-10-04  Bruno Haible  <bruno@clisp.org>
63022         read-file tests: Avoid a test failure on NonStop Kernel.
63023         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
63024         a regular file.
63025         Reported by Joachim Schmitz <schmitz@hp.com>.
63027 2010-10-03  Bruno Haible  <bruno@clisp.org>
63029         gnulib-tool: Fixes for --create-testdir with --libtool.
63030         * gnulib-tool (func_get_automake_snippet): Don't augment
63031         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
63032         an executable.
63033         (func_create_testdir): Handle module 'alloca' like func_import.
63034         Reported by Bruce Korb <bruce.korb@gmail.com>.
63036 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63038         Avoid some lines longer than 80 characters.
63039         * lib/stdint.in.h: Break long comment lines.
63040         * lib/math.in.h: Likewise.
63041         (_GL_NUM_UINT_WORDS): New macro, for readability.
63042         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
63043         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
63044         * lib/stdlib.in.h: Likewise.
63045         * lib/spawn.in.h: Likewise.
63046         * lib/sys_socket.in.h: Update an URL.
63047         * lib/sys_stat.in.h: Break long line.
63049 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
63051         Improve pmccabe2html.
63052         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
63053         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
63054         when the sources change. Remove the line in the HTML about "Used
63055         ranges" (which implied that there might be other unused ranges),
63056         rename "Resume" to "Summary" (easier to understand for more users).
63057         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
63058         styles, and some unnecessary blank lines.
63060 2010-10-03  Bruno Haible  <bruno@clisp.org>
63061             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
63063         acl: Add support for ACLs on NonStop Kernel.
63064         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
63065         Check whether the function aclsort() exists.
63066         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
63067         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
63068         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63069         (acl_nontrivial [HAVE_ACLSORT]: New function.
63070         (file_has_acl): Implement for NonStop Kernel.
63071         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63072         (qset_acl): Implement for NonStop Kernel.
63073         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
63074         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63075         (main): Implement for NonStop Kernel.
63076         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
63077         Kernel. Handle this flavor.
63078         * tests/test-set-mode-acl.sh: Likewise.
63079         * tests/test-copy-acl.sh: Likewise.
63080         * tests/test-copy-file.sh: Likewise.
63082 2010-10-03  Bruno Haible  <bruno@clisp.org>
63084         Info about ACLs on NonStop Kernel.
63085         * doc/acl-resources.txt: Add info about NonStop Kernel.
63086         References by Joachim Schmitz <schmitz@hp.com>.
63088 2010-10-02  Bruno Haible  <bruno@clisp.org>
63090         Define missing EDQUOT on NonStop Kernel.
63091         * lib/errno.in.h (EDQUOT): Assign a value if missing.
63092         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
63093         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
63094         missing.
63095         * doc/posix-headers/errno.texi: Mention the NSK bug.
63096         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
63097         Reported by Joachim Schmitz <schmitz@hp.com>.
63099 2010-10-02  Bruno Haible  <bruno@clisp.org>
63101         Update doc for POSIX:2008.
63102         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
63103         Update URL of POSIX specification.
63105 2010-10-02  Bruno Haible  <bruno@clisp.org>
63107         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
63108         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
63109         from gnulib, not from Automake.
63111 2010-10-02  Bruno Haible  <bruno@clisp.org>
63113         New module 'system-posix'.
63114         * modules/system-posix: New file.
63115         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
63116         module is present.
63117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63118         GNULIB_SYSTEM_POSIX.
63119         * modules/stdlib (Depends-on): Remove sys_wait.
63120         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
63121         * doc/posix-functions/system.texi: Mention the new module.
63122         * doc/posix-headers/stdlib.texi: Likewise.
63123         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
63124         define test_sys_wait_macros to a no-op.
63125         Reported by Sam Steingold <sds@gnu.org>.
63127 2010-09-30  Bruno Haible  <bruno@clisp.org>
63129         More renaming from 'getdate' to 'get_date'.
63130         * doc/get_date.texi: Renamed from doc/getdate.texi.
63131         * modules/get_date (Files): Update.
63132         * MODULES.html.sh (Date and time <time.h>): Update.
63133         * DEPENDENCIES: Update.
63134         * gnulib-tool: Update comment.
63135         * m4/bison.m4 (gl_BISON): Likewise.
63136         * m4/get_date.m4 (gl_GET_DATE): Likewise.
63138 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
63140         bootstrap: support ACLOCAL_FLAGS during aclocal
63141         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
63142         can add additional -I dir for third-party .m4 files.
63144 2010-09-30  Eric Blake  <eblake@redhat.com>
63146         bootstrap: use glibtoolize on MacOS
63147         * build-aux/bootstrap (check_versions): Convert libtool into
63148         libtoolize.
63149         (tool search): Move libtool check earlier, and look for
63150         glibtoolize for MacOS.
63151         (gnulib_tool_options): Auto-add --libtool when appropriate.
63152         Reported by Justin Clift.
63154         poll: fix typo that broke test on MacOS
63155         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
63156         Reported by Justin Clift.
63158         getdate: rename to get_date
63159         Note: getdate.h is not renamed, to minimize client impact.
63160         * modules/getdate: Mark obsolete.  Move old contents...
63161         * modules/get_date: ...to new module name.
63162         * modules/getdate-tests: Move...
63163         * modules/get_date-tests: ...here.
63164         * m4/getdate.m4: Move...
63165         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
63166         * lib/getdate.y: Move...
63167         * lib/get_date.y: ...here.
63168         * tests/test-getdate.c: Move...
63169         * tests/test-get_date.c: ...here.
63170         * doc/posix-functions/getdate.texi (getdate): Update name.
63171         * NEWS: Mention the change.
63173 2010-09-29  Bruno Haible  <bruno@clisp.org>
63175         Separate the module 'waitpid' from the module 'sys_wait'.
63176         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
63177         present.
63178         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
63179         gl_MODULE_INDICATOR_FOR_TESTS.
63180         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
63181         * modules/sys_wait (Depends-on): Remove waitpid.
63182         (Makefile.am): Substitute GNULIB_WAITPID.
63183         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
63184         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
63185         signature only if the 'waitpid' module is present.
63186         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
63187         * NEWS: Mention the change.
63188         * modules/grantpt (Depends-on): Add waitpid.
63189         * modules/wait-process (Depends-on): Likewise.
63191 2010-09-29  Bruno Haible  <bruno@clisp.org>
63193         More tests for module 'sys_wait'.
63194         * modules/sys_wait-c++-tests: New file.
63195         * tests/test-sys_wait-c++.cc: New file.
63196         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
63197         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63199 2010-09-29  Bruno Haible  <bruno@clisp.org>
63201         New module 'waitpid'.
63202         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
63203         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
63204         Don't include <process.h>.
63205         (waitpid): Declare only, using modern idiom.
63206         * m4/waitpid.m4: New file.
63207         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
63208         * modules/waitpid: New file.
63209         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
63210         (Makefile.am): Update.
63211         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63213 2010-09-28  Bruno Haible  <bruno@clisp.org>
63215         poll: Assume ANSI C.
63216         * lib/poll.c (poll): Use an ANSI C declaration.
63218 2010-09-28  Bruno Haible  <bruno@clisp.org>
63220         poll-h: Create poll.h on all platforms.
63221         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
63222         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
63223         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
63224         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
63225         (gl_REPLACE_POLL_H): Don't set POLL_H.
63226         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
63227         * modules/poll-h (Depends-on): Add include_next.
63228         (Makefile.am): Create poll.h unconditionally. Substitute also
63229         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
63231 2010-09-28  Bruno Haible  <bruno@clisp.org>
63233         Tests for module 'poll-h'.
63234         * modules/poll-h-c++-tests: New file.
63235         * tests/test-poll-h-c++.cc: New file.
63237         Tests for module 'poll-h'.
63238         * modules/poll-h-tests: New file.
63239         * tests/test-poll-h.c: New file.
63241 2010-09-28  Bruno Haible  <bruno@clisp.org>
63243         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
63244         * modules/poll-h (Depends-on): Add 'extensions'.
63246 2010-09-28  Bruno Haible  <bruno@clisp.org>
63248         New module 'poll-h'.
63249         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
63250         (poll): Use modern idiom.
63251         * modules/poll-h: New file.
63252         * modules/poll (Files): Remove lib/poll.in.h.
63253         (Depends-on): Add poll-h.
63254         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
63255         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
63256         * m4/poll_h.m4: New file.
63257         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
63258         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
63259         and invoke gl_REPLACE_POLL_H.
63260         * lib/poll.c: Use common idiom.
63261         * tests/test-poll.c: Likewise.
63262         * doc/posix-headers/poll.texi: Mention the poll-h module.
63263         Suggested by Eric Blake.
63265 2010-09-26  Bruno Haible  <bruno@clisp.org>
63267         sys_wait: Implement WSTOPSIG.
63268         * lib/sys_wait.in.h (WSTOPSIG): New macro.
63269         Reported by Simon Josefsson.
63271 2010-09-26  Simon Josefsson  <simon@josefsson.org>
63273         stdlib, sys_wait: Avoid compilation error on mingw.
63274         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
63276 2010-09-26  Bruno Haible  <bruno@clisp.org>
63278         stdlib tests: Avoid code duplication.
63279         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
63280         * modules/sys_wait-tests (Files): Likewise.
63281         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
63282         * tests/test-stdlib.c: Include test-sys_wait.h.
63283         (main): Invoke test_sys_wait_macros.
63284         * tests/test-sys_wait.c: Include test-sys_wait.h.
63285         (main): Invoke test_sys_wait_macros.
63287 2010-09-25  Simon Josefsson  <simon@josefsson.org>
63289         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
63290         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
63291         sure Windows sockets are working before calling getaddrinfo.
63292         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
63293         * doc/gnulib.texi (Windows sockets): Fix typo.
63295 2010-09-25  Bruno Haible  <bruno@clisp.org>
63297         Tests for module 'regex-quote'.
63298         * modules/regex-quote-tests: New file.
63299         * tests/test-regex-quote.c: New file.
63301         New module 'regex-quote'.
63302         * lib/regex-quote.h: New file.
63303         * lib/regex-quote.c: New file.
63304         * modules/regex-quote: New file.
63305         Suggested by Reuben Thomas <rrt@sc3d.org>.
63307 2010-09-24  Bruno Haible  <bruno@clisp.org>
63309         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
63310         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
63312 2010-09-23  Bruno Haible  <bruno@clisp.org>
63314         setenv: Relax license.
63315         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
63316         Blake.
63317         Requested by Eric Blake.
63319 2010-09-22  Bruno Haible  <bruno@clisp.org>
63321         termios: Relax license.
63322         * modules/termios (License): Change to LGPLv2+.
63323         Requested by Eric Blake.
63325 2010-09-22  Bruno Haible  <bruno@clisp.org>
63327         threadlib: Allow the package to change the default to 'no'.
63328         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
63329         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
63330         Reported by Paul Eggert.
63332 2010-09-22  Pádraig Brady  <P@draigbrady.com>
63333             Bruno Haible  <bruno@clisp.org>
63335         Fix endless loop in mbmemcasecoll.
63336         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
63337         byte.
63338         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
63340 2010-09-22  Bruno Haible  <bruno@clisp.org>
63342         Tests for module 'memcoll'.
63343         * modules/memcoll-tests: New file.
63344         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
63346         memcoll, xmemcoll: Clarify size vs. length.
63347         * modules/memcoll.c (memcoll0): Clarify specification.
63348         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
63349         passed to collate_error.
63351 2010-09-22  Bruno Haible  <bruno@clisp.org>
63353         Tests for module 'memcasecmp'.
63354         * modules/memcasecmp-tests: New file.
63355         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
63357 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63359         * lib/pthread.in.h: Add split double-inclusion guard, and include
63360         system <pthread.h> if there is one.  Use @@-style as in other
63361         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
63362         pthread.h doesn't.
63363         (pthread_mutexattr_destroy, pthread_mutexattr_init):
63364         (pthread_mutexattr_settype, pthread_mutex_trylock):
63365         New static inline functions, if there's no system <pthread.h>.
63366         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
63367         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
63368         Approximate with mutexes if the system lacks spinlocks, as in
63369         MacOS.
63370         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
63371         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
63372         @@-style.  Check for spinlocks separately.
63373         (gl_PTHREAD_DEFAULTS): New macro.
63374         * modules/pthread: Redo to use a more typical style for in.h files.
63376 2010-09-21  Eric Blake  <eblake@redhat.com>
63378         net_if: enhance tests
63379         * tests/test-net_if.c (main): Move signature checks earlier.
63380         Print failures to stderr.
63381         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
63382         Document the bug that we do not yet fix.
63384 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63386         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
63387         about gnulib, not GSS.
63389 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63391         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
63392         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
63393         for Emacs.
63394         * build-aux/pmccabe2html: Make Makefile.am example code more
63395         cut-and-paste friendly.
63397 2010-09-21  Simon Josefsson  <simon@josefsson.org>
63399         * tests/test-net_if.c: New file.
63400         * modules/net_if-tests: New file.
63402 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63404         pthread: add pthread_spin_destroy
63405         * lib/pthread.in.h (pthread_spin_destroy): New function.
63407 2010-09-19  Bruno Haible  <bruno@clisp.org>
63409         gnulib-tool: Fix --help output.
63410         * gnulib-tool (func_usage): Fix help message.
63411         Reported by Reuben Thomas <rrt@sc3d.org>.
63413 2010-09-18  Jim Meyering  <meyering@redhat.com>
63415         maint.mk: avoid unexpanded \n in two diagnostics
63416         * top/maint.mk (sc_prohibit_always_true_header_tests):
63417         Don't use a literal \n in a halt=... assignment.  It would not be
63418         expanded, and the two \n bytes would appear in the diagnostic output
63419         rather than the desired newline.  Use halt=$$(printf ... instead.
63420         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
63422 2010-09-18  Bruno Haible  <bruno@clisp.org>
63424         netinet_in: Doc tweak.
63425         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
63426         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63428 2010-09-18  Jim Meyering  <meyering@redhat.com>
63430         init.sh: correct an outdated comment
63431         * tests/init.sh (create_exe_shims_):  s/function/alias/
63433         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
63434         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
63435         a file named "*.exe" is removed between the glob expansion and the
63436         processing of that oddly named file.
63438 2010-09-17  Eric Blake  <eblake@redhat.com>
63440         mirbsd: add some more support
63441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
63442         in BSD family.
63443         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
63444         devices as OpenBSD.
63445         * m4/host-os.m4 (mirbsd): Add MirBSD.
63447         tests: fix unportable assumption on sys/wait.h
63448         * tests/test-sys_wait.c (main): Relax test.
63449         * tests/test-stdlib.c (main): Likewise.
63451         init.sh: accommodate directory with no .exes
63452         * tests/init.sh: Accomodate directory containing only scripts.
63454         tests: avoid compiler warning
63455         * tests/test-stdlib.c (main): Use the variable.
63457         fdutimens, fdutimensat: update signature, again
63458         * lib/utimens.h (gl_futimens): Delete, and move signature...
63459         (fdutimens): ...here.
63460         (fdutimensat): Rearrange signature.
63461         (lutimensat): Rename variable for clarity.
63462         * lib/fdutimensat.c (fdutimensat): Update signature.
63463         * lib/utimens.c (fdutimens): Likewise.
63464         (gl_futimens): Delete.
63465         (utimens, lutimens): Update callers.
63466         * lib/futimens.c (futimens): Likewise.
63467         * tests/test-fdutimensat.c: Likewise.
63468         * tests/test-utimens.c: Likewise.
63469         * tests/test-futimens.h: Update comment.
63470         * NEWS: Mention this.
63471         Suggested by Paul Eggert.
63473 2010-09-17  Bruno Haible  <bruno@clisp.org>
63475         Take over the maintenance of some older macros from Autoconf.
63476         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
63477         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
63478         GNU Autoconf.
63479         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
63480         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
63482 2010-09-17  Eric Blake  <eblake@redhat.com>
63484         fdutimensat: drop atflag validation
63485         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
63486         with valid fd, to close a race scenario where futimens is
63487         unsupported and FILE was replaced by a symlink.
63488         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
63489         accordingly.
63490         Suggested by Paul Eggert.
63492 2010-09-16  Bruno Haible  <bruno@clisp.org>
63494         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
63495         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
63497 2010-09-16  Bruno Haible  <bruno@clisp.org>
63499         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
63500         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
63501         login_tty exists.
63502         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63504 2010-09-16  Bruno Haible  <bruno@clisp.org>
63506         login_tty: Make the replacement code work on BSD systems.
63507         * lib/login_tty.c: Include <sys/ioctl.h>.
63508         (login_tty): Use ioctl TIOCSCTTY when available.
63509         * modules/login_tty (Depends-on): Add sys_ioctl.
63510         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63512 2010-09-16  Bruno Haible  <bruno@clisp.org>
63514         login_tty: Stricter unit test.
63515         * modules/login_tty-tests (Depends-on): Add tcgetsid.
63516         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
63517         and tcgetsid() after login_tty.
63518         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63520 2010-09-16  Bruno Haible  <bruno@clisp.org>
63522         New module 'tcgetsid'.
63523         * lib/tcgetsid.c: New file.
63524         * m4/tcgetsid.m4: New file.
63525         * modules/tcgetsid: New file.
63526         * modules/termios (Depends-on): Add c++defs, warn-on-use.
63527         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
63528         GNULIB_TCGETSID, HAVE_TCGETSID.
63529         * lib/termios.in.h: Include <sys/types.h>.
63530         (tcgetsid): New declaration.
63531         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
63532         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
63533         * doc/posix-functions/tcgetsid.texi: Mention the new module.
63534         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
63536 2010-09-16  Bruno Haible  <bruno@clisp.org>
63538         Tests for module 'termios'.
63539         * modules/termios-c++-tests: New file.
63540         * modules/termios-tests: New file.
63541         * tests/test-termios-c++.cc: New file.
63542         * tests/test-termios.c: New file.
63544         New module 'termios'.
63545         * modules/termios: New file.
63546         * lib/termios.in.h: New file.
63547         * m4/termios_h.m4: New file.
63548         * doc/posix-headers/termios.texi: Mention the new module.
63550 2010-09-16  Eric Blake  <eblake@redhat.com>
63552         fdutimensat: add an atflag parameter
63553         * lib/fdutimensat.c (fdutimensat): Add new parameter.
63554         * lib/utimens.h (fdutimensat): Update prototype.
63555         * tests/test-fdutimensat.c: Adjust test to match.
63556         * NEWS: Document the change.
63557         Suggested by Paul Eggert.
63559 2010-09-16  Bruno Haible  <bruno@clisp.org>
63561         Fix typos in comments.
63562         * lib/striconveh.h: Fix typo in comment.
63563         * lib/login_tty.c (login_tty): Likewise.
63565 2010-09-15  Bruno Haible  <bruno@clisp.org>
63567         stdlib: clarify MirBSD WEXITSTATUS bug
63568         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
63569         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63571 2010-09-15  Eric Blake  <eblake@redhat.com>
63573         stdlib: work around MirBSD WEXITSTATUS bug
63574         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
63575         * modules/stdlib (Depends-on): Add sys_wait.
63576         * tests/test-sys_wait.c (main): Enhance test.
63577         * tests/test-stdlib.c (main): Likewise.
63578         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
63580         docs: mention MacOS issue with WEXITSTATUS(constant)
63581         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
63582         issue.
63583         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63585         strnlen: add tests
63586         * modules/strnlen-tests: New file.
63587         * tests/test-strnlen.c: Likewise.
63589 2010-09-14  Bruno Haible  <bruno@clisp.org>
63591         unistr/base: Avoid link errors when module 'libunistring' is also used.
63592         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
63593         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
63594         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
63595         Declare also when HAVE_LIBUNISTRING is set.
63596         Reported by Pádraig Brady <P@draigbrady.com>.
63598 2010-09-14  Eric Blake  <eblake@redhat.com>
63600         test-rawmemchr: make more robust
63601         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
63602         (Depends-on, configure.ac): Add needed prerequisites to use it.
63603         * modules/memchr-tests (Files, Depends-on, configure.ac):
63604         Likewise, to avoid implicit reliance on memchr module prereqs.
63605         * tests/test-memchr.c (main): Ensure proper masking.
63606         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
63607         reads.
63609         memchr: detect glibc Alpha bug
63610         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
63611         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
63612         Alpha.
63613         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
63614         * tests/test-memchr.c (main): Enhance test.
63615         Reported by Nelson H. F. Beebe.
63617 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63619         fts, getcwd, glob: audit for dirfd returning -1
63620         * lib/fts.c (opendir): Remove #define; no longer used.
63621         (opendirat): New arg PDIR_FD.  All callers changed.
63622         (fts_build, _opendir2): Use new opendirat to avoid the need for
63623         dirfd, or for checking whether dirfd returns a negative value.
63624         Don't use opendir; always use openat followed by fdopendir.
63625         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
63626         it.
63627         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
63628         returns -1 here.
63629         * modules/fts (Depends-on): Remove dirfd.
63630         * modules/getcwd (Depends-on): Likewise.
63632 2010-09-13  Eric Blake  <eblake@redhat.com>
63634         float: fix broken MirBSD header
63635         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
63636         * doc/posix-headers/float.texi (float.h): Document it.
63638 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63640         fts: use O_NOFOLLOW to avoid race condition when opening a directory
63641         * lib/fts.c (opendirat): New arg extra_flags.
63642         (__opendir2): Use it to avoid following symlinks when opening
63643         a directory, if symlinks are not supposed to be followed.  See
63644         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
63646         fdopendir: preserve argument fd before returning
63647         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
63648         (fdopendir_with_dup, fd_clone_opendir): New static functions.
63649         (fdopendir): Use them, arranging for FD to be open to the same
63650         directory that it was when it started.  (It might be temporarily
63651         closed while fdopendir is running, so this not thread- or
63652         signal-safe.)  Be careful to do the right thing even when file
63653         descriptors are scarce and dup fails with errno == EMFILE.  See
63654         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
63656 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
63658         regex: Pass the system regex if its only problem is 32-bit regoff_t.
63659         * NEWS: Document change.
63660         * m4/regex.m4: Disable test for regoff_t size.
63662 2010-09-13  Jim Meyering  <meyering@redhat.com>
63664         fts: don't operate on an invalid file descriptor after failed dup
63665         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
63666         negative file descriptor.
63668 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63670         savedir: add streamsavedir, deprecate fdsavedir
63671         * NEWS: Mention deprecation of fdsavedir.
63672         * lib/savedir.c (streamsavedir): New extern function, whose name
63673         ends in "savedir" to be consistent with the others.  This differs
63674         from savedirstream in that it doesn't close its argument.  The
63675         next version of GNU tar will use this instead of fdsavedir, to
63676         avoid some race conditions and conserve file descriptors.
63677         (savedirstream): Reimplement as a wrapper around streamsavedir.
63678         (fdsavedir): Add a comment deprecating this function.  As far as
63679         I know, only GNU tar used it, and GNU tar doesn't need it any more.
63680         * lib/savedir.h (streamsavedir): New decl.
63681         (fdsavedir): Add a comment deprecating this.
63683 2010-09-10  Bruno Haible  <bruno@clisp.org>
63685         langinfo: Fix last commit.
63686         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
63687         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
63688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63690 2010-09-10  Bruno Haible  <bruno@clisp.org>
63692         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
63693         * lib/progreloc.c (O_EXEC): Define fallback.
63695 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
63697         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
63698         * NEWS: Document recent changes to fcntl-h.
63699         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
63700         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
63701         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
63702         Similarly for O_SEARCH; this last was already true, but not documented.
63703         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
63704         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
63705         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
63706         Likewise.
63707         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
63708         is zero, not whether it is defined.
63709         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
63710         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
63711         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
63713 2010-09-10  Bruno Haible  <bruno@clisp.org>
63715         langinfo, nl_langinfo: Fix for IRIX 5.3.
63716         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
63717         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
63718         HAVE_LANGINFO_YESEXPR.
63719         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
63720         HAVE_LANGINFO_YESEXPR.
63721         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
63722         HAVE_LANGINFO_T_FMT_AMPM is 0.
63723         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
63724         HAVE_LANGINFO_YESEXPR is 0.
63725         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
63726         NOEXPR.
63727         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
63728         * doc/posix-functions/nl_langinfo.texi: Likewise.
63729         Reported by Eric Blake.
63731 2010-09-10  Bruno Haible  <bruno@clisp.org>
63733         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
63734         * doc/glibc-functions/login_tty.texi: Mention the include file problem
63735         on FreeBSD 8.0 and OpenBSD 4.6.
63736         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
63737         * m4/pty_h.m4 (gl_PTY_H): Likewise.
63738         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
63739         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
63740         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
63741         ac_includes_default.
63742         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63744 2010-09-09  Eric Blake  <eblake@redhat.com>
63746         strsignal: work around NetBSD bug
63747         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
63748         * lib/string.in.h (includes): Likewise.
63749         * doc/posix-functions/strsignal.texi (strsignal): Document the
63750         bug.
63751         Reported by Nelson H. F. Beebe.
63753         gnulib-tool: work with NetBSD /bin/sh
63754         * gnulib-tool (func_cache_var, func_cache_lookup_module)
63755         (func_get_description, func_get_comment, func_get_status)
63756         (func_get_notice, func_get_applicability, func_get_filelist)
63757         (func_get_dependencies, func_get_autoconf_early_snippet)
63758         (func_get_autoconf_snippet, func_get_automake_snippet)
63759         (func_get_include_directive, func_get_link_directive)
63760         (func_get_license, func_get_maintainer, func_import): Avoid
63761         shell syntax errors from parsing syntax extensions.
63763 2010-09-09  Bruno Haible  <bruno@clisp.org>
63765         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
63766         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
63767         a reliable way to determine whether the 'alias' command works.
63769 2010-09-08  Jim Meyering  <meyering@redhat.com>
63771         init.sh: penalize a set-x-impaired shell; don't disqualify it
63772         * tests/init.sh: Too many shells corrupt application stderr when
63773         you set -x, so we can't afford to disqualify them, since at least
63774         on Irix-6.5, that would disqualify all bourne shells.
63775         Instead, use a two-pass approach.
63776         On the first pass, try to find a shell that meets the stricter
63777         condition that set -x does not corrupt stderr.
63778         If no shell meets the stricter condition, retest each candidate
63779         shell, but without that extra condition.  Finally, when
63780         VERBOSE=yes is requested and set -x might cause trouble, simply
63781         issue a warning and refrain from enabling debug output.
63783 2010-09-08  Eric Blake  <eblake@redhat.com>
63785         unsetenv: fix OpenBSD bug
63786         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
63787         * doc/posix-functions/unsetenv.texi (unsetenv): Update
63788         documentation.
63789         Reported by Jim Meyering.
63791         strtod: work around IRIX 6.5 bug
63792         * lib/strtod.c (strtod): Reparse number on shorter string if
63793         exponent parse was invalid.
63794         * tests/test-strtod.c (main): Add check for "0x1p 2".
63795         Reported by Tom G. Christensen.
63797         getopt: optimize previous patch
63798         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
63799         empty variable.  Speed up awk script.
63800         Reported by Paolo Bonzini.
63802 2010-09-08  Jim Meyering  <meyering@redhat.com>
63804         test.sh: disqualify shells for which set -x corrupts stderr
63805         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
63806         and OpenBSD 4.7.  They make it so with "set -x", environment settings
63807         appear in stderr output.  For example, this command:
63808             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
63809         prints "P=1" on those two systems:
63811 2010-09-08  Bruno Haible  <bruno@clisp.org>
63813         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
63814         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
63815         commands, because some shells ignore redirections when there is an
63816         error in the command lookup.
63817         Reported by Eric Blake.
63819 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
63821         * lib/regex.h: Fix a mention of `regex_compile' (should be
63822         `re_compile_pattern').
63823         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
63824         (re_set_registers): Correct name of parameter in comment.
63826         * doc/regex.texi: Add documentation for missing syntax flags.
63827         Remove commented-out documentation of defunct syntax option
63828         RE_NO_EMPTY_ALTS.
63829         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
63830         Add documentation of re_set_registers.
63831         Document trick to re-use a pattern buffer by setting fastmap manually.
63832         Update documentation of struct re_pattern_buffer per public members.
63833         Uncomment documentation of equivalence class operators and
63834         collating symbol operators, since they are now implemented,
63835         Explain leftmost-longest matching in relation to alternatives.
63836         Tidy documentation of substring matching.
63837         Remove POSIX documentation, which is done better in
63838         glibc, and refer the reader there. Keep BSD API documentation, as
63839         that is not readily available elsewhere.
63841 2010-09-07  Eric Blake  <eblake@redhat.com>
63843         getopt: handle POSIXLY_CORRECT set but not exported
63844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
63845         export state of POSIXLY_CORRECT, due to bash set -o posix.
63846         Reported by Dustin J. Mitchell.
63848 2010-09-05  Bruno Haible  <bruno@clisp.org>
63850         gnulib-tool: Highlight the changed options.
63851         * gnulib-tool (func_usage): Display the --import, --add-import,
63852         --remove-import explanations in bold font.
63854 2010-09-06  Karl Berry  <karl@gnu.org>
63856         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
63858 2010-09-05  Bruno Haible  <bruno@clisp.org>
63860         uniwidth/width: Update comment.
63861         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
63862         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
63864 2010-09-05  Bruno Haible  <bruno@clisp.org>
63866         isinf, isnan: Relax license.
63867         * modules/isinf (License): Change from GPL to LGPL, with consent from
63868         Ben Pfaff.
63869         * modules/isnan (License): Likewise.
63870         Requested by Ludovic Courtès.
63872 2010-09-04  Bruno Haible  <bruno@clisp.org>
63874         gnulib-tool: Help migration from --import to --add-import or --update.
63875         * gnulib-tool: Emit a verbose error message when --import is used
63876         without any module name.
63878 2010-09-04  Bruno Haible  <bruno@clisp.org>
63880         Update doc about gnulib-tool.
63881         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
63882         'gnulib-tool --update' in more detail.
63883         Reported by Eric Blake.
63885 2010-09-04  Bruno Haible  <bruno@clisp.org>
63887         gnulib-tool: Change --import. New options --add/remove-import.
63888         * gnulib-tool: New options --add-import, --remove-import.
63889         (func_usage): Document them.
63890         (have_associative): Define always.
63891         (func_import): In import mode, don't merge the specified settings with
63892         the cached settings. Implement remove-import mode.
63893         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
63894         Explain when to use them versus --import.
63895         (Simple update): Use --add-import instead of --import.
63896         * NEWS: Mention the change.
63898 2010-09-04  Bruno Haible  <bruno@clisp.org>
63900         * doc/gnulib-tool.texi (Initial import): Update paragraph about
63901         separate gnulib.mk.
63903 2010-09-04  Bruno Haible  <bruno@clisp.org>
63905         gnulib-tool: Don't talk about CVS any more.
63906         * gnulib-tool (func_usage, func_import): Write "version control"
63907         instead of CVS.
63909 2010-09-04  Jim Meyering  <meyering@redhat.com>
63911         maint.mk: avoid obscure sc_copyright_check failure in coreutils
63912         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
63913         false positives (whose names may be ill-chosen) when searching
63914         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
63915         would cause a false-positive.
63917         avoid coreutils "make distcheck" failure
63918         Coreutils tests with an absolute build directory name that contains
63919         a space.  Not quoting this directory name caused a failure.
63920         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
63921         * tests/test-vc-list-files-cvs.sh: Likewise.
63923 2010-09-04  Bruno Haible  <bruno@clisp.org>
63925         gnulib-tool: Avoid error when run in a package without Makefile.am.
63926         * gnulib-tool: When collecting the m4dirs in a package that does not
63927         have a Makefile.am, eliminate those directories that contain no
63928         gnulib-cache.m4. Fix expression that counts these directories.
63930 2010-09-04  Bruno Haible  <bruno@clisp.org>
63932         update-copyright test: Improve output when perl is missing or too old.
63933         * tests/test-update-copyright.sh: Move test of Perl version down after
63934         the test whether Perl exists. Provide an explanation relating Perl's
63935         error message to Automake's SKIP: message.
63937 2010-09-04  Bruno Haible  <bruno@clisp.org>
63939         Don't augment PATH in TESTS_ENVIRONMENT.
63940         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
63941         set abs_aux_dir instead of augmenting PATH.
63942         * modules/vc-list-files-tests (Makefile.am): Likewise.
63943         * tests/test-update-copyright.sh: Augment PATH here.
63944         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
63945         path_prepend_.
63946         * tests/test-vc-list-files-git.sh: Likewise.
63948 2010-09-04  Jim Meyering  <meyering@redhat.com>
63950         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
63951         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
63953 2010-09-04  Bruno Haible  <bruno@clisp.org>
63955         strdup: Fix compilation error in C++ mode.
63956         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
63957         the macro.
63959 2010-09-04  Bruno Haible  <bruno@clisp.org>
63961         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
63962         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
63963         macro into a function.
63964         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63966 2010-09-04  Bruno Haible  <bruno@clisp.org>
63968         Set PATH_SEPARATOR the same way autoconf does.
63969         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
63970         the value of PATH_SEPARATOR the same way autoconf-generated configure
63971         scripts do.
63972         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
63973         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
63975 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
63977         Set PATH_SEPARATOR the same way autoconf does.
63978         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
63979         the same way autoconf-generated configure scripts do.
63980         * posix-modules: Likewise.
63982 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63984         hash: fix safe_hasher const typo
63985         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
63986         const; otherwise, there is a type error later.
63988 2010-09-02  Jim Meyering  <meyering@redhat.com>
63990         test-update-copyright.sh: require perl 5.8.0
63991         * tests/test-update-copyright.sh: Require 5.8.0,
63992         which Tom G. Christensen has confirmed is adequate,
63993         while 5.6.1 is not.
63995 2010-09-02  Eric Blake  <eblake@redhat.com>
63997         tests: init.sh improvements for re-exec'ing with zsh
63998         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
63999         -vx through shell re-exec.
64000         Reported by Tom G. Christensen.
64002         wctype: fix typo in previous commit
64003         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
64004         Reported by Ludovic Courtès.
64006 2010-09-02  Jim Meyering  <meyering@redhat.com>
64008         test-update-copyright.sh: skip test if Perl is too old
64009         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
64010         Reported by Tom G. Christensen.
64012 2010-09-02  Bruno Haible  <bruno@clisp.org>
64014         wctype: Avoid compilation error on IRIX 6.5.30.
64015         * lib/wctype.in.h (iswblank): Declare with a replacement if
64016         REPLACE_ISWBLANK is set.
64017         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
64018         declared. Set REPLACE_ISWBLANK.
64019         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
64020         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
64021         * doc/posix-headers/wctype.texi: Likewise.
64022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64024 2010-09-01  Bruno Haible  <bruno@clisp.org>
64026         New module 'socketlib'.
64027         * modules/socketlib: New file.
64028         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
64029         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
64030         * modules/sockets (Depends-on): Add socketlib.
64031         Suggested by Sam Steingold <sds@gnu.org>.
64033 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64035         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
64037         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
64038         when one needs search access to a directory but not read access.
64039         On systems where it is available, it works in some cases where
64040         O_RDONLY does not, namely on directories that are searchable but
64041         not readable, and which need only to be searchable.  If O_SEARCH
64042         is not available, fall back to the traditional method of using
64043         O_RDONLY.
64045         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
64046         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
64047         when opening a directory that needs only to be searchable.
64048         * lib/chdir-safer.c (chdir_no_follow): Likewise.
64049         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
64050         * lib/openat-proc.c (openat_proc_name): Likewise.
64051         * lib/openat.c (openat_needs_fchdir): Likewise.
64052         * lib/save-cwd.c (save_cwd): Likewise.
64053         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
64055 2010-08-28  Bruno Haible  <bruno@clisp.org>
64057         New module 'host-cpu-c-abi'.
64058         * modules/host-cpu-c-abi: New file.
64059         * m4/host-cpu-c-abi.m4: New file, based on part of
64060         clisp/src/m4/general.m4.
64061         Requested by Sam Steingold <sds@gnu.org>.
64063 2010-08-31  Eric Blake  <eblake@redhat.com>
64064         and Jim Meyering  <meyering@redhat.com>
64066         hash: factor, and guard against misbehaving hasher function
64067         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
64068         of table->hasher's return value.  Also protect against a hash value
64069         so large that adding it to table->bucket results in a NULL pointer.
64070         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
64071         Use it in place of open-coded check-and-abort.
64073 2010-08-30  Bruno Haible  <bruno@clisp.org>
64075         hash: silence spurious clang warning
64076         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
64077         Reported by Eric Blake.
64079 2010-08-30  Eric Blake  <eblake@redhat.com>
64081         strstr, memmem, strcasestr: avoid leaked shell message
64082         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
64083         FreeBSD.
64084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64085         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64087         tests: silence clang warning
64088         * tests/test-malloca.c (do_allocation): Avoid dead store.
64090 2010-08-29  Bruno Haible  <bruno@clisp.org>
64092         gettext: Fix recent mistake.
64093         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
64095 2010-08-29  Bruno Haible  <bruno@clisp.org>
64097         selinux-h: Offer a --without-selinux option.
64098         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
64099         --without-selinux was specified, skip all tests and define
64100         HAVE_SELINUX_SELINUX_H to 0.
64101         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
64102         set LIB_SELINUX to empty.
64103         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
64104         gl_LIBSELINUX. If --without-selinux was specified, replace
64105         selinux/context.h.
64106         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
64108 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64109             Bruno Haible  <bruno@clisp.org>
64111         Make the module 'realloc-gnu' work again on AIX and OSF/1.
64112         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
64113         of HAVE_REALLOC.
64114         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
64115         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
64116         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
64117         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64119 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64120             Bruno Haible  <bruno@clisp.org>
64122         Make the module 'calloc-gnu' work again on AIX and OSF/1.
64123         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
64124         HAVE_CALLOC.
64125         * lib/xmalloc.c: Update accordingly.
64126         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
64127         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
64128         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
64130 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64131             Bruno Haible  <bruno@clisp.org>
64133         Make the module 'malloc-gnu' work again on AIX and OSF/1.
64134         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
64135         HAVE_MALLOC.
64136         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
64137         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
64138         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64140 2010-08-29  Bruno Haible  <bruno@clisp.org>
64142         Update modules list.
64143         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64144         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
64145         (String handling <string.h>): Add astrxfrm.
64146         (File system functions): Add readlinkat.
64148 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64150         Tests for module 'realloc-gnu'.
64151         * modules/realloc-gnu-tests: New file.
64152         * tests/test-realloc-gnu.c: New file.
64154         Tests for module 'calloc-gnu'.
64155         * modules/calloc-gnu-tests: New file.
64156         * tests/test-calloc-gnu.c: New file.
64158         Tests for module 'malloc-gnu'.
64159         * modules/malloc-gnu-tests: New file.
64160         * tests/test-malloc-gnu.c: New file.
64162 2010-08-28  Bruno Haible  <bruno@clisp.org>
64164         Rename module 'realloc' -> 'realloc-gnu'.
64165         * modules/realloc-gnu: New file, copied from modules/realloc.
64166         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
64167         obsolete.
64168         * modules/mgetgroups (Depends-on): Update.
64169         * doc/posix-functions/realloc.texi: Update.
64170         * NEWS: Mention the change.
64172         Rename module 'calloc' -> 'calloc-gnu'.
64173         * modules/calloc-gnu: New file, copied from modules/calloc.
64174         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
64175         obsolete.
64176         * doc/posix-functions/calloc.texi: Update.
64177         * NEWS: Mention the change.
64179         Rename module 'malloc' -> 'malloc-gnu'.
64180         * modules/malloc-gnu: New file, copied from modules/malloc.
64181         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
64182         obsolete.
64183         * modules/argp (Depends-on): Update.
64184         * modules/regex (Depends-on): Update.
64185         * doc/posix-functions/malloc.texi: Update.
64186         * NEWS: Mention the change.
64188 2010-08-28  Eric Blake  <eblake@redhat.com>
64190         pread, pwrite: add missing dependency
64191         * modules/pread (Depends-on): Add extensions.
64192         * modules/pwrite (Depends-on): Likewise.
64194 2010-08-28  Bruno Haible  <bruno@clisp.org>
64196         unistr/u*-strchr: Fix tests dependencies.
64197         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
64198         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
64199         Reported by Ian Beckwith <ianb@erislabs.net>.
64201 2010-08-28  Bruno Haible  <bruno@clisp.org>
64203         read-file: Don't occupy too much unused memory.
64204         * lib/read-file.c (fread_file): Shrink the buffer at the end.
64206 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
64207             Eric Blake  <eblake@redhat.com>
64208             Bruno Haible  <bruno@clisp.org>
64210         read-file: Avoid memory reallocations with regular files.
64211         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
64212         (fread_file): With regular files, use the remaining length as the
64213         initial buffer size.  Check against overflow.
64214         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
64215         sys_stat.
64217 2010-08-28  Bruno Haible  <bruno@clisp.org>
64219         ftello: Relax license.
64220         * modules/ftello (License): Relax to LGPLv2+.
64221         Reported by Eric Blake.
64223 2010-08-28  Bruno Haible  <bruno@clisp.org>
64225         Avoid relocwrapper link errors due to gnulib replacement functions.
64226         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
64227         function.
64228         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64230 2010-08-28  Bruno Haible  <bruno@clisp.org>
64232         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
64233         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
64234         defined.
64235         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
64236         Suggested by Eric Blake.
64238 2010-08-28  Bruno Haible  <bruno@clisp.org>
64240         sys_socket, netdb: Ensure socklen_t gets defined.
64241         * modules/sys_socket (Depends-on): Add socklen.
64242         * modules/netdb (Depends-on): Likewise.
64243         * modules/getaddrinfo (Depends-on): Remove socklen.
64244         * modules/getsockopt (Depends-on): Likewise.
64245         * modules/setsockopt (Depends-on): Likewise.
64246         * tests/test-sys_socket.c: Check that socklen_t is defined.
64247         * tests/test-netdb.c: Likewise.
64248         * m4/socklen.m4: Update comments.
64249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64251 2010-08-27  Eric Blake  <eblake@redhat.com>
64253         login_tty: add missing dependency
64254         * modules/login_tty (Depends-on): Add pty.
64256 2010-08-26  Eric Blake  <eblake@redhat.com>
64258         lib-symbol-versions: fix m4 quoting
64259         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
64260         format for AC_LINK_IFELSE.
64262         glob: fix compile test
64263         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
64265         btowc: fix missing file
64266         * modules/btowc (Files): Also ship locale-fr.m4.
64268         lseek: fix link test
64269         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
64270         AC_LINK_IFELSE.
64272         include_next: silence autoconf 2.68 warning
64273         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
64274         AC_COMPILE_IFELSE as special.
64275         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
64276         autoconf < 2.68.
64278         acl: fix compilation test
64279         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
64280         AC_COMPILE_IFELSE.
64282 2010-08-26  Bruno Haible  <bruno@clisp.org>
64284         Modernize AC_TRY_RUN invocations.
64285         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
64286         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64287         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
64288         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
64289         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
64290         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
64291         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
64292         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64293         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64294         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64295         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
64296         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
64297         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
64298         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
64299         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
64300         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
64301         gl_MBRLEN_NUL_RETVAL): Likewise.
64302         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
64303         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
64304         Likewise.
64305         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
64306         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
64307         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
64308         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
64309         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
64310         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
64311         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
64312         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
64313         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
64314         Likewise.
64315         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
64316         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
64317         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64318         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64319         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64320         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
64321         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
64322         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
64323         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
64324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64326 2010-08-26  Bruno Haible  <bruno@clisp.org>
64328         Modernize AC_TRY_LINK invocations.
64329         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
64330         AC_TRY_LINK.
64331         * m4/argp.m4 (gl_ARGP): Likewise.
64332         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
64333         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
64334         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64335         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64336         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64337         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
64338         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
64339         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
64340         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64341         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
64342         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64343         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
64344         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
64345         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64346         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64347         * m4/hostent.m4 (gl_HOSTENT): Likewise.
64348         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64349         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
64350         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
64351         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
64352         Likewise.
64353         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
64354         Likewise.
64355         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
64356         Likewise.
64357         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
64358         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
64359         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
64360         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
64361         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
64362         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
64363         * m4/servent.m4 (gl_SERVENT): Likewise.
64364         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
64365         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
64366         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
64367         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
64368         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64369         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
64370         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
64371         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64372         * modules/tsearch-tests (configure.ac): Likewise.
64374 2010-08-26  Bruno Haible  <bruno@clisp.org>
64376         Modernize AC_TRY_COMPILE invocations.
64377         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
64378         AC_TRY_COMPILE.
64379         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
64380         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
64381         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
64382         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64383         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
64384         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64385         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64386         * m4/lock.m4 (gl_LOCK): Likewise.
64387         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
64388         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64389         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
64390         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
64391         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
64392         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
64393         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
64394         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
64395         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
64396         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
64397         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
64398         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64399         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
64400         extraneous semicolon.
64402 2010-08-26  Jim Meyering  <meyering@redhat.com>
64404         stat-time: relax license LGPL
64405         * modules/stat-time (License): Change from GPL to LGPL,
64406         with consent from all contributors, for use in libguile.
64407         Requested by Ludovic Courtès.
64409 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
64411         poll: return immediately on POLLHUP.
64412         * lib/poll.c (poll): Always set timeout before wait_timeout is
64413         computed.
64415 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64417         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
64418         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
64419         rmdir ("dir/.//"), unlinkat.
64421 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64423         stdbool: avoid spurious failure with modern xlc
64424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64426 2010-08-24  Bruno Haible  <bruno@clisp.org>
64428         getloadavg: simplify code
64429         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
64430         gl_have_func. Update comments.
64432 2010-08-24  Eric Blake  <eblake@redhat.com>
64434         getloadavg: don't define SVR4 on cygwin
64435         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
64436         only define SVR4 when -lkvm is required.
64437         Reported by Yaakov Selkowitz.
64439 2010-08-24  Bruno Haible  <bruno@clisp.org>
64441         priv-set: fix comment
64442         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
64444 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64446         priv-set: fix comments
64447         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
64448         to match code, as suggested by David Bartley in:
64449         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
64451 2010-08-23  Eric Blake  <eblake@redhat.com>
64453         stdbool: avoid rejecting clang
64454         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64455         * tests/test-stdbool.c: Enable more tests if using the system
64456         <stdbool.h> instead of the gnulib replacement.
64457         (main): Move xlc bug test to a runtime test for all compilers.
64458         Reported by Anders Kaseorg.
64460         argz: fix shell quoting issue
64461         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
64462         Reported by Charles Wilson.
64464 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
64465             Erik Faye-Lund <kusmabite@gmail.com>
64467         poll, select: handle ERROR_BROKEN_PIPE.
64468         * lib/poll.c (win32_compute_revents): Return POLLHUP when
64469         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64470         * lib/select.c (win32_compute_revents): Do not mark a pipe
64471         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64473 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
64475         fts: allow compilation with C++
64476         * lib/fts_.h: Specify extern "C" linkage with C++.
64478 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64480         Fix gnulib-tool sed script de-commentation for AIX sed.
64481         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
64482         sed.
64484 2010-08-17  Eric Blake  <eblake@redhat.com>
64486         test-stddef: test for (some) offsetof bugs
64487         * tests/test-stddef.c: Enhance test to ensure correct type of
64488         offsetof.
64489         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
64490         that we are not fixing at this time.
64492 2010-08-15  Bruno Haible  <bruno@clisp.org>
64494         stpncpy: Allow stpncpy to be defined as a macro.
64495         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
64496         if it's already correctly declared.
64497         * lib/string.in.h (stpncpy): Undefine before redefining.
64498         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
64500 2010-08-14  Bruno Haible  <bruno@clisp.org>
64502         Rename module 'memxfrm' to 'amemxfrm'.
64503         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
64504         (amemxfrm): Renamed from memxfrm.
64505         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
64506         (amemxfrm): Renamed from memxfrm.
64507         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
64508         * NEWS: Mention the change.
64509         * MODULES.html.sh (String handling <string.h>): Update.
64510         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
64511         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
64512         * lib/unicase/u16-casexfrm.c: Likewise.
64513         * lib/unicase/u32-casexfrm.c: Likewise.
64514         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
64515         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
64516         * lib/uninorm/u16-normxfrm.c: Likewise.
64517         * lib/uninorm/u32-normxfrm.c: Likewise.
64518         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
64519         memxfrm.
64520         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
64521         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
64522         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
64523         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
64524         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
64525         Suggested by Paul Eggert.
64527 2010-08-14  Bruno Haible  <bruno@clisp.org>
64529         Tests for module 'astrxfrm'.
64530         * modules/astrxfrm-tests: New file.
64531         * tests/test-astrxfrm.c: New file.
64533         New module 'astrxfrm'.
64534         * lib/astrxfrm.h: New file.
64535         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
64536         * modules/astrxfrm: New file.
64538 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
64540         regex: Tweak doc.
64541         * doc/regex.texi (Overview): Don't mention regex.c.
64542         (GNU Regular Expression Compiling): Likewise.
64543         (Match-end-of-line Operator): Mention 'not_eol'.
64545 2010-08-14  Brian Gough  <bjg@gnu.org>
64546             Bruno Haible  <bruno@clisp.org>
64548         git-merge-changelog: add doc relating to use with bzr and hg.
64549         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
64551 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
64553         pthread: fix pthread.h creation for srcdir != builddir
64554         * modules/pthread (Makefile.am): Fix the rule to work also in a
64555         non-srcdir build.
64557 2010-08-13  Karl Berry  <karl@gnu.org>
64559         * doc/regex.texi (Predefined Syntaxes): @smallexample.
64560         * doc/posix-*/*: force line break before @url of POSIX
64561         specifications.
64562         Suggested by Werner Lemberg.
64564 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64566         strtod: fix const diagnostic
64567         * lib/strtod.c (strtod): Don't assign const char * to char *,
64568         as this elicits a warning from GCC when warnings are enabled.
64570 2010-08-10  Pádraig Brady  <P@draigbrady.com>
64571         and Eric Blake  <eblake@redhat.com>
64573         copy-acl: ignore ENOTSUP on HP-UX
64574         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
64575         so that it is available for HP-UX.
64576         * lib/copy-acl.c (qcopy_acl): Use it.
64577         Reported by Patrick M. Callahan.
64579 2010-08-10  Eric Blake  <eblake@redhat.com>
64581         open, chown: relax license
64582         * modules/open (License): Change to LGPLv2+, with consent by all
64583         authors, for use in augeas.
64584         * modules/chown (License): Likewise.
64585         * modules/lchown (Likewise): Likewise.
64586         Requested by Adam Stokes.
64588 2010-08-09  Karl Berry  <karl@gnu.org>
64590         * build-aux/ar-lib: new file, import from Automake.
64591         * config/srclist.txt: autocheck for updates.
64593 2010-08-09  Eric Blake  <eblake@redhat.com>
64595         readlinkat: adjust client modules
64596         * modules/areadlinkat (Depends-on): Use readlinkat, not
64597         symlinkat.
64598         * modules/areadlinkat-with-size (Depends-on): Likewise.
64600         mknod: be more vocal about danger of running tests as root
64601         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
64602         root, since that is just asking for problems.
64603         Suggested by Bruno Haible, based on a report by Rainer Tammer.
64605         readlinkat: split into its own module
64606         * modules/symlinkat: Split readlinkat...
64607         * modules/readlinkat: ...into separate module.
64608         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
64609         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
64610         * lib/symlinkat.c (readlinkat): Move...
64611         * lib/readlinkat.c: ...into new file.
64612         * modules/symlinkat-tests: Split readlinkat test...
64613         * modules/readlinkat-tests: ...into separate module.
64614         * tests/test-symlinkat.c: Split...
64615         * tests/test-readlinkat.c: ...into new file.
64616         * NEWS: Document the split.
64617         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64618         * lib/unistd.in.h (readlinkat): Likewise.
64619         Suggested by Bruno Haible.
64621 2010-08-08  Bruno Haible  <bruno@clisp.org>
64623         memxfrm: Speed up.
64624         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
64625         that usually only one call to strxfrm is necessary for each string
64626         part.
64627         Reported by Paul Eggert <eggert@cs.ucla.edu>.
64629 2010-08-07  Karl Berry  <karl@gnu.org>
64631         * doc/posix-headers/limits.texi,
64632         * doc/posix-functions/malloc.texi,
64633         * doc/posix-functions/strsignal.texi: missing @item.
64634         * doc/ld-version-script.texi: spurious leading i.
64635         * doc/regex.texi (Interval Operators): no commas inside @var.
64637 2010-08-01  Bruno Haible  <bruno@clisp.org>
64639         Integrate the regex documentation.
64640         * doc/gnulib.texi: Define 'cn' index.
64641         (Regular expressions): New a chapter that includes regex.texi and
64642         regexprops-generic.texi.
64643         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
64644         syntax.
64646         Whitespace cleanup.
64647         * doc/regex.texi: Remove trailing spaces.
64649         Add regex documentation.
64650         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
64651         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
64652         Written by Kathy A. Hargreaves and Karl Berry.
64654 2010-08-01  Bruno Haible  <bruno@clisp.org>
64656         link: Update documentation.
64657         * doc/posix-functions/link.texi: Update regarding Solaris.
64659 2010-07-31  Bruno Haible  <bruno@clisp.org>
64661         Update modules list.
64662         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
64663         (String handling <string.h>): Add memcmp2, memxfrm.
64664         (Container data structures): Add xlist, xsublist, xoset.
64665         (Core language properties): Add alignof, unused-parameter.
64666         (Process control, Numeric conversion functions <stdlib.h>): Renamed
64667         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
64668         (Unibyte characters <ctype.h>): New section.
64669         (String handling <string.h>): New section.
64670         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
64671         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
64672         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
64673         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
64674         tan, tanh, tanl, y0, y1, yn.
64675         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
64676         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
64677         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
64678         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
64679         unlockpt, vdprintf, vdprintf-posix.
64680         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
64681         (File system functions): Add concat-filename, sys_file, sys_ioctl,
64682         xconcat-filename.
64683         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
64684         getdtablesize, pipe2, pipe2-safer.
64685         (Security): New section.
64686         (Networking functions): Add accept4.
64687         (Signal handling): Add sigpipe.
64688         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
64689         mbmemcasecoll.
64690         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
64691         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
64692         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
64693         pipe-filter-ii.
64694         (Misc): Add argp-version-etc, login_tty, parse-duration.
64696 2010-07-31  Bruno Haible  <bruno@clisp.org>
64698         Improve doc in MODULES.html.
64699         * modules/linkat (Description): Add the word "function".
64700         * modules/mkfifo (Description): Likewise.
64701         * modules/mknod (Description): Likewise.
64702         * modules/remove (Description): Likewise.
64703         * modules/renameat (Description): Likewise.
64704         * modules/stat (Description): Likewise.
64705         * modules/symlink (Description): Likewise.
64706         * modules/unlink (Description): Likewise.
64708 2010-07-31  Bruno Haible  <bruno@clisp.org>
64710         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
64711         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
64712         option --enable/disable-c++ instead of --enable/disable-cxx.
64713         * NEWS: Mention the change.
64715 2010-07-31  Bruno Haible  <bruno@clisp.org>
64717         readlink, areadlink: Relax test a bit.
64718         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
64719         alternative to ENOTDIR.
64720         * tests/test-areadlink.h (test_areadlink): Likewise.
64721         Reported by Rainer Tammer.
64723 2010-07-31  Bruno Haible  <bruno@clisp.org>
64725         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
64726         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
64727         character, perform the search using U_STRCHR.
64728         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
64729         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
64730         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
64731         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
64732         Suggested by Paolo Bonzini.
64734 2010-07-31  Bruno Haible  <bruno@clisp.org>
64736         unistr/u*-strstr: Fix dependencies.
64737         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
64738         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
64739         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
64741 2010-07-31  Bruno Haible  <bruno@clisp.org>
64743         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
64744         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
64745         the beginning of the loop.
64746         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
64747         cases in 'switch' statement.
64749         unistr/u8-strchr: Fix several bugs.
64750         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
64751         the string. When not found, return NULL, not a pointer near the end.
64753         More tests for unistr/u8-strchr.
64754         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
64755         that the function does not read past the first occurrence of the byte
64756         being searched.
64757         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
64758         * tests/unistr/test-u16-strchr.c (main): New function.
64759         * tests/unistr/test-u32-strchr.c (main): New function.
64761 2010-07-31  Bruno Haible  <bruno@clisp.org>
64763         posix-modules: Ignore backup files of documentation files.
64764         * posix-modules: grep only through files named *.texi.
64766 2010-07-31  Bruno Haible  <bruno@clisp.org>
64768         symlinkat: Fix documentation.
64769         * doc/posix-functions/readlinkat.texi: Fix module name.
64771 2010-07-31  Bruno Haible  <bruno@clisp.org>
64773         fchownat: Replace also when chown has the trailing slash bug.
64774         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
64775         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
64776         introduced on 2010-04-10.
64777         Reported by Rainer Tammer.
64779 2010-07-31  Bruno Haible  <bruno@clisp.org>
64781         linkat: Work around AIX 7.1 bug.
64782         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
64783         whether linkat handles trailing slash correctly. If not, replace linkat
64784         and define LINKAT_TRAILING_SLASH_BUG.
64785         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
64786         check whether (fd1,file1) points to a directory if file1 or file2 ends
64787         in a slash. Code taken from lib/link.c.
64788         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
64789         Reported by Rainer Tammer.
64791 2010-07-31  Bruno Haible  <bruno@clisp.org>
64793         Correctly determine whether pow is available in libc on AIX 7 with xlc.
64794         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
64795         This disables an xlc optimization that was causing wrong test results.
64796         Reported by Rainer Tammer.
64798 2010-07-31  Bruno Haible  <bruno@clisp.org>
64800         iconv: Work around AIX 6.1..7.1 bug.
64801         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
64802         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
64803         cross-compiling, guess no on all versions of AIX.
64804         Reported by Rainer Tammer.
64806 2010-07-31  Bruno Haible  <bruno@clisp.org>
64808         readlink: Relax test a bit.
64809         * tests/test-readlink.h (test_readlink): Allow different errno value
64810         when readlink is called with a file name that ends in / and refers to
64811         a file.
64812         Suggested by Eric Blake.
64813         Reported by Rainer Tammer.
64815 2010-07-31  Bruno Haible  <bruno@clisp.org>
64817         copysign: Does not require -lm on glibc systems.
64818         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
64819         gl_COMMON_DOUBLE_MATHFUNC.
64820         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
64822 2010-07-31  Bruno Haible  <bruno@clisp.org>
64824         duplocale: Work around AIX 7.1 bug.
64825         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
64826         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
64827         * lib/duplocale.c (rpl_duplocale): Update comment.
64828         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
64829         Reported by Rainer Tammer.
64831 2010-07-30  Bruno Haible  <bruno@clisp.org>
64833         dirfd: Avoid link error on AIX 7.1.
64834         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
64835         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
64836         exist, set REPLACE_DIRFD.
64837         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
64838         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
64839         * doc/posix-functions/dirfd.texi: Update.
64840         Reported by Rainer Tammer.
64842 2010-07-30  Eric Blake  <eblake@redhat.com>
64844         strtod: next round of AIX fixes
64845         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
64846         exponent.
64847         * tests/test-strtod.c (main): Enhance tests.
64848         * doc/posix-functions/strtod.texi (strtod): Document next bug.
64849         Reported by Rainer Tammer.
64851         futimens: fix configure check
64852         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
64853         Reported by Bruno Haible.
64855 2010-07-30  Bruno Haible  <bruno@clisp.org>
64857         getline: Update regarding AIX.
64858         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
64859         Reported by Rainer Tammer.
64861 2010-07-30  Bruno Haible  <bruno@clisp.org>
64863         wcwidth: Drop replacement on AIX 7.
64864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
64865         AIX 7.
64866         Reported by Rainer Tammer.
64868 2010-07-30  Bruno Haible  <bruno@clisp.org>
64870         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
64871         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
64872         a 'char *'.
64873         Reported by Rainer Tammer.
64875 2010-07-30  Bruno Haible  <bruno@clisp.org>
64877         unlink: Update regarding AIX.
64878         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
64879         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
64880         Reported by Rainer Tammer.
64882 2010-07-30  Bruno Haible  <bruno@clisp.org>
64884         symlink: Update regarding AIX.
64885         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
64886         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
64887         Reported by Rainer Tammer.
64889 2010-07-30  Bruno Haible  <bruno@clisp.org>
64891         strndup: Update regarding AIX.
64892         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
64893         AIX 7.
64894         Reported by Rainer Tammer.
64896 2010-07-30  Bruno Haible  <bruno@clisp.org>
64898         stat: Update regarding AIX.
64899         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
64900         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
64901         Reported by Rainer Tammer.
64903 2010-07-30  Bruno Haible  <bruno@clisp.org>
64905         truncl: Fix autoconf test.
64906         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
64907         whether truncl works.
64908         Reported by Rainer Tammer.
64910 2010-07-30  Bruno Haible  <bruno@clisp.org>
64912         round: Update regarding AIX.
64913         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
64914         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
64915         Reported by Rainer Tammer.
64917 2010-07-30  Bruno Haible  <bruno@clisp.org>
64919         rename: Update regarding AIX.
64920         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
64921         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
64922         Reported by Rainer Tammer.
64924 2010-07-30  Bruno Haible  <bruno@clisp.org>
64926         printf.m4: Update regarding AIX.
64927         * m4/printf.m4: Update comments regarding AIX.
64928         Reported by Rainer Tammer.
64930 2010-07-30  Bruno Haible  <bruno@clisp.org>
64932         iconv: Update regarding AIX.
64933         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
64934         AIX 7.
64935         Reported by Rainer Tammer.
64937 2010-07-30  Bruno Haible  <bruno@clisp.org>
64939         getopt: Update regarding AIX.
64940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
64941         no on AIX.
64942         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
64943         Reported by Rainer Tammer.
64945 2010-07-30  Bruno Haible  <bruno@clisp.org>
64947         ldexpl; Update regarding AIX.
64948         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
64949         on AIX 7.
64950         Reported by Rainer Tammer.
64952 2010-07-30  Bruno Haible  <bruno@clisp.org>
64954         frexpl: Update regarding AIX.
64955         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
64956         on AIX 7.
64957         Reported by Rainer Tammer.
64959 2010-07-30  Bruno Haible  <bruno@clisp.org>
64961         open, fopen: Update regarding AIX.
64962         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
64963         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
64964         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
64965         * doc/posix-functions/fopen.texi: Likewise.
64966         Reported by Rainer Tammer.
64968 2010-07-30  Bruno Haible  <bruno@clisp.org>
64970         chown: Update doc regarding AIX.
64971         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
64972         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
64973         Reported by Rainer Tammer.
64975 2010-07-30  Eric Blake  <eblake@redhat.com>
64977         strtod: fix bug in replacement function on AIX
64978         * lib/strtod.c (strtod): Special case broken "0x" parse in
64979         underlying strtod.
64980         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
64981         * doc/posix-functions/strtod.texi (strtod): Likewise.
64982         Reported by Rainer Tammer.
64984 2010-07-30  Bruno Haible  <bruno@clisp.org>
64986         mbrlen: Fix cross-compilation guess for AIX.
64987         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
64988         guess. Leftover from 2008-12-22.
64990 2010-07-30  Bruno Haible  <bruno@clisp.org>
64992         mbrtowc: Fix cross-compilation guess for AIX.
64993         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
64994         guess. Leftover from 2008-12-21.
64996 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
64998         init.sh: work around trap limitation of some shells
64999         * tests/init.sh (setup_): Move exit trap outside of shell function.
65001 2010-07-29  Eric Blake  <eblake@redhat.com>
65003         strtod: aid debugging
65004         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
65005         understanding why strtod is rejected.
65007 2010-07-28  Bruno Haible  <bruno@clisp.org>
65009         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
65010         * lib/unistr/u8-chr.c: Include <string.h>.
65011         * tests/unistr/test-u8-chr.c: Likewise.
65012         * tests/unistr/test-u16-chr.c: Likewise.
65013         * tests/unistr/test-u32-chr.c: Likewise.
65014         * tests/unistr/test-u8-strchr.c: Likewise.
65015         * tests/unistr/test-u16-strchr.c: Likewise.
65016         * tests/unistr/test-u32-strchr.c: Likewise.
65017         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
65018         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
65019         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
65020         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
65022 2010-07-28  Bruno Haible  <bruno@clisp.org>
65024         Use spaces for indentation, not tabs.
65025         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
65027 2010-07-27  Bruno Haible  <bruno@clisp.org>
65029         mbspcasecmp: Fix function specification.
65030         * lib/string.in.h (mbspcasecmp): Fix specification comment.
65031         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
65032         Reported by Eric Blake <eblake@redhat.com>.
65034 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
65036         timespec: use cast and not conditional, as truncation isn't possible
65037         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
65038         instead of a conditional.  Comment about the situation in more detail.
65039         This undoes most of the 2009-10-29 patch.
65041 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
65043         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
65044         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
65045         * lib/unistr/u8-strchr.c: Likewise.
65046         * modules/unistr/u8-chr: Depend on memchr.
65048         unistr/u*-strchr: add tests
65049         * modules/unistr/u8-strchr-tests: New file.
65050         * modules/unistr/u16-strchr-tests: New file.
65051         * modules/unistr/u32-strchr-tests: New file.
65052         * tests/unistr/test-strchr.h: New file.
65053         * tests/unistr/test-u8-strchr.c: New file.
65054         * tests/unistr/test-u16-strchr.c: New file.
65055         * tests/unistr/test-u32-strchr.c: New file.
65057         unistr/u*-chr: test multibyte sequences more
65058         * tests/unistr/test-chr.h: Do complete testing of the characters in the
65059         test vector.
65060         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
65061         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
65062         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
65064         unistr/u*-chr: test multibyte sequences
65065         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
65067         unistr/u*-chr: prepare for multibyte tests
65068         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
65069         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
65070         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
65071         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
65072         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
65073         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
65075 2010-07-18  Bruno Haible  <bruno@clisp.org>
65077         unistr/u8-strchr: Optimize non-ASCII argument case.
65078         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
65079         because the first byte often matches anyway.
65080         Reported by Pádraig Brady <P@draigbrady.com>.
65082 2010-07-15  Karl Berry  <karl@gnu.org>
65084         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
65086 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
65088         getcwd: on Solaris, work better if ancestors are inaccessible
65089         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
65090         buffer and size, try again with a large buffer.  This works better
65091         on Solaris, since its getcwd succeeds even if the path to the root
65092         is inaccessible, and this is helpful in common cases such as .zfs
65093         hidden directories.  Problem reported by J Chapman Flack in
65094         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
65095         Use system getcwd if it's declared, not merely if it's partly
65096         working; use the partly-working test only to avoid needless effort
65097         if the system getcwd fails.
65098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
65099         comment that was already obsolete and is now even more obsolete.
65100         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
65101         now might call strdup.
65103 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
65105         pthread: Add enough so that coreutils/src/sort.c compiles.
65106         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
65107         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
65108         gnulib. Include <sched.h> and <time.h>, as per POSIX.
65109         Include <sys/types.h>, in case it defines pthread_t.
65110         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
65111         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
65112         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
65113         (pthread_rwlockattr_t, pthread_spinlock_t):
65114         New typedefs, if HAVE_PTHREAD_T is not defined.
65115         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
65116         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
65117         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
65118         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
65119         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
65120         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
65121         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
65122         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
65123         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
65124         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
65125         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
65126         New macros.
65127         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
65128         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
65129         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
65130         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
65131         (pthread_spin_unlock): New dummy functions.
65132         (pthread_create): Return EAGAIN; don't set errno.
65133         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
65134         require AC_C_INLINE.
65135         * modules/pthread (Depends-on): Add sched, time.
65136         (pthread.h): Use AM_V_GEN.
65138 2010-07-13  Bruno Haible  <bruno@clisp.org>
65140         striconveh: Don't malloc memory if the result buffer is sufficient.
65141         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
65142         buffer if its size is sufficient.
65143         Reported by Ludovic Courtès <ludo@gnu.org>.
65145 2010-07-13  Bruno Haible  <bruno@clisp.org>
65147         strtod: Add safety check.
65148         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
65150 2010-07-12  Bruno Haible  <bruno@clisp.org>
65152         Unify tests that set gl_cv_func_ldexpl_no_libm.
65153         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
65154         gl_FUNC_LDEXPL.
65155         (gl_FUNC_LDEXPL): Invoke it.
65156         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65158 2010-07-12  Bruno Haible  <bruno@clisp.org>
65160         Unify tests that set gl_cv_func_ldexp_no_libm.
65161         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
65162         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
65163         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
65164         (configure.ac): Simply invoke gl_FUNC_LDEXP.
65165         * modules/strtod (Files): Add m4/ldexp.m4.
65167 2010-07-12  Bruno Haible  <bruno@clisp.org>
65169         Unify tests that set gl_cv_func_frexpl_no_libm.
65170         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
65171         gl_FUNC_FREXPL_NO_LIBM.
65172         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
65173         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65175 2010-07-12  Bruno Haible  <bruno@clisp.org>
65177         Unify tests that set gl_cv_func_frexp_no_libm.
65178         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
65179         gl_FUNC_FREXP_NO_LIBM.
65180         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
65181         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65183 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65185         memcoll: clarify sizes versus lengths, document better, and tweak perf
65186         * lib/memcoll.c (strcoll_loop, memcoll0):
65187         Improve quality of descriptive comments.  Name variables
65188         consistently as to whether they are lengths (which do not include
65189         terminating null) versus sizes (which do).
65190         * lib/xmemcoll.c (xmemcoll0): Likewise.
65191         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
65192         returned when s1size == 0; this is easier to compile and saves
65193         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
65195 2010-07-12  Bruno Haible  <bruno@clisp.org>
65197         Tests for module '_Exit'.
65198         * modules/_Exit-tests: New file.
65199         * tests/test-_Exit.sh: New file.
65200         * tests/test-_Exit.c: New file.
65202         New module '_Exit'.
65203         * lib/stdlib.in.h (__attribute__): New macro.
65204         (_Exit): New declaration.
65205         * lib/_Exit.c: New file.
65206         * m4/_Exit.m4: New file.
65207         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
65208         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
65209         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
65210         * modules/_Exit: New file.
65211         * tests/test-stdlib-c++.cc (_Exit): Check signature.
65212         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
65214 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65216         strtod: make it more-accurate typically, and don't require libm
65217         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
65218         Include limits.h.  Don't include string.h.
65219         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
65220         (locale_isspace): New function, so that no casts are needed to
65221         check whether *s is a space.
65222         (ldexp): Provide an unused dummy if not available.
65223         (scale_radix_exp, parse_number, underlying_strtod): New functions.
65224         (strtod): Use them.  This implementation prefers to use the
65225         underlying strtod if available, falling back on our own code
65226         only to fix known bugs.  This is more likely to produce an
65227         accurate result.  Also, it avoids the use of libm functions.
65228         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
65229         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
65230         was absent, but it caused a test failure with coreutils.
65231         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
65232         with libm.
65233         * modules/strtod (Makefile.am, Link): libm is no longer needed.
65234         * modules/strtod-tests (Makefile.am): Likewise.
65236 2010-07-11  Pádraig Brady  <P@draigBrady.com>
65237             Bruno Haible  <bruno@clisp.org>
65239         unistr/u8-strchr: Optimize ASCII argument case.
65240         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
65242 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65244         (x)memcoll: minor tweaks
65245         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
65246         is after the type that it qualifies.
65247         (memcoll0): Likewise.
65248         * lib/memcoll.h (memcoll0): Likewise.
65249         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
65250         * lib/xmemcoll.h (xmemcoll0): Likewise.
65251         * lib/memcoll.c (memcoll0): Correct the comment.  This function
65252         differs from memcoll in that the NUL byte is part of the argument.
65253         Omit the abort-checks, as performance is a real issue here.  Plus,
65254         the checks were wrong anyway (an off-by-one error).  Omit local
65255         variable 'diff', as it's a bit clearer that way.
65256         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
65257         no longer needed.
65259 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
65261         (x)memcoll: speedup when input is known to be NUL delimited
65262         * lib/memcoll.c: Include stdlib.
65263         (memcoll0): New function.
65264         (strcoll_loop): New function, refactored for use in both memcoll
65265         and memcoll0.
65266         * lib/memcoll.h (memcoll0): Add prototype.
65267         * lib/xmemcoll.c (xmemcoll0): New function.
65268         (collate_error): New function, refactored for use in both xmemcoll
65269         and xmemcoll0.
65270         * lib/xmemcoll.h (xmemcoll0): Add prototype.
65271         * m4/memcoll.m4: add inline invocation.
65273 2010-07-06  Pádraig Brady  <P@draigBrady.com>
65275         * build-aux/bootstrap: Remove any local translations
65276         from the translation project synchronization directory,
65277         so that local only translations are not distributed.
65279 2010-07-04  Bruno Haible  <bruno@clisp.org>
65281         fsusage: Clarify which code applies to which platforms.
65282         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
65283         platform.
65284         * lib/fsusage.c (get_fs_usage): Likewise.
65286 2010-07-04  Bruno Haible  <bruno@clisp.org>
65288         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
65289         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
65290         Reported by Martin Lambers <marlam@marlam.de>.
65292 2010-07-04  Jim Meyering  <meyering@redhat.com>
65294         hash: once again explicitly disallow insertion of NULL
65295         * lib/hash.c (hash_insert0): Reinstate just-removed test:
65296         inserting a NULL pointer cannot work with these functions.
65297         Add a comment with details.
65298         This reverts part of the 2010-07-01 commit, 5bef1a35
65299         "hash: extend module to deal with non-pointer keys".
65301 2010-07-01  Bruno Haible  <bruno@clisp.org>
65303         stdbool: Update doc.
65304         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
65305         Info from Christian Weisgerber <naddy@mips.inka.de>.
65307 2010-07-01  Jim Meyering  <meyering@redhat.com>
65309         hash: extend module to deal with non-pointer keys
65310         * lib/hash.c (hash_insert0): New interface, much like hash_insert
65311         but that allows insertion of non-pointer entries.
65312         Do not disallow an ENTRY value of NULL.
65313         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
65314         * lib/hash.h (hash_insert0): Declare.
65316 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
65318         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
65319         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
65320         not present (i.e. with autoconf 2.59 and when using gettextize, not
65321         gnulib), require AC_GNU_SOURCE instead.
65323 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
65325         idpriv-drop: Fix tests.
65326         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
65327         not to the test-idpriv-droptemp program.
65329 2010-06-29  Bruno Haible  <bruno@clisp.org>
65331         string: Fix syntax error with g++ 2.96.
65332         * lib/string.in.h (__pure__): Remove definition.
65333         (_GL_ATTRIBUTE_PURE): New macro.
65334         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
65335         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
65336         Reported by Christian Weisgerber <naddy@mips.inka.de>.
65338 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
65340         unitypes: Fix bug introduced on 2010-05-18.
65341         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
65343 2010-06-22  Eric Blake  <eblake@redhat.com>
65345         memmem: slight optimization
65346         * lib/str-two-way.h (critical_factorization): Update comments.
65347         Reduce work during factorization phase.
65348         Reported by Carlos Bueno <carlos@bueno.org>.
65350 2010-06-21  Bruno Haible  <bruno@clisp.org>
65352         Fix HAVE_CALLOC_POSIX misnomer.
65353         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
65354         !HAVE_CALLOC_POSIX.
65355         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
65356         HAVE_CALLOC_POSIX.
65357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
65358         instead of HAVE_CALLOC_POSIX.
65359         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
65360         HAVE_CALLOC_POSIX.
65362         Use modern idiom for calloc() replacement.
65363         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
65364         AC_FUNC_CALLOC.
65365         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
65366         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
65367         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65368         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
65369         (gl_REPLACE_CALLOC): New macro.
65371 2010-06-21  Bruno Haible  <bruno@clisp.org>
65373         Fix HAVE_REALLOC_POSIX misnomer.
65374         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
65375         !HAVE_REALLOC_POSIX.
65376         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
65377         HAVE_REALLOC_POSIX.
65378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
65379         instead of HAVE_REALLOC_POSIX.
65380         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
65381         HAVE_REALLOC_POSIX.
65383         Use modern idiom for realloc() replacement.
65384         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
65385         AC_FUNC_REALLOC.
65386         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
65387         Autoconf's AC_FUNC_REALLOC.
65388         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65389         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
65390         (gl_REPLACE_REALLOC): New macro.
65391         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65393 2010-06-21  Bruno Haible  <bruno@clisp.org>
65395         Fix HAVE_MALLOC_POSIX misnomer.
65396         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
65397         !HAVE_MALLOC_POSIX.
65398         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
65399         HAVE_MALLOC_POSIX.
65400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
65401         instead of HAVE_MALLOC_POSIX.
65402         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
65403         HAVE_MALLOC_POSIX.
65405         Use modern idiom for malloc() replacement.
65406         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
65407         AC_FUNC_MALLOC.
65408         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
65409         Autoconf's AC_FUNC_MALLOC.
65410         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65411         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
65412         (gl_REPLACE_MALLOC): New macro.
65413         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65415 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
65417         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
65418         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
65419         This macro takes 3 arguments, not 4.
65421 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
65423         ipv6: fix detection under mingw
65424         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
65425         in6_addr.
65427 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
65429         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
65430         that strtod() works when cross-compiling to a glibc version known
65431         to work.
65433 2010-06-15  Bruno Haible  <bruno@clisp.org>
65435         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
65437 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
65439         select: Correct timeout.
65440         * lib/select.c (rpl_select): Compute wait_timeout correctly.
65442 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65444         git-version-gen: init shell var to avoid env var influence
65445         * build-aux/git-version-gen (v): Init shell var to empty.
65447 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
65449         priv-set: Don't assume that priv.h exists merely because getppriv does.
65450         See Jan Andersen's bug report about AIX 5L in
65451         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
65452         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
65453         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
65454         * lib/priv-set.h: Likewise.
65455         * tests/test-priv-set.c: Likewise.
65457 2010-06-13  Bruno Haible  <bruno@clisp.org>
65459         relocatable: Make it easier to test whether to install wrappers.
65460         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
65461         RELOCATABLE_VIA_WRAPPER.
65463 2010-06-13  Bruno Haible  <bruno@clisp.org>
65465         gnulib-tool: Display specified modules and dependencies differently.
65466         * gnulib-tool (func_show_module_list): New function.
65467         (func_import, func_create_testdir): Invoke it.
65468         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
65470 2010-06-13  Bruno Haible  <bruno@clisp.org>
65472         gnulib-tool: Align code of func_import and func_create_testdir.
65473         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
65474         specified_modules.
65476 2010-06-12  Jim Meyering  <meyering@redhat.com>
65478         test-inttostr: avoid spurious failure on Solaris 9
65479         * tests/test-inttostr.c (main): Skip the test when snprintf fails
65480         to accept "%ju".  Reported by Bruno Haible.
65482 2010-06-11  Jim Meyering  <meyering@redhat.com>
65484         test-sys_socket: mark variables as used more readably
65485         * tests/test-sys_socket.c (main): Mark otherwise unused variables
65486         as "used" explicitly via (void) statement casts.  This is more
65487         readable than using them in an artificial return expression.
65488         Suggestion from Bruno Haible.
65490 2010-06-11  Bruno Haible  <bruno@clisp.org>
65492         Avoid some more warnings from "gcc -Wwrite-strings".
65493         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
65494         to 'const char *'.
65495         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
65496         * tests/test-c-strcasestr.c (main): Likewise.
65497         * tests/test-mbscasestr1.c (main): Likewise.
65498         * tests/test-mbscasestr2.c (main): Likewise.
65499         * tests/test-memmem.c (main): Likewise.
65500         * tests/test-strstr.c (main): Likewise.
65501         * tests/test-strcasestr.c (main): Likewise.
65503 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65505         init.sh: change framework_failure_ to fail with status 99, not 1
65506         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
65507         automake's parallel-tests rule that this is an unexpected failure,
65508         even if the test is listed in XFAIL_TESTS.
65510 2010-06-11  Jim Meyering  <meyering@redhat.com>
65512         test-inttostr: avoid warnings about 4-6KB literal strings
65513         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
65514         Include "macros.h", for its definition of ASSERT.
65515         (CK): s/assert/ASSERT/
65516         * modules/inttostr-tests (Files): Add macros.h.
65518         init.sh: don't use $ME_ or skip_ before they are defined
65519         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
65520         their first uses.  Also hoist their companions: warn_, fail_,
65521         framework_failure_, $stderr_fileno.  Prompted by a patch from
65522         Stefano Lattarini.
65524         test-sys_socket: avoid set-but-not-used warnings from gcc
65525         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
65526         avoid warning about set-but-not-used variables.
65528         test-xvasprintf: avoid 'const' discard warnings
65529         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
65530         "const" when assigning from literal strings.
65531         (test_xasprintf): Add "void" in function argument list to placate
65532         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
65534         tests: avoid compilation warnings in argmatch and exclude tests...
65535         in packages that define ARGMATCH_DIE_DECL, like coreutils.
65536         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
65537         Since it always exits, declare with the "noreturn" attribute.
65538         * tests/test-argmatch.c: Likewise.
65540         tests: avoid 'const' discard warnings in mbsstr tests
65541         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
65542         * tests/test-mbsstr2.c (main): Likewise.
65544         test-verify: avoid warning from gcc's -Wmissing-declarations
65545         * tests/test-verify.c (function): Declare to be static.
65547         test-inttostr.c: include <string.h> for use of strcmp
65548         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
65550         test-linkat: avoid failed assertion on "other" architectures
65551         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
65552         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
65553         sparc: https://bugs.launchpad.net/bugs/591968
65555 2010-06-11  Jim Meyering  <meyering@redhat.com>
65557         printf.m4: avoid autoconf's "Expanded Before Required" warning
65558         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
65559         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
65560         autoconf warning.
65562 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
65564         Replacement header templates are now named with ".in", not "_".
65565         * doc/gnulib-intro.texi: Correct.
65567 2010-06-10  Jim Meyering  <meyering@redhat.com>
65569         inttostr-tests: depend on snprintf, not snprintf-posix
65570         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
65571         snprintf-posix, to avoid this aclocal failure:
65572           missing file gnulib-tests/vasnprintf.c
65573           configure.ac:45: error: expected source file, required through \
65574           AC_LIBSOURCES, not found
65576 2010-06-10  Jim Meyering  <meyering@redhat.com>
65578         inttostr: add a new function, inttostr, and tests
65579         The namesake function was not available.  The existence of the
65580         template file, inttostr.c makes its addition nontrivial.
65581         * lib/anytostr.c: Rename from inttostr.c.
65582         (anytostr): Rename from inttostr.
65583         * lib/inttostr.c: New file.
65584         * modules/inttostr (Files): Add anytostr.c.
65585         (Makefile.am): Set lib_SOURCES instead of ...
65586         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
65587         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
65588         * lib/offtostr.c: Likewise.
65589         * lib/uinttostr.c: Likewise.
65590         * lib/umaxtostr.c: Likewise.
65591         * modules/inttostr-tests: New file.
65592         * tests/test-inttostr.c: New file.  Test these functions.
65594 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
65595             Bruno Haible  <bruno@clisp.org>
65597         Add "Extending Gnulib" chapter to manual.
65598         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
65599         chapter.
65600         (Extending Gnulib): New chapter.
65601         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
65602         chapter.
65604 2010-06-09  Bruno Haible  <bruno@clisp.org>
65606         Avoid relocwrapper link errors due to gnulib replacement functions.
65607         * lib/areadlink.c: Use the system's malloc, realloc functions.
65608         (areadlink): Set errno to ENOMEM explicitly.
65609         * modules/areadlink (Depends-on): Remove malloc-posix.
65610         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65612 2010-06-09  Bruno Haible  <bruno@clisp.org>
65614         Avoid relocwrapper link errors due to gnulib replacement functions.
65615         * lib/canonicalize-lgpl.c: Use the system's malloc function.
65616         * lib/malloca.c: Likewise.
65617         * lib/relocatable.c: Likewise.
65618         * lib/progreloc.c: Use the system's malloc, sprintf functions.
65619         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
65620         * lib/setenv.c: Use the system's malloc, realloc functions.
65621         * lib/strerror.c: Use the system's sprintf function.
65622         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65624 2010-06-04  Bruno Haible  <bruno@clisp.org>
65626         Prefer documented low-level autoconf macro names.
65627         * m4/lib-link.m4: Use m4_translit instead of translit.
65628         * m4/environ.m4: Likewise.
65629         * m4/mathfunc.m4: Likewise.
65630         * m4/onceonly.m4: Likewise.
65631         * m4/stdint.m4: Likewise.
65632         Suggested by Eric Blake.
65634 2010-06-04  Martin Lambers  <marlam@marlam.de>
65635             Bruno Haible  <bruno@clisp.org>
65637         havelib: Allow library names with '+' characters.
65638         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65639         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
65641 2010-06-09  Bruno Haible  <bruno@clisp.org>
65643         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
65644         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
65645         realloc failed.
65647 2010-06-08  Peter Simons  <simons@cryp.to>
65649         maint.mk: make the news-check rule more configurable
65650         * top/maint.mk (news-check-lines-spec): New variable.
65651         (news-check): Use "sed -n 1,10p" in place of "head".
65653 2010-06-07  Jim Meyering  <meyering@redhat.com>
65655         do-release-commit-and-tag: fix typo in --help
65656         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
65658         regex: avoid new dead-code warning with gcc-4.6.0
65659         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
65660         if-block containing a while-loop.  It's been unused for at least
65661         5 years.
65663 2010-06-05  Bruno Haible  <bruno@clisp.org>
65665         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
65666         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
65668 2010-06-04  Bruno Haible  <bruno@clisp.org>
65670         Update to GNU gettext 0.18.1.
65671         * modules/gettext (configure.ac): Require gettext infrastructure from
65672         version 0.18.1.
65674 2010-06-03  Bruno Haible  <bruno@clisp.org>
65676         Don't use AC_LIBOBJ with file names in subdirectories.
65677         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
65678         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
65679         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
65680         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
65681         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
65682         gl_LIBUNISTRING_LIBSOURCE.
65683         (Makefile.am): Augment lib_SOURCES here, conditionally.
65684         * NEWS: Drop requirement for Automake option 'subdir-objects'.
65686 2010-06-03  Bruno Haible  <bruno@clisp.org>
65688         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
65689         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
65690         expansion does not end with a newline.
65691         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
65692         unnecessary newline.
65694 2010-06-03  Bruno Haible  <bruno@clisp.org>
65696         Reduce dependencies.
65697         * tests/test-quotearg.h: New file, extracted from
65698         tests/test-quotearg.c.
65699         * tests/test-quotearg-simple.c: New file, extracted from
65700         tests/test-quotearg.c.
65701         * tests/test-quotearg.c: Don't include <ctype.h>.
65702         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
65703         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
65704         use_quote_double_quotes, use_quotearg_colon): Moved to
65705         tests/test-quotearg.h.
65706         (results_g, flag_results, custom_quotes, custom_results): Moved
65707         to tests/test-quotearg-simple.c.
65708         (main): Moved the part that does not depend on gettext to
65709         tests/test-quotearg-simple.c. Return 77 if the test cannot be
65710         performed.
65711         * modules/quotearg-simple: New file.
65712         * modules/quotearg-simple-tests: New file.
65713         * modules/quotearg (Depends-on): Add quotearg-simple.
65714         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
65715         (Files): Add tests/test-quotearg.h.
65716         Reported by Paolo Bonzini.
65718 2010-06-03  Bruno Haible  <bruno@clisp.org>
65720         Reduce dependencies.
65721         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
65723 2010-06-03  Bruno Haible  <bruno@clisp.org>
65725         time: Undefine more broken macros.
65726         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
65727         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
65728         Reported by Eric Blake.
65730 2010-06-03  Bruno Haible  <bruno@clisp.org>
65732         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
65733         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
65734         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
65735         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
65736         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
65737         Reported by Ludovic Courtès <ludo@gnu.org>.
65739 2010-06-02  Eric Blake  <eblake@redhat.com>
65741         time: work with mingw + pthreads-win32 library
65742         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
65743         if timespec is defined only in pthread.h.
65744         * modules/time (Makefile.am): Substitute it.
65745         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
65746         <pthread.h>, when needed.
65747         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
65748         from the library.
65750 2010-05-31  Bruno Haible  <bruno@clisp.org>
65752         Avoid expanding two macros in the wrong order.
65753         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
65754         gl_LIBUNISTRING if it is defined.
65755         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
65756         autoconf >= 2.64.
65757         Reported by Ludovic Courtès <ludo@gnu.org>.
65759 2010-05-27  Jim Meyering  <meyering@redhat.com>
65761         maint.mk: also prohibit "#undef" of always-defined symbols
65762         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
65763         Allow more than one space before the symbol name.
65764         (sc_prohibit_always-defined_macros): Use grep's -E, now that
65765         the regexp uses alternation.
65767 2010-05-26  Eric Blake  <eblake@redhat.com>
65769         maint.mk: avoid echo -e
65770         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
65771         Convert all uses of echo -* to printf.
65772         Reported by Matthias Bolte.
65774 2010-05-25  Bruno Haible  <bruno@clisp.org>
65776         Update to GNU gettext 0.18, part 2.
65777         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
65778         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
65780 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65782         Add missing include in test-pwrite.c.
65783         * tests/test-pwrite.c: Include string.h, for strcmp.
65785 2010-05-24  Bruno Haible  <bruno@clisp.org>
65787         * NEWS: Mention requirement for Automake option 'subdir-objects'.
65789 2010-05-24  Bruno Haible  <bruno@clisp.org>
65791         Don't use conversion with transliteration in u{8,16,32}_strcoll.
65792         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
65793         iconveh_error argument.
65794         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
65795         U_STRCONV_TO_LOCALE.
65796         * lib/unistr/u16-strcoll.c: Likewise.
65797         * lib/unistr/u32-strcoll.c: Likewise.
65798         * modules/unistr/u8-strcoll (Depends-on): Add
65799         uniconv/u8-strconv-to-enc, localcharset. Remove
65800         uniconv/u8-strconv-to-locale.
65801         (configure.ac): Bump version number.
65802         * modules/unistr/u16-strcoll (Depends-on): Add
65803         uniconv/u16-strconv-to-enc, localcharset. Remove
65804         uniconv/u16-strconv-to-locale.
65805         (configure.ac): Bump version number.
65806         * modules/unistr/u32-strcoll (Depends-on): Add
65807         uniconv/u32-strconv-to-enc, localcharset. Remove
65808         uniconv/u32-strconv-to-locale.
65809         (configure.ac): Bump version number.
65811 2010-05-24  Bruno Haible  <bruno@clisp.org>
65813         Avoid a test failure on NetBSD 5.0.
65814         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
65815         an iconv() bug.
65817 2010-05-24  Bruno Haible  <bruno@clisp.org>
65819         Adjust #include directive style.
65820         * modules/regex (Includes): Recommend to write <regex.h>.
65822 2010-05-24  Bruno Haible  <bruno@clisp.org>
65824         regex: Don't require alloca.
65825         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
65826         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
65827         only inside if (0).
65829 2010-05-23  Jim Meyering  <meyering@redhat.com>
65831         test-renameat.c: include <sys/stat.h>
65832         * tests/test-renameat.c: Include <sys/stat.h>; required for
65833         definition of S_IS* macros.
65835 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
65837         Update maintainer documentation for 'relocatable-prog' module.
65838         * doc/relocatable-maint.texi: Update.
65839         Comments by Bruno Haible.
65841 2010-05-23  Bruno Haible  <bruno@clisp.org>
65843         git-merge-changelog: Enable --split-merged-entry by default.
65844         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
65845         (usage): Don't mention this option any more.
65846         Reported by Ralf Wildenhues.
65848 2010-05-23  Jim Meyering  <meyering@redhat.com>
65850         test-pwrite: do not leave behind a test file named "out"
65851         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
65852         The trivial-looking use of init.sh is really necessary.
65853         It ensures that the temporary file, "out", is created in
65854         a temporary directory, and removed upon termination.
65855         * tests/test-pwrite.sh: Re-add file.
65856         * modules/pwrite-tests: Reference it.
65858 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65860         Fix output redirection buglet in init.sh.
65861         * tests/init.sh: Fix redirection of stderr.
65863 2010-05-20  Simon Josefsson  <simon@josefsson.org>
65865         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
65867 2010-05-17  Simon Josefsson  <simon@josefsson.org>
65869         * modules/valgrind-tests: New file.
65870         * m4/valgrind-tests.m4: New file.
65871         * doc/valgrind-tests.texi: New file.
65872         * doc/gnulib.texi (Running self-tests under valgrind): New
65873         section.
65875 2010-05-19  Bruno Haible  <bruno@clisp.org>
65877         Clean up dead code in recent commit.
65878         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
65879         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
65880         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
65881         Suggested by Paolo Bonzini.
65883 2010-05-19  Bruno Haible  <bruno@clisp.org>
65885         Avoid valgrind error reports from libunistring.
65886         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
65887         * modules/libunistring (Files): Add it.
65888         * modules/libunistring-optional (Files): Likewise.
65890 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
65891             Bruno Haible  <bruno@clisp.org>
65893         New module 'libunistring-optional'.
65894         * modules/libunistring-optional: New file.
65895         * m4/libunistring-base.m4: New file.
65896         * m4/libunistring-optional.m4: New file.
65897         * lib/unicase.in.h: Renamed from lib/unicase.h.
65898         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
65899         * lib/unictype.in.h: Renamed from lib/unictype.h.
65900         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
65901         * lib/uniname.in.h: Renamed from lib/uniname.h.
65902         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
65903         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
65904         * lib/unistr.in.h: Renamed from lib/unistr.h.
65905         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
65906         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
65907         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
65908         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
65909         gl_LIBUNISTRING. If the library was found, determine the installed
65910         version and set LIBUNISTRING_VERSION.
65911         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
65912         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
65913         handle a configuration option --with-included-libunistring.
65914         * modules/libunistring (Files): Add m4/absolute-header.m4.
65915         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
65916         Add m4/libunistring-base.m4.
65917         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65918         (Makefile.am): Build unicase.h from unicase.in.h.
65919         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
65920         Add m4/libunistring-base.m4.
65921         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65922         (Makefile.am): Build uniconv.h from uniconv.in.h.
65923         * modules/unictype/base (Files): Use unictype.in.h instead of
65924         unictype.h. Add m4/libunistring-base.m4.
65925         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65926         (Makefile.am): Build unictype.h from unictype.in.h.
65927         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
65928         Add m4/libunistring-base.m4.
65929         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65930         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
65931         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
65932         Add m4/libunistring-base.m4.
65933         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65934         (Makefile.am): Build uniname.h from uniname.in.h.
65935         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
65936         Add m4/libunistring-base.m4.
65937         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65938         (Makefile.am): Build uninorm.h from uninorm.in.h.
65939         * modules/unistdio/base (Files): Use unistdio.in.h instead of
65940         unistdio.h. Add m4/libunistring-base.m4.
65941         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65942         (Makefile.am): Build unistdio.h from unistdio.in.h.
65943         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
65944         Add m4/libunistring-base.m4.
65945         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65946         (Makefile.am): Build unistr.h from unistr.in.h.
65947         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
65948         Add m4/libunistring-base.m4.
65949         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65950         (Makefile.am): Build unitypes.h from unitypes.in.h.
65951         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
65952         Add m4/libunistring-base.m4.
65953         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65954         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
65955         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
65956         uniwidth.h. Add m4/libunistring-base.m4.
65957         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
65958         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
65959         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
65960         instead of augmenting lib_SOURCES.
65961         * modules/unicase/empty-suffix-context: Likewise.
65962         * modules/unicase/locale-language: Likewise.
65963         * modules/unicase/tolower: Likewise.
65964         * modules/unicase/totitle: Likewise.
65965         * modules/unicase/toupper: Likewise.
65966         * modules/unicase/u8-casecmp: Likewise.
65967         * modules/unicase/u8-casecoll: Likewise.
65968         * modules/unicase/u8-casefold: Likewise.
65969         * modules/unicase/u8-casexfrm: Likewise.
65970         * modules/unicase/u8-ct-casefold: Likewise.
65971         * modules/unicase/u8-ct-tolower: Likewise.
65972         * modules/unicase/u8-ct-totitle: Likewise.
65973         * modules/unicase/u8-ct-toupper: Likewise.
65974         * modules/unicase/u8-is-cased: Likewise.
65975         * modules/unicase/u8-is-casefolded: Likewise.
65976         * modules/unicase/u8-is-lowercase: Likewise.
65977         * modules/unicase/u8-is-titlecase: Likewise.
65978         * modules/unicase/u8-is-uppercase: Likewise.
65979         * modules/unicase/u8-prefix-context: Likewise.
65980         * modules/unicase/u8-suffix-context: Likewise.
65981         * modules/unicase/u8-tolower: Likewise.
65982         * modules/unicase/u8-totitle: Likewise.
65983         * modules/unicase/u8-toupper: Likewise.
65984         * modules/unicase/u16-casecmp: Likewise.
65985         * modules/unicase/u16-casecoll: Likewise.
65986         * modules/unicase/u16-casefold: Likewise.
65987         * modules/unicase/u16-casexfrm: Likewise.
65988         * modules/unicase/u16-ct-casefold: Likewise.
65989         * modules/unicase/u16-ct-tolower: Likewise.
65990         * modules/unicase/u16-ct-totitle: Likewise.
65991         * modules/unicase/u16-ct-toupper: Likewise.
65992         * modules/unicase/u16-is-cased: Likewise.
65993         * modules/unicase/u16-is-casefolded: Likewise.
65994         * modules/unicase/u16-is-lowercase: Likewise.
65995         * modules/unicase/u16-is-titlecase: Likewise.
65996         * modules/unicase/u16-is-uppercase: Likewise.
65997         * modules/unicase/u16-prefix-context: Likewise.
65998         * modules/unicase/u16-suffix-context: Likewise.
65999         * modules/unicase/u16-tolower: Likewise.
66000         * modules/unicase/u16-totitle: Likewise.
66001         * modules/unicase/u16-toupper: Likewise.
66002         * modules/unicase/u32-casecmp: Likewise.
66003         * modules/unicase/u32-casecoll: Likewise.
66004         * modules/unicase/u32-casefold: Likewise.
66005         * modules/unicase/u32-casexfrm: Likewise.
66006         * modules/unicase/u32-ct-casefold: Likewise.
66007         * modules/unicase/u32-ct-tolower: Likewise.
66008         * modules/unicase/u32-ct-totitle: Likewise.
66009         * modules/unicase/u32-ct-toupper: Likewise.
66010         * modules/unicase/u32-is-cased: Likewise.
66011         * modules/unicase/u32-is-casefolded: Likewise.
66012         * modules/unicase/u32-is-lowercase: Likewise.
66013         * modules/unicase/u32-is-titlecase: Likewise.
66014         * modules/unicase/u32-is-uppercase: Likewise.
66015         * modules/unicase/u32-prefix-context: Likewise.
66016         * modules/unicase/u32-suffix-context: Likewise.
66017         * modules/unicase/u32-tolower: Likewise.
66018         * modules/unicase/u32-totitle: Likewise.
66019         * modules/unicase/u32-toupper: Likewise.
66020         * modules/unicase/ulc-casecmp: Likewise.
66021         * modules/unicase/ulc-casecoll: Likewise.
66022         * modules/unicase/ulc-casexfrm: Likewise.
66023         * modules/uniconv/u8-conv-from-enc: Likewise.
66024         * modules/uniconv/u8-conv-to-enc: Likewise.
66025         * modules/uniconv/u8-strconv-from-enc: Likewise.
66026         * modules/uniconv/u8-strconv-from-locale: Likewise.
66027         * modules/uniconv/u8-strconv-to-enc: Likewise.
66028         * modules/uniconv/u8-strconv-to-locale: Likewise.
66029         * modules/uniconv/u16-conv-from-enc: Likewise.
66030         * modules/uniconv/u16-conv-to-enc: Likewise.
66031         * modules/uniconv/u16-strconv-from-enc: Likewise.
66032         * modules/uniconv/u16-strconv-from-locale: Likewise.
66033         * modules/uniconv/u16-strconv-to-enc: Likewise.
66034         * modules/uniconv/u16-strconv-to-locale: Likewise.
66035         * modules/uniconv/u32-conv-from-enc: Likewise.
66036         * modules/uniconv/u32-conv-to-enc: Likewise.
66037         * modules/uniconv/u32-strconv-from-enc: Likewise.
66038         * modules/uniconv/u32-strconv-from-locale: Likewise.
66039         * modules/uniconv/u32-strconv-to-enc: Likewise.
66040         * modules/uniconv/u32-strconv-to-locale: Likewise.
66041         * modules/unictype/bidicategory-byname: Likewise.
66042         * modules/unictype/bidicategory-name: Likewise.
66043         * modules/unictype/bidicategory-of: Likewise.
66044         * modules/unictype/bidicategory-test: Likewise.
66045         * modules/unictype/block-list: Likewise.
66046         * modules/unictype/block-test: Likewise.
66047         * modules/unictype/category-C: Likewise.
66048         * modules/unictype/category-Cc: Likewise.
66049         * modules/unictype/category-Cf: Likewise.
66050         * modules/unictype/category-Cn: Likewise.
66051         * modules/unictype/category-Co: Likewise.
66052         * modules/unictype/category-Cs: Likewise.
66053         * modules/unictype/category-L: Likewise.
66054         * modules/unictype/category-Ll: Likewise.
66055         * modules/unictype/category-Lm: Likewise.
66056         * modules/unictype/category-Lo: Likewise.
66057         * modules/unictype/category-Lt: Likewise.
66058         * modules/unictype/category-Lu: Likewise.
66059         * modules/unictype/category-M: Likewise.
66060         * modules/unictype/category-Mc: Likewise.
66061         * modules/unictype/category-Me: Likewise.
66062         * modules/unictype/category-Mn: Likewise.
66063         * modules/unictype/category-N: Likewise.
66064         * modules/unictype/category-Nd: Likewise.
66065         * modules/unictype/category-Nl: Likewise.
66066         * modules/unictype/category-No: Likewise.
66067         * modules/unictype/category-P: Likewise.
66068         * modules/unictype/category-Pc: Likewise.
66069         * modules/unictype/category-Pd: Likewise.
66070         * modules/unictype/category-Pe: Likewise.
66071         * modules/unictype/category-Pf: Likewise.
66072         * modules/unictype/category-Pi: Likewise.
66073         * modules/unictype/category-Po: Likewise.
66074         * modules/unictype/category-Ps: Likewise.
66075         * modules/unictype/category-S: Likewise.
66076         * modules/unictype/category-Sc: Likewise.
66077         * modules/unictype/category-Sk: Likewise.
66078         * modules/unictype/category-Sm: Likewise.
66079         * modules/unictype/category-So: Likewise.
66080         * modules/unictype/category-Z: Likewise.
66081         * modules/unictype/category-Zl: Likewise.
66082         * modules/unictype/category-Zp: Likewise.
66083         * modules/unictype/category-Zs: Likewise.
66084         * modules/unictype/category-and: Likewise.
66085         * modules/unictype/category-and-not: Likewise.
66086         * modules/unictype/category-byname: Likewise.
66087         * modules/unictype/category-name: Likewise.
66088         * modules/unictype/category-none: Likewise.
66089         * modules/unictype/category-of: Likewise.
66090         * modules/unictype/category-or: Likewise.
66091         * modules/unictype/category-test: Likewise.
66092         * modules/unictype/combining-class: Likewise.
66093         * modules/unictype/ctype-alnum: Likewise.
66094         * modules/unictype/ctype-alpha: Likewise.
66095         * modules/unictype/ctype-blank: Likewise.
66096         * modules/unictype/ctype-cntrl: Likewise.
66097         * modules/unictype/ctype-digit: Likewise.
66098         * modules/unictype/ctype-graph: Likewise.
66099         * modules/unictype/ctype-lower: Likewise.
66100         * modules/unictype/ctype-print: Likewise.
66101         * modules/unictype/ctype-punct: Likewise.
66102         * modules/unictype/ctype-space: Likewise.
66103         * modules/unictype/ctype-upper: Likewise.
66104         * modules/unictype/ctype-xdigit: Likewise.
66105         * modules/unictype/decimal-digit: Likewise.
66106         * modules/unictype/digit: Likewise.
66107         * modules/unictype/mirror: Likewise.
66108         * modules/unictype/numeric: Likewise.
66109         * modules/unictype/property-alphabetic: Likewise.
66110         * modules/unictype/property-ascii-hex-digit: Likewise.
66111         * modules/unictype/property-bidi-arabic-digit: Likewise.
66112         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
66113         * modules/unictype/property-bidi-block-separator: Likewise.
66114         * modules/unictype/property-bidi-boundary-neutral: Likewise.
66115         * modules/unictype/property-bidi-common-separator: Likewise.
66116         * modules/unictype/property-bidi-control: Likewise.
66117         * modules/unictype/property-bidi-embedding-or-override: Likewise.
66118         * modules/unictype/property-bidi-eur-num-separator: Likewise.
66119         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
66120         * modules/unictype/property-bidi-european-digit: Likewise.
66121         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
66122         * modules/unictype/property-bidi-left-to-right: Likewise.
66123         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
66124         * modules/unictype/property-bidi-other-neutral: Likewise.
66125         * modules/unictype/property-bidi-pdf: Likewise.
66126         * modules/unictype/property-bidi-segment-separator: Likewise.
66127         * modules/unictype/property-bidi-whitespace: Likewise.
66128         * modules/unictype/property-byname: Likewise.
66129         * modules/unictype/property-combining: Likewise.
66130         * modules/unictype/property-composite: Likewise.
66131         * modules/unictype/property-currency-symbol: Likewise.
66132         * modules/unictype/property-dash: Likewise.
66133         * modules/unictype/property-decimal-digit: Likewise.
66134         * modules/unictype/property-default-ignorable-code-point: Likewise.
66135         * modules/unictype/property-deprecated: Likewise.
66136         * modules/unictype/property-diacritic: Likewise.
66137         * modules/unictype/property-extender: Likewise.
66138         * modules/unictype/property-format-control: Likewise.
66139         * modules/unictype/property-grapheme-base: Likewise.
66140         * modules/unictype/property-grapheme-extend: Likewise.
66141         * modules/unictype/property-grapheme-link: Likewise.
66142         * modules/unictype/property-hex-digit: Likewise.
66143         * modules/unictype/property-hyphen: Likewise.
66144         * modules/unictype/property-id-continue: Likewise.
66145         * modules/unictype/property-id-start: Likewise.
66146         * modules/unictype/property-ideographic: Likewise.
66147         * modules/unictype/property-ids-binary-operator: Likewise.
66148         * modules/unictype/property-ids-trinary-operator: Likewise.
66149         * modules/unictype/property-ignorable-control: Likewise.
66150         * modules/unictype/property-iso-control: Likewise.
66151         * modules/unictype/property-join-control: Likewise.
66152         * modules/unictype/property-left-of-pair: Likewise.
66153         * modules/unictype/property-line-separator: Likewise.
66154         * modules/unictype/property-logical-order-exception: Likewise.
66155         * modules/unictype/property-lowercase: Likewise.
66156         * modules/unictype/property-math: Likewise.
66157         * modules/unictype/property-non-break: Likewise.
66158         * modules/unictype/property-not-a-character: Likewise.
66159         * modules/unictype/property-numeric: Likewise.
66160         * modules/unictype/property-other-alphabetic: Likewise.
66161         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
66162         * modules/unictype/property-other-grapheme-extend: Likewise.
66163         * modules/unictype/property-other-id-continue: Likewise.
66164         * modules/unictype/property-other-id-start: Likewise.
66165         * modules/unictype/property-other-lowercase: Likewise.
66166         * modules/unictype/property-other-math: Likewise.
66167         * modules/unictype/property-other-uppercase: Likewise.
66168         * modules/unictype/property-paired-punctuation: Likewise.
66169         * modules/unictype/property-paragraph-separator: Likewise.
66170         * modules/unictype/property-pattern-syntax: Likewise.
66171         * modules/unictype/property-pattern-white-space: Likewise.
66172         * modules/unictype/property-private-use: Likewise.
66173         * modules/unictype/property-punctuation: Likewise.
66174         * modules/unictype/property-quotation-mark: Likewise.
66175         * modules/unictype/property-radical: Likewise.
66176         * modules/unictype/property-sentence-terminal: Likewise.
66177         * modules/unictype/property-soft-dotted: Likewise.
66178         * modules/unictype/property-space: Likewise.
66179         * modules/unictype/property-terminal-punctuation: Likewise.
66180         * modules/unictype/property-test: Likewise.
66181         * modules/unictype/property-titlecase: Likewise.
66182         * modules/unictype/property-unassigned-code-value: Likewise.
66183         * modules/unictype/property-unified-ideograph: Likewise.
66184         * modules/unictype/property-uppercase: Likewise.
66185         * modules/unictype/property-variation-selector: Likewise.
66186         * modules/unictype/property-white-space: Likewise.
66187         * modules/unictype/property-xid-continue: Likewise.
66188         * modules/unictype/property-xid-start: Likewise.
66189         * modules/unictype/property-zero-width: Likewise.
66190         * modules/unictype/scripts: Likewise.
66191         * modules/unictype/syntax-c-ident: Likewise.
66192         * modules/unictype/syntax-c-whitespace: Likewise.
66193         * modules/unictype/syntax-java-ident: Likewise.
66194         * modules/unictype/syntax-java-whitespace: Likewise.
66195         * modules/unilbrk/u8-possible-linebreaks: Likewise.
66196         * modules/unilbrk/u8-width-linebreaks: Likewise.
66197         * modules/unilbrk/u16-possible-linebreaks: Likewise.
66198         * modules/unilbrk/u16-width-linebreaks: Likewise.
66199         * modules/unilbrk/u32-possible-linebreaks: Likewise.
66200         * modules/unilbrk/u32-width-linebreaks: Likewise.
66201         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
66202         * modules/unilbrk/ulc-width-linebreaks: Likewise.
66203         * modules/uniname/uniname: Likewise.
66204         * modules/uninorm/canonical-decomposition: Likewise.
66205         * modules/uninorm/composition: Likewise.
66206         * modules/uninorm/decomposing-form: Likewise.
66207         * modules/uninorm/decomposition: Likewise.
66208         * modules/uninorm/filter: Likewise.
66209         * modules/uninorm/nfc: Likewise.
66210         * modules/uninorm/nfd: Likewise.
66211         * modules/uninorm/nfkc: Likewise.
66212         * modules/uninorm/nfkd: Likewise.
66213         * modules/uninorm/u8-normalize: Likewise.
66214         * modules/uninorm/u8-normcmp: Likewise.
66215         * modules/uninorm/u8-normcoll: Likewise.
66216         * modules/uninorm/u8-normxfrm: Likewise.
66217         * modules/uninorm/u16-normalize: Likewise.
66218         * modules/uninorm/u16-normcmp: Likewise.
66219         * modules/uninorm/u16-normcoll: Likewise.
66220         * modules/uninorm/u16-normxfrm: Likewise.
66221         * modules/uninorm/u32-normalize: Likewise.
66222         * modules/uninorm/u32-normcmp: Likewise.
66223         * modules/uninorm/u32-normcoll: Likewise.
66224         * modules/uninorm/u32-normxfrm: Likewise.
66225         * modules/unistdio/u8-asnprintf: Likewise.
66226         * modules/unistdio/u8-asprintf: Likewise.
66227         * modules/unistdio/u8-snprintf: Likewise.
66228         * modules/unistdio/u8-sprintf: Likewise.
66229         * modules/unistdio/u8-u8-asnprintf: Likewise.
66230         * modules/unistdio/u8-u8-asprintf: Likewise.
66231         * modules/unistdio/u8-u8-snprintf: Likewise.
66232         * modules/unistdio/u8-u8-sprintf: Likewise.
66233         * modules/unistdio/u8-u8-vasnprintf: Likewise.
66234         * modules/unistdio/u8-u8-vasprintf: Likewise.
66235         * modules/unistdio/u8-u8-vsnprintf: Likewise.
66236         * modules/unistdio/u8-u8-vsprintf: Likewise.
66237         * modules/unistdio/u8-vasnprintf: Likewise.
66238         * modules/unistdio/u8-vasprintf: Likewise.
66239         * modules/unistdio/u8-vsnprintf: Likewise.
66240         * modules/unistdio/u8-vsprintf: Likewise.
66241         * modules/unistdio/u16-asnprintf: Likewise.
66242         * modules/unistdio/u16-asprintf: Likewise.
66243         * modules/unistdio/u16-snprintf: Likewise.
66244         * modules/unistdio/u16-sprintf: Likewise.
66245         * modules/unistdio/u16-u16-asnprintf: Likewise.
66246         * modules/unistdio/u16-u16-asprintf: Likewise.
66247         * modules/unistdio/u16-u16-snprintf: Likewise.
66248         * modules/unistdio/u16-u16-sprintf: Likewise.
66249         * modules/unistdio/u16-u16-vasnprintf: Likewise.
66250         * modules/unistdio/u16-u16-vasprintf: Likewise.
66251         * modules/unistdio/u16-u16-vsnprintf: Likewise.
66252         * modules/unistdio/u16-u16-vsprintf: Likewise.
66253         * modules/unistdio/u16-vasnprintf: Likewise.
66254         * modules/unistdio/u16-vasprintf: Likewise.
66255         * modules/unistdio/u16-vsnprintf: Likewise.
66256         * modules/unistdio/u16-vsprintf: Likewise.
66257         * modules/unistdio/u32-asnprintf: Likewise.
66258         * modules/unistdio/u32-asprintf: Likewise.
66259         * modules/unistdio/u32-snprintf: Likewise.
66260         * modules/unistdio/u32-sprintf: Likewise.
66261         * modules/unistdio/u32-u32-asnprintf: Likewise.
66262         * modules/unistdio/u32-u32-asprintf: Likewise.
66263         * modules/unistdio/u32-u32-snprintf: Likewise.
66264         * modules/unistdio/u32-u32-sprintf: Likewise.
66265         * modules/unistdio/u32-u32-vasnprintf: Likewise.
66266         * modules/unistdio/u32-u32-vasprintf: Likewise.
66267         * modules/unistdio/u32-u32-vsnprintf: Likewise.
66268         * modules/unistdio/u32-u32-vsprintf: Likewise.
66269         * modules/unistdio/u32-vasnprintf: Likewise.
66270         * modules/unistdio/u32-vasprintf: Likewise.
66271         * modules/unistdio/u32-vsnprintf: Likewise.
66272         * modules/unistdio/u32-vsprintf: Likewise.
66273         * modules/unistdio/ulc-asnprintf: Likewise.
66274         * modules/unistdio/ulc-asprintf: Likewise.
66275         * modules/unistdio/ulc-fprintf: Likewise.
66276         * modules/unistdio/ulc-snprintf: Likewise.
66277         * modules/unistdio/ulc-sprintf: Likewise.
66278         * modules/unistdio/ulc-vasnprintf: Likewise.
66279         * modules/unistdio/ulc-vasprintf: Likewise.
66280         * modules/unistdio/ulc-vfprintf: Likewise.
66281         * modules/unistdio/ulc-vsnprintf: Likewise.
66282         * modules/unistdio/ulc-vsprintf: Likewise.
66283         * modules/unistr/u8-check: Likewise.
66284         * modules/unistr/u8-chr: Likewise.
66285         * modules/unistr/u8-cmp: Likewise.
66286         * modules/unistr/u8-cmp2: Likewise.
66287         * modules/unistr/u8-cpy: Likewise.
66288         * modules/unistr/u8-cpy-alloc: Likewise.
66289         * modules/unistr/u8-endswith: Likewise.
66290         * modules/unistr/u8-mblen: Likewise.
66291         * modules/unistr/u8-mbsnlen: Likewise.
66292         * modules/unistr/u8-mbtouc: Likewise.
66293         * modules/unistr/u8-mbtouc-unsafe: Likewise.
66294         * modules/unistr/u8-mbtoucr: Likewise.
66295         * modules/unistr/u8-move: Likewise.
66296         * modules/unistr/u8-next: Likewise.
66297         * modules/unistr/u8-prev: Likewise.
66298         * modules/unistr/u8-set: Likewise.
66299         * modules/unistr/u8-startswith: Likewise.
66300         * modules/unistr/u8-stpcpy: Likewise.
66301         * modules/unistr/u8-stpncpy: Likewise.
66302         * modules/unistr/u8-strcat: Likewise.
66303         * modules/unistr/u8-strchr: Likewise.
66304         * modules/unistr/u8-strcmp: Likewise.
66305         * modules/unistr/u8-strcoll: Likewise.
66306         * modules/unistr/u8-strcpy: Likewise.
66307         * modules/unistr/u8-strcspn: Likewise.
66308         * modules/unistr/u8-strdup: Likewise.
66309         * modules/unistr/u8-strlen: Likewise.
66310         * modules/unistr/u8-strmblen: Likewise.
66311         * modules/unistr/u8-strmbtouc: Likewise.
66312         * modules/unistr/u8-strncat: Likewise.
66313         * modules/unistr/u8-strncmp: Likewise.
66314         * modules/unistr/u8-strncpy: Likewise.
66315         * modules/unistr/u8-strnlen: Likewise.
66316         * modules/unistr/u8-strpbrk: Likewise.
66317         * modules/unistr/u8-strrchr: Likewise.
66318         * modules/unistr/u8-strspn: Likewise.
66319         * modules/unistr/u8-strstr: Likewise.
66320         * modules/unistr/u8-strtok: Likewise.
66321         * modules/unistr/u8-to-u16: Likewise.
66322         * modules/unistr/u8-to-u32: Likewise.
66323         * modules/unistr/u8-uctomb: Likewise.
66324         * modules/unistr/u16-check: Likewise.
66325         * modules/unistr/u16-chr: Likewise.
66326         * modules/unistr/u16-cmp: Likewise.
66327         * modules/unistr/u16-cmp2: Likewise.
66328         * modules/unistr/u16-cpy: Likewise.
66329         * modules/unistr/u16-cpy-alloc: Likewise.
66330         * modules/unistr/u16-endswith: Likewise.
66331         * modules/unistr/u16-mblen: Likewise.
66332         * modules/unistr/u16-mbsnlen: Likewise.
66333         * modules/unistr/u16-mbtouc: Likewise.
66334         * modules/unistr/u16-mbtouc-unsafe: Likewise.
66335         * modules/unistr/u16-mbtoucr: Likewise.
66336         * modules/unistr/u16-move: Likewise.
66337         * modules/unistr/u16-next: Likewise.
66338         * modules/unistr/u16-prev: Likewise.
66339         * modules/unistr/u16-set: Likewise.
66340         * modules/unistr/u16-startswith: Likewise.
66341         * modules/unistr/u16-stpcpy: Likewise.
66342         * modules/unistr/u16-stpncpy: Likewise.
66343         * modules/unistr/u16-strcat: Likewise.
66344         * modules/unistr/u16-strchr: Likewise.
66345         * modules/unistr/u16-strcmp: Likewise.
66346         * modules/unistr/u16-strcoll: Likewise.
66347         * modules/unistr/u16-strcpy: Likewise.
66348         * modules/unistr/u16-strcspn: Likewise.
66349         * modules/unistr/u16-strdup: Likewise.
66350         * modules/unistr/u16-strlen: Likewise.
66351         * modules/unistr/u16-strmblen: Likewise.
66352         * modules/unistr/u16-strmbtouc: Likewise.
66353         * modules/unistr/u16-strncat: Likewise.
66354         * modules/unistr/u16-strncmp: Likewise.
66355         * modules/unistr/u16-strncpy: Likewise.
66356         * modules/unistr/u16-strnlen: Likewise.
66357         * modules/unistr/u16-strpbrk: Likewise.
66358         * modules/unistr/u16-strrchr: Likewise.
66359         * modules/unistr/u16-strspn: Likewise.
66360         * modules/unistr/u16-strstr: Likewise.
66361         * modules/unistr/u16-strtok: Likewise.
66362         * modules/unistr/u16-to-u32: Likewise.
66363         * modules/unistr/u16-to-u8: Likewise.
66364         * modules/unistr/u16-uctomb: Likewise.
66365         * modules/unistr/u32-check: Likewise.
66366         * modules/unistr/u32-chr: Likewise.
66367         * modules/unistr/u32-cmp: Likewise.
66368         * modules/unistr/u32-cmp2: Likewise.
66369         * modules/unistr/u32-cpy: Likewise.
66370         * modules/unistr/u32-cpy-alloc: Likewise.
66371         * modules/unistr/u32-endswith: Likewise.
66372         * modules/unistr/u32-mblen: Likewise.
66373         * modules/unistr/u32-mbsnlen: Likewise.
66374         * modules/unistr/u32-mbtouc: Likewise.
66375         * modules/unistr/u32-mbtouc-unsafe: Likewise.
66376         * modules/unistr/u32-mbtoucr: Likewise.
66377         * modules/unistr/u32-move: Likewise.
66378         * modules/unistr/u32-next: Likewise.
66379         * modules/unistr/u32-prev: Likewise.
66380         * modules/unistr/u32-set: Likewise.
66381         * modules/unistr/u32-startswith: Likewise.
66382         * modules/unistr/u32-stpcpy: Likewise.
66383         * modules/unistr/u32-stpncpy: Likewise.
66384         * modules/unistr/u32-strcat: Likewise.
66385         * modules/unistr/u32-strchr: Likewise.
66386         * modules/unistr/u32-strcmp: Likewise.
66387         * modules/unistr/u32-strcoll: Likewise.
66388         * modules/unistr/u32-strcpy: Likewise.
66389         * modules/unistr/u32-strcspn: Likewise.
66390         * modules/unistr/u32-strdup: Likewise.
66391         * modules/unistr/u32-strlen: Likewise.
66392         * modules/unistr/u32-strmblen: Likewise.
66393         * modules/unistr/u32-strmbtouc: Likewise.
66394         * modules/unistr/u32-strncat: Likewise.
66395         * modules/unistr/u32-strncmp: Likewise.
66396         * modules/unistr/u32-strncpy: Likewise.
66397         * modules/unistr/u32-strnlen: Likewise.
66398         * modules/unistr/u32-strpbrk: Likewise.
66399         * modules/unistr/u32-strrchr: Likewise.
66400         * modules/unistr/u32-strspn: Likewise.
66401         * modules/unistr/u32-strstr: Likewise.
66402         * modules/unistr/u32-strtok: Likewise.
66403         * modules/unistr/u32-to-u16: Likewise.
66404         * modules/unistr/u32-to-u8: Likewise.
66405         * modules/unistr/u32-uctomb: Likewise.
66406         * modules/uniwbrk/u8-wordbreaks: Likewise.
66407         * modules/uniwbrk/u16-wordbreaks: Likewise.
66408         * modules/uniwbrk/u32-wordbreaks: Likewise.
66409         * modules/uniwbrk/ulc-wordbreaks: Likewise.
66410         * modules/uniwbrk/wordbreak-property: Likewise.
66411         * modules/uniwidth/u8-strwidth: Likewise.
66412         * modules/uniwidth/u8-width: Likewise.
66413         * modules/uniwidth/u16-strwidth: Likewise.
66414         * modules/uniwidth/u16-width: Likewise.
66415         * modules/uniwidth/u32-strwidth: Likewise.
66416         * modules/uniwidth/u32-width: Likewise.
66417         * modules/uniwidth/width: Likewise.
66418         * modules/unicase/cased-tests (Makefile.am): Link all test programs
66419         with $(LIBUNISTRING).
66420         * modules/unicase/ignorable-tests: Likewise.
66421         * modules/unicase/locale-language-tests: Likewise.
66422         * modules/unicase/tolower-tests: Likewise.
66423         * modules/unicase/totitle-tests: Likewise.
66424         * modules/unicase/toupper-tests: Likewise.
66425         * modules/unicase/u8-casecmp-tests: Likewise.
66426         * modules/unicase/u8-casecoll-tests: Likewise.
66427         * modules/unicase/u8-casefold-tests: Likewise.
66428         * modules/unicase/u8-is-cased-tests: Likewise.
66429         * modules/unicase/u8-is-casefolded-tests: Likewise.
66430         * modules/unicase/u8-is-lowercase-tests: Likewise.
66431         * modules/unicase/u8-is-titlecase-tests: Likewise.
66432         * modules/unicase/u8-is-uppercase-tests: Likewise.
66433         * modules/unicase/u8-tolower-tests: Likewise.
66434         * modules/unicase/u8-totitle-tests: Likewise.
66435         * modules/unicase/u8-toupper-tests: Likewise.
66436         * modules/unicase/u16-casecmp-tests: Likewise.
66437         * modules/unicase/u16-casecoll-tests: Likewise.
66438         * modules/unicase/u16-casefold-tests: Likewise.
66439         * modules/unicase/u16-is-cased-tests: Likewise.
66440         * modules/unicase/u16-is-casefolded-tests: Likewise.
66441         * modules/unicase/u16-is-lowercase-tests: Likewise.
66442         * modules/unicase/u16-is-titlecase-tests: Likewise.
66443         * modules/unicase/u16-is-uppercase-tests: Likewise.
66444         * modules/unicase/u16-tolower-tests: Likewise.
66445         * modules/unicase/u16-totitle-tests: Likewise.
66446         * modules/unicase/u16-toupper-tests: Likewise.
66447         * modules/unicase/u32-casecmp-tests: Likewise.
66448         * modules/unicase/u32-casecoll-tests: Likewise.
66449         * modules/unicase/u32-casefold-tests: Likewise.
66450         * modules/unicase/u32-is-cased-tests: Likewise.
66451         * modules/unicase/u32-is-casefolded-tests: Likewise.
66452         * modules/unicase/u32-is-lowercase-tests: Likewise.
66453         * modules/unicase/u32-is-titlecase-tests: Likewise.
66454         * modules/unicase/u32-is-uppercase-tests: Likewise.
66455         * modules/unicase/u32-tolower-tests: Likewise.
66456         * modules/unicase/u32-totitle-tests: Likewise.
66457         * modules/unicase/u32-toupper-tests: Likewise.
66458         * modules/unicase/ulc-casecmp-tests: Likewise.
66459         * modules/unicase/ulc-casecoll-tests: Likewise.
66460         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
66461         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
66462         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
66463         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
66464         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
66465         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
66466         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
66467         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
66468         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
66469         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
66470         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
66471         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
66472         * modules/unictype/bidicategory-byname-tests: Likewise.
66473         * modules/unictype/bidicategory-name-tests: Likewise.
66474         * modules/unictype/bidicategory-of-tests: Likewise.
66475         * modules/unictype/bidicategory-test-tests: Likewise.
66476         * modules/unictype/block-list-tests: Likewise.
66477         * modules/unictype/block-of-tests: Likewise.
66478         * modules/unictype/block-test-tests: Likewise.
66479         * modules/unictype/category-C-tests: Likewise.
66480         * modules/unictype/category-Cc-tests: Likewise.
66481         * modules/unictype/category-Cf-tests: Likewise.
66482         * modules/unictype/category-Cn-tests: Likewise.
66483         * modules/unictype/category-Co-tests: Likewise.
66484         * modules/unictype/category-Cs-tests: Likewise.
66485         * modules/unictype/category-L-tests: Likewise.
66486         * modules/unictype/category-Ll-tests: Likewise.
66487         * modules/unictype/category-Lm-tests: Likewise.
66488         * modules/unictype/category-Lo-tests: Likewise.
66489         * modules/unictype/category-Lt-tests: Likewise.
66490         * modules/unictype/category-Lu-tests: Likewise.
66491         * modules/unictype/category-M-tests: Likewise.
66492         * modules/unictype/category-Mc-tests: Likewise.
66493         * modules/unictype/category-Me-tests: Likewise.
66494         * modules/unictype/category-Mn-tests: Likewise.
66495         * modules/unictype/category-N-tests: Likewise.
66496         * modules/unictype/category-Nd-tests: Likewise.
66497         * modules/unictype/category-Nl-tests: Likewise.
66498         * modules/unictype/category-No-tests: Likewise.
66499         * modules/unictype/category-P-tests: Likewise.
66500         * modules/unictype/category-Pc-tests: Likewise.
66501         * modules/unictype/category-Pd-tests: Likewise.
66502         * modules/unictype/category-Pe-tests: Likewise.
66503         * modules/unictype/category-Pf-tests: Likewise.
66504         * modules/unictype/category-Pi-tests: Likewise.
66505         * modules/unictype/category-Po-tests: Likewise.
66506         * modules/unictype/category-Ps-tests: Likewise.
66507         * modules/unictype/category-S-tests: Likewise.
66508         * modules/unictype/category-Sc-tests: Likewise.
66509         * modules/unictype/category-Sk-tests: Likewise.
66510         * modules/unictype/category-Sm-tests: Likewise.
66511         * modules/unictype/category-So-tests: Likewise.
66512         * modules/unictype/category-Z-tests: Likewise.
66513         * modules/unictype/category-Zl-tests: Likewise.
66514         * modules/unictype/category-Zp-tests: Likewise.
66515         * modules/unictype/category-Zs-tests: Likewise.
66516         * modules/unictype/category-and-not-tests: Likewise.
66517         * modules/unictype/category-and-tests: Likewise.
66518         * modules/unictype/category-byname-tests: Likewise.
66519         * modules/unictype/category-name-tests: Likewise.
66520         * modules/unictype/category-none-tests: Likewise.
66521         * modules/unictype/category-of-tests: Likewise.
66522         * modules/unictype/category-or-tests: Likewise.
66523         * modules/unictype/category-test-withtable-tests: Likewise.
66524         * modules/unictype/combining-class-tests: Likewise.
66525         * modules/unictype/ctype-alnum-tests: Likewise.
66526         * modules/unictype/ctype-alpha-tests: Likewise.
66527         * modules/unictype/ctype-blank-tests: Likewise.
66528         * modules/unictype/ctype-cntrl-tests: Likewise.
66529         * modules/unictype/ctype-digit-tests: Likewise.
66530         * modules/unictype/ctype-graph-tests: Likewise.
66531         * modules/unictype/ctype-lower-tests: Likewise.
66532         * modules/unictype/ctype-print-tests: Likewise.
66533         * modules/unictype/ctype-punct-tests: Likewise.
66534         * modules/unictype/ctype-space-tests: Likewise.
66535         * modules/unictype/ctype-upper-tests: Likewise.
66536         * modules/unictype/ctype-xdigit-tests: Likewise.
66537         * modules/unictype/decimal-digit-tests: Likewise.
66538         * modules/unictype/digit-tests: Likewise.
66539         * modules/unictype/mirror-tests: Likewise.
66540         * modules/unictype/numeric-tests: Likewise.
66541         * modules/unictype/property-alphabetic-tests: Likewise.
66542         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
66543         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
66544         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
66545         * modules/unictype/property-bidi-block-separator-tests: Likewise.
66546         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
66547         * modules/unictype/property-bidi-common-separator-tests: Likewise.
66548         * modules/unictype/property-bidi-control-tests: Likewise.
66549         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
66550         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
66551         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
66552         * modules/unictype/property-bidi-european-digit-tests: Likewise.
66553         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
66554         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
66555         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
66556         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
66557         * modules/unictype/property-bidi-pdf-tests: Likewise.
66558         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
66559         * modules/unictype/property-bidi-whitespace-tests: Likewise.
66560         * modules/unictype/property-byname-tests: Likewise.
66561         * modules/unictype/property-combining-tests: Likewise.
66562         * modules/unictype/property-composite-tests: Likewise.
66563         * modules/unictype/property-currency-symbol-tests: Likewise.
66564         * modules/unictype/property-dash-tests: Likewise.
66565         * modules/unictype/property-decimal-digit-tests: Likewise.
66566         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
66567         * modules/unictype/property-deprecated-tests: Likewise.
66568         * modules/unictype/property-diacritic-tests: Likewise.
66569         * modules/unictype/property-extender-tests: Likewise.
66570         * modules/unictype/property-format-control-tests: Likewise.
66571         * modules/unictype/property-grapheme-base-tests: Likewise.
66572         * modules/unictype/property-grapheme-extend-tests: Likewise.
66573         * modules/unictype/property-grapheme-link-tests: Likewise.
66574         * modules/unictype/property-hex-digit-tests: Likewise.
66575         * modules/unictype/property-hyphen-tests: Likewise.
66576         * modules/unictype/property-id-continue-tests: Likewise.
66577         * modules/unictype/property-id-start-tests: Likewise.
66578         * modules/unictype/property-ideographic-tests: Likewise.
66579         * modules/unictype/property-ids-binary-operator-tests: Likewise.
66580         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
66581         * modules/unictype/property-ignorable-control-tests: Likewise.
66582         * modules/unictype/property-iso-control-tests: Likewise.
66583         * modules/unictype/property-join-control-tests: Likewise.
66584         * modules/unictype/property-left-of-pair-tests: Likewise.
66585         * modules/unictype/property-line-separator-tests: Likewise.
66586         * modules/unictype/property-logical-order-exception-tests: Likewise.
66587         * modules/unictype/property-lowercase-tests: Likewise.
66588         * modules/unictype/property-math-tests: Likewise.
66589         * modules/unictype/property-non-break-tests: Likewise.
66590         * modules/unictype/property-not-a-character-tests: Likewise.
66591         * modules/unictype/property-numeric-tests: Likewise.
66592         * modules/unictype/property-other-alphabetic-tests: Likewise.
66593         * modules/unictype/property-other-default-ignorable-code-point-tests:
66594         Likewise.
66595         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
66596         * modules/unictype/property-other-id-continue-tests: Likewise.
66597         * modules/unictype/property-other-id-start-tests: Likewise.
66598         * modules/unictype/property-other-lowercase-tests: Likewise.
66599         * modules/unictype/property-other-math-tests: Likewise.
66600         * modules/unictype/property-other-uppercase-tests: Likewise.
66601         * modules/unictype/property-paired-punctuation-tests: Likewise.
66602         * modules/unictype/property-paragraph-separator-tests: Likewise.
66603         * modules/unictype/property-pattern-syntax-tests: Likewise.
66604         * modules/unictype/property-pattern-white-space-tests: Likewise.
66605         * modules/unictype/property-private-use-tests: Likewise.
66606         * modules/unictype/property-punctuation-tests: Likewise.
66607         * modules/unictype/property-quotation-mark-tests: Likewise.
66608         * modules/unictype/property-radical-tests: Likewise.
66609         * modules/unictype/property-sentence-terminal-tests: Likewise.
66610         * modules/unictype/property-soft-dotted-tests: Likewise.
66611         * modules/unictype/property-space-tests: Likewise.
66612         * modules/unictype/property-terminal-punctuation-tests: Likewise.
66613         * modules/unictype/property-test-tests: Likewise.
66614         * modules/unictype/property-titlecase-tests: Likewise.
66615         * modules/unictype/property-unassigned-code-value-tests: Likewise.
66616         * modules/unictype/property-unified-ideograph-tests: Likewise.
66617         * modules/unictype/property-uppercase-tests: Likewise.
66618         * modules/unictype/property-variation-selector-tests: Likewise.
66619         * modules/unictype/property-white-space-tests: Likewise.
66620         * modules/unictype/property-xid-continue-tests: Likewise.
66621         * modules/unictype/property-xid-start-tests: Likewise.
66622         * modules/unictype/property-zero-width-tests: Likewise.
66623         * modules/unictype/scripts-tests: Likewise.
66624         * modules/unictype/syntax-c-ident-tests: Likewise.
66625         * modules/unictype/syntax-c-whitespace-tests: Likewise.
66626         * modules/unictype/syntax-java-ident-tests: Likewise.
66627         * modules/unictype/syntax-java-whitespace-tests: Likewise.
66628         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
66629         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
66630         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
66631         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
66632         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
66633         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
66634         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
66635         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
66636         * modules/uniname/uniname-tests: Likewise.
66637         * modules/uninorm/canonical-decomposition-tests: Likewise.
66638         * modules/uninorm/compat-decomposition-tests: Likewise.
66639         * modules/uninorm/composition-tests: Likewise.
66640         * modules/uninorm/decomposing-form-tests: Likewise.
66641         * modules/uninorm/decomposition-tests: Likewise.
66642         * modules/uninorm/filter-tests: Likewise.
66643         * modules/uninorm/nfc-tests: Likewise.
66644         * modules/uninorm/nfd-tests: Likewise.
66645         * modules/uninorm/nfkc-tests: Likewise.
66646         * modules/uninorm/nfkd-tests: Likewise.
66647         * modules/uninorm/u8-normcmp-tests: Likewise.
66648         * modules/uninorm/u8-normcoll-tests: Likewise.
66649         * modules/uninorm/u16-normcmp-tests: Likewise.
66650         * modules/uninorm/u16-normcoll-tests: Likewise.
66651         * modules/uninorm/u32-normcmp-tests: Likewise.
66652         * modules/uninorm/u32-normcoll-tests: Likewise.
66653         * modules/unistdio/u8-asnprintf-tests: Likewise.
66654         * modules/unistdio/u8-vasnprintf-tests: Likewise.
66655         * modules/unistdio/u8-vasprintf-tests: Likewise.
66656         * modules/unistdio/u8-vsnprintf-tests: Likewise.
66657         * modules/unistdio/u8-vsprintf-tests: Likewise.
66658         * modules/unistdio/u16-asnprintf-tests: Likewise.
66659         * modules/unistdio/u16-vasnprintf-tests: Likewise.
66660         * modules/unistdio/u16-vasprintf-tests: Likewise.
66661         * modules/unistdio/u16-vsnprintf-tests: Likewise.
66662         * modules/unistdio/u16-vsprintf-tests: Likewise.
66663         * modules/unistdio/u32-asnprintf-tests: Likewise.
66664         * modules/unistdio/u32-vasnprintf-tests: Likewise.
66665         * modules/unistdio/u32-vasprintf-tests: Likewise.
66666         * modules/unistdio/u32-vsnprintf-tests: Likewise.
66667         * modules/unistdio/u32-vsprintf-tests: Likewise.
66668         * modules/unistdio/ulc-asnprintf-tests: Likewise.
66669         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
66670         * modules/unistdio/ulc-vasprintf-tests: Likewise.
66671         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
66672         * modules/unistdio/ulc-vsprintf-tests: Likewise.
66673         * modules/unistr/u8-check-tests: Likewise.
66674         * modules/unistr/u8-chr-tests: Likewise.
66675         * modules/unistr/u8-cmp-tests: Likewise.
66676         * modules/unistr/u8-cmp2-tests: Likewise.
66677         * modules/unistr/u8-cpy-alloc-tests: Likewise.
66678         * modules/unistr/u8-cpy-tests: Likewise.
66679         * modules/unistr/u8-mblen-tests: Likewise.
66680         * modules/unistr/u8-mbsnlen-tests: Likewise.
66681         * modules/unistr/u8-mbtouc-tests: Likewise.
66682         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
66683         * modules/unistr/u8-mbtoucr-tests: Likewise.
66684         * modules/unistr/u8-move-tests: Likewise.
66685         * modules/unistr/u8-next-tests: Likewise.
66686         * modules/unistr/u8-prev-tests: Likewise.
66687         * modules/unistr/u8-set-tests: Likewise.
66688         * modules/unistr/u8-stpcpy-tests: Likewise.
66689         * modules/unistr/u8-stpncpy-tests: Likewise.
66690         * modules/unistr/u8-strcat-tests: Likewise.
66691         * modules/unistr/u8-strcmp-tests: Likewise.
66692         * modules/unistr/u8-strcoll-tests: Likewise.
66693         * modules/unistr/u8-strcpy-tests: Likewise.
66694         * modules/unistr/u8-strdup-tests: Likewise.
66695         * modules/unistr/u8-strlen-tests: Likewise.
66696         * modules/unistr/u8-strmblen-tests: Likewise.
66697         * modules/unistr/u8-strmbtouc-tests: Likewise.
66698         * modules/unistr/u8-strncat-tests: Likewise.
66699         * modules/unistr/u8-strncmp-tests: Likewise.
66700         * modules/unistr/u8-strncpy-tests: Likewise.
66701         * modules/unistr/u8-strnlen-tests: Likewise.
66702         * modules/unistr/u8-to-u16-tests: Likewise.
66703         * modules/unistr/u8-to-u32-tests: Likewise.
66704         * modules/unistr/u8-uctomb-tests: Likewise.
66705         * modules/unistr/u16-check-tests: Likewise.
66706         * modules/unistr/u16-chr-tests: Likewise.
66707         * modules/unistr/u16-cmp-tests: Likewise.
66708         * modules/unistr/u16-cmp2-tests: Likewise.
66709         * modules/unistr/u16-cpy-alloc-tests: Likewise.
66710         * modules/unistr/u16-cpy-tests: Likewise.
66711         * modules/unistr/u16-mblen-tests: Likewise.
66712         * modules/unistr/u16-mbsnlen-tests: Likewise.
66713         * modules/unistr/u16-mbtouc-tests: Likewise.
66714         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
66715         * modules/unistr/u16-mbtoucr-tests: Likewise.
66716         * modules/unistr/u16-move-tests: Likewise.
66717         * modules/unistr/u16-next-tests: Likewise.
66718         * modules/unistr/u16-prev-tests: Likewise.
66719         * modules/unistr/u16-set-tests: Likewise.
66720         * modules/unistr/u16-stpcpy-tests: Likewise.
66721         * modules/unistr/u16-stpncpy-tests: Likewise.
66722         * modules/unistr/u16-strcat-tests: Likewise.
66723         * modules/unistr/u16-strcmp-tests: Likewise.
66724         * modules/unistr/u16-strcoll-tests: Likewise.
66725         * modules/unistr/u16-strcpy-tests: Likewise.
66726         * modules/unistr/u16-strdup-tests: Likewise.
66727         * modules/unistr/u16-strlen-tests: Likewise.
66728         * modules/unistr/u16-strmblen-tests: Likewise.
66729         * modules/unistr/u16-strmbtouc-tests: Likewise.
66730         * modules/unistr/u16-strncat-tests: Likewise.
66731         * modules/unistr/u16-strncmp-tests: Likewise.
66732         * modules/unistr/u16-strncpy-tests: Likewise.
66733         * modules/unistr/u16-strnlen-tests: Likewise.
66734         * modules/unistr/u16-to-u32-tests: Likewise.
66735         * modules/unistr/u16-to-u8-tests: Likewise.
66736         * modules/unistr/u16-uctomb-tests: Likewise.
66737         * modules/unistr/u32-check-tests: Likewise.
66738         * modules/unistr/u32-chr-tests: Likewise.
66739         * modules/unistr/u32-cmp-tests: Likewise.
66740         * modules/unistr/u32-cmp2-tests: Likewise.
66741         * modules/unistr/u32-cpy-alloc-tests: Likewise.
66742         * modules/unistr/u32-cpy-tests: Likewise.
66743         * modules/unistr/u32-mblen-tests: Likewise.
66744         * modules/unistr/u32-mbsnlen-tests: Likewise.
66745         * modules/unistr/u32-mbtouc-tests: Likewise.
66746         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
66747         * modules/unistr/u32-mbtoucr-tests: Likewise.
66748         * modules/unistr/u32-move-tests: Likewise.
66749         * modules/unistr/u32-next-tests: Likewise.
66750         * modules/unistr/u32-prev-tests: Likewise.
66751         * modules/unistr/u32-set-tests: Likewise.
66752         * modules/unistr/u32-stpcpy-tests: Likewise.
66753         * modules/unistr/u32-stpncpy-tests: Likewise.
66754         * modules/unistr/u32-strcat-tests: Likewise.
66755         * modules/unistr/u32-strcmp-tests: Likewise.
66756         * modules/unistr/u32-strcoll-tests: Likewise.
66757         * modules/unistr/u32-strcpy-tests: Likewise.
66758         * modules/unistr/u32-strdup-tests: Likewise.
66759         * modules/unistr/u32-strlen-tests: Likewise.
66760         * modules/unistr/u32-strmblen-tests: Likewise.
66761         * modules/unistr/u32-strmbtouc-tests: Likewise.
66762         * modules/unistr/u32-strncat-tests: Likewise.
66763         * modules/unistr/u32-strncmp-tests: Likewise.
66764         * modules/unistr/u32-strncpy-tests: Likewise.
66765         * modules/unistr/u32-strnlen-tests: Likewise.
66766         * modules/unistr/u32-to-u16-tests: Likewise.
66767         * modules/unistr/u32-to-u8-tests: Likewise.
66768         * modules/unistr/u32-uctomb-tests: Likewise.
66769         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
66770         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
66771         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
66772         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
66773         * modules/uniwidth/u8-strwidth-tests: Likewise.
66774         * modules/uniwidth/u8-width-tests: Likewise.
66775         * modules/uniwidth/u16-strwidth-tests: Likewise.
66776         * modules/uniwidth/u16-width-tests: Likewise.
66777         * modules/uniwidth/u32-strwidth-tests: Likewise.
66778         * modules/uniwidth/u32-width-tests: Likewise.
66779         * modules/uniwidth/width-tests: Likewise.
66781 2010-05-18  Richard Jones  <rjones@redhat.com>
66783         doc: users.txt: list hivex
66784         * users.txt: Add hivex.
66786 2010-05-18  Richard Jones  <rjones@redhat.com>
66788         doc: users.txt: list febootstrap
66789         * users.txt: Add febootstrap.
66791 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
66793         bootstrap: fix an error when gnulib is not used as a git submodule
66794         * build-aux/bootstrap (gnulib_path): If its length is zero then
66795         assign "gnulib" to it.
66796         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
66798 2010-05-16  Bruno Haible  <bruno@clisp.org>
66800         Avoid autoconf warnings about AM_ICONV.
66801         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
66802         2.64.
66804 2010-05-16  Bruno Haible  <bruno@clisp.org>
66806         absolute-header: Make the macro usable in more situations.
66807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
66808         from gl_ABSOLUTE_HEADER.
66809         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
66811 2010-05-16  James Youngman  <jay@gnu.org>
66813         doc: update users.txt
66814         * users.txt: Add CSSC.
66816 2010-05-16  Jim Meyering  <meyering@redhat.com>
66818         init.sh: fix an error in the previous change; add more comments
66819         * tests/init.sh: Compare exit code in loop against 9, not 2.
66820         Patch by Bruno Haible.
66821         Make the two tests more similar by adding an empty "then" clause.
66822         Add comments.
66824         init.sh: avoid unnecessary shell re-exec
66825         * tests/init.sh: Improve the re-exec-required check to first test the
66826         current shell.  If it passes the test, do not search for a shell that
66827         does pass, and do not re-exec.  This test is particularly contorted to
66828         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
66829         of $(...) evokes a syntax error and causes immediate shell exit with
66830         status 2.  Bruno Haible reported that the re-exec made it impossible
66831         to single-step through any init.sh-using script.
66833 2010-05-16  Bruno Haible  <bruno@clisp.org>
66835         Fix collision between gnulib's and libintl's printf replacements.
66836         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
66837         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
66838         (printf): When using GNU C, map the __printf__ function to rpl_printf
66839         via __asm__. When not using GNU C, define rpl_printf instead of
66840         __printf__.
66841         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
66842         commit.
66843         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
66844         commit.
66845         * m4/asm-underscore.m4: New file.
66846         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
66847         * modules/stdio (Files): Add m4/asm-underscore.m4.
66848         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
66849         Reported by Ben Pfaff.
66851 2010-05-16  Bruno Haible  <bruno@clisp.org>
66853         verify: Avoid skipping the test on openSUSE 11.0.
66854         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
66856 2010-05-13  Bruno Haible  <bruno@clisp.org>
66858         Avoid useless warnings from G++.
66859         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
66860         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
66861         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66863 2010-05-11  Jim Meyering  <meyering@redhat.com>
66865         maint.mk: tweak preceding change
66866         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
66867         regexps tighter by anchoring at EOL, and make the new group "shy"
66868         for slightly decreased overhead.
66870 2010-05-11  Eric Blake  <eblake@redhat.com>
66872         maint.mk: gnulib doesn't guarantee NSIG
66873         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
66875 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
66877         test-pwrite.c: Remove unused variable declaration.
66878         * tests/test-pwrite.c (main): Remove read_buf declaration.
66880         Remove useless test-pwrite.sh file.
66881         * tests/test-pwrite.sh: Delete file.
66882         * modules/pwrite-tests: Remove references.
66883         Reported by Bruno Haible.
66885 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
66887         init.sh: fix a typo
66888         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
66890 2010-05-10  Jim Meyering  <meyering@redhat.com>
66892         maint.mk: avoid using a temporary file in the always-defined-macros check
66893         * top/maint.mk (.re-defmac): Remove rule.
66894         (gl_trap_): Remove definition.
66895         (sc_prohibit_always-defined_macros): Rewrite not to create and
66896         depend on a temporary file.  Instead, depend on GNU grep's ability
66897         to read a list of regular expressions from stdin when given "-f -".
66899 2010-05-09  Bruno Haible  <bruno@clisp.org>
66901         Update to GNU gettext 0.18, part 1.
66902         * m4/gettext.m4: Update to GNU gettext 0.18.
66903         * m4/intl.m4: Likewise.
66904         * m4/po.m4: Likewise.
66905         * modules/gettext (Files): Add m4/fcntl-o.m4.
66906         (configure.ac): Require gettext infrastructure from version 0.18.
66908 2010-05-09  Jim Meyering  <meyering@redhat.com>
66910         init.sh: enable MALLOC_PERTURB_
66911         * tests/init.sh: Enable glibc's malloc-perturbing option.
66913         maint.mk: improve sc_cross_check_PATH_usage_in_tests
66914         With my recent change in init.sh from the two-line form:
66915             -#   : ${srcdir=.}
66916             -#   . "$srcdir/init.sh"; path_prepend_ .
66917             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
66918         I noticed that using the one-line form would cause this test
66919         to fail with a false-positive, or to stop working altogether,
66920         depending on whether help-version changed or all the tests did.
66921         * top/maint.mk (_hv_regex): Remove this definition.
66922         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
66923         (_hv_regex_strong): Use a stronger regex to check for conformance.
66924         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
66925         Give a separate diagnostic for lack of conforming use.
66927         maint.mk: prohibit definition of symbols defined by gnulib
66928         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
66929         definition of symbols defined by gnulib.
66931 2010-05-09  Bruno Haible  <bruno@clisp.org>
66933         acl: Avoid test failure on Cygwin-hosted mingw.
66934         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
66936 2010-05-09  Bruno Haible  <bruno@clisp.org>
66938         error: Use system's fcntl function.
66939         * lib/error.c (fcntl): Undefine.
66941 2010-05-09  Jim Meyering  <meyering@redhat.com>
66943         verify: adjust formatting to be more consistent
66944         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
66945         argument-list '('s, and after one comma.
66947 2010-05-09  Bruno Haible  <bruno@clisp.org>
66949         error: More reliable output on mingw.
66950         * lib/error.c: Include <windows.h>.
66951         (is_open): New function.
66952         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
66953         defined.
66955 2010-05-09  Bruno Haible  <bruno@clisp.org>
66957         vasnprintf: Fix syntax errors in libintl build on mingw.
66958         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
66959         pad_ourselves and prec_ourselves after use.
66961 2010-05-08  Bruno Haible  <bruno@clisp.org>
66963         * lib/config.charset: Update comments for Cygwin 1.7.
66964         * lib/localcharset.c: Likewise.
66966 2010-05-07  Jim Meyering  <meyering@redhat.com>
66968         init.sh: improve comments
66969         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
66970         . "${srcdir=.}/init.sh"; path_prepend_ .
66971         Add a note about path_prepend_ and the alternative of using
66972         TESTS_ENVIRONMENT.
66974 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
66976         exclude: Unescape hashed patterns in wildcard mode.
66977         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
66978         to the hash list.
66979         * tests/test-exclude8.sh: New test case.
66980         * modules/exclude-tests: Add new test.
66982 2010-05-05  Eric Blake  <eblake@redhat.com>
66984         verify: automate tests
66985         * modules/verify-tests: New module.
66986         * tests/test-verify.sh: New file.
66987         * tests/test-verify.c: Guard each negative test with a unique id.
66988         Also avoid warning about unused left hand of comma expressions.
66990 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66992         Further improvements to verify.h, suggested by Eric Blake.
66993         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
66994         the GL_* versions, to avoid collision with OpenGL.
66995         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
66996         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
66997         than testing merely whether it's defined.
66999         Modify verify.h to pacify gcc -Wredundant_decls.
67000         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
67001         These use the prefix "GL_" since they're likely to be useful elsewhere.
67002         We may need to break them out into a different .h file.
67003         (__COUNTER__): Define to 0 if the compiler doesn't support it.
67004         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
67005         of verify_function__.
67007 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67009         Tests for module pwrite.
67010         * modules/pwrite-tests: New file.
67011         * tests/test-pwrite.sh: New file.
67012         * tests/test-pwrite.c: New file.
67014         New module pwrite.
67015         * lib/unistd.in.h (pwrite): New declaration.
67016         * lib/pwrite.c: New file, from glibc with modifications.
67017         * m4/pwrite.m4: New file.
67018         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
67019         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
67020         REPLACE_PWRITE.
67021         * modules/pwrite: New file.
67022         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
67023         REPLACE_PWRITE.
67024         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
67025         * doc/posix-functions/pwrite.texi: Mention the new module.
67027 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67029         pread: Update documentation.
67030         * doc/posix-functions/pread.texi: Mention the 'pread' module.
67032 2010-05-04  Eric Blake  <eblake@redhat.com>
67034         docs: update cygwin progress
67035         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
67036         this bug.
67037         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
67038         Added in cygwin 1.7.2.
67039         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
67040         Likewise.
67041         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
67042         Likewise.
67043         * doc/glibc-functions/dup3.texi (dup3): Likewise.
67044         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
67045         * doc/glibc-functions/accept4.texi (accept4): Likewise.
67046         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
67047         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
67048         Mention nproc module.
67049         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
67050         bug in cygwin 1.7.5 addition.
67051         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
67052         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
67053         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
67054         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
67055         1.7.5.
67056         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
67057         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
67058         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
67059         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
67060         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
67061         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
67062         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
67063         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
67064         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
67065         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
67066         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
67067         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
67068         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
67069         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
67070         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
67071         Likewise.
67072         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
67073         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
67074         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
67075         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
67076         Likewise.
67077         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
67078         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
67079         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
67080         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
67081         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
67082         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
67083         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
67084         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
67085         Likewise.
67086         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
67087         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
67088         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
67089         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
67090         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
67091         Likewise.
67092         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
67093         Likewise.
67094         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
67095         Likewise.
67096         * doc/glibc-functions/xdrrec_endofrecord.texi
67097         (xdrrec_endofrecord): Likewise.
67098         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
67099         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
67100         Likewise.
67101         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
67102         Likewise.
67104 2010-05-04  Jim Meyering  <meyering@redhat.com>
67106         gendocs.sh: make its "-s FILE" option more useful
67107         * build-aux/gendocs.sh: When honoring the -s FILE option, update
67108         $PACKAGE to reflect the probably-different basename of "FILE".
67110 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67112         bootstrap: don't ignore download_po_files failure
67113         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
67114         failure.
67116 2010-05-03  Jim Meyering  <meyering@redhat.com>
67118         maint.mk: allow to pass options to gendocs.sh
67119         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
67120         (gendocs_options_): New overridable variable.
67122         gnu-web-doc-update: don't ignore configure or build failure
67123         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
67125         announce-gen: backslash-escape '@'s in --help output
67126         * build-aux/announce-gen: Fix syntax errors.
67128         maint.mk, announce-gen: allow project-specific announcement mail headers
67129         * top/maint.mk (translation_project_): Define default.
67130         (announcement_Cc_, announcement_mail_headers_): Likewise.
67131         (announcement): Invoke announce-gen with new --mail-headers option.
67132         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
67134         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
67135         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
67136         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
67137         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
67138         line in the "err2" output file when running "make check" in verbose
67139         mode (i.e., with set -x enabled).
67141 2010-05-03  Bruno Haible  <bruno@clisp.org>
67143         wctob: Fix for weird platforms.
67144         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
67145         argument value.
67147 2010-05-03  Jim Meyering  <meyering@redhat.com>
67149         maint.mk: prohibit unwarranted use of <strings.h>
67150         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
67151         strings.h in a file that does not also use strcasecmp, strncasecmp,
67152         ffs or ffsll.
67154         maint.mk: remove obsolete comments
67155         * top/maint.mk: Remove stale, commented-out rules.
67157 2010-05-02  Bruno Haible  <bruno@clisp.org>
67159         wcwidth: Declare also when it's aliased.
67160         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
67161         macro.
67163 2010-05-02  Bruno Haible  <bruno@clisp.org>
67165         Fix regression from 2010-04-25.
67166         * gnulib-tool (func_modules_transitive_closure): Check the status of
67167         all modules, not only of the tests that are of the form foo-tests where
67168         foo is a module.
67170 2010-05-02  Bruno Haible  <bruno@clisp.org>
67172         wctob: Work around nasty Cygwin 1.7.2 bug.
67173         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
67174         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
67176 2010-05-01  Bruno Haible  <bruno@clisp.org>
67178         fpurge: Sharper test.
67179         * tests/test-fpurge.c (main): Add one more ftell check.
67180         * modules/fpurge-tests (Depends-on): Add ftell.
67181         Suggested by Eric Blake.
67183 2010-05-01  Bruno Haible  <bruno@clisp.org>
67185         ftello: Another test.
67186         * tests/test-ftello3.c: New file.
67187         * modules/ftello-tests (Files): Add it.
67188         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67189         MOSTLYCLEANFILES.
67191         ftell: Another test.
67192         * tests/test-ftell3.c: New file.
67193         * modules/ftell-tests (Files): Add it.
67194         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67195         MOSTLYCLEANFILES.
67197 2010-05-01  Bruno Haible  <bruno@clisp.org>
67199         ftell, ftello: Work around Solaris bug.
67200         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
67201         * lib/ftello.c: Include stdio-impl.h.
67202         (ftello): On Solaris, when _IOWRT is set, compute the result without
67203         looking at _IOREAD.
67204         * modules/ftello (Files): Add lib/stdio-impl.h.
67205         * doc/posix-functions/ftell.texi: Mention Solaris bug.
67206         * doc/posix-functions/ftello.texi: Likewise.
67207         Reported by Eric Blake.
67209 2010-05-01  Bruno Haible  <bruno@clisp.org>
67211         freading: Adapt to special meaning of _IOREAD flag on Solaris.
67212         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
67213         the _IOWRT flag is also set.
67215 2010-05-01  Bruno Haible  <bruno@clisp.org>
67217         Fix doc about a HP-UX stdio bug.
67218         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
67219         * doc/posix-functions/ftello.texi: Likewise.
67221 2010-05-01  Bruno Haible  <bruno@clisp.org>
67223         lseek test: Fix failure on Solaris.
67224         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
67225         output.
67227 2010-04-30  Jim Meyering  <meyering@redhat.com>
67229         bootstrap: don't ignore failure to generate po*/Makevars
67230         * build-aux/bootstrap (with_gettext): Don't ignore failure
67231         to create po/Makevars or runtime-po/Makevars.
67233 2010-04-29  Eric Blake  <eblake@redhat.com>
67235         headers: relax license to LGPLv2+
67236         * modules/fcntl-h (License): Relax license.
67237         * modules/getopt-posix (License): Likewise.
67238         * modules/locale (License): Likewise.
67239         * modules/math (License): Likewise.
67240         * modules/pty (License): Likewise.
67241         * modules/sched (License): Likewise.
67242         * modules/search (License): Likewise.
67243         * modules/spawn (License): Likewise.
67244         * modules/stdarg (License): Likewise.
67245         * modules/sysexits (License): Likewise.
67247 2010-04-29  Jim Meyering  <meyering@redhat.com>
67249         inttypes: relax license to LGPLv2+
67250         * modules/inttypes (License): Relax license.
67252 2010-04-29  Simon Josefsson  <simon@josefsson.org>
67254         * top/maint.mk (indent): Run twice to produce idempotent results.
67256 2010-04-28  Bruno Haible  <bruno@clisp.org>
67258         getdate: Generate getdate.c in the source directory.
67259         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
67260         MOSTLYCLEANFILES.
67261         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
67263 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
67265         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
67266         is not declared as a const *; avoid warnings in that case.
67268 2010-04-28  Eric Blake  <eblake@redhat.com>
67270         canonicalize-lgpl: avoid compiler warning
67271         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
67272         declaration' / 'extraneous semicolon' warning with some compilers.
67273         Reported by Andreas Gruenbacher.
67275 2010-04-28  Jim Meyering  <meyering@redhat.com>
67277         init.sh: ensure a more reliable exit status when exiting via trap
67278         * tests/init.sh (setup_): Don't rely on $? in signal handler.
67279         Inspired by patches from Dmitry V. Levin.
67280         Also trap on signal 3 (SIGQUIT).
67282 2010-04-27  Bruno Haible  <bruno@clisp.org>
67284         Update doc about utimes().
67285         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
67286         'utimens' module.
67287         Reported by Andreas Gruenbacher <agruen@suse.de>.
67289 2010-04-27  Eric Blake  <eblake@redhat.com>
67291         full-read, full-write: relax license
67292         * modules/full-read (License): Drop to LGPLv2+.
67293         * modules/full-write (License): Likewise.
67294         * modules/safe-read (License): Likewise.
67295         * modules/safe-write (License): Likewise.
67297         pthread: mention library for linking
67298         * modules/pthread (Link): Mention $(LIB_PTHREAD).
67300 2010-04-27  Jim Meyering  <meyering@redhat.com>
67302         maint.mk: fix a bug introduced in last change
67303         * top/maint.mk (gl_assured_headers_): Now that all names are on
67304         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
67305         is not anchored to end of word, it should be adequate.
67307         maint.mk: avoid side-effect in latest syntax-check
67308         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
67309         to run commands via $(shell...), and hence to incur cost only when
67310         the new rule is actually run.
67312         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
67313         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
67314         and use that to create a regexp used to detect all #if HAVE_..._H uses.
67315         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
67316         (gl_assured_headers_, az_, AZ_): Define.
67317         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
67319 2010-04-26  Jim Meyering  <jim@meyering.net>
67320             Bruno Haible  <bruno@clisp.org>
67322         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
67323         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
67324         Prompted by an exchange with Gilles Espinasse.
67326 2010-04-26  Jim Meyering  <meyering@redhat.com>
67328         git-version-gen: aesthetic tweak
67329         * build-aux/git-version-gen: Use "$nl" rather than a literal,
67330         so that the command remains on a single line.
67332 2010-04-26  Eric Blake  <eblake@redhat.com>
67334         git-version-gen: allow use on EBCDIC hosts
67335         * build-aux/git-version-gen (dirty): Use literal rather than tying
67336         ourselves to ascii.
67337         Reported by Steve Goetze.
67339 2010-04-25  Bruno Haible  <bruno@clisp.org>
67341         netdb: Add support for GNULIB_POSIXCHECK.
67342         * lib/netdb.in.h: Include warn-on-use.h.
67343         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
67344         functions are used when GNULIB_POSIXCHECK is defined and the
67345         getaddrinfo module is not in use.
67346         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
67347         freeaddrinfo, gai_strerror, getnameinfo are declared.
67348         * modules/netdb (Depends-on): Add warn-on-use.
67349         (Makefile.am): Include warn-on-use.h in netdb.h.
67351 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
67353         build: avoid "make check" failure without .git/ directory
67354         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
67355         there is no .git/ directory.
67357 2010-04-25  Bruno Haible  <bruno@clisp.org>
67359         ptsname: Fix misuse of ttyname_r.
67360         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
67361         of errno.
67363 2010-04-25  Bruno Haible  <bruno@clisp.org>
67365         ttyname_r: Make it work on Solaris 10.
67366         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
67367         if the system function has the POSIX declaration. Test whether the
67368         function fails if the buffer is less than 128 bytes large.
67369         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
67370         system's ttyname_r function. Provide a reasonably large buffer.
67371         * modules/ttyname_r (Depends-on): Add extensions.
67372         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
67374 2010-04-25  Bruno Haible  <bruno@clisp.org>
67376         Use the 'extensions' module for some more functions on Solaris.
67377         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
67378         module.
67379         * doc/posix-functions/ctime_r.texi: Likewise.
67380         * doc/posix-functions/getgrgid_r.texi: Likewise.
67381         * doc/posix-functions/getgrnam_r.texi: Likewise.
67382         * doc/posix-functions/getpwnam_r.texi: Likewise.
67383         * doc/posix-functions/getpwuid_r.texi: Likewise.
67384         * doc/posix-functions/readdir_r.texi: Likewise.
67385         * doc/posix-functions/sigwait.texi: Likewise.
67386         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
67387         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
67389 2010-04-25  Bruno Haible  <bruno@clisp.org>
67391         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
67392         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
67393         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
67394         * lib/ttyname_r.c: Include <limits.h>.
67395         (ttyname_r): Define using the system's ttyname_r function, if it exists
67396         and not on Solaris.
67397         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
67398         set.
67399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
67400         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
67401         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
67402         Reported by Simon Josefsson.
67404 2010-04-25  Bruno Haible  <bruno@clisp.org>
67406         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
67407         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
67408         * doc/posix-functions/ctime_r.texi: Likewise.
67409         * doc/posix-functions/getgrgid_r.texi: Likewise.
67410         * doc/posix-functions/getgrnam_r.texi: Likewise.
67411         * doc/posix-functions/getlogin_r.texi: Likewise.
67412         * doc/posix-functions/getpwnam_r.texi: Likewise.
67413         * doc/posix-functions/getpwuid_r.texi: Likewise.
67414         * doc/posix-functions/readdir_r.texi: Likewise.
67415         * doc/posix-functions/sigwait.texi: Likewise.
67416         * doc/posix-functions/ttyname_r.texi: Likewise.
67417         Reported by Simon Josefsson.
67419 2010-04-25  Bruno Haible  <bruno@clisp.org>
67421         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
67422         * gnulib-tool (func_usage): Document that --with-*-tests options apply
67423         also to --create-testdir.
67424         (func_acceptable): Don't consider the status of *-tests modules here.
67425         (func_modules_transitive_closure): Consider it here, before including a
67426         test module.
67427         (func_import, func_create_testdir): Set inc_all_direct_tests,
67428         inc_all_indirect_tests.
67429         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
67430         --create-testdir and --create-megatestdir.
67432 2010-04-25  Bruno Haible  <bruno@clisp.org>
67434         gnulib-tool: Add --without-*-tests options.
67435         * gnulib-tool (func_usage): Document the --without-*-tests options.
67436         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
67437         excl_unportable_tests): New variables.
67438         Fail if they are specified with --import or --update.
67439         (func_acceptable): Respect the excl_*_tests variables.
67440         (func_import): Set the excl_*_tests variables to empty.
67442 2010-04-25  Simon Josefsson  <simon@josefsson.org>
67443             Bruno Haible  <bruno@clisp.org>
67445         Work around a MacOS X 10.4 bug with openpty.
67446         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
67447         * tests/test-openpty.c (main): Close the master side explicitly.
67449 2010-04-25  Bruno Haible  <bruno@clisp.org>
67451         strnlen: Fix a C++ test error on MacOS X and Solaris.
67452         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
67453         the function is not declared.
67454         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
67455         Simon Josefsson.
67457 2010-04-24  Bruno Haible  <bruno@clisp.org>
67459         Avoid a gcc warning.
67460         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
67461         of correct type for %08lx directive.
67462         Reported by Eric Blake.
67464 2010-04-24  Bruno Haible  <bruno@clisp.org>
67466         vasnprintf: Correct errno value in case of out-of-memory.
67467         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
67468         or sprintf. Use the errno value from SNPRINTF or sprintf.
67469         Reported by Ian Beckwith <ianb@erislabs.net>.
67471 2010-04-24  Bruno Haible  <bruno@clisp.org>
67473         ansi-c++-opt: Find correct compiler when cross-compiling.
67474         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
67475         AC_CHECK_PROGS.
67476         Reported by Simon Josefsson.
67478 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
67480         vc-list-files: Add support for subversion
67481         * build-aux/vc-list-files: Use "svn list" to generate the list of
67482         files controlled by subversion.
67484 2010-04-23  Jim Meyering  <meyering@redhat.com>
67486         vc-list-files tests: convert to use init.sh
67487         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
67488         path_prepend_.
67489         Use Exit, not exit.
67490         Use skip_ rather than open coding it.
67491         Remove trap set-up and compare definitions.
67492         * tests/test-vc-list-files-git.sh: Likewise.
67493         * modules/vc-list-files-tests (Files): Add tests/init.sh.
67495 2010-04-22  Simon Josefsson  <simon@josefsson.org>
67497         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
67498         backup files.
67500 2010-04-21  Simon Josefsson  <simon@josefsson.org>
67502         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
67504 2010-04-20  Eric Blake  <eblake@redhat.com>
67506         tests: be robust to ignored SIGPIPE
67507         * tests/test-select-in.sh: Consume all output.
67508         * tests/test-lseek.sh: Check correct exit status, while avoiding
67509         EPIPE.
67511 2010-04-20  Simon Josefsson  <simon@josefsson.org>
67512             Bruno Haible  <bruno@clisp.org>
67514         visibility: Don't use -fvisibility if it leads to a warning.
67515         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
67516         yes, don't pretend that visibility works if it leads to a warning.
67517         Reported by Mike Gran <spk121@yahoo.com>.
67519 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
67521         * build-aux/bootstrap: Use "git -h" for testing for supported options
67522         instead of "git --help".  The short-form option only shows a summary,
67523         and doesn't layout the full man page.  Grep for the full option name
67524         in the summary, too.
67526 2010-04-19  Bruno Haible  <bruno@clisp.org>
67528         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
67529         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
67530         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
67531         mention of RELOCATABLE_STRIP.
67532         Reported by Sylvain Beucler <beuc@beuc.net>.
67534 2010-04-19  Bruno Haible  <bruno@clisp.org>
67536         * lib/diffseq.h: Fix typo in comment.
67537         Reported by Eric Blake.
67539 2010-04-19  Bruno Haible  <bruno@clisp.org>
67541         ioctl: Move autoconf macro to a .m4 file.
67542         * m4/ioctl.m4: New file, extracted from modules/ioctl.
67543         * modules/ioctl (Files): Add it.
67544         (configure.ac): Simply invoke gl_FUNC_IOCTL.
67545         Reported by Ian Beckwith <ianb@erislabs.net>.
67547 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
67548             Bruno Haible  <bruno@clisp.org>
67550         diffseq: Accommodate use-case with abstract arrays.
67551         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
67552         is not defined.
67553         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
67554         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
67556 2010-04-18  Bruno Haible  <bruno@clisp.org>
67558         * doc/posix-headers/stdbool.texi: More precise wording.
67560 2010-04-17  Jim Meyering  <meyering@redhat.com>
67562         maint.mk: use gnu-style indentation in an embedded perl script
67563         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
67564         Rename variable: s/two/last_two_bytes/
67566 2010-04-16  Eric Blake  <eblake@redhat.com>
67568         test-stdbool: skip test that fails with Solaris CC
67569         * tests/test-stdbool.c (f): Skip test that causes compilation
67570         error under buggy C++ compiler.
67571         * lib/stdbool.in.h: Document the limitation.
67572         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
67574         setenv: allow compilation with C++
67575         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
67576         register keyword.
67578         stdint: allow test to pass with C++
67579         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
67581         getopt: allow compilation with C++
67582         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
67583         struct.
67584         * lib/getopt.c (_getopt_internal_r): Use correct type.
67585         Reported by Dagobert Michelson, via Joel E. Denny.
67587 2010-04-16  Bruno Haible  <bruno@clisp.org>
67589         Override netdb.h always.
67590         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
67591         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
67592         Reported by Ludovic Courtès <ludo@gnu.org>.
67594 2010-04-15  Bruno Haible  <bruno@clisp.org>
67596         openpty: Fix mistake from 2010-03-21.
67597         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
67598         Reported by Simon Josefsson.
67600 2010-04-15  Eric Blake  <eblake@redhat.com>
67602         test-forkpty: fix expected signature
67603         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
67604         Reported by Simon Josefsson.
67606 2010-04-15  Jim Meyering  <meyering@redhat.com>
67608         maint.mk: texinfo_suffix_re_: correct the default regexp
67609         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
67611         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
67612         make it configurable via texinfo_suffix_re_.
67614 2010-04-14  Eric Blake  <eblake@redhat.com>
67616         strtok_r: relax license to LGPLv2+
67617         * modules/strtok_r (License): Relax license.
67618         Reported by Matthias Bolte.
67620 2010-04-14  Simon Josefsson  <simon@josefsson.org>
67622         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
67623         version 1.4.4 by default instead of requiring the libgcrypt
67624         version used during build.  This makes it possible to use the
67625         application with older but still binary compatible libgcrypt
67626         versions.
67628 2010-04-13  Eric Blake  <eblake@redhat.com>
67630         getopt-gnu: match recent glibc fixes and posix ruling
67631         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
67632         '+' handling, when requesting extensions.
67633         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
67634         'W;' handling.
67635         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
67636         * doc/posix-functions/getopt.texi (getopt): Document this.
67637         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
67638         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67639         Likewise.
67641         getopt: merge bug fixes from glibc
67642         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
67643         diagnostics.  Honor '+:' correctly.  Reject ';'.
67645         getopt-posix: detect MacOS bug
67646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
67647         optind when missing a required argument.
67648         * doc/posix-functions/getopt.texi (getopt): Document the bug.
67649         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
67650         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67651         Likewise.
67653         getopt-posix: avoid spurious failure on Solaris
67654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
67655         an indicator that setting optind=1 is sufficient for reset.
67657         getopt-posix: avoid spurious failure on FreeBSD
67658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
67659         in POSIX mode, since the m4 test uses it.
67661         gnulib-tool: silence warning on BSD sh
67662         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
67664 2010-04-13  Jim Meyering  <meyering@redhat.com>
67666         doc: users.txt: GNU patch now uses gnulib
67667         * users.txt: Add patch.
67669 2010-04-12  Jim Meyering  <meyering@redhat.com>
67671         maint.mk: generate more concise timing data for syntax-check rules
67672         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
67673         " done" from each line that reports a syntax-check test duration.
67675 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
67677         git-version-gen: use "git update-index..." rather than "git status"
67678         * build-aux/git-version-gen: Use git update-index --refresh, not
67679         "git status".  With some versions of git, "git status" would fail
67680         to update the index and result in an unwarranted "-dirty" suffix.
67682 2010-04-11  Jim Meyering  <meyering@redhat.com>
67684         openat: correct formatting (no semantic change)
67685         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
67686         Suggested by Bruno Haible.
67688 2010-04-11  Bruno Haible  <bruno@clisp.org>
67690         Stricter declaration checking in testdirs.
67691         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67692         If for_tests is true, augment AM_CPPFLAGS to define
67693         GNULIB_STRICT_CHECKING.
67694         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
67695         GNULIB_STRICT_CHECKING is defined, verify that the function is
67696         declared.
67698 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
67699             Bruno Haible  <bruno@clisp.org>
67701         libunistring: Improve configure output.
67702         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
67703         Don't say "consider installing GNU libunistring" when checking again
67704         with libiconv.
67706 2010-04-11  Bruno Haible  <bruno@clisp.org>
67708         libunistring: Correct value of $LTLIBUNISTRING.
67709         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
67710         correct the value of $LTLIBUNISTRING.
67712 2010-04-11  Bruno Haible  <bruno@clisp.org>
67714         havelib: Add static libraries to LIBS in the right order.
67715         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
67716         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
67718 2010-04-11  Bruno Haible  <bruno@clisp.org>
67720         libunistring: Detect libunistring also when it depends on libiconv.
67721         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
67722         the second AC_LIB_HAVE_LINKFLAGS invocation.
67724 2010-04-11  James Youngman  <jay@gnu.org>
67726         close-stream: declare local scalars to be "const"
67727         * lib/close-stream.c (close_stream): Make boolean variables const
67728         to document the fact that we set but do not change them.
67730 2010-04-11  Bruno Haible  <bruno@clisp.org>
67732         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
67734 2010-04-11  Jim Meyering  <meyering@redhat.com>
67736         maint.mk: don't include dist-check.mk
67737         * top/maint.mk: Remove bogus include directive.
67739         maint.mk: improve empty-line-at-EOF check
67740         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
67741         solution, rather than tail+Perl-based one.  The latter would read
67742         a few kilobytes from the end of each file, and did not handle empty
67743         files properly.
67745         maint.mk: print the elapsed time for each syntax-check rule
67746         * top/maint.mk (sc_m_rules_): Save start time in a file.
67747         (sc_z_rules_): New rules: remove temp file and print elapsed time.
67748         (local-check): Interpose the .z rules
67750 2010-04-11  Jim Meyering  <meyering@redhat.com>
67752         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
67753         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
67754         empty file with one that ends in an empty line.
67756 2010-04-10  Bruno Haible  <bruno@clisp.org>
67758         mkdir: Make it work on mingw64.
67759         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
67760         * lib/mkdir.c: Update comment.
67761         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
67763 2010-04-10  Bruno Haible  <bruno@clisp.org>
67765         Don't override improved macro from newer autoconf.
67766         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
67767         autoconf >= 2.62.
67768         Reported by Joel E. Denny <jdenny@clemson.edu>.
67770 2010-04-10  Jim Meyering  <meyering@redhat.com>
67772         maint.mk: new syntax-check rule: prohibit empty lines at end of file
67773         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
67775         maint.mk: correct a diagnostic
67776         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
67777         in diagnostic; now use $prohibit.
67779 2010-04-10  Bruno Haible  <address@hidden>
67781         fchownat: Fix a C++ test error on Solaris 8.
67782         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
67783         the function does not exist.
67785 2010-04-10  Bruno Haible  <bruno@clisp.org>
67787         vasnprintf: Add more tests.
67788         * tests/test-vasnprintf-posix.c: Include <errno.h>.
67789         (test_function): Test converting an invalid wide string.
67791         vasnprintf: Correct handling of unconvertible wide string arguments.
67792         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
67793         VASNPRINTF.
67794         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
67795         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
67796         smaller than the expected maximum need for the directive. Set errno to
67797         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
67798         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
67799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
67800         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
67801         * modules/vasnprintf (Files): Add m4/printf.m4.
67802         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67804 2010-04-10  Bruno Haible  <bruno@clisp.org>
67806         vasnprintf: Fix crash in %ls directive.
67807         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
67808         string is passed as argument to %ls, with no precision and no width.
67809         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67811 2010-04-10  Bruno Haible  <bruno@clisp.org>
67813         vasnprintf: Fix multiple test failures on mingw.
67814         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
67815         _snprintf, or snwprintf, not _snwprintf.
67817 2010-04-10  Bruno Haible  <bruno@clisp.org>
67819         write: Fix a C++ test error on mingw.
67820         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
67822 2010-04-10  Bruno Haible  <bruno@clisp.org>
67824         vasnprintf test: Reduce code duplication.
67825         * tests/test-vasnprintf.c (test_function): New function, extracted from
67826         test_vasnprintf.
67827         (test_vasnprintf, test_asnprintf): Invoke it.
67829 2010-04-10  Bruno Haible  <bruno@clisp.org>
67831         strnlen: Fix warning in C++ mode on MacOS X.
67832         * lib/string.in.h (strnlen): Use the modern idiom.
67833         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
67834         defining strnlen as a macro already in <config.h>.
67835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67836         REPLACE_STRNLEN.
67837         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
67838         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67840 2010-04-08  James Youngman  <jay@gnu.org>
67842         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
67843         the example.
67845 2010-04-09  Jim Meyering  <meyering@redhat.com>
67847         maint.mk: print better diagnostic when there is no $(_hv_file)
67848         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
67849         announce that when $(_hv_file) (aka help-version) does not exist.
67851         init.sh: run tr in the "C" locale to avoid multibyte interpretation
67852         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
67853         not try to interpret its random input bytes.  Jarno Rajahalme reported
67854         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
67855         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
67856         (mktempd_): Likewise, just in case.
67858         ftruncate: add two years to projected module removal date: 2012
67859         * m4/ftruncate.m4: Adjust comments.
67861         ftruncate: mark module as obsolete; even MinGW provides it, now
67862         * modules/ftruncate (Status): Obsolete.
67863         (Notice): Say that.
67864         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
67865         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
67867 2010-04-08  Bruno Haible  <bruno@clisp.org>
67869         Fix side effects from tests-related modules.
67870         * modules/dprintf-posix (Comment): New section.
67871         * modules/fprintf-posix (Comment): Likewise.
67872         * modules/obstack-printf-posix (Comment): Likewise.
67873         * modules/printf-posix (Comment): Likewise.
67874         * modules/snprintf-posix (Comment): Likewise.
67875         * modules/sprintf-posix (Comment): Likewise.
67876         * modules/vasnprintf-posix (Comment): Likewise.
67877         * modules/vasprintf-posix (Comment): Likewise.
67878         * modules/vdprintf-posix (Comment): Likewise.
67879         * modules/vfprintf-posix (Comment): Likewise.
67880         * modules/vprintf-posix (Comment): Likewise.
67881         * modules/vsnprintf-posix (Comment): Likewise.
67882         * modules/vsprintf-posix (Comment): Likewise.
67883         * modules/xprintf-posix (Comment): Likewise.
67884         * modules/xvasprintf-posix (Comment): Likewise.
67885         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
67886         * modules/floorf-tests (Depends-on): Likewise.
67887         * modules/round-tests (Depends-on): Likewise.
67888         * modules/roundf-tests (Depends-on): Likewise.
67889         * modules/trunc-tests (Depends-on): Likewise.
67890         * modules/truncf-tests (Depends-on): Likewise.
67891         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
67892         'fprintf-posix' module is not present.
67893         * tests/test-floorf2.c (check): Likewise.
67894         * tests/test-trunc2.c (check): Likewise.
67895         * tests/test-truncf2.c (check): Likewise.
67896         * tests/test-round2.c (equal): Likewise.
67897         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67899 2010-04-07  Karl Berry  <karl@gnu.org>
67901         * config/srclist.txt,
67902         * config/srclistvars.sh,
67903         * config/srclist-update: doc fixes.
67905 2010-04-07  Jim Meyering  <meyering@redhat.com>
67907         maint.mk: add a PATH crosschecking syntax-check rule
67908         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
67909         Useful if you use a test like the one in help-version (coreutils,
67910         diffutils, grep, gzip) that ensures $(VERSION) matches what is
67911         printed by prog --version.
67913 2010-04-06  Bruno Haible  <bruno@clisp.org>
67915         Fix link error on mingw.
67916         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
67917         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
67919 2010-04-06  Bruno Haible  <bruno@clisp.org>
67921         Assume rmdir exists.
67922         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
67924 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
67926         doc: update users.txt
67927         * users.txt: Add gcal.
67929 2010-04-06  Jim Meyering  <meyering@redhat.com>
67931         init.sh: simply unset TMPDIR rather than risking env -i
67932         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
67933         although it probably works fine on all Unix-based systems, some
67934         systems (Cygwin?) cannot tolerate a totally cleared environment.
67935         Suggestion from Eric Blake.
67937 2010-04-06  Jim Meyering  <meyering@redhat.com>
67939         init.sh: portability fix: use env's POSIX-specified -i option not -u
67940         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
67941         than unportable env -u.  Solaris 5.11's env lacks support for -u.
67943 2010-04-05  Bruno Haible  <bruno@clisp.org>
67945         btowc: Work around Cygwin 1.7.2 bug.
67946         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
67947         does not map NUL to 0.
67948         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
67950 2010-04-05  Bruno Haible  <bruno@clisp.org>
67952         Make the multithread modules work on Cygwin 1.7.2.
67953         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
67954         imported symbols can be declared weak, so that it returns "no" on
67955         Cygwin 1.7.2.
67957 2010-04-05  Bruno Haible  <bruno@clisp.org>
67959         Use the module 'strncat'.
67960         * modules/unistr/u8-strncat (Depends-on): Add strncat.
67962         Tests for module 'strncat'.
67963         * modules/strncat-tests: New file.
67964         * tests/test-strncat.c: New file.
67966         New module 'strncat'.
67967         * lib/string.in.h (strncat): New declaration.
67968         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
67969         * m4/strncat.m4: New file, based on m4/memchr.m4.
67970         * modules/strncat: New file.
67971         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
67972         is declared.
67973         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
67974         REPLACE_STRNCAT.
67975         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
67976         REPLACE_STRNCAT.
67977         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
67978         module.
67979         * tests/test-string-c++.cc: Check signature of strncat.
67981 2010-04-05  Jim Meyering  <meyering@redhat.com>
67983         xstrtoumax-tests: convert to use init.sh
67984         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
67985         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
67986         Use Exit, not exit.
67987         Remove uses of $EXEEXT and "./" to run a program in the current dir.
67989         xstrtoimax-tests: convert to use init.sh
67990         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
67991         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
67992         Use Exit, not exit.
67993         Remove uses of $EXEEXT and "./" to run a program in the current dir.
67995 2010-04-05  Bruno Haible  <bruno@clisp.org>
67997         sys_socket: Avoid #define replacements in C++ mode.
67998         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
67999         warning to the function if possible, rather than #defining the symbol
68000         to a dysfunctional alias.
68002 2010-04-05  Bruno Haible  <bruno@clisp.org>
68004         fseeko: Fix C++ test error on mingw.
68005         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
68006         gl_FUNC_FSEEKO.
68007         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
68008         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
68009         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
68010         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
68012 2010-04-05  Bruno Haible  <bruno@clisp.org>
68014         duplocale: Improve test output.
68015         * tests/test-duplocale.c (main): Print reason for skipped test.
68017 2010-04-05  Bruno Haible  <bruno@clisp.org>
68019         Assume rmdir exists.
68020         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
68021         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
68023 2010-04-05  Bruno Haible  <bruno@clisp.org>
68025         Fix link error on Solaris 8 with cc.
68026         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
68028 2010-04-05  Bruno Haible  <bruno@clisp.org>
68030         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68031         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
68033 2010-04-05  Bruno Haible  <bruno@clisp.org>
68035         vasprintf: Update documentation.
68036         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
68038 2010-04-05  Bruno Haible  <bruno@clisp.org>
68040         ptsname: Improve test.
68041         * tests/test-ptsname.c (main): Also try the various master names of BSD
68042         systems.
68044 2010-04-05  Bruno Haible  <bruno@clisp.org>
68046         memchr: Avoid a possible C++ test error.
68047         * lib/string.in.h (memchr): Provide declaration if function is missing.
68048         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
68049         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
68050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
68051         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
68053 2010-04-05  Bruno Haible  <bruno@clisp.org>
68055         strtok_r: Improve idiom.
68056         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
68057         AC_LIBOBJ is used.
68059 2010-04-05  Bruno Haible  <bruno@clisp.org>
68061         strdup: Improve idiom.
68062         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
68063         AC_LIBOBJ is used.
68064         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
68065         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
68066         when AC_LIBOBJ is used.
68068 2010-04-05  Bruno Haible  <bruno@clisp.org>
68070         mbsinit, mbrtowc, wcrtomb: Improve idioms.
68071         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
68072         don't set REPLACE_MBSINIT to 1.
68073         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
68074         don't set REPLACE_MBRTOWC to 1.
68075         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
68076         exist, don't set REPLACE_MBSRTOWCS to 1.
68077         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
68078         exist, don't set REPLACE_MBSNRTOWCS to 1.
68079         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
68080         don't set REPLACE_WCRTOMB to 1.
68081         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
68082         exist, don't set REPLACE_WCSRTOMBS to 1.
68083         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
68084         exist, don't set REPLACE_WCSNRTOMBS to 1.
68086 2010-04-05  Bruno Haible  <bruno@clisp.org>
68088         ldexpl: Improve idiom.
68089         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
68090         make sure to set HAVE_DECL_LDEXPL to 0.
68092 2010-04-05  Jim Meyering  <meyering@redhat.com>
68094         xstrtol-tests: convert to use init.sh
68095         * modules/xstrtol-tests (Files): Add tests/init.sh.
68096         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68097         Use Exit, not exit.
68098         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68100         atexit-tests: convert to use init.sh
68101         * modules/atexit-tests (Files): Add tests/init.sh.
68102         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68103         Use Exit, not exit.
68104         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68106         init.sh: fix typo
68107         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
68109         init.sh: make it easier for a test script to write to the tty, ...
68110         when using automake's parallel-tests mode.
68111         * tests/init.sh (stderr_fileno_): Define overridable variable.
68112         (warn_): New function, to use it.
68113         (fail_, skip_, framework_failure_): Use warn_.
68115 2010-04-04  Bruno Haible  <bruno@clisp.org>
68117         btowc: Avoid warning.
68118         * lib/btowc.c: Include <stdlib.h>.
68119         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
68121 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68122             Bruno Haible  <bruno@clisp.org>
68124         wchar: Port to NetBSD 1.5.
68125         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
68126         * lib/wctype.in.h (WEOF): Likewise.
68128 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68129             Bruno Haible  <bruno@clisp.org>
68131         Port extended stdio to NetBSD 1.5.
68132         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
68133         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
68134         older.
68136 2010-04-04  Bruno Haible  <bruno@clisp.org>
68138         string: Remove unused substitution.
68139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68140         HAVE_DECL_STRERROR.
68141         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
68143 2010-04-04  Bruno Haible  <bruno@clisp.org>
68145         strtod: Avoid a possible C++ test error.
68146         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
68147         set REPLACE_STRTOD.
68149 2010-04-04  Bruno Haible  <bruno@clisp.org>
68151         strerror: Update documentation.
68152         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
68154 2010-04-04  Bruno Haible  <bruno@clisp.org>
68156         stdio: Fix some C++ test errors on Solaris 8 with GCC.
68157         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
68158         _GL_CXXALIAS_SYS_CAST.
68160 2010-04-04  Bruno Haible  <bruno@clisp.org>
68162         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68163         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
68164         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
68165         REPLACE_FREXPL to 1.
68166         * doc/posix-functions/frexpl.texi: Update documentation.
68168 2010-04-04  Bruno Haible  <bruno@clisp.org>
68170         math: Fix some C++ test errors on Solaris 8 and Cygwin.
68171         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
68173 2010-04-04  Bruno Haible  <bruno@clisp.org>
68175         Implement nanosleep for native Windows.
68176         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
68178 2010-04-04  Bruno Haible  <bruno@clisp.org>
68180         math: Fix some C++ test errors on Solaris 8.
68181         * lib/math.in.h (truncf, trunc): Use simpler idiom.
68183 2010-04-04  Bruno Haible  <bruno@clisp.org>
68185         math: Fix some C++ test errors on Cygwin.
68186         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
68187         truncl): Provide declaration if the system does not have it.
68188         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
68189         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
68190         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
68191         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
68192         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
68193         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
68194         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
68195         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
68196         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
68197         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
68198         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
68199         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
68200         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
68201         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
68202         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
68203         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
68204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
68205         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68206         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68207         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
68208         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68209         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68211 2010-04-04  Bruno Haible  <bruno@clisp.org>
68213         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
68214         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
68215         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
68216         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
68217         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
68218         * m4/isinf.m4 (gl_ISINF): Likewise.
68219         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
68221 2010-04-04  Bruno Haible  <bruno@clisp.org>
68223         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
68224         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
68226 2010-04-04  Bruno Haible  <bruno@clisp.org>
68228         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
68229         * modules/tmpfile (configure.ac): Update.
68231         tmpfile: Fix C++ test error on mingw.
68232         * lib/stdio.in.h (tmpfile): New declaration.
68233         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
68234         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
68235         * modules/tmpfile (Depends-on): Add stdio.
68236         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68237         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
68238         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
68239         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
68240         REPLACE_TMPFILE.
68241         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
68243 2010-04-04  Bruno Haible  <bruno@clisp.org>
68245         ioctl: Fix C++ test error on mingw.
68246         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
68247         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
68248         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
68250 2010-04-03  Bruno Haible  <bruno@clisp.org>
68252         wcwidth: Fix C++ test error on mingw.
68253         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
68254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
68255         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
68257 2010-04-03  Bruno Haible  <bruno@clisp.org>
68259         nanosleep: Fix C++ test error on mingw.
68260         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
68261         * lib/time.in.h (nanosleep): Use modern idiom.
68262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
68263         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
68264         REPLACE_NANOSLEEP to 1.
68265         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
68266         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
68268 2010-04-03  Bruno Haible  <bruno@clisp.org>
68270         strptime: Fix C++ test error on mingw.
68271         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
68272         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
68273         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
68274         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
68275         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
68276         not REPLACE_STRPTIME.
68277         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
68278         REPLACE_STRPTIME.
68280 2010-04-03  Bruno Haible  <bruno@clisp.org>
68282         timegm: Fix C++ test error on mingw.
68283         * lib/time.in.h (timegm): Use modern idiom.
68284         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
68285         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
68286         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
68287         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
68289 2010-04-03  Bruno Haible  <bruno@clisp.org>
68291         timegm: Assume declaration if function exists.
68292         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
68293         if it exists. Don't clobber ac_cv_func_timegm.
68295 2010-04-03  Bruno Haible  <bruno@clisp.org>
68297         time_r: Fix C++ test error on mingw.
68298         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
68299         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
68300         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
68301         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
68302         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
68304 2010-04-03  Bruno Haible  <bruno@clisp.org>
68306         time_r: Minor updates.
68307         * modules/time_r (Description): Mention the provided functions.
68308         * lib/time_r.c: Don't include <string.h>.
68309         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
68310         * doc/posix-functions/localtime_r.texi: Likewise.
68312 2010-04-03  Bruno Haible  <bruno@clisp.org>
68314         time: Fix regression introduced on 2010-03-08.
68315         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
68316         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
68318 2010-04-03  Jim Meyering  <meyering@redhat.com>
68320         maint.mk: don't silently disable project-specific syntax-check rules
68321         * top/maint.mk (_prohibit_regexp): Define, to help people realize
68322         that they need to convert their project-specific syntax-check rules
68323         to use the new _sc_search_regexp.
68325 2010-04-03  Bruno Haible  <bruno@clisp.org>
68327         fchdir: Fix regression introduced on 2010-03-08.
68328         * lib/unistd.in.h (fchdir): Fix declaration.
68329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
68330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
68331         REPLACE_FCHDIR.
68332         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
68333         REPLACE_FCHDIR.
68335 2010-04-03  Bruno Haible  <bruno@clisp.org>
68337         getpagesize: Fix C++ test error on mingw.
68338         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
68339         system does not declare the function.
68340         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
68341         declared.
68342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68343         HAVE_DECL_GETPAGESIZE.
68344         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
68346 2010-04-03  Bruno Haible  <bruno@clisp.org>
68348         stdio: Make C++ tests work on mingw.
68349         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
68350         does not declare the function.
68352 2010-04-03  Bruno Haible  <bruno@clisp.org>
68354         ftello: Fix C++ test error on mingw.
68355         * lib/stdio.in.h (ftello): Use modern idiom.
68356         * lib/ftello.c (ftello): Renamed from rpl_ftello.
68357         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
68358         is missing and that it needs to be replaced.
68359         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
68360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
68361         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
68363 2010-04-03  Bruno Haible  <bruno@clisp.org>
68365         fseeko: Fix C++ test error on mingw.
68366         * lib/stdio.in.h (fseeko): Use modern idiom.
68367         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
68368         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
68369         is missing and that it needs to be replaced.
68370         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
68371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
68372         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
68374 2010-04-03  Bruno Haible  <bruno@clisp.org>
68376         mkstemp: Fix C++ test error on mingw.
68377         * lib/stdlib.in.h (mkstemp): Use modern idiom.
68378         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
68379         function is missing and that it needs to be replaced.
68380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
68381         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
68383 2010-04-03  Bruno Haible  <bruno@clisp.org>
68385         stpncpy: Fix C++ test error on mingw.
68386         * lib/string.in.h (stpncpy): Use modern idiom.
68387         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
68388         function is missing and that it needs to be replaced.
68389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68390         REPLACE_STPNCPY.
68391         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
68393 2010-04-03  Bruno Haible  <bruno@clisp.org>
68395         sys_stat: Fix C++ test error on mingw.
68396         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
68397         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
68399 2010-04-03  Bruno Haible  <bruno@clisp.org>
68401         pty: Update doc.
68402         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
68404 2010-04-03  Bruno Haible  <bruno@clisp.org>
68406         unistd: Fix C++ test error on mingw.
68407         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
68409 2010-04-03  Bruno Haible  <bruno@clisp.org>
68411         Update doc regarding mingw.
68412         * doc/glibc-functions/openpty.texi: Update regarding mingw.
68413         * doc/glibc-functions/login_tty.texi: Likewise.
68414         * doc/glibc-functions/forkpty.texi: Likewise.
68416 2010-04-03  Bruno Haible  <bruno@clisp.org>
68418         stdlib: Avoid compilation failure of c-strtold on mingw.
68419         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
68421 2010-04-03  Bruno Haible  <bruno@clisp.org>
68423         locale: Make C++ tests work on Cygwin and mingw.
68424         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
68425         cannot provide the function.
68426         Reported by Simon Josefsson.
68428 2010-04-03  Bruno Haible  <bruno@clisp.org>
68430         localename: Port to MacOS X 10.6.
68431         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
68432         memory layout of the locales in MacOS X 10.6 as well.
68433         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
68435 2010-04-02  Bruno Haible  <bruno@clisp.org>
68437         gnulib-tool: Ensure that long-running tests are executed last.
68438         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
68439         running tests after the one for the other tests.
68441 2010-04-02  Bruno Haible  <bruno@clisp.org>
68443         gnulib-tool: Ensure the tests in the main directory are executed first.
68444         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
68445         start with the current directory.
68447 2010-04-02  Bruno Haible  <bruno@clisp.org>
68449         Tests for module 'havelib', moved here from GNU gettext.
68450         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
68451         modifications.
68452         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
68453         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
68454         with modifications.
68455         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
68456         modifications.
68457         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
68458         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
68459         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
68460         with modifications.
68461         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
68462         with modifications.
68463         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
68464         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
68465         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
68466         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
68467         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
68468         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
68469         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
68470         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
68471         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
68472         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
68473         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
68474         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
68475         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
68476         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
68477         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
68478         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
68479         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
68480         with modifications.
68481         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
68482         with modifications.
68483         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
68484         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
68485         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
68486         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
68487         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
68488         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
68489         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
68490         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
68491         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
68492         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
68493         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
68494         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
68495         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
68496         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
68497         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
68498         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
68499         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
68500         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
68501         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
68502         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
68503         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
68504         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
68505         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
68506         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
68507         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
68508         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
68509         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
68510         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
68511         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
68512         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
68513         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
68514         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
68515         * tests/havelib/rpathx/rpathx.c: New file, from
68516         gettext/autoconf-lib-link.
68517         * tests/havelib/rpathx/Makefile.am: New file, from
68518         gettext/autoconf-lib-link.
68519         * tests/havelib/rpathx/configure.ac: New file, from
68520         gettext/autoconf-lib-link with modifications.
68521         * tests/havelib/rpathy/rpathy.c: New file, from
68522         gettext/autoconf-lib-link.
68523         * tests/havelib/rpathy/Makefile.am: New file, from
68524         gettext/autoconf-lib-link.
68525         * tests/havelib/rpathy/configure.ac: New file, from
68526         gettext/autoconf-lib-link with modifications.
68527         * tests/havelib/rpathz/rpathz.c: New file, from
68528         gettext/autoconf-lib-link.
68529         * tests/havelib/rpathz/Makefile.am: New file, from
68530         gettext/autoconf-lib-link.
68531         * tests/havelib/rpathz/configure.ac: New file, from
68532         gettext/autoconf-lib-link with modifications.
68533         * tests/havelib/rpathlx/usex.c: New file, from
68534         gettext/autoconf-lib-link.
68535         * tests/havelib/rpathlx/Makefile.am: New file, from
68536         gettext/autoconf-lib-link.
68537         * tests/havelib/rpathlx/configure.ac: New file, from
68538         gettext/autoconf-lib-link with modifications.
68539         * tests/havelib/rpathly/usey.c: New file, from
68540         gettext/autoconf-lib-link.
68541         * tests/havelib/rpathly/Makefile.am: New file, from
68542         gettext/autoconf-lib-link.
68543         * tests/havelib/rpathly/configure.ac: New file, from
68544         gettext/autoconf-lib-link with modifications.
68545         * tests/havelib/rpathlz/usez.c: New file, from
68546         gettext/autoconf-lib-link.
68547         * tests/havelib/rpathlz/Makefile.am: New file, from
68548         gettext/autoconf-lib-link.
68549         * tests/havelib/rpathlz/configure.ac: New file, from
68550         gettext/autoconf-lib-link with modifications.
68551         * tests/havelib/rpathlyx/usey.c: New file, from
68552         gettext/autoconf-lib-link.
68553         * tests/havelib/rpathlyx/Makefile.am: New file, from
68554         gettext/autoconf-lib-link.
68555         * tests/havelib/rpathlyx/configure.ac: New file, from
68556         gettext/autoconf-lib-link with modifications.
68557         * tests/havelib/rpathlzyx/usez.c: New file, from
68558         gettext/autoconf-lib-link.
68559         * tests/havelib/rpathlzyx/Makefile.am: New file, from
68560         gettext/autoconf-lib-link.
68561         * tests/havelib/rpathlzyx/configure.ac: New file, from
68562         gettext/autoconf-lib-link with modifications.
68563         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
68564         with modifications.
68566 2010-04-02  Bruno Haible  <bruno@clisp.org>
68568         gnulib-tool: Create distributed built sources also for the tests.
68569         * gnulib-tool (func_create_testdir): Also generate distributed built
68570         sources in the tests directory.
68572 2010-04-02  Bruno Haible  <bruno@clisp.org>
68574         gnulib-tool: Obey user's environment variables.
68575         * gnulib-tool (func_create_testdir): When creating built sources,
68576         respect the environment variables for autoconf, automake, etc. given by
68577         the user.
68579 2010-04-02  Bruno Haible  <bruno@clisp.org>
68581         gnulib-tool: Provide the value of --m4-base to modules.
68582         * gnulib-tool (func_import, func_create_testdir): Emit a definition
68583         of gl_m4_base.
68585 2010-04-02  Eric Blake  <eblake@redhat.com>
68587         maint.mk: fix some fallout
68588         * NEWS: Document the incompatible change, and its effect on cfg.mk.
68589         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
68591 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
68593         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
68594         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
68595         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
68596         (sc_cast_of_x_alloc_return_value): Likewise.
68597         (sc_cast_of_alloca_return_value): Likewise.
68598         (sc_space_tab): Likewise.
68599         (sc_prohibit_atoi_atof): Likewise.
68600         (sc_prohibit_magic_number_exit): Likewise.
68601         (sc_error_exit_success): Likewise.
68602         (sc_file_system): Likewise.
68603         (sc_prohibit_have_config_h): Likewise.
68604         (sc_require_config_h): Likewise.
68605         (sc_prohibit_HAVE_MBRTOWC): Likewise.
68606         (sc_obsolete_symbols): Likewise.
68607         (sc_changelog): Likewise.
68608         (sc_program_name): Likewise.
68609         (sc_the_the): Likewise.
68610         (sc_trailing_blank): Likewise.
68611         (sc_two_space_separator_in_usage): Likewise.
68612         (sc_useless_cpp_parens): Likewise.
68613         (sc_GPL_version): Likewise.
68614         (sc_GFDL_version): Likewise.
68615         (sc_texinfo_acronym): Likewise.
68616         (sc_prohibit_cvs_keyword): Likewise.
68617         (sc_prohibit_stat_st_blocks): Likewise.
68618         (sc_prohibit_S_IS_definition): Likewise.
68619         (sc_redundant_const): Likewise.
68620         (sc_makefile_TAB_only_indentation): Likewise.
68621         (sc_m4_quote_check): Likewise.
68622         (sc_makefile_path_separator_check): Likewise.
68623         (sc_copyright_check): Likewise.
68624         (sc_Wundef_boolean): Likewise.
68625         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
68627         maint.mk: match 0 or more whitespace-before-function-call '('
68628         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
68629         that have zero or two-and-more spaces between the function name
68630         and the open parenthesis.
68631         (sc_error_message_warn_fatal): Likewise.
68632         (sc_error_message_uppercase): Likewise.
68633         (sc_error_message_period): Likewise.
68635 2010-03-31  Eric Blake  <eblake@redhat.com>
68637         maint.mk: check for [ as well as test
68638         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
68639         Based on a libvirt report by Matthias Bolte.
68641         gnumakefile: don't squelch _version output
68642         * top/GNUmakefile (_version): Create one-shot dependency rather
68643         than using $(shell) when version must be regenerated.
68644         (_autoreconf): Run verbosely, by default.
68646         sys_time: avoid compiler warnings
68647         * lib/sys_time.in.h (includes): Ensure gcc pragma is
68648         unconditional, fixing regression from 2010-03-29.
68649         Reported by Simon Josefsson.
68651 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
68653         maint.mk: s/_header_without_use/_sc_header_without_use/
68654         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
68655         (sc_prohibit_assert_without_use): Use the new name.
68656         (sc_prohibit_close_stream_without_use): Likewise.
68657         (sc_prohibit_getopt_without_use): Likewise.
68658         (sc_prohibit_quotearg_without_use): Likewise.
68659         (sc_prohibit_quote_without_use): Likewise.
68660         (sc_prohibit_long_options_without_use): Likewise.
68661         (sc_prohibit_inttostr_without_use): Likewise.
68662         (sc_prohibit_ignore_value_without_use): Likewise.
68663         (sc_prohibit_error_without_use): Likewise.
68664         (sc_prohibit_xalloc_without_use): Likewise.
68665         (sc_prohibit_hash_without_use): Likewise.
68666         (sc_prohibit_hash_pjw_without_use): Likewise.
68667         (sc_prohibit_safe_read_without_use): Likewise.
68668         (sc_prohibit_argmatch_without_use): Likewise.
68669         (sc_prohibit_canonicalize_without_use): Likewise.
68670         (sc_prohibit_root_dev_ino_without_use): Likewise.
68671         (sc_prohibit_openat_without_use): Likewise.
68672         (sc_prohibit_c_ctype_without_use): Likewise.
68673         (sc_prohibit_signal_without_use): Likewise.
68674         (sc_prohibit_intprops_without_use): Likewise.
68676 2010-03-30  Eric Blake  <eblake@redhat.com>
68678         maint: improve module indicators
68679         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
68680         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
68681         columns, and avoid extra macro expansion.
68683         fdopendir: work around FreeBSD bug
68684         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
68685         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
68686         * modules/dirent (Makefile.am): Substitute it.
68687         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
68688         declaration.
68689         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
68690         fix.
68691         Reported by Christian Weisgerber <naddy@mips.inka.de>.
68693 2010-03-29  Bruno Haible  <bruno@clisp.org>
68695         Emit #pragma system_header after the inclusion guard, not before.
68696         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
68697         guard that spans the entire file, not before. This enables an
68698         optimization in GCC's preprocessor.
68699         * lib/ctype.in.h: Likewise.
68700         * lib/dirent.in.h: Likewise.
68701         * lib/errno.in.h: Likewise.
68702         * lib/float.in.h: Likewise.
68703         * lib/getopt.in.h: Likewise.
68704         * lib/iconv.in.h: Likewise.
68705         * lib/langinfo.in.h: Likewise.
68706         * lib/locale.in.h: Likewise.
68707         * lib/math.in.h: Likewise.
68708         * lib/netdb.in.h: Likewise.
68709         * lib/netinet_in.in.h: Likewise.
68710         * lib/pty.in.h: Likewise.
68711         * lib/sched.in.h: Likewise.
68712         * lib/se-selinux.in.h: Likewise.
68713         * lib/search.in.h: Likewise.
68714         * lib/spawn.in.h: Likewise.
68715         * lib/stdarg.in.h: Likewise.
68716         * lib/stdint.in.h: Likewise.
68717         * lib/string.in.h: Likewise.
68718         * lib/strings.in.h: Likewise.
68719         * lib/sys_file.in.h: Likewise.
68720         * lib/sys_ioctl.in.h: Likewise.
68721         * lib/sys_time.in.h: Likewise.
68722         * lib/sys_times.in.h: Likewise.
68723         * lib/sys_utsname.in.h: Likewise.
68724         * lib/sys_wait.in.h: Likewise.
68725         * lib/sysexits.in.h: Likewise.
68726         * lib/wctype.in.h: Likewise.
68728 2010-03-28  James Youngman  <jay@gnu.org>
68730         save-cwd: don't leak a file descriptor when the caller execs.
68731         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
68732         saved file descriptor.
68733         * modules/save-cwd (Depends-on): Depend on cloexec.
68735 2010-03-29  Bruno Haible  <bruno@clisp.org>
68737         Remove vestiges of fts-lgpl module.
68738         * lib/fts_.h: Assume GNULIB_FTS is 1.
68739         * lib/fts.c: Likewise.
68740         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
68742 2010-03-28  Bruno Haible  <bruno@clisp.org>
68744         Fix definition of tests witness macro.
68745         * gnulib-tool (func_import): Fix definition of witness macro.
68747 2010-03-28  Bruno Haible  <bruno@clisp.org>
68749         Fix ioctl's protoype on glibc systems.
68750         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
68751         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
68752         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
68753         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
68754         signature. If not, arrange to replace the ioctl function.
68755         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
68756         REPLACE_IOCTL.
68757         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
68758         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
68759         Reported by Ludovic Courtès <ludo@gnu.org>.
68761 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
68763         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
68764         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
68765         made it so grep -r --include=GLOB* ... did not work.
68767 2010-03-26  Jim Meyering  <meyering@redhat.com>
68768             Eric Blake  <eblake@redhat.com>
68770         maint.mk: prohibit use of test's -o and -a operators
68771         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
68773 2010-03-28  Bruno Haible  <bruno@clisp.org>
68775         Remove unused GNULIB_XYZ macro definitions.
68776         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
68777         invocation.
68779 2010-03-28  Bruno Haible  <bruno@clisp.org>
68781         Mark privileged tests modules.
68782         * modules/idpriv-drop-tests (Status): New section.
68783         * modules/idpriv-droptemp-tests (Status): New section.
68785 2010-03-28  Bruno Haible  <bruno@clisp.org>
68787         Split C++ tests into separate tests modules.
68788         * modules/dirent-c++-tests: New file, extracted from
68789         modules/dirent-tests.
68790         * modules/dirent-tests: Depend on it.
68791         * modules/fcntl-h-c++-tests: New file, extracted from
68792         modules/fcntl-h-tests.
68793         * modules/fcntl-h-tests: Depend on it.
68794         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
68795         * modules/glob-tests: Depend on it.
68796         * modules/iconv-h-c++-tests: New file, extracted from
68797         modules/iconv-h-tests.
68798         * modules/iconv-h-tests: Depend on it.
68799         * modules/langinfo-c++-tests: New file, extracted from
68800         modules/langinfo-tests.
68801         * modules/langinfo-tests: Depend on it.
68802         * modules/locale-c++-tests: New file, extracted from
68803         modules/locale-tests.
68804         * modules/locale-tests: Depend on it.
68805         * modules/math-c++-tests: New file, extracted from modules/math-tests.
68806         * modules/math-tests: Depend on it.
68807         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
68808         * modules/pty-tests: Depend on it.
68809         * modules/search-c++-tests: New file, extracted from
68810         modules/search-tests.
68811         * modules/search-tests: Depend on it.
68812         * modules/signal-c++-tests: New file, extracted from
68813         modules/signal-tests.
68814         * modules/signal-tests: Depend on it.
68815         * modules/spawn-c++-tests: New file, extracted from
68816         modules/spawn-tests.
68817         * modules/spawn-tests: Depend on it.
68818         * modules/stdio-c++-tests: New file, extracted from
68819         modules/stdio-tests.
68820         * modules/stdio-tests: Depend on it.
68821         * modules/stdlib-c++-tests: New file, extracted from
68822         modules/stdlib-tests.
68823         * modules/stdlib-tests: Depend on it.
68824         * modules/string-c++-tests: New file, extracted from
68825         modules/string-tests.
68826         * modules/string-tests: Depend on it.
68827         * modules/sys_ioctl-c++-tests: New file, extracted from
68828         modules/sys_ioctl-tests.
68829         * modules/sys_ioctl-tests: Depend on it.
68830         * modules/sys_select-c++-tests: New file, extracted from
68831         modules/sys_select-tests.
68832         * modules/sys_select-tests: Depend on it.
68833         * modules/sys_socket-c++-tests: New file, extracted from
68834         modules/sys_socket-tests.
68835         * modules/sys_socket-tests: Depend on it.
68836         * modules/sys_stat-c++-tests: New file, extracted from
68837         modules/sys_stat-tests.
68838         * modules/sys_stat-tests: Depend on it.
68839         * modules/sys_time-c++-tests: New file, extracted from
68840         modules/sys_time-tests.
68841         * modules/sys_time-tests: Depend on it.
68842         * modules/time-c++-tests: New file, extracted from modules/time-tests.
68843         * modules/time-tests: Depend on it.
68844         * modules/unistd-c++-tests: New file, extracted from
68845         modules/unistd-tests.
68846         * modules/unistd-tests: Depend on it.
68847         * modules/wchar-c++-tests: New file, extracted from
68848         modules/wchar-tests.
68849         * modules/wchar-tests: Depend on it.
68850         * modules/wctype-c++-tests: New file, extracted from
68851         modules/wctype-tests.
68852         * modules/wctype-tests: Depend on it.
68853         Reported by Simon Josefsson.
68855 2010-03-28  Bruno Haible  <bruno@clisp.org>
68857         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
68858         * gnulib-tool (func_exists_module): New function, extracted from
68859         func_verify_module.
68860         (func_verify_module): Use it.
68861         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
68862         'foo' only if 'foo' exists.
68863         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
68864         module.
68866 2010-03-28  Bruno Haible  <bruno@clisp.org>
68868         gnulib-tool: Add support for special categories of tests.
68869         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
68870         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
68871         (func_usage): Document them.
68872         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
68873         inc_unportable_tests, inc_all_tests): New variables.
68874         (func_acceptable): Consider these variables.
68875         (func_modules_transitive_closure): Make it work when the 'Status' field
68876         consists of multiple words.
68877         (func_import): Store and restore the values of inc_cxx_tests,
68878         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
68879         inc_all_tests in gnulib-comp.m4.
68880         (func_create_testdir): Set inc_all_tests to true.
68881         * doc/gnulib.texi (Extra tests modules): New section.
68882         Suggested by Jim Meyering.
68884 2010-03-28  Bruno Haible  <bruno@clisp.org>
68886         ansi-c++-opt: Allow turning off the C++ build by default.
68887         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
68888         gl_CXX_CHOICE_DEFAULT_NO is defined.
68889         Requested by Eric Blake.
68891 2010-03-28  Bruno Haible  <bruno@clisp.org>
68893         unistd: Avoid #define replacements in C++ mode.
68894         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
68895         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
68896         setsockopt, shutdown, select): In C++, attach a warning to the function
68897         if possible, rather than #defining the symbol to a dysfunctional alias.
68898         Reported by John W. Eaton <jwe@gnu.org>.
68900 2010-03-28  Bruno Haible  <bruno@clisp.org>
68902         Fix link errors on mingw.
68903         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
68904         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
68905         $(LIBSOCKET).
68906         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
68907         $(LIBSOCKET).
68909 2010-03-28  Bruno Haible  <bruno@clisp.org>
68910             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68912         lib-ignore: Determine different options for different compilers.
68913         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
68914         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
68915         Add comments.
68916         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
68917         * NEWS: Mention the change.
68919 2010-03-27  Bruno Haible  <bruno@clisp.org>
68921         Remove unused GNULIB_XYZ macro definitions.
68922         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
68923         * modules/fseek (configure.ac): Likewise.
68924         * modules/ioctl (configure.ac): Likewise.
68925         * modules/open (configure.ac): Likewise.
68926         * modules/stdlib-safer (configure.ac): Likewise.
68928 2010-03-27  Bruno Haible  <bruno@clisp.org>
68930         Add a remark about certain modules.
68931         * modules/malloc (Comment): New section.
68932         * modules/realloc (Comment): Likewise.
68933         * modules/sigpipe (Comment): Likewise.
68935 2010-03-27  Bruno Haible  <bruno@clisp.org>
68937         Resolve conflict between the two kinds of module indicators.
68938         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
68939         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
68940         * modules/canonicalize (configure.ac): Invoke
68941         gl_MODULE_INDICATOR_FOR_TESTS.
68942         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
68943         GNULIB_XYZ.
68944         * tests/test-dirent-c++.cc: Likewise.
68945         * tests/test-dirent-safer.c: Likewise.
68946         * tests/test-dup2.c: Likewise.
68947         * tests/test-fchdir.c: Likewise.
68948         * tests/test-fcntl-h-c++.cc: Likewise.
68949         * tests/test-getopt.c: Likewise.
68950         * tests/test-getopt.h: Likewise.
68951         * tests/test-langinfo-c++.cc: Likewise.
68952         * tests/test-locale-c++.cc: Likewise.
68953         * tests/test-math-c++.cc: Likewise.
68954         * tests/test-pty-c++.cc: Likewise.
68955         * tests/test-search-c++.cc: Likewise.
68956         * tests/test-signal-c++.cc: Likewise.
68957         * tests/test-spawn-c++.cc: Likewise.
68958         * tests/test-stdio-c++.cc: Likewise.
68959         * tests/test-stdlib-c++.cc: Likewise.
68960         * tests/test-string-c++.cc: Likewise.
68961         * tests/test-sys_ioctl-c++.cc: Likewise.
68962         * tests/test-sys_select-c++.cc: Likewise.
68963         * tests/test-sys_socket-c++.cc: Likewise.
68964         * tests/test-sys_stat-c++.cc: Likewise.
68965         * tests/test-sys_time-c++.cc: Likewise.
68966         * tests/test-time-c++.cc: Likewise.
68967         * tests/test-unistd-c++.cc: Likewise.
68968         * tests/test-wchar-c++.cc: Likewise.
68969         * tests/uninorm/test-u8-nfc.c: Likewise.
68970         * tests/uninorm/test-u8-nfd.c: Likewise.
68971         * tests/uninorm/test-u8-nfkc.c: Likewise.
68972         * tests/uninorm/test-u8-nfkd.c: Likewise.
68973         * tests/uninorm/test-u16-nfc.c: Likewise.
68974         * tests/uninorm/test-u16-nfd.c: Likewise.
68975         * tests/uninorm/test-u16-nfkc.c: Likewise.
68976         * tests/uninorm/test-u16-nfkd.c: Likewise.
68977         * tests/uninorm/test-u32-nfc.c: Likewise.
68978         * tests/uninorm/test-u32-nfc-big.c: Likewise.
68979         * tests/uninorm/test-u32-nfd.c: Likewise.
68980         * tests/uninorm/test-u32-nfd-big.c: Likewise.
68981         * tests/uninorm/test-u32-nfkc.c: Likewise.
68982         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
68983         * tests/uninorm/test-u32-nfkd.c: Likewise.
68984         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
68985         * tests/uninorm/test-u32-normalize-big.c: Likewise.
68987 2010-03-27  Bruno Haible  <bruno@clisp.org>
68989         Distinguish two kinds of module indicators.
68990         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
68991         gl_MODULE_INDICATOR.
68992         (gl_MODULE_INDICATOR): New macro.
68993         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
68994         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
68995         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
68996         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
68997         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
68998         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
68999         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69000         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69001         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69002         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69003         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69004         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69006         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69007         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69008         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69009         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69010         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69011         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69012         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69013         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69014         * modules/cloexec (configure.ac): Likewise.
69015         * modules/getopt-gnu (configure.ac): Likewise.
69016         * modules/uninorm/u8-normalize (configure.ac): Likewise.
69017         * modules/uninorm/u16-normalize (configure.ac): Likewise.
69018         * modules/uninorm/u32-normalize (configure.ac): Likewise.
69019         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
69021 2010-03-27  Bruno Haible  <bruno@clisp.org>
69023         New module description field 'Comment'.
69024         * gnulib-tool: New option --extract-comment.
69025         (func_usage): Document it.
69026         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
69027         (func_get_comment): New function.
69028         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
69030 2010-03-27  Bruno Haible  <bruno@clisp.org>
69032         Addendum to 2010-02-07 commit.
69033         * gnulib-tool (func_usage): Document --extract-applicability option.
69035 2010-03-27  Bruno Haible  <bruno@clisp.org>
69037         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
69038         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
69039         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
69040         rather than link errors.
69042 2010-03-27  Bruno Haible  <bruno@clisp.org>
69044         Avoid side effects from tests-related modules on the compilation of lib.
69045         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
69046         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
69047         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
69048         parameter. Emit into AM_CPPFLAGS a definition of the designated C
69049         macro.
69050         (func_import): Define a witness macro. Assign it a value that depends
69051         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
69052         tests-related modules.
69053         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
69054         Reported by Jim Meyering.
69056 2010-03-27  Bruno Haible  <bruno@clisp.org>
69058         Factorize common .m4 code.
69059         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
69060         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
69061         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
69062         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
69063         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69064         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
69065         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
69066         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69067         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69068         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69069         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
69070         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69071         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69072         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69073         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69074         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
69075         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69076         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69078         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
69079         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
69080         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69081         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69082         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69083         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69084         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69085         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
69086         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
69087         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
69088         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69089         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69090         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69092 2010-03-27  Bruno Haible  <bruno@clisp.org>
69094         Fix a compilation error on Cygwin with g++ >= 4.3.
69095         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
69096         if it is undefined or if we alias it to chmod.
69097         (lstat): Don't warn about the use of this function if it is undefined
69098         or if we alias it to stat.
69099         Reported by Simon Josefsson.
69101 2010-03-27  Bruno Haible  <bruno@clisp.org>
69103         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
69104         * modules/getlogin (configure.ac): Update.
69106         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
69107         * modules/getlogin_r (configure.ac): Update.
69109         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
69110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
69111         * modules/inet_ntop (configure.ac): Update.
69113         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
69114         * modules/inet_pton (configure.ac): Update.
69116         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
69117         * modules/mbslen (configure.ac): Update.
69119         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
69120         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
69121         * modules/forkpty (configure.ac): Update.
69122         * modules/openpty (configure.ac): Update.
69124 2010-03-26  Simon Josefsson  <simon@josefsson.org>
69126         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
69127         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
69129 2010-03-25  Eric Blake  <eblake@redhat.com>
69131         maint: use pragma consistently across replacement headers
69132         * lib/ctype.in.h (system_header): Hoist for consistent placement.
69133         * lib/dirent.in.h (system_header): Likewise.
69134         * lib/errno.in.h (system_header): Likewise.
69135         * lib/float.in.h (system_header): Likewise.
69136         * lib/getopt.in.h (system_header): Likewise.
69137         * lib/iconv.in.h (system_header): Likewise.
69138         * lib/inttypes.in.h (system_header): Likewise.
69139         * lib/langinfo.in.h (system_header): Likewise.
69140         * lib/locale.in.h (system_header): Likewise.
69141         * lib/math.in.h (system_header): Likewise.
69142         * lib/netdb.in.h (system_header): Likewise.
69143         * lib/netinet_in.in.h (system_header): Likewise.
69144         * lib/pty.in.h (system_header): Likewise.
69145         * lib/sched.in.h (system_header): Likewise.
69146         * lib/se-selinux.in.h (system_header): Likewise.
69147         * lib/search.in.h (system_header): Likewise.
69148         * lib/spawn.in.h (system_header): Likewise.
69149         * lib/stdarg.in.h (system_header): Likewise.
69150         * lib/stdint.in.h (system_header): Likewise.
69151         * lib/string.in.h (system_header): Likewise.
69152         * lib/strings.in.h (system_header): Likewise.
69153         * lib/sys_file.in.h (system_header): Likewise.
69154         * lib/sys_ioctl.in.h (system_header): Likewise.
69155         * lib/sys_socket.in.h (system_header): Likewise.
69156         * lib/sys_times.in.h (system_header): Likewise.
69157         * lib/sys_utsname.in.h (system_header): Likewise.
69158         * lib/sys_wait.in.h (system_header): Likewise.
69159         * lib/sysexits.in.h (system_header): Likewise.
69160         * lib/unistd.in.h (system_header): Likewise.
69161         * lib/wctype.in.h (system_header): Likewise.
69163         arpa/inet: fix mingw compilation warning
69164         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
69165         Reported by Matthew Bolte.
69167 2010-03-25  Bruno Haible  <bruno@clisp.org>
69169         Avoid collision between gnulib wrapper and libintl wrapper.
69170         * lib/printf.c (printf): Don't define if a printf wrapper is already
69171         defined in intl/printf.c.
69172         Reported by Michel Boaventura <michel@michelboaventura.com>.
69174 2010-03-25  Bruno Haible  <bruno@clisp.org>
69176         Use ANSI C.
69177         * lib/readutmp.h (getutent): Provide ANSI C prototype.
69179 2010-03-25  Bruno Haible  <bruno@clisp.org>
69181         Minor formatting changes.
69182         * lib/acosl.c: Insert space before function argument list.
69183         * lib/argz.c: Likewise.
69184         * lib/asinl.c: Likewise.
69185         * lib/expl.c: Likewise.
69186         * lib/gen-uni-tables.c: Likewise.
69187         * lib/gettext.h: Likewise.
69188         * lib/glthread/lock.h: Likewise.
69189         * lib/tanl.c: Likewise.
69190         * lib/uniname/uniname.c: Likewise.
69191         * tests/test-idpriv-drop.c: Likewise.
69192         * tests/test-idpriv-droptemp.c: Likewise.
69193         * tests/test-lock.c: Likewise.
69194         * tests/test-tls.c: Likewise.
69195         * lib/argp-help.c: Insert space before function-like macro argument
69196         list.
69197         * lib/memcmp.c: Likewise.
69198         * tests/test-base64.c: Likewise.
69199         * lib/localename.c: Insert space before sizeof's argument list.
69200         * lib/safe-alloc.h: Likewise.
69201         * lib/file-set.h: Insert space before macro argument list.
69202         * tests/test-argp.c: Likewise.
69203         * lib/argp-namefrob.h: Insert space before function parameter list.
69204         * lib/getaddrinfo.c: Likewise.
69205         * lib/netdb.in.h: Likewise.
69206         * lib/parse-duration.h: Likewise.
69207         * lib/parse-duration.c: Likewise.
69208         * lib/poll.c: Likewise.
69209         * lib/select.c: Likewise.
69210         * lib/trim.h: Likewise.
69211         * tests/test-usleep.c: Likewise.
69212         * lib/ldexpl.c: Insert space before function parameter list and before
69213         function argument list.
69214         * lib/logl.c: Likewise.
69215         * lib/sqrtl.c: Likewise.
69216         * lib/trim.c: Likewise.
69217         * lib/cosl.c: Use GNU style indentation. Insert space before function
69218         argument list.
69219         * lib/sinl.c: Likewise.
69220         * lib/tsearch.c: Insert space after 'for'.
69221         Reported by Jim Meyering.
69223 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
69225         * maint.mk (sc_Wundef_boolean): Check for the presence of the
69226         config header before grepping, as it's not present before
69227         autoreconf/configure are run.  Reported by Simon Josefsson.
69229 2010-03-23  Bruno Haible  <bruno@clisp.org>
69231         pt_chown: Make it work with automake < 1.11.
69232         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
69233         Reported by Simon Josefsson.
69235 2010-03-23  Bruno Haible  <bruno@clisp.org>
69237         pt_chown: Don't depend on GPLed modules.
69238         * lib/pt_chown.c: Don't include idpriv.h.
69239         (main): Don't drop privileges.
69240         * modules/pt_chown (Depends-on): Remove idpriv-drop.
69241         Reported by Simon Josefsson.
69243 2010-03-24  Simon Josefsson  <simon@josefsson.org>
69245         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
69246         suggestions from karl@freefriends.org (Karl Berry).
69248 2010-03-22  Eric Blake  <eblake@redhat.com>
69250         gethostname: further tweaks
69251         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
69252         are overriding gethostname.
69253         Suggested by Bruno Haible.
69255 2010-03-21  Bruno Haible  <bruno@clisp.org>
69257         Fix comments.
69258         * lib/forkpty.c (rpl_forkpty): Fix comment.
69259         * lib/openpty.c (rpl_openpty): Likewise.
69260         Reported by Eric Blake.
69262 2010-03-22  Eric Blake  <eblake@redhat.com>
69264         gethostname: fix build on mingw
69265         * lib/unistd.in.h (includes): Work around fact that mingw
69266         <winsock2.h> re-includes <unistd.h>, by avoiding any
69267         redeclarations if we are being included by <winsock2.h>.
69268         Reported by Matthias Bolte.
69270 2010-03-21  Bruno Haible  <bruno@clisp.org>
69272         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69273         * lib/forkpty.c (forkpty): New replacement function, from glibc with
69274         modifications.
69275         * lib/pty.in.h (forkpty): Update declaration. Add comments.
69276         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
69277         provide the replacement.
69278         * modules/forkpty (Depends-on): Add openpty, login_tty.
69279         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
69280         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
69281         * doc/glibc-functions/forkpty.texi: More supported platforms.
69282         * config/srclist.txt: Add forkpty.c (commented).
69284 2010-03-21  Bruno Haible  <bruno@clisp.org>
69286         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
69287         (Makefile.am): Verify that PTY_LIB is defined.
69289         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
69291 2010-03-21  Bruno Haible  <bruno@clisp.org>
69293         Tests for module 'login_tty'.
69294         * modules/login_tty-tests: New file.
69295         * tests/test-login_tty.c: New file.
69297         New module 'login_tty'.
69298         * lib/login_tty.c: New file.
69299         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
69300         * modules/login_tty: New file.
69301         * doc/glibc-functions/login_tty.texi: Mention the new module.
69303 2010-03-21  Bruno Haible  <bruno@clisp.org>
69305         login_tty: Documentation.
69306         * doc/glibc-functions/login_tty.texi: New file.
69307         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
69309 2010-03-21  Bruno Haible  <bruno@clisp.org>
69311         pty: Consistent macro naming.
69312         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
69313         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
69314         * modules/pty (configure.ac): Update.
69316 2010-03-21  Bruno Haible  <bruno@clisp.org>
69318         Tests for openpty: Make stricter.
69319         * tests/test-openpty.c (main): Add test of canonical processing and
69320         erase.
69321         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
69323         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69324         * lib/openpty.c (openpty): New replacement function.
69325         * lib/pty.in.h: Include <termios.h>.
69326         (openpty): Update declaration. Add comments.
69327         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
69328         is not declared, arrange to provide the replacement. Check for _getpty
69329         and posix_openpt.
69330         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
69331         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
69332         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
69333         * modules/pty-tests (test_pty_c___LDADD): New variable.
69334         * doc/glibc-functions/openpty.texi: More supported platforms.
69336 2010-03-21  Bruno Haible  <bruno@clisp.org>
69338         setenv: Tweaks.
69339         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
69340         the test program.
69341         * doc/posix-functions/setenv.texi: Update platforms list.
69343 2010-03-21  Bruno Haible  <bruno@clisp.org>
69345         New module 'unlockpt'.
69346         * lib/unlockpt.c: New file, from glibc with modifications.
69347         * m4/unlockpt.m4: New file.
69348         * modules/unlockpt: New file.
69349         * lib/stdlib.in.h (unlockpt): New declaration.
69350         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
69351         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
69352         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
69353         HAVE_UNLOCKPT.
69354         * doc/posix-functions/unlockpt.texi: Mention the new module.
69355         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
69356         * config/srclist.txt: Add unlockpt.c (commented).
69358 2010-03-21  Jim Meyering  <meyering@redhat.com>
69360         maint.mk: prohibit inclusion of "intprops.h" without use
69361         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
69363 2010-03-21  Bruno Haible  <bruno@clisp.org>
69365         New module 'grantpt'.
69366         * lib/grantpt.c: New file, from glibc with modifications.
69367         * m4/grantpt.m4: New file.
69368         * modules/grantpt: New file.
69369         * lib/stdlib.in.h (grantpt): New declaration.
69370         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
69371         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
69372         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
69373         HAVE_GRANTPT.
69374         * doc/posix-functions/grantpt.texi: Mention the new module.
69375         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
69376         * config/srclist.txt: Add grantpt.c (commented).
69378 2010-03-21  Bruno Haible  <bruno@clisp.org>
69380         New module 'pt_chown'.
69381         * lib/pt_chown.c: New file, from glibc with modifications.
69382         * lib/pty-private.h: New file, from glibc with modifications.
69383         * modules/pt_chown: New file.
69384         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
69386 2010-03-21  Bruno Haible  <bruno@clisp.org>
69388         Tests for module 'ptsname'.
69389         * modules/ptsname-tests: New file.
69390         * tests/test-ptsname.c: New file.
69392         New module 'ptsname'.
69393         * lib/ptsname.c: New file, from glibc with modifications.
69394         * m4/ptsname.m4: New file.
69395         * modules/ptsname: New file.
69396         * lib/stdlib.in.h (ptsname): New declaration.
69397         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
69398         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
69399         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
69400         HAVE_PTSNAME.
69401         * doc/posix-functions/ptsname.texi: Mention the new module.
69402         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
69403         * config/srclist.txt: Add ptsname.c (commented).
69405 2010-03-21  Bruno Haible  <bruno@clisp.org>
69407         Tests for module 'ttyname_r'.
69408         * modules/ttyname_r-tests: New file.
69409         * tests/test-ttyname_r.c: New file.
69411         New module 'ttyname_r'.
69412         * lib/ttyname_r.c: New file.
69413         * m4/ttyname_r.m4: New file.
69414         * modules/ttyname_r: New file.
69415         * lib/unistd.in.h (ttyname_r): New declaration.
69416         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
69417         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
69418         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
69419         HAVE_TTYNAME_R.
69420         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
69421         * doc/posix-functions/ttyname_r.texi: Mention the new module.
69423 2010-03-20  Bruno Haible  <bruno@clisp.org>
69425         signal: Undefine macro definitions in C++ mode.
69426         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
69427         sigfillset): Undefine macro definitions from the system header in C++
69428         mode.
69429         Reported by John W. Eaton <jwe@gnu.org>.
69431 2010-03-20  Bruno Haible  <bruno@clisp.org>
69433         Ensure no #include statements inside extern "C" { ... }.
69434         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
69435         contain #include statements.
69436         * lib/time.in.h: Likewise.
69438 2010-03-20  Bruno Haible  <bruno@clisp.org>
69440         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
69441         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
69442         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
69443         Reported by John W. Eaton <jwe@gnu.org>.
69445 2010-03-20  Bruno Haible  <bruno@clisp.org>
69447         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
69448         Reported by Jim Meyering.
69450 2010-03-20  Bruno Haible  <bruno@clisp.org>
69452         pipe: Set errno upon failure.
69453         * lib/pipe.h: Specify that when -1 is returned, errno is set.
69454         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
69455         errno value in error message.
69457 2010-03-20  Bruno Haible  <bruno@clisp.org>
69458             Jim Meyering  <meyering@redhat.com>
69460         lchown: Avoid "unused variable" warning.
69461         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
69463 2010-03-20  Bruno Haible  <bruno@clisp.org>
69465         Work around unlink() bug on MacOS X 10.5.6.
69466         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
69467         attempting to unlink a parent directory.
69468         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
69469         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
69470         activate for the replacement function.
69471         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
69473 2010-03-20  Bruno Haible  <bruno@clisp.org>
69475         Fix link errors on Solaris 8.
69476         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
69477         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
69479 2010-03-19  Jim Meyering  <meyering@redhat.com>
69481         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
69482         The _LIBC implementation of build_range_exp correctly honors the
69483         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
69484         However, the non-_LIBC implementation would ignore that syntax-bit
69485         flag and return REG_ERANGE unconditionally.
69486         This change makes it honor that flag.
69487         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
69488         Make two pointer parameters "const".
69489         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
69490         (parse_bracket_exp): Update caller.
69492         regex.m4: correct the reversed range endpoint ([b-a]) test
69493         * m4/regex.m4: When requiring that [b-a] evoke failure,
69494         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
69495         test pass once again for x86-based systems.
69497 2010-03-19  Bruno Haible  <bruno@clisp.org>
69499         scandir: Fix link error on Solaris 8.
69500         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
69501         macros.
69503 2010-03-19  Bruno Haible  <bruno@clisp.org>
69505         getusershell: Fix documentation.
69506         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
69507         module.
69508         * doc/glibc-functions/setusershell.texi: Likewise.
69510         getusershell: Provide declaration, missing on Solaris 9.
69511         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
69512         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
69513         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
69514         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
69515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69516         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
69517         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
69518         HAVE_GETUSERSHELL.
69519         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
69521 2010-03-19  Bruno Haible  <bruno@clisp.org>
69523         wctype: Provide iswblank function.
69524         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
69525         exists and is fine.
69526         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
69527         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
69528         * tests/test-wctype.c (main): Re-enable the iswblank tests.
69529         * doc/posix-functions/iswblank.texi: Update.
69531 2010-03-19  Bruno Haible  <bruno@clisp.org>
69533         Tests of module 'pty' in C++ mode.
69534         * modules/pty-tests: New file.
69535         * tests/test-pty-c++.cc: New file.
69536         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
69538 2010-03-19  Eric Blake  <eblake@redhat.com>
69540         logb: fix documentation
69541         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
69542         1.5 declaration bug.
69544         forkpty, openpty: prefer glibc's const-safe prototype
69545         * lib/forkpty.c (rpl_forkpty): New file.
69546         * lib/openpty.c (rpl_openpty): Likewise.
69547         * modules/forkpty (Files): Distribute it.
69548         * modules/openpty (Files): Likewise.
69549         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
69550         check...
69551         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
69552         replacement for non-const BSD signature.
69553         * modules/pty (Makefile.am): Substitute witnesses.
69554         * lib/pty.in.h (forkpty, openpty): Declare replacements.
69555         * tests/test-forkpty.c: Update signature check.
69556         * tests/test-openpty.c: Likewise.
69557         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
69558         * doc/glibc-functions/openpty.texi (openpty): Likewise.
69560         forkpty, openpty: split functions into new modules
69561         * modules/pty (Makefile.am): Substitute new witnesses.
69562         (Libraries): Move library detection...
69563         * modules/forkpty: ...into new module.
69564         * modules/openpty: Another new module.
69565         * modules/pty-tests: Rename and split...
69566         * modules/forkpty-tests: ...to this...
69567         * modules/openpty-tests: ...and this.
69568         * tests/test-pty.c: Rename and split...
69569         * tests/test-forkpty.c: ...to this...
69570         * tests/test-openpty.c: ...and this.
69571         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
69572         (gl_PTY): Split library searching...
69573         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
69574         (gl_FORKPTY, gl_OPENPTY): New macros.
69575         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
69576         * NEWS: Mention the split.
69577         * MODULES.html.sh (Misc): Document the modules.
69578         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
69579         * doc/glibc-functions/openpty.texi (openpty): Likewise.
69581         pty: improve replacement header
69582         * lib/pty.in.h: New file.
69583         * modules/pty (Files): Ship it.
69584         (Makefile.am): Always build replacement.
69585         * m4/pty.m4: Rename...
69586         * m4/pty_h.m4: ...to this.
69587         (gl_PTY): Modernize setting of witness macros; update check of
69588         forkpty to take proper advantage of cache.
69589         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
69591         getopt: avoid compiler warning
69592         * lib/getopt.c (attribute_hidden): Remove unused macro.
69594 2010-03-18  Bruno Haible  <bruno@clisp.org>
69596         Fix link errors on Solaris 8.
69597         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
69598         * modules/search-tests (test_search_c___LDADD): Likewise.
69599         * modules/signal-tests (test_signal_c___LDADD): Likewise.
69600         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
69601         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
69602         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
69603         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
69604         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
69605         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
69607 2010-03-18  Bruno Haible  <bruno@clisp.org>
69609         Fix bug introduced on 2010-03-14.
69610         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
69611         (gl_SPAWN_H): Require it.
69612         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
69613         Reported by Simon Josefsson.
69615 2010-03-18  Bruno Haible  <bruno@clisp.org>
69617         Fix typo introduced on 2009-12-31.
69618         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
69619         posix_spawn_file_actions_adddup2.
69621 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
69622         and Eric Blake  <eblake@redhat.com>
69624         test-vc-list-files-git: make more robust
69625         * tests/test-vc-list-files-git.sh: Unset problematic environment
69626         variables.  Chain commands together.
69628 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
69630         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
69631         `AC_CHECK_DECL' invocation.
69633 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
69635         * lib/inttostr.c (inttostr): Make sure the invocation of verify
69636         appears before executable statements. Suggested by Petr Sumbera
69637         <Petr.Sumbera@Sun.COM>.
69639 2010-03-14  Bruno Haible  <bruno@clisp.org>
69641         * tests/test-flock.c (test_exclusive): Comment out a test that causes
69642         portability problems. Instead use a simpler test.
69643         (main): Check that invalid arguments are rejected only on Linux.
69645 2010-03-14  Bruno Haible  <bruno@clisp.org>
69647         Fix bug introduced on 2009-12-31.
69648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
69649         gl_PREREQ_SYS_H_WINSOCK2 always.
69650         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
69651         SYS_SOCKET_H variable.
69652         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
69653         Update comments.
69654         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
69655         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69656         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69657         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
69658         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
69660 2010-03-14  Bruno Haible  <bruno@clisp.org>
69662         Fix values returned by sinl, cosl.
69663         * lib/trigl.h: Add specification comments.
69664         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
69665         that combines the values from the precomputed table with the values of
69666         the Chebyshev polynomials.
69668 2010-03-14  Bruno Haible  <bruno@clisp.org>
69670         Fix compilation error when modules 'posix_spawn[p]' are not used.
69671         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
69672         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
69674 2010-03-14  Bruno Haible  <bruno@clisp.org>
69676         Fix compilation error on mingw when module 'time_r' is not used.
69677         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
69678         is 1.
69679         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
69680         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
69681         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
69682         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
69684 2010-03-14  Bruno Haible  <bruno@clisp.org>
69686         Fix compilation error with Sun C.
69687         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
69688         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
69689         instead of GCC specific ULONG_LONG_MAX.
69690         * lib/xstrtoll.c: Likewise.
69691         * lib/xstrtoull.c: Likewise.
69693 2010-03-13  Bruno Haible  <bruno@clisp.org>
69695         Allow the user to disable C++ code and tests.
69696         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
69697         (gl_PROG_ANSI_CXX): Require it.
69699 2010-03-13  Bruno Haible  <bruno@clisp.org>
69701         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
69702         cases.
69704 2010-03-13  Bruno Haible  <bruno@clisp.org>
69706         Test that gnulib does not break the standard C++ headers.
69707         * tests/test-locale-c++2.cc: New file.
69708         * modules/locale-tests (Files): Add it.
69709         (Makefile.am): Compile it for test-locale-c++.
69710         * tests/test-math-c++2.cc: New file.
69711         * modules/math-tests (Files): Add it.
69712         (Makefile.am): Compile it for test-math-c++.
69713         * tests/test-signal-c++2.cc: New file.
69714         * modules/signal-tests (Files): Add it.
69715         (Makefile.am): Compile it for test-signal-c++.
69716         * tests/test-stdio-c++2.cc: New file.
69717         * modules/stdio-tests (Files): Add it.
69718         (Makefile.am): Compile it for test-stdio-c++.
69719         * tests/test-stdlib-c++2.cc: New file.
69720         * modules/stdlib-tests (Files): Add it.
69721         (Makefile.am): Compile it for test-stdlib-c++.
69722         * tests/test-string-c++2.cc: New file.
69723         * modules/string-tests (Files): Add it.
69724         (Makefile.am): Compile it for test-string-c++.
69725         * tests/test-time-c++2.cc: New file.
69726         * modules/time-tests (Files): Add it.
69727         (Makefile.am): Compile it for test-time-c++.
69728         Reported by John W. Eaton <jwe@gnu.org>.
69730 2010-03-13  Bruno Haible  <bruno@clisp.org>
69732         * gnulib-tool (func_usage): Clarify which options are available for
69733         --create-testdir and --create-megatestdir.
69735 2010-03-13  Bruno Haible  <bruno@clisp.org>
69737         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
69738         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
69739         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
69740         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
69741         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
69742         when appropriate.
69743         Reported by Jim Meyering.
69745 2010-03-12  Simon Josefsson  <simon@josefsson.org>
69747         * gnulib-tool (func_import): Explain origin of code.
69749 2010-03-12  Bruno Haible  <bruno@clisp.org>
69751         Fix problem with automake's definition of CXXLINK.
69752         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
69753         Reported by Simon Josefsson and Ludovic Courtès.
69755 2010-03-12  Bruno Haible  <bruno@clisp.org>
69757         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
69758         stable releases.
69760 2010-03-11  Bruno Haible  <bruno@clisp.org>
69762         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
69763         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
69764         whether the system provides one variant or multiple variants of the
69765         function.
69766         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
69767         C++ compilers.
69768         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
69769         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
69770         Reported by Jim Meyering.
69772 2010-03-09  Simon Josefsson  <simon@josefsson.org>
69774         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
69776 2010-03-08  Bruno Haible  <bruno@clisp.org>
69778         gnulib-tool: Add support for --libtool in --create-testdir.
69779         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
69780         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
69782 2010-03-08  Eric Blake  <eblake@redhat.com>
69784         gnulib-tool.texi: mention possibility of git submodule
69785         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
69786         submodules.
69787         * doc/.gitignore: Ignore another generated file.
69789 2010-03-08  Karl Berry  <karl@gnu.org>
69791         * doc/gnulib-tool.texi (VCS Issues): Mention third option
69792         of committing gnulib files while skipping others.
69794 2010-03-07  Bruno Haible  <bruno@clisp.org>
69796         Tests of module 'wctype' in C++ mode.
69797         * tests/test-wctype-c++.cc: New file.
69798         * modules/wctype-tests (Files): Add it and tests/signature.h.
69799         (Depends-on): Add ansi-c++-opt.
69800         (Makefile.am): Arrange to compile and run test-wctype-c++.
69802         Tests of module 'wchar' in C++ mode.
69803         * tests/test-wchar-c++.cc: New file.
69804         * modules/wchar-tests (Files): Add it and tests/signature.h.
69805         (Depends-on): Add ansi-c++-opt.
69806         (Makefile.am): Arrange to compile and run test-wchar-c++.
69807         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
69808         gl_MODULE_INDICATOR.
69810         Tests of module 'unistd' in C++ mode.
69811         * tests/test-unistd-c++.cc: New file.
69812         * modules/unistd-tests (Files): Add it and tests/signature.h.
69813         (Depends-on): Add ansi-c++-opt.
69814         (Makefile.am): Arrange to compile and run test-unistd-c++.
69815         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
69816         gl_MODULE_INDICATOR.
69818         Tests of module 'time' in C++ mode.
69819         * tests/test-time-c++.cc: New file.
69820         * modules/time-tests (Files): Add it and tests/signature.h.
69821         (Depends-on): Add ansi-c++-opt.
69822         (Makefile.am): Arrange to compile and run test-time-c++.
69823         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
69825         Tests of module 'sys_time' in C++ mode.
69826         * tests/test-sys_time-c++.cc: New file.
69827         * modules/sys_time-tests (Files): Add it and tests/signature.h.
69828         (Depends-on): Add ansi-c++-opt.
69829         (Makefile.am): Arrange to compile and run test-sys_time-c++.
69830         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
69831         gl_MODULE_INDICATOR.
69833         Tests of module 'sys_stat' in C++ mode.
69834         * tests/test-sys_stat-c++.cc: New file.
69835         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
69836         (Depends-on): Add ansi-c++-opt.
69837         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
69838         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
69839         gl_MODULE_INDICATOR.
69841         Tests of module 'sys_socket' in C++ mode.
69842         * tests/test-sys_socket-c++.cc: New file.
69843         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
69844         (Depends-on): Add ansi-c++-opt.
69845         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
69846         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
69847         gl_MODULE_INDICATOR.
69849         Tests of module 'sys_select' in C++ mode.
69850         * tests/test-sys_select-c++.cc: New file.
69851         * modules/sys_select-tests (Files): Add it and tests/signature.h.
69852         (Depends-on): Add ansi-c++-opt.
69853         (Makefile.am): Arrange to compile and run test-sys_select-c++.
69854         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
69855         gl_MODULE_INDICATOR.
69857         Tests of module 'sys_ioctl' in C++ mode.
69858         * tests/test-sys_ioctl-c++.cc: New file.
69859         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
69860         (Depends-on): Add ansi-c++-opt.
69861         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
69862         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
69863         gl_MODULE_INDICATOR.
69865         Tests of module 'string' in C++ mode.
69866         * tests/test-string-c++.cc: New file.
69867         * modules/string-tests (Files): Add it and tests/signature.h.
69868         (Depends-on): Add ansi-c++-opt.
69869         (Makefile.am): Arrange to compile and run test-string-c++.
69870         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
69871         gl_MODULE_INDICATOR.
69873         Tests of module 'stdlib' in C++ mode.
69874         * tests/test-stdlib-c++.cc: New file.
69875         * modules/stdlib-tests (Files): Add it and tests/signature.h.
69876         (Depends-on): Add ansi-c++-opt.
69877         (Makefile.am): Arrange to compile and run test-stdlib-c++.
69878         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
69879         gl_MODULE_INDICATOR.
69881         Tests of module 'stdio' in C++ mode.
69882         * tests/test-stdio-c++.cc: New file.
69883         * modules/stdio-tests (Files): Add it and tests/signature.h.
69884         (Depends-on): Add ansi-c++-opt.
69885         (Makefile.am): Arrange to compile and run test-stdio-c++.
69886         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
69887         gl_MODULE_INDICATOR.
69889         Tests of module 'spawn' in C++ mode.
69890         * tests/test-spawn-c++.cc: New file.
69891         * modules/spawn-tests (Files): Add it and tests/signature.h.
69892         (Depends-on): Add ansi-c++-opt.
69893         (Makefile.am): Arrange to compile and run test-spawn-c++.
69894         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
69895         gl_MODULE_INDICATOR.
69897         Tests of module 'signal' in C++ mode.
69898         * tests/test-signal-c++.cc: New file.
69899         * modules/signal-tests (Files): Add it and tests/signature.h.
69900         (Depends-on): Add ansi-c++-opt.
69901         (Makefile.am): Arrange to compile and run test-signal-c++.
69902         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
69903         gl_MODULE_INDICATOR.
69905         Tests of module 'search' in C++ mode.
69906         * tests/test-search-c++.cc: New file.
69907         * modules/search-tests (Files): Add it and tests/signature.h.
69908         (Depends-on): Add ansi-c++-opt.
69909         (Makefile.am): Arrange to compile and run test-search-c++.
69910         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
69911         gl_MODULE_INDICATOR.
69913         Tests of module 'math' in C++ mode.
69914         * tests/test-math-c++.cc: New file.
69915         * modules/math-tests (Files): Add it and tests/signature.h.
69916         (Depends-on): Add ansi-c++-opt.
69917         (Makefile.am): Arrange to compile and run test-math-c++.
69918         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
69920         Tests of module 'locale' in C++ mode.
69921         * tests/test-locale-c++.cc: New file.
69922         * modules/locale-tests (Files): Add it and tests/signature.h.
69923         (Depends-on): Add ansi-c++-opt.
69924         (Makefile.am): Arrange to compile and run test-locale-c++.
69925         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
69926         gl_MODULE_INDICATOR.
69928         Tests of module 'langinfo' in C++ mode.
69929         * tests/test-langinfo-c++.cc: New file.
69930         * modules/langinfo-tests (Files): Add it and tests/signature.h.
69931         (Depends-on): Add ansi-c++-opt.
69932         (Makefile.am): Arrange to compile and run test-langinfo-c++.
69933         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
69934         gl_MODULE_INDICATOR.
69936         Tests of module 'iconv-h' in C++ mode.
69937         * tests/test-iconv-h-c++.cc: New file.
69938         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
69939         (Depends-on): Add ansi-c++-opt.
69940         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
69942         Tests of module 'glob' in C++ mode.
69943         * tests/test-glob-c++.cc: New file.
69944         * modules/glob-tests (Files): Add it.
69945         (Depends-on): Add ansi-c++-opt.
69946         (Makefile.am): Arrange to compile and run test-glob-c++.
69948         Tests of module 'fcntl-h' in C++ mode.
69949         * tests/test-fcntl-h-c++.cc: New file.
69950         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
69951         (Depends-on): Add ansi-c++-opt.
69952         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
69953         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
69954         gl_MODULE_INDICATOR.
69956         Tests of module 'dirent' in C++ mode.
69957         * tests/test-dirent-c++.cc: New file.
69958         * modules/dirent-tests (Files): Add it and tests/signature.h.
69959         (Depends-on): Add ansi-c++-opt.
69960         (Makefile.am): Arrange to compile and run test-dirent-c++.
69961         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
69962         gl_MODULE_INDICATOR.
69964         New module 'ansi-c++-opt'.
69965         * modules/ansi-c++-opt: New file.
69966         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
69968         Document C++ namespace mode.
69969         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
69971         wctype: Avoid #define replacements in C++ mode.
69972         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
69973         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
69974         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
69975         In C++, define a namespaced alias symbol.
69976         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
69977         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
69978         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
69979         rule.
69981         wchar: Avoid #define replacements in C++ mode.
69982         * lib/wchar.in.h: Include c++defs.h.
69983         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
69984         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
69985         symbol.
69986         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
69987         * modules/wchar (Depends-on): Add c++defs.
69988         (Makefile.am): Update wchar.h rule.
69990         unistd: Avoid #define replacements in C++ mode.
69991         * lib/unistd.in.h: Include c++defs.h.
69992         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
69993         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
69994         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
69995         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
69996         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
69997         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
69998         symbol.
69999         (environ): Update.
70000         * modules/unistd (Depends-on): Add c++defs.
70001         (Makefile.am): Update unistd.h rule.
70003         time: Avoid #define replacements in C++ mode.
70004         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
70005         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
70006         define a namespaced alias symbol.
70007         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
70008         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
70009         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
70010         * modules/time (Depends-on): Add c++defs, warn-on-use.
70011         (Makefile.am): Update time.h rule.
70012         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70013         * modules/nanosleep (configure.ac): Likewise.
70014         * modules/strptime (configure.ac): Likewise.
70015         * modules/timegm (configure.ac): Likewise.
70017         sys_time: Avoid #define replacements in C++ mode.
70018         * lib/sys_time.in.h: Include c++defs.h.
70019         (gettimeofday): In C++, define a namespaced alias symbol.
70020         * modules/sys_time (Depends-on): Add c++defs.
70021         (Makefile.am): Update sys/time.h rule.
70023         sys_stat: Avoid #define replacements in C++ mode.
70024         * lib/sys_stat.in.h: Include c++defs.h.
70025         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
70026         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
70027         namespaced alias symbol.
70028         In C++, define a namespaced alias symbol.
70029         * modules/sys_stat (Depends-on): Add c++defs.
70030         (Makefile.am): Update sys/stat.h rule.
70032         sys_socket: Avoid #define replacements in C++ mode.
70033         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
70034         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
70035         definitions also when the system has a <sys/socket.h>.
70036         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70037         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
70038         In C++, define a namespaced alias symbol.
70039         * modules/sys_socket (Depends-on): Add c++defs.
70040         (Makefile.am): Update sys/socket.h rule.
70042         sys_select: Avoid #define replacements in C++ mode.
70043         * lib/sys_select.in.h: Include c++defs.h. Enable the function
70044         definitions also when the system has a <sys/select.h>.
70045         (select): In C++, define a namespaced alias symbol.
70046         * modules/sys_select (Depends-on): Add c++defs.
70047         (Makefile.am): Update sys/select.h rule.
70049         sys_ioctl: Avoid #define replacements in C++ mode.
70050         * lib/sys_ioctl.in.h: Include c++defs.h.
70051         (ioctl): In C++, define a namespaced alias symbol.
70052         * modules/sys_ioctl (Depends-on): Add c++defs.
70053         (Makefile.am): Update sys/ioctl.h rule.
70055         string: Avoid #define replacements in C++ mode.
70056         * lib/string.in.h: Include c++defs.h.
70057         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
70058         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
70059         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
70060         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
70061         strsignal, strverscmp): In C++, define a namespaced alias symbol.
70062         * modules/string (Depends-on): Add c++defs.
70063         (Makefile.am): Update string.h rule.
70065         stdlib: Avoid #define replacements in C++ mode.
70066         * lib/stdlib.in.h: Include c++defs.h.
70067         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
70068         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
70069         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
70070         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
70071         symbol.
70072         * modules/stdlib (Depends-on): Add c++defs.
70073         (Makefile.am): Update stdlib.h rule.
70075         stdio: Avoid #define replacements in C++ mode.
70076         * lib/stdio.in.h: Include c++defs.h.
70077         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
70078         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
70079         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
70080         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
70081         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
70082         namespaced alias symbol.
70083         * modules/stdio (Depends-on): Add c++defs.
70084         (Makefile.am): Update stdio.h rule.
70086         spawn: Avoid #define replacements in C++ mode.
70087         * lib/spawn.in.h: Include c++defs.h.
70088         (posix_spawn, posix_spawnp, posix_spawnattr_init,
70089         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
70090         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
70091         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
70092         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
70093         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
70094         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
70095         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
70096         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
70097         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
70098         In C++, define a namespaced alias symbol.
70099         * modules/spawn (Depends-on): Add c++defs.
70100         (Makefile.am): Update spawn.h rule.
70102         signal: Avoid #define replacements in C++ mode.
70103         * lib/signal.in.h: Include c++defs.h.
70104         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
70105         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
70106         namespaced alias symbol.
70107         * modules/signal (Depends-on): Add c++defs.
70108         (Makefile.am): Update signal.h rule.
70110         search: Avoid #define replacements in C++ mode.
70111         * lib/search.in.h: Include c++defs.h.
70112         (_gl_search_compar_fn, _gl_search_action_fn): New types.
70113         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
70114         symbol.
70115         * modules/search (Depends-on): Add c++defs.
70116         (Makefile.am): Update search.h rule.
70118         math: Avoid #define replacements in C++ mode.
70119         * lib/math.in.h: Include c++defs.h.
70120         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
70121         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
70122         trunc, truncl): In C++, define a namespaced alias symbol.
70123         * modules/math (Depends-on): Add c++defs.
70124         (Makefile.am): Update math.h rule.
70126         locale: Avoid #define replacements in C++ mode.
70127         * lib/locale.in.h: Include c++defs.h.
70128         (duplocale): In C++, define a namespaced alias symbol.
70129         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
70130         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
70131         * modules/locale (Depends-on): Add c++defs.
70132         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
70134         langinfo: Avoid #define replacements in C++ mode.
70135         * lib/langinfo.in.h: Include c++defs.h.
70136         (nl_langinfo): In C++, define a namespaced alias symbol.
70137         * modules/langinfo (Depends-on): Add c++defs.
70138         (Makefile.am): Update langinfo.h rule.
70140         iconv-h: Avoid #define replacements in C++ mode.
70141         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
70142         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
70143         symbol.
70144         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
70145         whenever iconv is present.
70146         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
70147         (Makefile.am): Update iconv.h rule.
70149         glob: Avoid #define replacements in C++ mode.
70150         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
70151         (_gl_glob_errfunc_fn): New type.
70152         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
70153         symbol.
70154         * modules/glob (Depends-on): Add c++defs, warn-on-use.
70155         (Makefile.am): Update glob.h rule.
70157         fcntl-h: Avoid #define replacements in C++ mode.
70158         * lib/fcntl.in.h: Include c++defs.h.
70159         (fcntl, open, openat): In C++, define a namespaced alias symbol.
70160         * modules/fcntl-h (Depends-on): Add c++defs.
70161         (Makefile.am): Update fcntl.h rule.
70163         dirent: Avoid #define replacements in C++ mode.
70164         * lib/dirent.in.h: Include c++defs.h.
70165         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
70166         namespaced alias symbol.
70167         (dirfd): Update declaration.
70168         * modules/dirent (Depends-on): Add c++defs.
70169         (Makefile.am): Update dirent.h rule.
70171         ctype: Make it usable in C++ code.
70172         * lib/ctype.in.h: Include c++defs.h.
70173         (isblank): Declare as extern "C".
70174         * modules/ctype (Depends-on): Add c++defs.
70175         (Makefile.am): Update ctype.h rule.
70177         New module 'c++defs'.
70178         * modules/c++defs: New file.
70179         * build-aux/c++defs.h: New file.
70180         Reported by John W. Eaton <jwe@gnu.org>.
70182 2010-03-07  Bruno Haible  <bruno@clisp.org>
70184         logb: Provide missing declaration for Cygwin.
70185         * lib/math.in.h (logb): New declaration.
70186         * m4/logb.m4: New file.
70187         * modules/logb (Files): Add m4/logb.m4.
70188         (Depends-on): Add math.
70189         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
70190         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
70191         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
70192         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
70193         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
70195 2010-03-07  Bruno Haible  <bruno@clisp.org>
70197         Fix test-cond link error.
70198         * tests/test-cond.c: Include <stdio.h>.
70200 2010-03-07  Bruno Haible  <bruno@clisp.org>
70202         Fix test-dirent-safer link error.
70203         * modules/dirent-safer-tests (Makefile.am): Define
70204         test_dirent_safer_LDADD.
70206 2010-03-07  Bruno Haible  <bruno@clisp.org>
70208         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
70209         among default module list.
70211 2010-03-07  Bruno Haible  <bruno@clisp.org>
70213         Fix link error on platforms with GNU libiconv.
70214         * modules/unistr/u8-strcoll-tests (Makefile): Define
70215         test_u8_strcoll_LDADD.
70216         * modules/unistr/u16-strcoll-tests (Makefile): Define
70217         test_u16_strcoll_LDADD.
70218         * modules/unistr/u32-strcoll-tests (Makefile): Define
70219         test_u32_strcoll_LDADD.
70221 2010-03-07  Bruno Haible  <bruno@clisp.org>
70223         Use POSIX declarations for socket functions.
70224         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
70225         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
70226         rpl_sendto): Change declaration to match POSIX.
70227         * lib/connect.c (rpl_connect): Likewise.
70228         * lib/accept.c (rpl_accept): Likewise.
70229         * lib/bind.c (rpl_bind): Likewise.
70230         * lib/getpeername.c (rpl_getpeername): Likewise.
70231         * lib/getsockname.c (rpl_getsockname): Likewise.
70232         * lib/recv.c (rpl_recv): Likewise.
70233         * lib/send.c (rpl_send): Likewise.
70234         * lib/recvfrom.c (rpl_recvfrom): Likewise.
70235         * lib/sendto.c (rpl_sendto): Likewise.
70237 2010-03-06  Bruno Haible  <bruno@clisp.org>
70239         Clarify access, euidaccess, faccessat.
70240         * doc/posix-functions/faccessat.texi: Mention security problem under
70241         "Other problems", not "Portability problems".
70242         * doc/posix-functions/access.texi: Likewise. Mention a related security
70243         problem.
70244         * doc/glibc-functions/euidaccess.texi: Mention security problems.
70245         * lib/euidaccess.c: Add comments about platforms.
70246         * lib/unistd.in.h (access, euidaccess): Add warnings.
70248 2010-03-07  Bruno Haible  <bruno@clisp.org>
70250         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
70251         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
70252         (POSIX_SPAWN_SETSCHEDULER): Likewise.
70253         (POSIX_SPAWN_USEVFORK): Define in a way that works when
70254         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70255         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
70256         declare when POSIX_SPAWN_SETSCHEDULER is zero.
70257         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
70258         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
70259         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
70260         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
70261         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
70262         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
70263         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
70264         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
70265         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
70266         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
70267         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
70268         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
70269         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
70270         Likewise.
70271         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
70272         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
70273         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
70274         Likewise.
70275         * tests/test-spawn.c (main): Make it work when
70276         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70278 2010-03-07  Bruno Haible  <bruno@clisp.org>
70280         Fix incorrect Makefile.am generation in German locale.
70281         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70282         Execute sed command with character range in C locale.
70284 2010-03-06  Bruno Haible  <bruno@clisp.org>
70286         Tests for module 'iconv-h'.
70287         * modules/iconv-h-tests: New file.
70288         * tests/test-iconv-h.c: New file.
70290         New module 'iconv-h'.
70291         * modules/iconv-h: New file.
70292         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
70293         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
70294         (configure.ac): Remove gl_ICONV_H.
70295         (Makefile.am): Remove rule for iconv.h.
70297 2010-03-06  Bruno Haible  <bruno@clisp.org>
70299         More consistent naming of *.m4 files.
70300         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
70301         * modules/wctype (Files): Update.
70303         More consistent naming of *.m4 files.
70304         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
70305         * modules/wchar (Files): Update.
70307 2010-03-06  Jim Meyering  <meyering@redhat.com>
70309         euidaccess: relax license to LGPLv2+
70310         * modules/euidaccess (License): Relax to LGPLv2+.
70312 2010-03-06  Bruno Haible  <bruno@clisp.org>
70314         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
70315         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
70316         (Makefile.am): Augment lib_SOURCES instead.
70318 2010-03-04  Jim Meyering  <meyering@redhat.com>
70320         utime: remove obsolete module
70321         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
70322         unnecessary for years, and has been marked as obsolete for 10 months.
70323         * modules/utime: Remove file.
70324         * lib/utime.c: Remove file.
70325         * m4/utime.m4: Remove file.
70326         * m4/utimes-null.m4: Remove file.
70327         * doc/posix-functions/utime.texi (utime): Remove reference to
70328         the module.  Move the sole "fixed by gnulib" item into the
70329         "problems not fixed by Gnulib" list.
70330         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
70332 2010-03-05  Simon Josefsson  <simon@josefsson.org>
70334         * modules/exit (License): Relax license to LGPLv2+.
70335         (Status): Mark as obsolete.
70336         * NEWS: Mention deprecated 'exit' module.
70337         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
70338         of now obsolete 'exit'.
70340 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70342         fts-lgpl: remove unused module
70343         * modules/fts-lgpl: Remove.
70344         * MODULES.html.sh (func_all_modules): Adjust.
70345         * check-module (find_included_lib_files): Adjust.
70346         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
70348 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
70350         copy-acl: enhance Solaris ACL error handling
70351         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
70352         * lib/set-mode-acl.c (qset_acl): Likewise.
70354 2010-03-02  Bruno Haible  <bruno@clisp.org>
70356         spawn: Don't override the system defined values on FreeBSD 8.
70357         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
70358         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
70359         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
70360         if HAVE_POSIX_SPAWN is 1.
70361         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
70363 2010-03-01  Bruno Haible  <bruno@clisp.org>
70365         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
70366         regarding Automake.
70368 2010-02-25  Bruno Haible  <bruno@clisp.org>
70370         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
70371         * gnulib-tool: Define 'echo' as a function only before the ksh alias
70372         setting, not afterwards.
70373         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
70375 2010-02-24  Eric Blake  <eblake@redhat.com>
70377         bootstrap, git-version-gen: use timestamp
70378         * build-aux/git-version-gen (scriptversion): Force UTC.
70379         * build-aux/bootstrap (scriptversion): New variable.
70381         bootstrap: allow older git
70382         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
70383         older than 1.6.4.  Requested by the libvirt project.
70385 2010-02-23  Eric Blake  <eblake@redhat.com>
70387         warn-on-use: work with old autoconf
70388         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
70389         AS_VAR semantics of autoconf 2.60.
70390         Reported by Bruno Haible.
70392         bootstrap: improve some comments
70393         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
70394         clarification comments.
70396         gettimeofday: provide correct function
70397         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
70398         when replacement is declared, otherwise provide gettimeofday.
70399         Reported by Michael Goffioul.
70401 2010-02-23  Jim Meyering  <meyering@redhat.com>
70403         lib-ignore: relax license to "unlimited", not LGPLv2+
70404         * modules/lib-ignore (License): Relax to "unlimited".
70406 2010-02-23  Jim Meyering  <meyering@redhat.com>
70408         lib-ignore: relax license to LGPLv2+
70409         * modules/lib-ignore (License): Relax to LGPLv2+.
70411 2010-02-22  Eric Blake  <eblake@redhat.com>
70413         lseek: avoid bash 3.2 broken pipe bug
70414         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
70415         warning from bash 3.2.
70416         Reported by Ben Pfaff, with analysis from Bruno Haible.
70418         bootstrap: support non-FSF copyright holder
70419         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
70420         bootstrap.conf override of COPYRIGHT_HOLDER.
70421         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
70423         bootstrap: interoperate with gettext 0.14.1
70424         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
70426         bootstrap: allow for alternate submodule location
70427         * build-aux/bootstrap (gnulib_path): New variable; use instead of
70428         hardcoding submodule location.
70429         (gnulib_mk): Allow direct use of Makefile.am.
70431         bootstrap: use GNULIB_SRCDIR to reduce disk usage
70432         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
70433         rather than reconfiguring where the submodule points.
70435         gettimeofday: restore support for platforms that lack function
70436         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
70437         replacement if function is missing.
70438         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
70439         * modules/sys_time (Makefile.am): Substitute it.
70440         * lib/sys_time.in.h (gettimeofday): Check it.
70441         Reported by Michael Goffioul.
70443 2010-02-21  Bruno Haible  <bruno@clisp.org>
70445         * lib/stdio.in.h (obstack_printf): Fix typo.
70447 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
70449         vc-list-files: use bzr ls's -R option
70450         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
70451         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
70453 2010-02-21  Jim Meyering  <meyering@redhat.com>
70455         init.sh: fix EXEEXT shims to work also for names like test-prog
70456         * tests/init.sh: Re-exec a better shell, when needed.
70457         If the current shell lacks support for posix $(...), an init.sh-using
70458         test will now try to find a shell that supports that.  If EXEEXT is
70459         nonempty, we also require support for hyphen-in-alias-name and shell
70460         substitutions like ${var#glob}.  Failure to find such a shell results
70461         in a skipped test.
70463 2010-02-21  Bruno Haible  <bruno@clisp.org>
70465         Really work around "broken pipe" error message from bash 3.2.
70466         * gnulib-tool (func_reset_sigpipe): Remove function.
70467         (echo): In bash 3.2, define to a function that uses printf.
70468         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
70470 2010-02-20  Bruno Haible  <bruno@clisp.org>
70472         Restore support for automake 1.9.6 with autoconf 2.61.
70473         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
70474         Reported by James Youngman <jay@gnu.org>.
70476 2010-02-20  Bruno Haible  <bruno@clisp.org>
70478         Improve *printf warning condition.
70479         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
70480         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
70481         and the function is overridden due to SIGPIPE emulation.
70483 2010-02-20  Bruno Haible  <bruno@clisp.org>
70485         * lib/stdio.in.h: Tweak comments.
70487 2010-02-19  Bruno Haible  <bruno@clisp.org>
70489         Make it easier to find modules. New gnulib-tool option '--find'.
70490         * gnulib-tool: New option --find.
70491         (func_usage): Document it.
70492         (func_sanitize_modulelist): New function, extracted from
70493         func_all_modules.
70494         (func_all_modules): Invoke it.
70495         * doc/gnulib-tool.texi (Which modules?): New node.
70497 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
70499         * lib/sys_select.in.h: Provide select replacement even if
70500         sys/select.h exists on a system, for Interix.
70502 2010-02-18  Jim Meyering  <meyering@redhat.com>
70504         init.sh: don't use $(...) just yet
70505         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
70506         to accommodate e.g., Solaris' /bin/sh.
70508 2010-02-17  Bruno Haible  <bruno@clisp.org>
70510         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
70511         Reported by Ludovic Courtès <ludo@gnu.org>.
70513 2010-02-16  Simon Josefsson  <simon@josefsson.org>
70515         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
70516         linking with -lintl.
70518 2010-02-17  Simon Josefsson  <simon@josefsson.org>
70520         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
70521         if not provided by the system's netdb.h.  Reported by
70522         ludo@gnu.org (Ludovic Courtès).
70524 2010-02-15  Jim Meyering  <meyering@redhat.com>
70526         init.sh: improve portability and efficiency
70527         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
70528         "dummy" in a for loop.
70529         Use '!', not '^' to select the complement of a character set used
70530         in a "case" statement.
70531         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
70532         Suggestions from Eric Blake.
70534         init.sh: automatically accommodate programs with the .exe suffix
70535         Automatically arrange for an invocation of "prog" to execute the
70536         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
70537         may use the simpler "prog", yet still work when built on a system
70538         that requires specifying the added suffix.
70539         Do this by constructing a function named "prog" that invokes
70540         "prog.exe" for each .exe file in selected directories.
70541         * tests/init.sh (find_exe_basenames_): New function.
70542         (create_exe_shim_functions_): New function.
70543         (path_prepend_): Use it.
70545         maint.mk: mark syntax-check sc_*.m rules as .PHONY
70546         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
70547         "make -t syntax-check" doesn't create a ton of sc_*.m files.
70549 2010-02-14  Jim Meyering  <meyering@redhat.com>
70551         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
70552         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
70553         (sc_prohibit_hash_pjw_without_use): New rule.
70555         maint.mk: allow the default upload destination dir to be overridden
70556         * top/maint.mk (upload_dest_dir_): Define with a default that
70557         preserves the status quo.
70558         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
70559         Reported by Peter Simons.
70561         maint.mk: prohibit inclusion of "hash.h" without_use
70562         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
70564 2010-02-10  Jim Meyering  <meyering@redhat.com>
70566         maint.mk: prohibit inclusion of "ignore-value.h" without_use
70567         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
70569 2010-02-09  Eric Blake  <ebb9@byu.net>
70570         and Bruno Haible  <bruno@clisp.org>
70572         obstack-printf-posix: ensure declaration
70573         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
70574         extracted from gl_FUNC_OBSTACK_PRINTF.
70575         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
70576         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
70577         Likewise.
70578         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
70579         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
70580         0.
70582 2010-02-08  Bruno Haible  <bruno@clisp.org>
70584         gnulib-tool: Fix typo in 2010-02-07 commit.
70585         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
70586         Reported by Eric Blake.
70588 2010-02-07  Bruno Haible  <bruno@clisp.org>
70590         gnulib-tool: Fix up caching patches.
70591         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
70592         option --no-cache. Use associative arrays when supported by the shell.
70593         (sed_comments): New variable.
70594         (modcache): Renamed from do_cache.
70595         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
70596         abbreviate unnecessarily.
70597         (have_associative): New variable.
70598         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
70599         way also for ksh and zsh.
70600         (func_init_sed_convert_to_cache_statements): New function, extracted
70601         from func_cache_lookup_module. Add support for associative arrays.
70602         Don't set the c_MODULE_cached variable here. Ignore all lines before
70603         the first field header. Remove only the final newline, not all trailing
70604         newlines. Support empty fields correctly. Limit the use of 'eval' to
70605         assignments.
70606         (func_get_description, func_get_status, func_get_notice,
70607         func_get_applicability, func_get_filelist, func_get_dependencies,
70608         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
70609         func_get_automake_snippet, func_get_include_directive,
70610         func_get_link_directive, func_get_license, func_get_maintainer):
70611         Update documentation. List the unoptimized code first. Add support for
70612         associative arrays. Limit the use of 'eval' to assignments.
70613         (func_get_applicability): Undo stylistic pessimisations.
70614         (func_get_automake_snippet, func_get_include_directive): Reduce code
70615         duplication.
70616         (func_modules_transitive_closure, func_modules_add_dummy,
70617         func_modules_notice, func_modules_to_filelist, func_add_file,
70618         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
70619         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
70620         func_create_testdir, func_create_megatestdir): Update documentation.
70622 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70624         * gnulib-tool (func_cache_lookup_module): Store the module name
70625         belonging to the cache variable; error out if two different
70626         module names map to the same cache variable name.
70628 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70630         gnulib-tool: Make caching optional.
70631         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
70632         Update matching short versions of --no-changelog.
70633         (func_usage): Update.
70634         (sed_extract_cache_prog): Renamed from ...
70635         (sed_extract_prog): ... this; revert to old extraction script.
70636         (func_get_description, func_get_status)
70637         (func_get_notice, func_get_applicability, func_get_filelist)
70638         (func_get_dependencies, func_get_autoconf_early_snippet)
70639         (func_get_autoconf_snippet, func_get_automake_snippet)
70640         (func_get_include_directive, func_get_link_directive)
70641         (func_get_license, func_get_maintainer): If $do_cache is false,
70642         use old, non-caching extraction scripts.
70643         Suggestion by Bruno Haible.
70645 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70647         gnulib-tool: cache module metainformation.
70648         * gnulib-tool (sed_extract_prog): Match newline before each
70649         header, and rewrite header to a shell variable suffix.
70650         (func_cache_var, func_cache_lookup_module): New functions,
70651         to turn a module name into a cache variable prefix, and to
70652         look up and cache module metainformation.
70653         (func_get_description, func_get_status)
70654         (func_get_notice, func_get_applicability, func_get_filelist)
70655         (func_get_dependencies, func_get_autoconf_early_snippet)
70656         (func_get_autoconf_snippet, func_get_automake_snippet)
70657         (func_get_include_directive, func_get_link_directive)
70658         (func_get_license, func_get_maintainer): Use
70659         func_cache_lookup_module.
70661 2010-02-07  Bruno Haible  <bruno@clisp.org>
70663         fnctl: Fix missing dependency.
70664         * modules/fcntl (Depends-on): Add getdtablesize.
70665         Reported by John W. Eaton <jwe@gnu.org>.
70667 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
70669         Argp: fix recognition of short alias options.
70671         * lib/argp-parse.c (convert_options): Fix improper use of
70672         `|' between character values.
70673         * tests/test-argp.c (group1_option): New alias option
70674         --read (-r).
70675         (group1_parser): Special handling for 'r'.
70676         (test15): New test case.
70677         (test_fun): Add test15.
70678         * tests/test-argp-2.sh: Update expected --help and --usage
70679         outputs.
70681 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
70683         * tests/test-argp.c: Fix indentation.
70685 2010-02-04  Eric Blake  <ebb9@byu.net>
70687         gettimeofday: expose type of second argument
70688         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
70689         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
70690         * tests/test-gettimeofday.c: Use it to silence warning.
70691         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
70692         the issue.
70694 2010-02-03  Jim Meyering  <meyering@redhat.com>
70696         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
70697         * lib/regcomp.c (TYPE_SIGNED): Define.
70698         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
70700         regcomp.c: avoid a new -Wshadow warning
70701         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
70703 2010-02-01  Jim Meyering  <meyering@redhat.com>
70705         removing useless parentheses in cpp #define directives
70706         For motivation, see commit c0221df4, "define STREQ(a,b)
70707         consistently, removing useless parentheses"
70708         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
70709         * lib/mountlist.c (MNT_IGNORE): Likewise.
70710         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
70712 2010-02-01  Eric Blake  <ebb9@byu.net>
70714         sys_time: use link-warning
70715         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
70716         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
70717         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
70718         * modules/sys_time (Depends-on): Add warn-on-use.
70719         (Makefile.am): Always build replacement.
70720         (configure.ac): Update substitutions.
70721         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
70722         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
70723         bother with SYS_TIME_H.
70724         * modules/gettimeofday (configure.ac): Declare indicator.
70725         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
70726         in use.
70728         closein-tests: silence compiler warning
70729         * tests/test-closein.c (main): Ignore fread result.
70730         * modules/closein-tests (Depends-on): Add ignore-value.
70732         tests: silence warning about system return
70733         * tests/test-areadlink-with-size.c (main): Ignore system result.
70734         * tests/test-areadlink.c (main): Likewise.
70735         * tests/test-areadlinkat-with-size.c (main): Likewise.
70736         * tests/test-areadlinkat.c (main): Likewise.
70737         * tests/test-canonicalize-lgpl.c (main): Likewise.
70738         * tests/test-canonicalize.c (main): Likewise.
70739         * tests/test-chown.c (main): Likewise.
70740         * tests/test-fchownat.c (main): Likewise.
70741         * tests/test-fdutimensat.c (main): Likewise.
70742         * tests/test-fstatat.c (main): Likewise.
70743         * tests/test-futimens.c (main): Likewise.
70744         * tests/test-lchown.c (main): Likewise.
70745         * tests/test-link.c (main): Likewise.
70746         * tests/test-linkat.c (main): Likewise.
70747         * tests/test-lstat.c (main): Likewise.
70748         * tests/test-mkdir.c (main): Likewise.
70749         * tests/test-mkdirat.c (main): Likewise.
70750         * tests/test-mkfifo.c (main): Likewise.
70751         * tests/test-mkfifoat.c (main): Likewise.
70752         * tests/test-mknod.c (main): Likewise.
70753         * tests/test-readlink.c (main): Likewise.
70754         * tests/test-remove.c (main): Likewise.
70755         * tests/test-rename.c (main): Likewise.
70756         * tests/test-renameat.c (main): Likewise.
70757         * tests/test-rmdir.c (main): Likewise.
70758         * tests/test-symlink.c (main): Likewise.
70759         * tests/test-symlinkat.c (main): Likewise.
70760         * tests/test-unlink.c (main): Likewise.
70761         * tests/test-unlinkat.c (main): Likewise.
70762         * tests/test-utimens.c (main): Likewise.
70763         * tests/test-utimensat.c (main): Likewise.
70764         * modules/areadlink-tests (Depends-on): Add ignore-value.
70765         * modules/areadlink-with-size-tests (Depends-on): Likewise.
70766         * modules/areadlinkat-tests (Depends-on): Likewise.
70767         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
70768         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
70769         * modules/canonicalize-tests (Depends-on): Likewise.
70770         * modules/chown-tests (Depends-on): Likewise.
70771         * modules/fdutimensat-tests (Depends-on): Likewise.
70772         * modules/futimens-tests (Depends-on): Likewise.
70773         * modules/lchown-tests (Depends-on): Likewise.
70774         * modules/link-tests (Depends-on): Likewise.
70775         * modules/linkat-tests (Depends-on): Likewise.
70776         * modules/lstat-tests (Depends-on): Likewise.
70777         * modules/mkdir-tests (Depends-on): Likewise.
70778         * modules/mkfifo-tests (Depends-on): Likewise.
70779         * modules/mkfifoat-tests (Depends-on): Likewise.
70780         * modules/mknod-tests (Depends-on): Likewise.
70781         * modules/openat-tests (Depends-on): Likewise.
70782         * modules/readlink-tests (Depends-on): Likewise.
70783         * modules/remove-tests (Depends-on): Likewise.
70784         * modules/rename-tests (Depends-on): Likewise.
70785         * modules/renameat-tests (Depends-on): Likewise.
70786         * modules/rmdir-tests (Depends-on): Likewise.
70787         * modules/symlink-tests (Depends-on): Likewise.
70788         * modules/symlinkat-tests (Depends-on): Likewise.
70789         * modules/unlink-tests (Depends-on): Likewise.
70790         * modules/utimens-tests (Depends-on): Likewise.
70791         * modules/utimensat-tests (Depends-on): Likewise.
70793 2010-01-31  Bruno Haible  <bruno@clisp.org>
70795         Perform the same test for many <math.h> functions.
70796         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
70797         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
70798         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
70799         of gl_MATHFUNC.
70800         * modules/acos (configure.ac): Likewise.
70801         * modules/asin (configure.ac): Likewise.
70802         * modules/atan (configure.ac): Likewise.
70803         * modules/atan2 (configure.ac): Likewise.
70804         * modules/cbrt (configure.ac): Likewise.
70805         * modules/copysign (configure.ac): Likewise.
70806         * modules/cos (configure.ac): Likewise.
70807         * modules/cosh (configure.ac): Likewise.
70808         * modules/erf (configure.ac): Likewise.
70809         * modules/erfc (configure.ac): Likewise.
70810         * modules/exp (configure.ac): Likewise.
70811         * modules/fmod (configure.ac): Likewise.
70812         * modules/hypot (configure.ac): Likewise.
70813         * modules/j0 (configure.ac): Likewise.
70814         * modules/j1 (configure.ac): Likewise.
70815         * modules/jn (configure.ac): Likewise.
70816         * modules/lgamma (configure.ac): Likewise.
70817         * modules/log (configure.ac): Likewise.
70818         * modules/log10 (configure.ac): Likewise.
70819         * modules/log1p (configure.ac): Likewise.
70820         * modules/pow (configure.ac): Likewise.
70821         * modules/remainder (configure.ac): Likewise.
70822         * modules/sin (configure.ac): Likewise.
70823         * modules/sinh (configure.ac): Likewise.
70824         * modules/tan (configure.ac): Likewise.
70825         * modules/tanh (configure.ac): Likewise.
70826         * modules/y0 (configure.ac): Likewise.
70827         * modules/y1 (configure.ac): Likewise.
70828         * modules/yn (configure.ac): Likewise.
70829         Suggested by Paolo Bonzini.
70831 2010-01-31  Bruno Haible  <bruno@clisp.org>
70833         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
70835 2010-01-31  Bruno Haible  <bruno@clisp.org>
70837         Work around getdelim() bug on FreeBSD 8.0.
70838         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
70839         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
70840         not work.
70841         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
70842         is 1.
70843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
70844         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
70845         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
70846         a non-zero size.
70847         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
70849 2010-01-31  Bruno Haible  <bruno@clisp.org>
70851         Work around getline() bug on FreeBSD 8.0.
70852         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
70853         and a non-zero size.
70854         * tests/test-getline.c (main): Likewise.
70855         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
70856         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
70858 2010-01-28  Eric Blake  <ebb9@byu.net>
70860         regex: fix build failure
70861         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
70862         platforms.
70864 2010-01-28  Jim Meyering  <meyering@redhat.com>
70866         regex: do not ignore memory allocation failure
70867         * lib/regex_internal.c (create_cd_newstate): Detect
70868         re_node_set_init_copy failure.   Extracted from glibc commit
70869         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
70871         regex: sync more white-space changes from libc
70872         * lib/regex_internal.c: White-space only changes.
70873         * lib/regexec.c: Likewise.
70875         regex: add many uses of __attribute_warn_unused_result__
70876         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
70877         * lib/regexec.c: Likewise.
70878         Extracted from a messy glibc commit.
70880         regcomp.c: spelling and merge-artifact from glibc
70881         * lib/regcomp.c: Merge remainder of glibc's
70882         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
70884         regcomp.c: sync white-space changes from glibc
70885         * lib/regcomp.c: Merge to accommodate white space
70886         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
70888         regcomp.c: do not ignore internal return values
70889         * lib/regcomp.c: Do not ignore internal return values.
70890         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
70891         but without its white-space changes and spelling fixes.
70893         regex_internal.h: define __attribute_warn_unused_result__
70894         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
70896         maint: add a syntax-check rule to check for vulnerable Makefile.in
70897         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
70899 2010-01-27  Jim Meyering  <meyering@redhat.com>
70901         ncftpput-ftp: clean up spaces
70902         * build-aux/ncftpput-ftp: Make Copyright line consistent.
70903         Remove trailing blanks.
70905 2010-01-27  Simon Josefsson  <simon@josefsson.org>
70907         * build-aux/git-version-gen: Fix copyright statement.
70908         * build-aux/gnupload: Likewise.
70909         * tests/test-arcfour.c: Likewise.
70910         * tests/test-arctwo.c: Likewise.
70911         * tests/test-count-one-bits.c: Likewise.
70912         * tests/test-crc.c: Likewise.
70913         * tests/test-des.c: Likewise.
70914         * tests/test-gc-arcfour.c: Likewise.
70915         * tests/test-gc-arctwo.c: Likewise.
70916         * tests/test-gc-des.c: Likewise.
70917         * tests/test-gc-hmac-md5.c: Likewise.
70918         * tests/test-gc-hmac-sha1.c: Likewise.
70919         * tests/test-gc-md2.c: Likewise.
70920         * tests/test-gc-md4.c: Likewise.
70921         * tests/test-gc-md5.c: Likewise.
70922         * tests/test-gc-pbkdf2-sha1.c: Likewise.
70923         * tests/test-gc-rijndael.c: Likewise.
70924         * tests/test-gc-sha1.c: Likewise.
70925         * tests/test-gc.c: Likewise.
70926         * tests/test-gethostname.c: Likewise.
70927         * tests/test-gettimeofday.c: Likewise.
70928         * tests/test-hash.c: Likewise.
70929         * tests/test-hmac-md5.c: Likewise.
70930         * tests/test-hmac-sha1.c: Likewise.
70931         * tests/test-md2.c: Likewise.
70932         * tests/test-md4.c: Likewise.
70933         * tests/test-md5.c: Likewise.
70934         * tests/test-memchr.c: Likewise.
70935         * tests/test-memchr2.c: Likewise.
70936         * tests/test-memcmp.c: Likewise.
70937         * tests/test-memmem.c: Likewise.
70938         * tests/test-memrchr.c: Likewise.
70939         * tests/test-rawmemchr.c: Likewise.
70940         * tests/test-read-file.c: Likewise.
70941         * tests/test-rijndael.c: Likewise.
70942         * tests/test-sockets.c: Likewise.
70943         * tests/test-strchrnul.c: Likewise.
70944         * tests/test-strstr.c: Likewise.
70945         * tests/test-strtod.c: Likewise.
70946         * build-aux/ncftpput-ftp: Likewise.
70948 2010-01-26  Eric Blake  <ebb9@byu.net>
70950         ignore-value: update recommended header name
70951         * modules/ignore-value (Include): Only use <> for headers that
70952         exist in glibc.
70954 2010-01-26  Jim Meyering  <meyering@redhat.com>
70956         test-userspec.c: avoid compiler warnings
70957         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
70958         and "initialization discards qualifiers..." warnings.
70959         Put the first "uid" in its own scope, and make char* members "const".
70961 2010-01-25  Bruno Haible  <bruno@clisp.org>
70963         gnulib-tool: Make warning diagnostics consistent.
70964         * gnulib-tool (func_warning): New function.
70965         Use it everywhere where gnulib-tool produces output to stderr and it is
70966         not a fatal error.
70968 2010-01-25  Bruno Haible  <bruno@clisp.org>
70970         Fix test dependencies.
70971         * modules/xstrtol-tests (Depends-on): Add inttypes.
70972         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
70974 2010-01-25  Pádraig Brady  <P@draigBrady.com>
70976         syntax-check: detect incorrect boolean macro values in config.h
70977         * modules/maintainer-makefile (configure.ac): Parameterize the location
70978         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
70979         The logic is from Eric Blake and the location indicated by Jim Meyering.
70980         Note the more natural CONFIG_HEADER name is prohibited by automake
70981         for backwards compatibility reasons.
70982         * top/maint.mk (sc_Wundef_boolean): New rule.
70984 2010-01-25  Jim Meyering  <meyering@redhat.com>
70986         bootstrap: detect MacOS 10.6's shasum, too
70987         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
70988         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
70990 2010-01-23  Jim Meyering  <meyering@redhat.com>
70992         xstrtoll: new module
70993         * modules/xstrtoll: New file.
70994         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
70995         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
70996         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
70997         ./configure fails if you use this module and lack "long long".
70998         * modules/xstrtoll-tests: New module.
70999         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
71000         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
71001         new init.sh-based test framework.
71003 2010-01-24  Bruno Haible  <bruno@clisp.org>
71005         Tests for module 'yn'.
71006         * modules/yn-tests: New file.
71007         * tests/test-yn.c: New file.
71009         Tests for module 'y1'.
71010         * modules/y1-tests: New file.
71011         * tests/test-y1.c: New file.
71013         Tests for module 'y0'.
71014         * modules/y0-tests: New file.
71015         * tests/test-y0.c: New file.
71017         Tests for module 'tanh'.
71018         * modules/tanh-tests: New file.
71019         * tests/test-tanh.c: New file.
71021         Tests for module 'tan'.
71022         * modules/tan-tests: New file.
71023         * tests/test-tan.c: New file.
71025         Tests for module 'sqrt'.
71026         * modules/sqrt-tests: New file.
71027         * tests/test-sqrt.c: New file.
71029         Tests for module 'sinh'.
71030         * modules/sinh-tests: New file.
71031         * tests/test-sinh.c: New file.
71033         Tests for module 'sin'.
71034         * modules/sin-tests: New file.
71035         * tests/test-sin.c: New file.
71037         Tests for module 'rint'.
71038         * modules/rint-tests: New file.
71039         * tests/test-rint.c: New file.
71041         Tests for module 'remainder'.
71042         * modules/remainder-tests: New file.
71043         * tests/test-remainder.c: New file.
71045         Tests for module 'pow'.
71046         * modules/pow-tests: New file.
71047         * tests/test-pow.c: New file.
71049         Tests for module 'nextafter'.
71050         * modules/nextafter-tests: New file.
71051         * tests/test-nextafter.c: New file.
71053         Tests for module 'modf'.
71054         * modules/modf-tests: New file.
71055         * tests/test-modf.c: New file.
71057         Tests for module 'logb'.
71058         * modules/logb-tests: New file.
71059         * tests/test-logb.c: New file.
71061         Tests for module 'log1p'.
71062         * modules/log1p-tests: New file.
71063         * tests/test-log1p.c: New file.
71065         Tests for module 'log10'.
71066         * modules/log10-tests: New file.
71067         * tests/test-log10.c: New file.
71069         Tests for module 'log'.
71070         * modules/log-tests: New file.
71071         * tests/test-log.c: New file.
71073         Tests for module 'lgamma'.
71074         * modules/lgamma-tests: New file.
71075         * tests/test-lgamma.c: New file.
71077         Tests for module 'ldexp'.
71078         * modules/ldexp-tests: New file.
71079         * tests/test-ldexp.c: New file.
71081         Tests for module 'jn'.
71082         * modules/jn-tests: New file.
71083         * tests/test-jn.c: New file.
71085         Tests for module 'j1'.
71086         * modules/j1-tests: New file.
71087         * tests/test-j1.c: New file.
71089         Tests for module 'j0'.
71090         * modules/j0-tests: New file.
71091         * tests/test-j0.c: New file.
71093         Tests for module 'hypot'.
71094         * modules/hypot-tests: New file.
71095         * tests/test-hypot.c: New file.
71097         Tests for module 'fmod'.
71098         * modules/fmod-tests: New file.
71099         * tests/test-fmod.c: New file.
71101         Tests for module 'fabs'.
71102         * modules/fabs-tests: New file.
71103         * tests/test-fabs.c: New file.
71105         Tests for module 'exp'.
71106         * modules/exp-tests: New file.
71107         * tests/test-exp.c: New file.
71109         Tests for module 'erfc'.
71110         * modules/erfc-tests: New file.
71111         * tests/test-erfc.c: New file.
71113         Tests for module 'erf'.
71114         * modules/erf-tests: New file.
71115         * tests/test-erf.c: New file.
71117         Tests for module 'cosh'.
71118         * modules/cosh-tests: New file.
71119         * tests/test-cosh.c: New file.
71121         Tests for module 'cos'.
71122         * modules/cos-tests: New file.
71123         * tests/test-cos.c: New file.
71125         Tests for module 'copysign'.
71126         * modules/copysign-tests: New file.
71127         * tests/test-copysign.c: New file.
71129         Tests for module 'cbrt'.
71130         * modules/cbrt-tests: New file.
71131         * tests/test-cbrt.c: New file.
71133         Tests for module 'atan2'.
71134         * modules/atan2-tests: New file.
71135         * tests/test-atan2.c: New file.
71137         Tests for module 'atan'.
71138         * modules/atan-tests: New file.
71139         * tests/test-atan.c: New file.
71141         Tests for module 'asin'.
71142         * modules/asin-tests: New file.
71143         * tests/test-asin.c: New file.
71145         Tests for module 'acos'.
71146         * modules/acos-tests: New file.
71147         * tests/test-acos.c: New file.
71149 2010-01-24  Bruno Haible  <bruno@clisp.org>
71151         Fix tests for common <math.h> functions.
71152         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
71153         code snippet that references the function pointer, rather than merely
71154         calling the function. Substitute the FUNC_LIBM variable.
71155         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
71156         * modules/acos (configure.ac): Likewise.
71157         * modules/asin (configure.ac): Likewise.
71158         * modules/atan (configure.ac): Likewise.
71159         * modules/atan2 (configure.ac): Likewise.
71160         * modules/cbrt (configure.ac): Likewise.
71161         * modules/copysign (configure.ac): Likewise.
71162         * modules/cos (configure.ac): Likewise.
71163         * modules/cosh (configure.ac): Likewise.
71164         * modules/erf (configure.ac): Likewise.
71165         * modules/erfc (configure.ac): Likewise.
71166         * modules/exp (configure.ac): Likewise.
71167         * modules/fabs (configure.ac): Likewise.
71168         * modules/fmod (configure.ac): Likewise.
71169         * modules/hypot (configure.ac): Likewise.
71170         * modules/j0 (configure.ac): Likewise.
71171         * modules/j1 (configure.ac): Likewise.
71172         * modules/jn (configure.ac): Likewise.
71173         * modules/ldexp (configure.ac): Likewise.
71174         * modules/lgamma (configure.ac): Likewise.
71175         * modules/log (configure.ac): Likewise.
71176         * modules/log10 (configure.ac): Likewise.
71177         * modules/log1p (configure.ac): Likewise.
71178         * modules/logb (configure.ac): Likewise.
71179         * modules/modf (configure.ac): Likewise.
71180         * modules/nextafter (configure.ac): Likewise.
71181         * modules/pow (configure.ac): Likewise.
71182         * modules/remainder (configure.ac): Likewise.
71183         * modules/rint (configure.ac): Likewise.
71184         * modules/sin (configure.ac): Likewise.
71185         * modules/sinh (configure.ac): Likewise.
71186         * modules/tan (configure.ac): Likewise.
71187         * modules/tanh (configure.ac): Likewise.
71188         * modules/y0 (configure.ac): Likewise.
71189         * modules/y1 (configure.ac): Likewise.
71190         * modules/yn (configure.ac): Likewise.
71192 2010-01-24  Bruno Haible  <bruno@clisp.org>
71194         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
71195         * tests/test-acosl.c (x): New variable.
71196         (main): Store argument in x and fetch it from x.
71197         * tests/test-asinl.c (x): New variable.
71198         (main): Store argument in x and fetch it from x.
71199         * tests/test-atanl.c (x): New variable.
71200         (main): Store argument in x and fetch it from x.
71201         * tests/test-cosl.c (x): New variable.
71202         (main): Store argument in x and fetch it from x.
71203         * tests/test-expl.c (x): New variable.
71204         (main): Store argument in x and fetch it from x.
71205         * tests/test-logl.c (x): New variable.
71206         (main): Store argument in x and fetch it from x.
71207         * tests/test-sinl.c (x): New variable.
71208         (main): Store argument in x and fetch it from x.
71209         * tests/test-sqrtl.c (x): New variable.
71210         (main): Store argument in x and fetch it from x.
71211         * tests/test-tanl.c (x): New variable.
71212         (main): Store argument in x and fetch it from x.
71214 2010-01-24  Bruno Haible  <bruno@clisp.org>
71216         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
71217         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
71218         assignments to the initial TESTS_ENVIRONMENT.
71219         * doc/gnulib.texi (Unit test modules): Document it.
71220         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
71221         TESTS_ENVIRONMENT.
71222         * modules/btowc-tests (Makefile.am): Likewise.
71223         * modules/c-stack-tests (Makefile.am): Likewise.
71224         * modules/c-strcase-tests (Makefile.am): Likewise.
71225         * modules/copy-file-tests (Makefile.am): Likewise.
71226         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
71227         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
71228         * modules/mbrtowc-tests (Makefile.am): Likewise.
71229         * modules/mbscasecmp-tests (Makefile.am): Likewise.
71230         * modules/mbscasestr-tests (Makefile.am): Likewise.
71231         * modules/mbschr-tests (Makefile.am): Likewise.
71232         * modules/mbscspn-tests (Makefile.am): Likewise.
71233         * modules/mbsinit-tests (Makefile.am): Likewise.
71234         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
71235         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
71236         * modules/mbspbrk-tests (Makefile.am): Likewise.
71237         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
71238         * modules/mbsrchr-tests (Makefile.am): Likewise.
71239         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
71240         * modules/mbsspn-tests (Makefile.am): Likewise.
71241         * modules/mbsstr-tests (Makefile.am): Likewise.
71242         * modules/nl_langinfo-tests (Makefile.am): Likewise.
71243         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
71244         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
71245         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
71246         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
71247         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
71248         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
71249         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
71250         * modules/wcrtomb-tests (Makefile.am): Likewise.
71251         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
71252         * modules/wcsrtombs-tests (Makefile.am): Likewise.
71253         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
71254         assignments from TESTS_ENVIRONMENT.
71255         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
71256         augmentation.
71257         * modules/argp-version-etc-tests (Makefile.am): Likewise.
71258         * modules/atexit-tests (Makefile.am): Likewise.
71259         * modules/binary-io-tests (Makefile.am): Likewise.
71260         * modules/closein-tests (Makefile.am): Likewise.
71261         * modules/dprintf-posix-tests (Makefile.am): Likewise.
71262         * modules/exclude-tests (Makefile.am): Likewise.
71263         * modules/fflush-tests (Makefile.am): Likewise.
71264         * modules/fpending-tests (Makefile.am): Likewise.
71265         * modules/fprintf-posix-tests (Makefile.am): Likewise.
71266         * modules/freadahead-tests (Makefile.am): Likewise.
71267         * modules/freadptr-tests (Makefile.am): Likewise.
71268         * modules/freadseek-tests (Makefile.am): Likewise.
71269         * modules/fseek-tests (Makefile.am): Likewise.
71270         * modules/fseeko-tests (Makefile.am): Likewise.
71271         * modules/ftell-tests (Makefile.am): Likewise.
71272         * modules/ftello-tests (Makefile.am): Likewise.
71273         * modules/idpriv-drop-tests (Makefile.am): Likewise.
71274         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
71275         * modules/lseek-tests (Makefile.am): Likewise.
71276         * modules/parse-duration-tests (Makefile.am): Likewise.
71277         * modules/perror-tests (Makefile.am): Likewise.
71278         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
71279         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
71280         * modules/pipe-tests (Makefile.am): Likewise.
71281         * modules/pread-tests (Makefile.am): Likewise.
71282         * modules/printf-posix-tests (Makefile.am): Likewise.
71283         * modules/select-tests (Makefile.am): Likewise.
71284         * modules/sigpipe-tests (Makefile.am): Likewise.
71285         * modules/tsearch-tests (Makefile.am): Likewise.
71286         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
71287         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
71288         * modules/uniname/uniname-tests (Makefile.am): Likewise.
71289         * modules/uniwidth/width-tests (Makefile.am): Likewise.
71290         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
71291         * modules/version-etc-tests (Makefile.am): Likewise.
71292         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
71293         * modules/vprintf-posix-tests (Makefile.am): Likewise.
71294         * modules/xalloc-die-tests (Makefile.am): Likewise.
71295         * modules/xprintf-posix-tests (Makefile.am): Likewise.
71296         * modules/xstrtoimax-tests (Makefile.am): Likewise.
71297         * modules/xstrtol-tests (Makefile.am): Likewise.
71298         * modules/xstrtoumax-tests (Makefile.am): Likewise.
71299         * modules/yesno-tests (Makefile.am): Likewise.
71300         Suggested by Jim Meyering.
71302 2010-01-24  Bruno Haible  <bruno@clisp.org>
71304         More documentation.
71305         * doc/gnulib.texi (Writing modules): New chapter.
71306         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
71307         the new chapter.
71309 2010-01-24  Jim Meyering  <meyering@redhat.com>
71311         maint.mk: do not prepend "./" after filtering
71312         * top/maint.mk (_prepend_srcdir_prefix): New variable
71313         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
71314         "./" when $(srcdir) is ".".
71316         define STREQ(a,b) consistently, removing useless parentheses
71317         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
71318         since the only risk is that "a" or "b" contains an unparenthesized
71319         comma, but if either did that, STREQ would have 3 or more arguments.
71320         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
71321         * lib/fts.c (STREQ): Remove unnecessary parentheses.
71322         * lib/hash-triple.c (STREQ): Likewise.
71323         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
71324         * lib/getugroups.c (STREQ): Likewise.
71326 2010-01-23  Jim Meyering  <meyering@redhat.com>
71328         maint.mk: fix syntax-check in a non-srcdir build directory
71329         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
71330         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
71332 2010-01-22  Jim Meyering  <meyering@redhat.com>
71334         userspec: add unit tests
71335         * tests/test-userspec.c: New file.
71336         * modules/userspec-tests: Likewise.
71338 2010-01-21  Jim Meyering  <meyering@redhat.com>
71340         maint.mk: handle source file names containing "." robustly
71341         * top/maint.mk (_dot_escaped_srcdir): Define.
71342         (VC_LIST): Use it in LHS of sed substitution.
71344 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
71346         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
71347         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
71348         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
71349         from a non-srcdir build.
71351 2010-01-20  Eric Blake  <ebb9@byu.net>
71353         warn-on-use: use instead of link-warning
71354         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
71355         * modules/unistd (Depends-on, Makefile.am): Likewise.
71356         * modules/arpa_inet (Depends-on): Replace link-warning with
71357         warn-on-use.
71358         (Makefile.am): Update rules accordingly.
71359         * modules/ctype (Depends-on, Makefile.am): Likewise.
71360         * modules/dirent (Depends-on, Makefile.am): Likewise.
71361         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
71362         * modules/inttypes (Depends-on, Makefile.am): Likewise.
71363         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71364         * modules/locale (Depends-on, Makefile.am): Likewise.
71365         * modules/math (Depends-on, Makefile.am): Likewise.
71366         * modules/search (Depends-on, Makefile.am): Likewise.
71367         * modules/signal (Depends-on, Makefile.am): Likewise.
71368         * modules/spawn (Depends-on, Makefile.am): Likewise.
71369         * modules/stdlib (Depends-on, Makefile.am): Likewise.
71370         * modules/string (Depends-on, Makefile.am): Likewise.
71371         * modules/strings (Depends-on, Makefile.am): Likewise.
71372         * modules/sys_file (Depends-on, Makefile.am): Likewise.
71373         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
71374         * modules/sys_select (Depends-on, Makefile.am): Likewise.
71375         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
71376         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
71377         * modules/sys_times (Depends-on, Makefile.am): Likewise.
71378         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71379         * modules/wchar (Depends-on, Makefile.am): Likewise.
71380         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
71381         should be poisoned.
71382         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
71383         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
71384         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
71385         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71386         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71387         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
71388         * m4/math_h.m4 (gl_MATH_H): Likewise.
71389         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
71390         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
71391         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
71392         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
71393         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
71394         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
71395         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
71396         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
71397         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
71398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
71400         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
71401         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71402         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71403         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
71404         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
71405         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
71406         GL_LINK_WARNING.
71407         * lib/ctype.in.h: Likewise.
71408         * lib/dirent.in.h: Likewise.
71409         * lib/fcntl.in.h: Likewise.
71410         * lib/inttypes.in.h: Likewise.
71411         * lib/langinfo.in.h: Likewise.
71412         * lib/locale.in.h: Likewise.
71413         * lib/math.in.h: Likewise.
71414         * lib/search.in.h: Likewise.
71415         * lib/signal.in.h: Likewise.
71416         * lib/spawn.in.h: Likewise.
71417         * lib/stdio.in.h: Likewise.
71418         * lib/stdlib.in.h: Likewise.
71419         * lib/string.in.h: Likewise.
71420         * lib/strings.in.h: Likewise.
71421         * lib/sys_file.in.h: Likewise.
71422         * lib/sys_ioctl.in.h: Likewise.
71423         * lib/sys_select.in.h: Likewise.
71424         * lib/sys_socket.in.h: Likewise.
71425         * lib/sys_stat.in.h: Likewise.
71426         * lib/sys_times.in.h: Likewise.
71427         * lib/sys_utsname.in.h: Likewise.
71428         * lib/unistd.in.h: Likewise.
71429         * lib/wchar.in.h: Likewise.
71431 2010-01-20  Bruno Haible  <bruno@clisp.org>
71433         Avoid duplicate -lm.
71434         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
71435         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
71436         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
71437         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
71438         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
71439         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
71440         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
71441         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
71442         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
71443         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
71444         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
71445         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
71446         Reported by Paolo Bonzini.
71448 2010-01-19  Bruno Haible  <bruno@clisp.org>
71450         langinfo, nl_langinfo: Relicense under LGPLv2+.
71451         * modules/langinfo (License): Change to LGPLv2+.
71452         * modules/nl_langinfo (License): Likewise.
71453         Patch by David Lutterkort <lutter@redhat.com>.
71455 2010-01-19  Bruno Haible  <bruno@clisp.org>
71457         Avoid compilation error with cc on OSF/1 5.1.
71458         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
71459         statement, not before.
71460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71462 2010-01-18  Bruno Haible  <bruno@clisp.org>
71464         Avoid a link error due to the __printf__ symbol.
71465         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
71466         and 2.6.x.
71467         (__format__, __printf__): Remove definitions.
71468         * lib/argp-fmtstream.h: Likewise.
71469         * lib/argp.h: Likewise.
71470         * lib/error.h: Likewise.
71471         * lib/vasnprintf.h: Likewise.
71472         * lib/xprintf.h: Likewise.
71473         * lib/xvasprintf.h: Likewise.
71474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71476 2010-01-18  Bruno Haible  <bruno@clisp.org>
71478         Tests for module 'tanl'.
71479         * modules/tanl-tests: New file.
71480         * tests/test-tanl.c: New file.
71482         Tests for module 'sqrtl'.
71483         * modules/sqrtl-tests: New file.
71484         * tests/test-sqrtl.c: New file.
71486         Tests for module 'sinl'.
71487         * modules/sinl-tests: New file.
71488         * tests/test-sinl.c: New file.
71490         Tests for module 'logl'.
71491         * modules/logl-tests: New file.
71492         * tests/test-logl.c: New file.
71494         Tests for module 'expl'.
71495         * modules/expl-tests: New file.
71496         * tests/test-expl.c: New file.
71498         Tests for module 'cosl'.
71499         * modules/cosl-tests: New file.
71500         * tests/test-cosl.c: New file.
71502         Tests for module 'atanl'.
71503         * modules/atanl-tests: New file.
71504         * tests/test-atanl.c: New file.
71506         Tests for module 'asinl'.
71507         * modules/asinl-tests: New file.
71508         * tests/test-asinl.c: New file.
71510         Tests for module 'acosl'.
71511         * modules/acosl-tests: New file.
71512         * tests/test-acosl.c: New file.
71514         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71515         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
71516         tanl): Use the standard gnulib idiom.
71517         * lib/cosl.c: Don't include trigl.c and sincosl.c.
71518         * lib/sinl.c: Likewise.
71519         * lib/tanl.c: Don't include trigl.c.
71520         (kernel_tanl): Make static.
71521         * lib/sincosl.c: Include trigl.h first.
71522         * lib/trigl.c: Likewise.
71523         * m4/acosl.m4: New file.
71524         * m4/asinl.m4: New file.
71525         * m4/atanl.m4: New file.
71526         * m4/cosl.m4: New file.
71527         * m4/expl.m4: New file.
71528         * m4/logl.m4: New file.
71529         * m4/sinl.m4: New file.
71530         * m4/sqrtl.m4: New file.
71531         * m4/tanl.m4: New file.
71532         * m4/mathl.m4: Remove file.
71533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
71534         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71535         Don't initialize GNULIB_MATHL.
71536         * modules/acosl: New file.
71537         * modules/asinl: New file.
71538         * modules/atanl: New file.
71539         * modules/cosl: New file.
71540         * modules/expl: New file.
71541         * modules/logl: New file.
71542         * modules/sinl: New file.
71543         * modules/sqrtl: New file.
71544         * modules/tanl: New file.
71545         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
71546         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
71547         substitute GNULIB_MATHL.
71548         * modules/mathl: Rewritten.
71549         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
71550         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
71551         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
71552         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
71553         * doc/posix-functions/expl.texi: Mention the 'expl' module.
71554         * doc/posix-functions/logl.texi: Mention the 'logl' module.
71555         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
71556         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
71557         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
71559 2010-01-18  Bruno Haible  <bruno@clisp.org>
71561         sqrt: Make gl_FUNC_SQRT requirable.
71562         * m4/sqrt.m4: New file.
71563         * modules/sqrt (Files): Add it.
71564         (configure.ac): Invoke gl_FUNC_SQRT.
71566 2010-01-18  Bruno Haible  <bruno@clisp.org>
71568         New modules for common <math.h> functions.
71569         * m4/mathfunc.m4: New file.
71570         * modules/acos: New file.
71571         * modules/asin: New file.
71572         * modules/atan: New file.
71573         * modules/atan2: New file.
71574         * modules/cbrt: New file.
71575         * modules/copysign: New file.
71576         * modules/cos: New file.
71577         * modules/cosh: New file.
71578         * modules/erf: New file.
71579         * modules/erfc: New file.
71580         * modules/exp: New file.
71581         * modules/fabs: New file.
71582         * modules/fmod: New file.
71583         * modules/hypot: New file.
71584         * modules/j0: New file.
71585         * modules/j1: New file.
71586         * modules/jn: New file.
71587         * modules/ldexp: New file.
71588         * modules/lgamma: New file.
71589         * modules/log: New file.
71590         * modules/log10: New file.
71591         * modules/log1p: New file.
71592         * modules/logb: New file.
71593         * modules/modf: New file.
71594         * modules/nextafter: New file.
71595         * modules/pow: New file.
71596         * modules/remainder: New file.
71597         * modules/rint: New file.
71598         * modules/sin: New file.
71599         * modules/sinh: New file.
71600         * modules/sqrt: New file.
71601         * modules/tan: New file.
71602         * modules/tanh: New file.
71603         * modules/y0: New file.
71604         * modules/y1: New file.
71605         * modules/yn: New file.
71606         * doc/posix-functions/acos.texi: Mention the 'acos' module.
71607         * doc/posix-functions/asin.texi: Mention the 'asin' module.
71608         * doc/posix-functions/atan.texi: Mention the 'atan' module.
71609         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
71610         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
71611         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
71612         * doc/posix-functions/cos.texi: Mention the 'cos' module.
71613         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
71614         * doc/posix-functions/erf.texi: Mention the 'erf' module.
71615         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
71616         * doc/posix-functions/exp.texi: Mention the 'exp' module.
71617         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
71618         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
71619         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
71620         * doc/posix-functions/j0.texi: Mention the 'j0' module.
71621         * doc/posix-functions/j1.texi: Mention the 'j1' module.
71622         * doc/posix-functions/jn.texi: Mention the 'jn' module.
71623         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
71624         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
71625         * doc/posix-functions/log.texi: Mention the 'log' module.
71626         * doc/posix-functions/log10.texi: Mention the 'log10' module.
71627         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
71628         * doc/posix-functions/logb.texi: Mention the 'logb' module.
71629         * doc/posix-functions/modf.texi: Mention the 'modf' module.
71630         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
71631         * doc/posix-functions/pow.texi: Mention the 'pow' module.
71632         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
71633         * doc/posix-functions/rint.texi: Mention the 'rint' module.
71634         * doc/posix-functions/sin.texi: Mention the 'sin' module.
71635         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
71636         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
71637         * doc/posix-functions/tan.texi: Mention the 'tan' module.
71638         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
71639         * doc/posix-functions/y0.texi: Mention the 'y0' module.
71640         * doc/posix-functions/y1.texi: Mention the 'y1' module.
71641         * doc/posix-functions/yn.texi: Mention the 'yn' module.
71643 2010-01-18  Jim Meyering  <meyering@redhat.com>
71645         ignore-value: relax license to LGPLv2+
71646         * modules/ignore-value (License): Relax to LGPLv2+.
71648         getdate: don't leak when TZ contains two or more '"'s
71649         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
71650         double quote in TZ after the first one.
71652         readtokens: do not leak internal token_lengths buffer
71653         * lib/readtokens.c (readtokens): Free the local, lengths,
71654         when the supplied "token_lengths" parameter is NULL.
71656 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71658         Fix a couple of missing LIBTHREAD link failures on AIX.
71659         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
71660         $(LIBTHREAD).
71661         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
71663         Link test-poll against INET_PTON_LIB.
71664         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
71665         for inet_pton on Solaris 10.
71667 2010-01-17  Bruno Haible  <bruno@clisp.org>
71669         unistdio/*-sprintf: Fix typo in module description.
71670         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
71671         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
71672         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
71673         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
71674         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
71675         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
71676         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
71677         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71679 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71681         gnulib-tool: fix filelist for AIX, HP-UX ksh.
71682         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
71683         variables in shell case patterns, for AIX and HP-UX ksh.
71685         Split large sed scripts, for HP-UX sed.
71686         * modules/stdio: Split sed scripts around 50 sed commands,
71687         to avoid HP-UX limit of 99 commands, in the near future.
71688         * modules/string: Likewise.
71689         * modules/unistd: Likewise.
71691         gnulib-tool: avoid writing in the current directory.
71692         * gnulib-tool (func_emit_lib_Makefile_am)
71693         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
71694         not in the current directory, so concurrent gnulib-tool
71695         instances do not interfere.
71697 2010-01-16  Jim Meyering  <meyering@redhat.com>
71699         doc: update users.txt
71700         * users.txt: Add grep.
71701         (diffutils, gzip): Update URLs.
71703 2010-01-12  Bruno Haible  <bruno@clisp.org>
71705         posix_spawn: Avoid test failure on Cygwin.
71706         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
71707         characters.
71708         Reported by Simon Josefsson.
71710 2010-01-12  Bruno Haible  <bruno@clisp.org>
71712         * tests/test-cond.c (main): When skipping the test, show the reason.
71714 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71716         * lib/striconv.c (str_cd_iconv): Avoid if before free.
71718 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71720         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
71721         VC_LIST_ALWAYS_EXCLUDE_REGEX.
71723 2010-01-12  Eric Blake  <ebb9@byu.net>
71725         build: guarantee AS_VAR_IF
71726         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
71727         (gl_AS_VAR_IF): Move...
71728         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
71729         Reported by Simon Josefsson.
71731 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71733         * lib/stdio.in.h: Fix typo.
71735 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71737         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
71738         libgpg-error.
71740 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71742         * tests/test-xalloc-die.sh: Use $EXEEXT.
71744 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71745             Bruno Haible  <bruno@clisp.org>
71747         getlogin, getlogin_r: Avoid test failure.
71748         * tests/test-getlogin.c: Include <stdio.h>.
71749         (main): Skip the test when the function fails because stdin is not a
71750         tty.
71751         * tests/test-getlogin_r.c: Include <stdio.h>.
71752         (main): Skip the test when the function fails because stdin is not a
71753         tty.
71755 2010-01-11  Eric Blake  <ebb9@byu.net>
71757         tests: avoid more large file warnings
71758         * tests/test-fflush.c: Avoid warning about ftell use.
71759         * tests/test-fseek.c: Avoid warning about fseek use.
71761 2010-01-10  Bruno Haible  <bruno@clisp.org>
71763         nproc: Work better on Linux when /proc and /sys are not mounted.
71764         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
71765         as lower bound when, on glibc/Linux systems,
71766         sysconf (_SC_NPROCESSORS_CONF) returns 1.
71767         Suggested by Pádraig Brady <P@draigbrady.com>.
71768         Reported by Dmitry V. Levin <ldv@altlinux.org>.
71770         nproc: Refactor.
71771         * lib/nproc.c (num_processors_via_affinity_mask): New function,
71772         extracted from num_processors.
71773         (num_processors): Call it.
71775 2010-01-11  Jim Meyering  <meyering@redhat.com>
71777         utimecmp: avoid new warning from upcoming gcc-4.5.0
71778         * lib/utimecmp.c (BILLION): Define using #define rather than an
71779         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
71781 2010-01-11  Eric Blake  <ebb9@byu.net>
71783         math: add portability warnings for classification macros
71784         * modules/math (Depends-on): Add warn-on-use.
71785         (Makefile.am): Provide new substitutions.
71786         * m4/math_h.m4 (gl_MATH_H): Require inline.
71787         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
71788         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
71789         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
71790         implement warnings.
71792         unistd: warn on use of environ without module
71793         * modules/unistd (Depends-on): Add warn-on-use.
71794         (Makefile.am): Provide new substitutions.
71795         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
71796         * lib/unistd.in.h (environ): Wrap with a warning helper function.
71798         stdio: warn on suspicious uses
71799         * modules/stdio (Depends-on): Add warn-on-use.
71800         (Makefile.am): Provide new substitutions.
71801         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
71802         fseeko.
71803         * lib/stdio.in.h (gets): Always warn on use.
71804         (fseek, ftell): Adjust when warnings are issued, and honor
71805         _GL_NO_LARGE_FILES as a way to silence the warning.
71806         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
71807         any warning about large file offsets.
71808         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
71809         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
71810         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
71811         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
71812         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
71813         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
71814         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
71815         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
71817         warn-on-use: new module
71818         * modules/warn-on-use: New file.
71819         * build-aux/warn-on-use.h: Likewise.
71820         * m4/warn-on-use.m4: Likewise.
71821         * MODULES.html.sh (Support for building): Mention it.
71823 2010-01-10  Bruno Haible  <bruno@clisp.org>
71825         Tests for module 'unistr/u32-strdup'.
71826         * modules/unistr/u32-strdup-tests: New file.
71827         * tests/unistr/test-u32-strdup.c: New file.
71829         Tests for module 'unistr/u16-strdup'.
71830         * modules/unistr/u16-strdup-tests: New file.
71831         * tests/unistr/test-u16-strdup.c: New file.
71833         Tests for module 'unistr/u8-strdup'.
71834         * modules/unistr/u8-strdup-tests: New file.
71835         * tests/unistr/test-u8-strdup.c: New file.
71836         * tests/unistr/test-strdup.h: New file.
71838         Tests for module 'unistr/u32-strncmp'.
71839         * modules/unistr/u32-strncmp-tests: New file.
71840         * tests/unistr/test-u32-strncmp.c: New file.
71842         Tests for module 'unistr/u16-strncmp'.
71843         * modules/unistr/u16-strncmp-tests: New file.
71844         * tests/unistr/test-u16-strncmp.c: New file.
71846         Tests for module 'unistr/u8-strncmp'.
71847         * modules/unistr/u8-strncmp-tests: New file.
71848         * tests/unistr/test-u8-strncmp.c: New file.
71849         * tests/unistr/test-strncmp.h: New file.
71851         Tests for module 'unistr/u32-strcoll'.
71852         * modules/unistr/u32-strcoll-tests: New file.
71853         * tests/unistr/test-u32-strcoll.c: New file.
71855         Tests for module 'unistr/u16-strcoll'.
71856         * modules/unistr/u16-strcoll-tests: New file.
71857         * tests/unistr/test-u16-strcoll.c: New file.
71859         Tests for module 'unistr/u8-strcoll'.
71860         * modules/unistr/u8-strcoll-tests: New file.
71861         * tests/unistr/test-u8-strcoll.c: New file.
71863         Tests for module 'unistr/u32-strcmp'.
71864         * modules/unistr/u32-strcmp-tests: New file.
71865         * tests/unistr/test-u32-strcmp.c: New file.
71866         * tests/unistr/test-u32-strcmp.h: New file.
71868         Tests for module 'unistr/u16-strcmp'.
71869         * modules/unistr/u16-strcmp-tests: New file.
71870         * tests/unistr/test-u16-strcmp.c: New file.
71871         * tests/unistr/test-u16-strcmp.h: New file.
71873         Tests for module 'unistr/u8-strcmp'.
71874         * modules/unistr/u8-strcmp-tests: New file.
71875         * tests/unistr/test-u8-strcmp.c: New file.
71876         * tests/unistr/test-u8-strcmp.h: New file.
71877         * tests/unistr/test-strcmp.h: New file.
71879         Tests for module 'unistr/u32-strncat'.
71880         * modules/unistr/u32-strncat-tests: New file.
71881         * tests/unistr/test-u32-strncat.c: New file.
71883         Tests for module 'unistr/u16-strncat'.
71884         * modules/unistr/u16-strncat-tests: New file.
71885         * tests/unistr/test-u16-strncat.c: New file.
71887         Tests for module 'unistr/u8-strncat'.
71888         * modules/unistr/u8-strncat-tests: New file.
71889         * tests/unistr/test-u8-strncat.c: New file.
71890         * tests/unistr/test-strncat.h: New file.
71892         Tests for module 'unistr/u32-strcat'.
71893         * modules/unistr/u32-strcat-tests: New file.
71894         * tests/unistr/test-u32-strcat.c: New file.
71896         Tests for module 'unistr/u16-strcat'.
71897         * modules/unistr/u16-strcat-tests: New file.
71898         * tests/unistr/test-u16-strcat.c: New file.
71900         Tests for module 'unistr/u8-strcat'.
71901         * modules/unistr/u8-strcat-tests: New file.
71902         * tests/unistr/test-u8-strcat.c: New file.
71903         * tests/unistr/test-strcat.h: New file.
71905         Tests for module 'unistr/u32-stpncpy'.
71906         * modules/unistr/u32-stpncpy-tests: New file.
71907         * tests/unistr/test-u32-stpncpy.c: New file.
71909         Tests for module 'unistr/u16-stpncpy'.
71910         * modules/unistr/u16-stpncpy-tests: New file.
71911         * tests/unistr/test-u16-stpncpy.c: New file.
71913         Tests for module 'unistr/u8-stpncpy'.
71914         * modules/unistr/u8-stpncpy-tests: New file.
71915         * tests/unistr/test-u8-stpncpy.c: New file.
71916         * tests/unistr/test-stpncpy.h: New file.
71918         Tests for module 'unistr/u32-strncpy'.
71919         * modules/unistr/u32-strncpy-tests: New file.
71920         * tests/unistr/test-u32-strncpy.c: New file.
71922         Tests for module 'unistr/u16-strncpy'.
71923         * modules/unistr/u16-strncpy-tests: New file.
71924         * tests/unistr/test-u16-strncpy.c: New file.
71926         Tests for module 'unistr/u8-strncpy'.
71927         * modules/unistr/u8-strncpy-tests: New file.
71928         * tests/unistr/test-u8-strncpy.c: New file.
71929         * tests/unistr/test-strncpy.h: New file.
71931         Tests for module 'unistr/u32-stpcpy'.
71932         * modules/unistr/u32-stpcpy-tests: New file.
71933         * tests/unistr/test-u32-stpcpy.c: New file.
71935         Tests for module 'unistr/u16-stpcpy'.
71936         * modules/unistr/u16-stpcpy-tests: New file.
71937         * tests/unistr/test-u16-stpcpy.c: New file.
71939         Tests for module 'unistr/u8-stpcpy'.
71940         * modules/unistr/u8-stpcpy-tests: New file.
71941         * tests/unistr/test-u8-stpcpy.c: New file.
71942         * tests/unistr/test-stpcpy.h: New file.
71944         Tests for module 'unistr/u32-strcpy'.
71945         * modules/unistr/u32-strcpy-tests: New file.
71946         * tests/unistr/test-u32-strcpy.c: New file.
71948         Tests for module 'unistr/u16-strcpy'.
71949         * modules/unistr/u16-strcpy-tests: New file.
71950         * tests/unistr/test-u16-strcpy.c: New file.
71952         Tests for module 'unistr/u8-strcpy'.
71953         * modules/unistr/u8-strcpy-tests: New file.
71954         * tests/unistr/test-u8-strcpy.c: New file.
71955         * tests/unistr/test-strcpy.h: New file.
71957         Tests for module 'unistr/u32-strnlen'.
71958         * modules/unistr/u32-strnlen-tests: New file.
71959         * tests/unistr/test-u32-strnlen.c: New file.
71961         Tests for module 'unistr/u16-strnlen'.
71962         * modules/unistr/u16-strnlen-tests: New file.
71963         * tests/unistr/test-u16-strnlen.c: New file.
71965         Tests for module 'unistr/u8-strnlen'.
71966         * modules/unistr/u8-strnlen-tests: New file.
71967         * tests/unistr/test-u8-strnlen.c: New file.
71968         * tests/unistr/test-strnlen.h: New file.
71970         Tests for module 'unistr/u32-strlen'.
71971         * modules/unistr/u32-strlen-tests: New file.
71972         * tests/unistr/test-u32-strlen.c: New file.
71974         Tests for module 'unistr/u16-strlen'.
71975         * modules/unistr/u16-strlen-tests: New file.
71976         * tests/unistr/test-u16-strlen.c: New file.
71978         Tests for module 'unistr/u8-strlen'.
71979         * modules/unistr/u8-strlen-tests: New file.
71980         * tests/unistr/test-u8-strlen.c: New file.
71982         Tests for module 'unistr/u32-prev'.
71983         * modules/unistr/u32-prev-tests: New file.
71984         * tests/unistr/test-u32-prev.c: New file.
71986         Tests for module 'unistr/u16-prev'.
71987         * modules/unistr/u16-prev-tests: New file.
71988         * tests/unistr/test-u16-prev.c: New file.
71990         Tests for module 'unistr/u8-prev'.
71991         * modules/unistr/u8-prev-tests: New file.
71992         * tests/unistr/test-u8-prev.c: New file.
71994         Tests for module 'unistr/u32-next'.
71995         * modules/unistr/u32-next-tests: New file.
71996         * tests/unistr/test-u32-next.c: New file.
71998         Tests for module 'unistr/u16-next'.
71999         * modules/unistr/u16-next-tests: New file.
72000         * tests/unistr/test-u16-next.c: New file.
72002         Tests for module 'unistr/u8-next'.
72003         * modules/unistr/u8-next-tests: New file.
72004         * tests/unistr/test-u8-next.c: New file.
72006         Tests for module 'unistr/u32-strmbtouc'.
72007         * modules/unistr/u32-strmbtouc-tests: New file.
72008         * tests/unistr/test-u32-strmbtouc.c: New file.
72010         Tests for module 'unistr/u16-strmbtouc'.
72011         * modules/unistr/u16-strmbtouc-tests: New file.
72012         * tests/unistr/test-u16-strmbtouc.c: New file.
72014         Tests for module 'unistr/u8-strmbtouc'.
72015         * modules/unistr/u8-strmbtouc-tests: New file.
72016         * tests/unistr/test-u8-strmbtouc.c: New file.
72018         Tests for module 'unistr/u32-strmblen'.
72019         * modules/unistr/u32-strmblen-tests: New file.
72020         * tests/unistr/test-u32-strmblen.c: New file.
72022         Tests for module 'unistr/u16-strmblen'.
72023         * modules/unistr/u16-strmblen-tests: New file.
72024         * tests/unistr/test-u16-strmblen.c: New file.
72026         Tests for module 'unistr/u8-strmblen'.
72027         * modules/unistr/u8-strmblen-tests: New file.
72028         * tests/unistr/test-u8-strmblen.c: New file.
72030         Tests for module 'unistr/u32-cpy-alloc'.
72031         * modules/unistr/u32-cpy-alloc-tests: New file.
72032         * tests/unistr/test-u32-cpy-alloc.c: New file.
72034         Tests for module 'unistr/u16-cpy-alloc'.
72035         * modules/unistr/u16-cpy-alloc-tests: New file.
72036         * tests/unistr/test-u16-cpy-alloc.c: New file.
72038         Tests for module 'unistr/u8-cpy-alloc'.
72039         * modules/unistr/u8-cpy-alloc-tests: New file.
72040         * tests/unistr/test-u8-cpy-alloc.c: New file.
72041         * tests/unistr/test-cpy-alloc.h: New file.
72043         Tests for module 'unistr/u32-mbsnlen'.
72044         * modules/unistr/u32-mbsnlen-tests: New file.
72045         * tests/unistr/test-u32-mbsnlen.c: New file.
72047         Tests for module 'unistr/u16-mbsnlen'.
72048         * modules/unistr/u16-mbsnlen-tests: New file.
72049         * tests/unistr/test-u16-mbsnlen.c: New file.
72051         Tests for module 'unistr/u8-mbsnlen'.
72052         * modules/unistr/u8-mbsnlen-tests: New file.
72053         * tests/unistr/test-u8-mbsnlen.c: New file.
72055         Tests for module 'unistr/u32-chr'.
72056         * modules/unistr/u32-chr-tests: New file.
72057         * tests/unistr/test-u32-chr.c: New file.
72059         Tests for module 'unistr/u16-chr'.
72060         * modules/unistr/u16-chr-tests: New file.
72061         * tests/unistr/test-u16-chr.c: New file.
72063         Tests for module 'unistr/u8-chr'.
72064         * modules/unistr/u8-chr-tests: New file.
72065         * tests/unistr/test-u8-chr.c: New file.
72066         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
72068         Tests for module 'unistr/u32-cmp2'.
72069         * modules/unistr/u32-cmp2-tests: New file.
72070         * tests/unistr/test-u32-cmp2.c: New file.
72072         Tests for module 'unistr/u16-cmp2'.
72073         * modules/unistr/u16-cmp2-tests: New file.
72074         * tests/unistr/test-u16-cmp2.c: New file.
72076         Tests for module 'unistr/u8-cmp2'.
72077         * modules/unistr/u8-cmp2-tests: New file.
72078         * tests/unistr/test-u8-cmp2.c: New file.
72079         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
72081         Tests for module 'unistr/u32-cmp'.
72082         * modules/unistr/u32-cmp-tests: New file.
72083         * tests/unistr/test-u32-cmp.c: New file.
72085         Tests for module 'unistr/u16-cmp'.
72086         * modules/unistr/u16-cmp-tests: New file.
72087         * tests/unistr/test-u16-cmp.c: New file.
72089         Tests for module 'unistr/u8-cmp'.
72090         * modules/unistr/u8-cmp-tests: New file.
72091         * tests/unistr/test-u8-cmp.c: New file.
72092         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
72094         Tests for module 'unistr/u32-set'.
72095         * modules/unistr/u32-set-tests: New file.
72096         * tests/unistr/test-u32-set.c: New file.
72098         Tests for module 'unistr/u16-set'.
72099         * modules/unistr/u16-set-tests: New file.
72100         * tests/unistr/test-u16-set.c: New file.
72102         Tests for module 'unistr/u8-set'.
72103         * modules/unistr/u8-set-tests: New file.
72104         * tests/unistr/test-u8-set.c: New file.
72105         * tests/unistr/test-set.h: New file.
72107         Tests for module 'unistr/u32-move'.
72108         * modules/unistr/u32-move-tests: New file.
72109         * tests/unistr/test-u32-move.c: New file.
72111         Tests for module 'unistr/u16-move'.
72112         * modules/unistr/u16-move-tests: New file.
72113         * tests/unistr/test-u16-move.c: New file.
72115         Tests for module 'unistr/u8-move'.
72116         * modules/unistr/u8-move-tests: New file.
72117         * tests/unistr/test-u8-move.c: New file.
72118         * tests/unistr/test-move.h: New file.
72120         Tests for module 'unistr/u32-cpy'.
72121         * modules/unistr/u32-cpy-tests: New file.
72122         * tests/unistr/test-u32-cpy.c: New file.
72124         Tests for module 'unistr/u16-cpy'.
72125         * modules/unistr/u16-cpy-tests: New file.
72126         * tests/unistr/test-u16-cpy.c: New file.
72128         Tests for module 'unistr/u8-cpy'.
72129         * modules/unistr/u8-cpy-tests: New file.
72130         * tests/unistr/test-u8-cpy.c: New file.
72131         * tests/unistr/test-cpy.h: New file.
72133 2010-01-09  Bruno Haible  <bruno@clisp.org>
72135         Tests for module 'unistr/u32-uctomb'.
72136         * modules/unistr/u32-uctomb-tests: New file.
72137         * tests/unistr/test-u32-uctomb.c: New file.
72139         Tests for module 'unistr/u16-uctomb'.
72140         * modules/unistr/u16-uctomb-tests: New file.
72141         * tests/unistr/test-u16-uctomb.c: New file.
72143         Tests for module 'unistr/u8-uctomb'.
72144         * modules/unistr/u8-uctomb-tests: New file.
72145         * tests/unistr/test-u8-uctomb.c: New file.
72147         Tests for module 'unistr/u32-mbtoucr'.
72148         * modules/unistr/u32-mbtoucr-tests: New file.
72149         * tests/unistr/test-u32-mbtoucr.c: New file.
72151         Tests for module 'unistr/u16-mbtoucr'.
72152         * modules/unistr/u16-mbtoucr-tests: New file.
72153         * tests/unistr/test-u16-mbtoucr.c: New file.
72155         Tests for module 'unistr/u8-mbtoucr'.
72156         * modules/unistr/u8-mbtoucr-tests: New file.
72157         * tests/unistr/test-u8-mbtoucr.c: New file.
72159         Tests for module 'unistr/u32-mbtouc'.
72160         * modules/unistr/u32-mbtouc-tests: New file.
72161         * tests/unistr/test-u32-mbtouc.c: New file.
72163         Tests for module 'unistr/u16-mbtouc'.
72164         * modules/unistr/u16-mbtouc-tests: New file.
72165         * tests/unistr/test-u16-mbtouc.c: New file.
72167         Tests for module 'unistr/u8-mbtouc'.
72168         * modules/unistr/u8-mbtouc-tests: New file.
72169         * tests/unistr/test-u8-mbtouc.c: New file.
72171         Tests for module 'unistr/u32-mbtouc-unsafe'.
72172         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
72173         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
72174         * tests/unistr/test-u32-mbtouc.h: New file.
72176         Tests for module 'unistr/u16-mbtouc-unsafe'.
72177         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
72178         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
72179         * tests/unistr/test-u16-mbtouc.h: New file.
72181         Tests for module 'unistr/u8-mbtouc-unsafe'.
72182         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
72183         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
72184         * tests/unistr/test-u8-mbtouc.h: New file.
72186         Tests for module 'unistr/u32-mblen'.
72187         * modules/unistr/u32-mblen-tests: New file.
72188         * tests/unistr/test-u32-mblen.c: New file.
72190         Tests for module 'unistr/u16-mblen'.
72191         * modules/unistr/u16-mblen-tests: New file.
72192         * tests/unistr/test-u16-mblen.c: New file.
72194         Tests for module 'unistr/u8-mblen'.
72195         * modules/unistr/u8-mblen-tests: New file.
72196         * tests/unistr/test-u8-mblen.c: New file.
72198         Tests for module 'unistr/u32-to-u16'.
72199         * modules/unistr/u32-to-u16-tests: New file.
72200         * tests/unistr/test-u32-to-u16.c: New file.
72202         Tests for module 'unistr/u32-to-u8'.
72203         * modules/unistr/u32-to-u8-tests: New file.
72204         * tests/unistr/test-u32-to-u8.c: New file.
72206         Tests for module 'unistr/u16-to-u32'.
72207         * modules/unistr/u16-to-u32-tests: New file.
72208         * tests/unistr/test-u16-to-u32.c: New file.
72210         Tests for module 'unistr/u16-to-u8'.
72211         * modules/unistr/u16-to-u8-tests: New file.
72212         * tests/unistr/test-u16-to-u8.c: New file.
72214         Tests for module 'unistr/u8-to-u32'.
72215         * modules/unistr/u8-to-u32-tests: New file.
72216         * tests/unistr/test-u8-to-u32.c: New file.
72218         Tests for module 'unistr/u8-to-u16'.
72219         * modules/unistr/u8-to-u16-tests: New file.
72220         * tests/unistr/test-u8-to-u16.c: New file.
72222         Tests for module 'unistr/u32-check'.
72223         * modules/unistr/u32-check-tests: New file.
72224         * tests/unistr/test-u32-check.c: New file.
72226         Tests for module 'unistr/u16-check'.
72227         * modules/unistr/u16-check-tests: New file.
72228         * tests/unistr/test-u16-check.c: New file.
72230         Tests for module 'unistr/u8-check'.
72231         * modules/unistr/u8-check-tests: New file.
72232         * tests/unistr/test-u8-check.c: New file.
72234         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
72235         (category_equals): New function.
72236         (main): Add more tests.
72237         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
72239         * tests/unictype/test-bidi_byname.c (main): Add more tests.
72241 2010-01-10  Bruno Haible  <bruno@clisp.org>
72243         unistr/u*-strcoll: Try harder to distinguish different strings.
72244         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
72245         compare s1 and s2 to see if they are different.
72247 2010-01-10  Bruno Haible  <bruno@clisp.org>
72249         unistr/u*-stpncpy: Fix the return value.
72250         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
72251         description of the return value consistent with stpncpy in glibc.
72252         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
72253         written non-NUL unit.
72255 2010-01-10  Bruno Haible  <bruno@clisp.org>
72257         unistr/u*-next: Add missing dependencies.
72258         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
72259         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
72260         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
72262 2010-01-10  Bruno Haible  <bruno@clisp.org>
72264         unistr/u8-mbsnlen: Fix return value for incomplete character.
72265         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
72266         u8_mblen.
72267         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
72268         Remove unistr/u8-mblen.
72269         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
72270         u16_mblen.
72271         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
72272         Remove unistr/u16-mblen.
72274 2010-01-10  Bruno Haible  <bruno@clisp.org>
72276         wchar: Fix compilation error when <wchar.h> is used from coreutils.
72277         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
72278         Reported by Brian Gough <bjg@gnu.org> and
72279         Chris Clayton <chris2553@googlemail.com> via
72280         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
72282 2010-01-09  Bruno Haible  <bruno@clisp.org>
72284         unistr/u16-to-u32: Reject invalid input.
72285         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
72286         u16_mbtouc.
72287         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
72288         Remove unistr/u16-mbtouc.
72290         unistr/u16-to-u8: Reject invalid input.
72291         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
72292         u16_mbtouc.
72293         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
72294         Remove unistr/u16-mbtouc.
72296         unistr/u8-to-u32: Reject invalid input.
72297         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
72298         u8_mbtouc.
72299         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
72300         Remove unistr/u8-mbtouc.
72302         unistr/u8-to-u16: Reject invalid input.
72303         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
72304         u8_mbtouc.
72305         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
72306         Remove unistr/u8-mbtouc.
72308 2010-01-09  Bruno Haible  <bruno@clisp.org>
72310         Tests for module 'getlogin'.
72311         * modules/getlogin-tests: New file.
72312         * tests/test-getlogin.c: New file.
72314         New module 'getlogin'.
72315         * lib/unistd.in.h (getlogin): New declaration.
72316         * lib/getlogin.c: New file.
72317         * m4/getlogin.m4: New file.
72318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
72319         HAVE_GETLOGIN.
72320         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
72321         HAVE_GETLOGIN.
72322         * modules/getlogin: New file.
72323         * doc/posix-functions/getlogin.texi: Mention the new module.
72324         Reported by John W. Eaton <jwe@gnu.org>.
72326 2010-01-09  Bruno Haible  <bruno@clisp.org>
72328         getlogin_r: Support for native Windows.
72329         * lib/getlogin_r.c: Include <windows.h>
72330         (getlogin_r): Implement for native Windows.
72331         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
72332         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
72333         via John W. Eaton <jwe@gnu.org>.
72335 2010-01-09  Bruno Haible  <bruno@clisp.org>
72337         getlogin_r: Small fixes.
72338         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
72339         succeeds.
72340         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
72341         before testing whether getlogin_r is declared. No need to set
72342         HAVE_DECL_GETLOGIN_R to 1.
72343         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
72345 2010-01-09  Bruno Haible  <bruno@clisp.org>
72347         * lib/unistd.in.h (getlogin_r): Add comment.
72349 2010-01-09  Bruno Haible  <bruno@clisp.org>
72351         Tests for module 'getlogin_r'.
72352         * modules/getlogin_r-tests: New file.
72353         * tests/test-getlogin_r.c: New file.
72355 2010-01-09  Jim Meyering  <meyering@redhat.com>
72357         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
72358         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
72359         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
72361 2010-01-08  Simon Josefsson  <simon@josefsson.org>
72363         * lib/dup2.c (rpl_dup2): Improve comment.
72365 2010-01-08  Eric Blake  <ebb9@byu.net>
72367         maint.mk: allow packages to add makefile @@ exceptions
72368         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
72369         (sc_makefile_check): Rename...
72370         (sc_makefile_at_at_check): ...to this, and use hook.
72372         dup2: work around mingw bug
72373         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
72374         Reported by Simon Josefsson.
72376 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
72378         glob: Fix C++ compilation.
72379         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
72380         C++.
72382 2010-01-07  Bruno Haible  <bruno@clisp.org>
72384         Fix indentation of wctype.in.h, broken since 2007-01-06.
72385         * lib/wctype.in.h: Fix indentation of preprocessor directives.
72387 2010-01-07  Bruno Haible  <bruno@clisp.org>
72389         mbslen: Avoid collision with system function.
72390         * lib/string.in.h [MirBSD]: Include <wchar.h>.
72391         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
72392         * m4/mbslen.m4: New file.
72393         * modules/mbslen (Files): Add it.
72394         (configure.ac): Invoke gl_MBSLEN.
72395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
72396         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
72397         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
72398         via Ian Beckwith <ianb@erislabs.net>.
72400 2010-01-07  Bruno Haible  <bruno@clisp.org>
72402         dirent: Document the last fix.
72403         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
72405 2010-01-07  Bruno Haible  <bruno@clisp.org>
72407         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
72408         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
72409         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
72410         va_list are defined.
72411         * doc/posix-headers/stdio.texi: Document the bug of missing types.
72412         Reported by Eric Blake.
72414 2010-01-07  Bruno Haible  <bruno@clisp.org>
72416         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
72417         * modules/xlist (Depends-on): Add 'list',
72418         * modules/xoset (Depends-on): Add 'oset'.
72419         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72421 2010-01-07  Bruno Haible  <bruno@clisp.org>
72423         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
72424         * doc/posix-functions/strncasecmp.texi: Likewise.
72426 2010-01-07  Bruno Haible  <bruno@clisp.org>
72428         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
72430 2010-01-07  John W. Eaton  <jwe@octave.org>
72432         wctype: allow C++ use
72433         * lib/wctype.in.h: Add extern "C" block for C++.
72435 2010-01-06  Eric Blake  <ebb9@byu.net>
72437         maint.mk: detect incorrect GFDL usage
72438         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
72440 2010-01-06  Jim Meyering  <meyering@redhat.com>
72441         and Eric Blake  <ebb9@byu.net>
72443         maint.mk: ignore multi-line copyright in NEWS
72444         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
72446 2010-01-06  Eric Blake  <ebb9@byu.net>
72448         select: add missing dependency
72449         * modules/select-tests (Depends-on): Move sockets dependency...
72450         * modules/select (Depends-on): ...here.
72451         Reported by Ian Beckwith.
72453         doc: regenerate INSTALL
72454         * doc/INSTALL: Reflect recent autoconf update.
72455         * doc/INSTALL.ISO: Likewise.
72456         * doc/INSTALL.UTF-8: Likewise.
72458         pread: fix compilation on glibc
72459         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
72460         Reported by Ralf Wildenhues.
72462         dirent: fix test failure
72463         * lib/dirent.in.h (includes): Guarantee ino_t.
72464         Reported by Ralf Wildenhues.
72466 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
72468         linkat, renameat: avoid bad free
72469         * lib/at-func2.c (at_func2): Fix typo.
72470         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
72472 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72474         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
72475         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
72476         to avoid failure of symlink test later.
72478 2010-01-06  Eric Blake  <ebb9@byu.net>
72480         stdio, unistd: guarantee ssize_t
72481         * lib/unistd.in.h (includes): Ensure that types required by POSIX
72482         2008 are exposed when needed.
72483         * lib/stdio.in.h (includes): Likewise.
72484         Reported by Ralf Wildenhues.
72486 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
72488         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
72489         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
72490         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
72492 2010-01-06  Jim Meyering  <meyering@redhat.com>
72494         readtokens: this module *does* require xalloc.h
72495         It uses only functions that were omitted by the old syntax-check rule.
72496         * lib/readtokens.c: Include "xalloc.h" once again.
72497         * modules/readtokens (Depends-on): Add xalloc.
72498         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
72500 2010-01-05  Eric Blake  <ebb9@byu.net>
72502         maint: support 'make announcement' from a VPATH build
72503         * top/maint.mk (announcement): Look for correct NEWS file.
72505 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
72507         utimens (fdutimens): ignore a negative FD, per contract
72508         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
72509         when we have a valid file descriptor.  Otherwise, using a brand
72510         new glibc (with just-patched futimens that now fails with EBADF)
72511         would cause this function to fail with ENOSYS.
72512         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
72513         See also http://bugzilla.redhat.com/552320.
72515 2010-01-05  Eric Blake  <ebb9@byu.net>
72517         strcase: document what it provides
72518         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
72519         gnulib module.
72520         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
72521         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
72523 2010-01-05  Jim Meyering  <meyering@redhat.com>
72525         maint: remove useless inclusions of "xalloc.h"
72526         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
72527         * lib/readtokens.c: Likewise.
72528         * lib/same.c: Likewise.
72529         * modules/getloadavg (Depends-on): Remove xalloc.
72530         * modules/readtokens: Likewise.
72531         * modules/same: Likewise.
72533         maint.mk: include 4 more function names in alloca.h-checking regexp
72534         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
72535         regexp.  Before, we would give a false-positive (saying alloca.h
72536         is included unnecessarily) when the only uses involved omitted symbols.
72538         xalloc.h: use consistent formatting
72539         * lib/xalloc.h: Move declarations to start in the first column.
72541 2010-01-05  Eric Blake  <ebb9@byu.net>
72543         mkdir: avoid xalloc
72544         * lib/mkdir.c (includes): Drop unused header.
72545         Reported by John W. Eaton.
72547 2010-01-04  Jim Meyering  <meyering@redhat.com>
72549         nl_langinfo: avoid configure-time syntax error
72550         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
72551         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
72552         the empty string.  Don't let that provoke a shell syntax error.
72554         regcomp, regexec, fnmatch: avoid array bounds read error
72555         * lib/regcomp.c (build_equiv_class): From glibc:
72556         Use only the low 24 bits of a findidx return value as an index
72557         into the weights array.  Patch by Ulrich Drepper:
72558         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
72559         * lib/regexec.c (check_node_accept_bytes): Likewise.
72560         * lib/fnmatch_loop.c (FCT): Likewise.
72562         regcomp: skip collseq lookup when there are no rules
72563         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
72564         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
72566         regcomp: recognize ill-formed { } expressions
72567         * lib/regcomp.c (parse_dup_op): From glibc:
72568         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
72570         regcomp: fix typo in comment
72571         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
72572         s/satisfy/satisfies/.
72574         regcomp: sync from glibc: remove dead store
72575         * lib/regcomp.c (duplicate_node_closure): Remove useless
72576         search_duplicated_node call and dead store.
72578         regcomp: sync from glibc; always use nl_langinfo
72579         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
72580         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
72581         * modules/regex (Depends-on): Add nl_langinfo.
72583 2010-01-04  Eric Blake  <ebb9@byu.net>
72585         fdopendir: fix configure test
72586         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
72588 2010-01-01  Bruno Haible  <bruno@clisp.org>
72590         wchar: Remove unused configure check.
72591         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
72593 2010-01-01  Eric Blake  <ebb9@byu.net>
72595         headers: make check of system header explicit
72596         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
72597         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
72598         ourselves.
72599         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72600         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72601         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
72602         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
72603         internals.
72604         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
72605         missing.
72606         Suggested by Bruno Haible.
72608 2010-01-01  Jim Meyering  <meyering@redhat.com>
72610         ChangeLog: tweak to eliminate unnecessary copyright line
72611         * ChangeLog: Remove a copyright line that was mistakenly updated
72612         by today's update-copyright run.  Reported by Eric Blake.
72614         test-update-copyright: don't let envvar setting cause test failure
72615         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
72617 2010-01-01  Bruno Haible  <bruno@clisp.org>
72619         localename: Avoid gcc warning.
72620         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
72621         function if it is not used.
72623 2010-01-01  Jim Meyering  <meyering@redhat.com>
72625         update nearly all FSF copyright year lists to include 2010
72626         Use the same procedure as for 2009, outlined in
72627         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
72629         version-etc: set COPYRIGHT_YEAR to 2010
72630         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
72632 2009-12-31  Eric Blake  <ebb9@byu.net>
72634         doc: correct availability of cygwin 1.5.x getopt
72635         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
72636         variables.
72637         * doc/posix-functions/opterr.texi (opterr): Likewise.
72638         * doc/posix-functions/optind.texi (optind): Likewise.
72639         * doc/posix-functions/optopt.texi (optopt): Likewise.
72640         * doc/posix-functions/tzname.texi (tzname): Likewise.
72642         openat: update maintainer
72643         * modules/openat (Maintainer): Add myself.
72645         utimens: avoid shadowing warning
72646         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
72647         buffers into one, to avoid shadowing, as well as avoiding a
72648         redundant stat.
72649         Reported by Jim Meyering.
72651         test-dup2: avoid compiler warning
72652         * tests/test-dup2.c (is_inheritable): Only define if used.
72654 2010-01-01  Bruno Haible  <bruno@clisp.org>
72656         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
72657         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
72658         defined, use wctomb instead of wcrtomb.
72660 2010-01-01  Bruno Haible  <bruno@clisp.org>
72662         iconv: Reject native Solaris iconv.
72663         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
72664         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
72666 2009-12-31  Bruno Haible  <bruno@clisp.org>
72668         * tests/test-signal.c (main): Remove test of 'SIG'.
72670 2009-12-31  Bruno Haible  <bruno@clisp.org>
72672         spawn: Fix incomplete fix.
72673         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
72674         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
72675         warnings for GNULIB_POSIXCHECK again.
72676         Reported by Eric Blake.
72678 2009-12-31  Bruno Haible  <bruno@clisp.org>
72680         Avoid namespace pollution on glibc systems.
72681         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
72682         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
72683         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
72684         glibc systems.
72686 2009-12-31  Bruno Haible  <bruno@clisp.org>
72688         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
72689         (gl_REPLACE_WCHAR_H): Turn into a no-op.
72690         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
72691         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
72692         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
72693         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
72694         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
72696 2009-12-31  Bruno Haible  <bruno@clisp.org>
72698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
72699         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
72700         afterwards.
72702 2009-12-31  Bruno Haible  <bruno@clisp.org>
72704         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
72705         SYS_UTSNAME_H.
72707 2009-12-31  Bruno Haible  <bruno@clisp.org>
72709         spawn: Fix misapplied patch.
72710         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
72711         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
72712         warnings for GNULIB_POSIXCHECK.
72714 2009-12-31  Bruno Haible  <bruno@clisp.org>
72716         times: Update after sys_times changed.
72717         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
72718         * modules/times (Files): Add it.
72719         (configure.ac): Invoke gl_FUNC_TIMES.
72721 2009-12-31  Bruno Haible  <bruno@clisp.org>
72723         Use AC_C_INLINE where necessary.
72724         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
72725         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
72726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72727         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
72728         * m4/mbfile.m4 (gl_MBFILE): Likewise.
72729         * m4/mbiter.m4 (gl_MBITER): Likewise.
72730         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72731         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
72732         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
72733         * modules/u64 (configure.ac): Likewise.
72735 2009-12-31  Bruno Haible  <bruno@clisp.org>
72737         Use AC_C_INLINE instead of module 'inline' where possible.
72738         * modules/inline (Description): Clarify purpose.
72739         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
72740         * modules/count-one-bits (Depends-on): Remove inline.
72741         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
72742         * modules/openat (Depends-on): Remove inline.
72743         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
72744         instead of depending on module 'inline'.
72745         * modules/filevercmp (Depends-on, configure.ac): Likewise.
72746         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
72747         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
72748         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
72749         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
72750         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
72751         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
72752         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
72753         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
72754         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
72755         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
72756         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
72757         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
72758         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
72759         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
72760         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
72761         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
72762         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
72763         Likewise.
72764         * modules/unictype/property-ascii-hex-digit (Depends-on,
72765         configure.ac): Likewise.
72766         * modules/unictype/property-bidi-arabic-digit (Depends-on,
72767         configure.ac): Likewise.
72768         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
72769         configure.ac): Likewise.
72770         * modules/unictype/property-bidi-block-separator (Depends-on,
72771         configure.ac): Likewise.
72772         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
72773         configure.ac): Likewise.
72774         * modules/unictype/property-bidi-common-separator (Depends-on,
72775         configure.ac): Likewise.
72776         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
72777         Likewise.
72778         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
72779         configure.ac): Likewise.
72780         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
72781         configure.ac): Likewise.
72782         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
72783         configure.ac): Likewise.
72784         * modules/unictype/property-bidi-european-digit (Depends-on,
72785         configure.ac): Likewise.
72786         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
72787         configure.ac): Likewise.
72788         * modules/unictype/property-bidi-left-to-right (Depends-on,
72789         configure.ac): Likewise.
72790         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
72791         configure.ac): Likewise.
72792         * modules/unictype/property-bidi-other-neutral (Depends-on,
72793         configure.ac): Likewise.
72794         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
72795         Likewise.
72796         * modules/unictype/property-bidi-segment-separator (Depends-on,
72797         configure.ac): Likewise.
72798         * modules/unictype/property-bidi-whitespace (Depends-on,
72799         configure.ac): Likewise.
72800         * modules/unictype/property-combining (Depends-on, configure.ac):
72801         Likewise.
72802         * modules/unictype/property-composite (Depends-on, configure.ac):
72803         Likewise.
72804         * modules/unictype/property-currency-symbol (Depends-on,
72805         configure.ac): Likewise.
72806         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
72807         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
72808         Likewise.
72809         * modules/unictype/property-default-ignorable-code-point (Depends-on,
72810         configure.ac): Likewise.
72811         * modules/unictype/property-deprecated (Depends-on, configure.ac):
72812         Likewise.
72813         * modules/unictype/property-diacritic (Depends-on, configure.ac):
72814         Likewise.
72815         * modules/unictype/property-extender (Depends-on, configure.ac):
72816         Likewise.
72817         * modules/unictype/property-format-control (Depends-on, configure.ac):
72818         Likewise.
72819         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
72820         Likewise.
72821         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
72822         Likewise.
72823         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
72824         Likewise.
72825         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
72826         Likewise.
72827         * modules/unictype/property-hyphen (Depends-on, configure.ac):
72828         Likewise.
72829         * modules/unictype/property-id-continue (Depends-on, configure.ac):
72830         Likewise.
72831         * modules/unictype/property-id-start (Depends-on, configure.ac):
72832         Likewise.
72833         * modules/unictype/property-ideographic (Depends-on, configure.ac):
72834         Likewise.
72835         * modules/unictype/property-ids-binary-operator (Depends-on,
72836         configure.ac): Likewise.
72837         * modules/unictype/property-ids-trinary-operator (Depends-on,
72838         configure.ac): Likewise.
72839         * modules/unictype/property-ignorable-control (Depends-on,
72840         configure.ac): Likewise.
72841         * modules/unictype/property-iso-control (Depends-on, configure.ac):
72842         Likewise.
72843         * modules/unictype/property-join-control (Depends-on, configure.ac):
72844         Likewise.
72845         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
72846         Likewise.
72847         * modules/unictype/property-line-separator (Depends-on, configure.ac):
72848         Likewise.
72849         * modules/unictype/property-logical-order-exception (Depends-on,
72850         configure.ac): Likewise.
72851         * modules/unictype/property-lowercase (Depends-on, configure.ac):
72852         Likewise.
72853         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
72854         * modules/unictype/property-non-break (Depends-on, configure.ac):
72855         Likewise.
72856         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
72857         Likewise.
72858         * modules/unictype/property-numeric (Depends-on, configure.ac):
72859         Likewise.
72860         * modules/unictype/property-other-alphabetic (Depends-on,
72861         configure.ac): Likewise.
72862         * modules/unictype/property-other-default-ignorable-code-point
72863         (Depends-on, configure.ac): Likewise.
72864         * modules/unictype/property-other-grapheme-extend (Depends-on,
72865         configure.ac): Likewise.
72866         * modules/unictype/property-other-id-continue (Depends-on,
72867         configure.ac): Likewise.
72868         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
72869         Likewise.
72870         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
72871         Likewise.
72872         * modules/unictype/property-other-math (Depends-on, configure.ac):
72873         Likewise.
72874         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
72875         Likewise.
72876         * modules/unictype/property-paired-punctuation (Depends-on,
72877         configure.ac): Likewise.
72878         * modules/unictype/property-paragraph-separator (Depends-on,
72879         configure.ac): Likewise.
72880         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
72881         Likewise.
72882         * modules/unictype/property-pattern-white-space (Depends-on,
72883         configure.ac): Likewise.
72884         * modules/unictype/property-private-use (Depends-on, configure.ac):
72885         Likewise.
72886         * modules/unictype/property-punctuation (Depends-on, configure.ac):
72887         Likewise.
72888         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
72889         Likewise.
72890         * modules/unictype/property-radical (Depends-on, configure.ac):
72891         Likewise.
72892         * modules/unictype/property-sentence-terminal (Depends-on,
72893         configure.ac): Likewise.
72894         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
72895         Likewise.
72896         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
72897         * modules/unictype/property-terminal-punctuation (Depends-on,
72898         configure.ac): Likewise.
72899         * modules/unictype/property-titlecase (Depends-on, configure.ac):
72900         Likewise.
72901         * modules/unictype/property-unassigned-code-value (Depends-on,
72902         configure.ac): Likewise.
72903         * modules/unictype/property-unified-ideograph (Depends-on,
72904         configure.ac): Likewise.
72905         * modules/unictype/property-uppercase (Depends-on, configure.ac):
72906         Likewise.
72907         * modules/unictype/property-variation-selector (Depends-on,
72908         configure.ac): Likewise.
72909         * modules/unictype/property-white-space (Depends-on, configure.ac):
72910         Likewise.
72911         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
72912         Likewise.
72913         * modules/unictype/property-xid-start (Depends-on, configure.ac):
72914         Likewise.
72915         * modules/unictype/property-zero-width (Depends-on, configure.ac):
72916         Likewise.
72917         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
72918         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
72919         Likewise.
72921 2009-12-31  Bruno Haible  <bruno@clisp.org>
72923         Remove unnecessary AC_C_INLINE invocation.
72924         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
72925         since 2009-08-21.
72927 2009-12-31  Jim Meyering  <meyering@redhat.com>
72929         maint.mk: don't require explicit gpg_key_ID in cfg.mk
72930         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
72931         With this change, we can all remove the gpg_key_ID = ... definition
72932         from our respective cfg.mk files.
72934         maint.mk: create announcement template in ~/, not in /tmp
72935         * top/maint.mk (emit_upload_commands): Adjust.
72936         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
72937         Remove temporary file, .ci-msg.
72939 2009-12-31  Eric Blake  <ebb9@byu.net>
72941         link-warning: always build headers with link warnings
72942         * modules/arpa_inet (Makefile.am): Always build replacement
72943         header.
72944         * modules/ctype (Makefile.am): Likewise.
72945         * modules/dirent (Makefile.am): Likewise.
72946         * modules/inttypes (Makefile.am): Likewise.
72947         * modules/langinfo (Makefile.am): Likewise.
72948         * modules/locale (Makefile.am): Likewise.
72949         * modules/spawn (Makefile.am): Likewise.
72950         * modules/sys_file (Makefile.am): Likewise.
72951         * modules/sys_ioctl (Makefile.am): Likewise.
72952         * modules/sys_select (Makefile.am): Likewise.
72953         * modules/sys_socket (Makefile.am): Likewise.
72954         * modules/sys_times (Makefile.am): Likewise.
72955         * modules/sys_utsname (Makefile.am): Likewise.
72956         * modules/sys_wait (Makefile.am): Likewise.
72957         * modules/wchar (Makefile.am): Likewise.
72958         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
72959         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
72960         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
72961         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
72962         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
72963         Likewise.
72964         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72965         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72966         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
72967         Likewise.
72968         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
72969         Likewise.
72970         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
72971         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
72972         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
72973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72974         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72975         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
72976         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
72977         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
72978         (gl_WCHAR_H_DEFAULTS): Likewise.
72980 2009-12-31  Eric Blake  <ebb9@byu.net>
72982         signal, spawn: use link warnings
72983         * lib/signal.in.h (sigset_t): Make unconditional.
72984         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
72985         (sigpending, sigprocmask, sigaction): Add link warnings.
72986         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
72987         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
72988         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
72989         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
72990         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
72991         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
72992         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
72993         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
72994         (posix_spawn_file_actions_destroy)
72995         (posix_spawn_file_actions_addopen)
72996         (posix_spawn_file_actions_addclose)
72997         (posix_spawn_file_actions_adddup2): Likewise.
72998         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
72999         * tests/test-signal.c (main): Enhance test.
73001         spawn: improve wrapper support
73002         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
73003         (gl_SPAWN_H_DEFAULTS): New defaults.
73004         * modules/spawn (Makefile.am): Substitute them.
73005         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
73006         Only declare if missing or broken.
73008         sys_times, sys_utsname: use include_next
73009         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
73010         header.
73011         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
73012         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73013         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73014         * modules/sys_times (Depends-on): Add include_next.
73015         (Makefile.am): Substitute additional values.
73016         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73017         * lib/sys_times.in.h (includes): Include native header, if
73018         available.
73019         * lib/sys_utsname.in.h (includes): Likewise.
73020         * tests/test-sys_times.c (main): Enhance test.
73022         fdutimensat: revert prior patch
73023         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
73024         utimens.h.
73025         Reported by Bruno Haible.
73027 2009-12-30  Eric Blake  <ebb9@byu.net>
73029         sys_wait: drop link-warning dependency
73030         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
73031         link-warning efforts.
73032         * lib/sys_wait.in.h: Likewise.
73034         fdutimensat: remove bogus dependency
73035         * modules/fdutimensat (Depends-on): Drop inline.
73037         unistd: fix typo
73038         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
73040 2009-12-30  Bruno Haible  <bruno@clisp.org>
73042         Fix compilation error with Solaris cc.
73043         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
73044         * lib/unicase/u16-is-invariant.c: Likewise.
73045         * lib/unicase/u32-is-invariant.c: Likewise.
73046         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73048 2009-12-30  Bruno Haible  <bruno@clisp.org>
73050         Fix test crash.
73051         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
73052         locales.
73053         Reported by Simon Josefsson <simon@josefsson.org>.
73055 2009-12-30  Bruno Haible  <bruno@clisp.org>
73057         Fix compilation error on most platforms.
73058         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
73059         Reported by Simon Josefsson <simon@josefsson.org>
73060         and Nelson H. F. Beebe <beebe@math.utah.edu>.
73062 2009-12-30  Eric Blake  <ebb9@byu.net>
73064         futimens, utimensat: work around ntfs-3g bug
73065         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
73066         a ctime bug is present, and expand workaround to cover ntfs-3g.
73067         * lib/utimens.c (fdutimens, lutimens): Likewise.
73068         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
73069         (validate_timespec): Adjust return value.
73070         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
73071         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73072         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
73074 2009-12-29  Eric Blake  <ebb9@byu.net>
73076         link-warning: make usage consistent
73077         * modules/ctype (Depends-on): Add link-warning.
73078         (Makefile.am): Update rules accordingly.
73079         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73080         * modules/locale (Depends-on, Makefile.am): Likewise.
73081         * modules/sys_file (Makefile.am): Likewise.
73082         * modules/getopt-posix (Makefile.am): Delete unused link warning
73083         efforts.
73084         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
73085         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
73086         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
73087         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
73089         stdio: remove unused variables
73090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
73091         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
73092         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
73094         tests: test more substitute headers
73095         * modules/ctype-tests: New file.
73096         * modules/dirent-tests: Likewise.
73097         * modules/spawn-tests: Likewise.
73098         * modules/sys_file-tests: Likewise.
73099         * modules/sys_ioctl-tests: Likewise.
73100         * modules/sys_wait-tests: Likewise.
73101         * tests/test-ctype.c: Likewise.
73102         * tests/test-dirent.c: Likewise.
73103         * tests/test-spawn.c: Likewise.
73104         * tests/test-sys_file.c: Likewise.
73105         * tests/test-sys_ioctl.c: Likewise.
73106         * tests/test-sys_wait.c: Likewise.
73107         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
73108         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
73109         whether or not flock is in use.
73111         tests: remove License section from module
73112         * modules/arpa_inet-tests: Remove unneeded section.
73113         * modules/byteswap-tests: Likewise.
73114         * modules/ceilf-tests: Likewise.
73115         * modules/ceill-tests: Likewise.
73116         * modules/crypto/des-tests: Likewise.
73117         * modules/crypto/gc-arcfour-tests: Likewise.
73118         * modules/crypto/gc-arctwo-tests: Likewise.
73119         * modules/crypto/gc-des-tests: Likewise.
73120         * modules/crypto/gc-hmac-md5-tests: Likewise.
73121         * modules/crypto/gc-hmac-sha1-tests: Likewise.
73122         * modules/crypto/gc-md2-tests: Likewise.
73123         * modules/crypto/gc-md4-tests: Likewise.
73124         * modules/crypto/gc-md5-tests: Likewise.
73125         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
73126         * modules/crypto/gc-rijndael-tests: Likewise.
73127         * modules/crypto/gc-sha1-tests: Likewise.
73128         * modules/crypto/gc-tests: Likewise.
73129         * modules/crypto/md2-tests: Likewise.
73130         * modules/crypto/md4-tests: Likewise.
73131         * modules/fcntl-h-tests: Likewise.
73132         * modules/floorf-tests: Likewise.
73133         * modules/floorl-tests: Likewise.
73134         * modules/frexp-nolibm-tests: Likewise.
73135         * modules/frexp-tests: Likewise.
73136         * modules/frexpl-nolibm-tests: Likewise.
73137         * modules/frexpl-tests: Likewise.
73138         * modules/getaddrinfo-tests: Likewise.
73139         * modules/inttypes-tests: Likewise.
73140         * modules/isfinite-tests: Likewise.
73141         * modules/isinf-tests: Likewise.
73142         * modules/ldexpl-tests: Likewise.
73143         * modules/locale-tests: Likewise.
73144         * modules/math-tests: Likewise.
73145         * modules/netdb-tests: Likewise.
73146         * modules/netinet_in-tests: Likewise.
73147         * modules/printf-frexp-tests: Likewise.
73148         * modules/printf-frexpl-tests: Likewise.
73149         * modules/priv-set-tests: Likewise.
73150         * modules/random_r-tests: Likewise.
73151         * modules/round-tests: Likewise.
73152         * modules/roundf-tests: Likewise.
73153         * modules/roundl-tests: Likewise.
73154         * modules/search-tests: Likewise.
73155         * modules/select-tests: Likewise.
73156         * modules/signal-tests: Likewise.
73157         * modules/stdbool-tests: Likewise.
73158         * modules/stddef-tests: Likewise.
73159         * modules/stdint-tests: Likewise.
73160         * modules/stdio-tests: Likewise.
73161         * modules/stdlib-tests: Likewise.
73162         * modules/string-tests: Likewise.
73163         * modules/strings-tests: Likewise.
73164         * modules/sys_select-tests: Likewise.
73165         * modules/sys_socket-tests: Likewise.
73166         * modules/sys_stat-tests: Likewise.
73167         * modules/sys_time-tests: Likewise.
73168         * modules/sys_utsname-tests: Likewise.
73169         * modules/sysexits-tests: Likewise.
73170         * modules/time-tests: Likewise.
73171         * modules/trunc-tests: Likewise.
73172         * modules/truncf-tests: Likewise.
73173         * modules/truncl-tests: Likewise.
73174         * modules/tsearch-tests: Likewise.
73175         * modules/unistd-tests: Likewise.
73176         * modules/wchar-tests: Likewise.
73177         * modules/wctype-tests: Likewise.
73179         tests: fix license on several tests
73180         * tests/test-des.c: Update to GPLv3+.
73181         * tests/test-flock.c: Likewise.
73182         * tests/test-fsync.c: Likewise.
73183         * tests/test-futimens.h: Likewise.
73184         * tests/test-gc-arcfour.c: Likewise.
73185         * tests/test-gc-arctwo.c: Likewise.
73186         * tests/test-gc-des.c: Likewise.
73187         * tests/test-gc-hmac-md5.c: Likewise.
73188         * tests/test-gc-hmac-sha1.c: Likewise.
73189         * tests/test-gc-md2.c: Likewise.
73190         * tests/test-gc-md4.c: Likewise.
73191         * tests/test-gc-md5.c: Likewise.
73192         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73193         * tests/test-gc-rijndael.c: Likewise.
73194         * tests/test-gc-sha1.c: Likewise.
73195         * tests/test-gc.c: Likewise.
73196         * tests/test-getcwd.c: Likewise.
73197         * tests/test-link.c: Likewise.
73198         * tests/test-link.h: Likewise.
73199         * tests/test-lutimens.h: Likewise.
73200         * tests/test-md2.c: Likewise.
73201         * tests/test-md4.c: Likewise.
73202         * tests/test-mkdir.h: Likewise.
73203         * tests/test-rename.c: Likewise.
73204         * tests/test-rename.h: Likewise.
73205         * tests/test-safe-alloc.c: Likewise.
73206         * tests/test-utimens-common.h: Likewise.
73207         * tests/test-utimens.h: Likewise.
73209         maint: sync license texts
73210         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
73211         * doc/gpl-3.0.texi: Revert copyright year update.
73212         * doc/lgpl-3.0.texi: Likewise.
73214 2009-12-29  Jim Meyering  <meyering@redhat.com>
73216         update nearly all FSF copyright year lists to include 2009
73217         The files named by the following are exempted:
73218             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
73219               test -f "$dst" && { echo "$dst"; continue; }
73220               test -d "$dst" || continue
73221               echo "$dst"/$(basename "$src")
73222             done > exempt
73223             git ls-files tests/unictype >> exempt
73224         In the remaining files, convert to all-interval notation if
73225         - there is already at least one year interval like 2000-2003
73226         - the file is maintained by me
73227         - the file is in lib/uni*/, where that style already prevails
73228         Otherwise, use update-copyright's default.
73230 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73231         and Eric Blake  <ebb9@byu.net>
73233         tests: don't require debug system() to pass
73234         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
73235         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73236         * tests/test-unlink.h (test_unlink_func): Likewise.
73237         * tests/test-fstatat.c (main): ...into callers.
73238         * tests/test-lstat.c (main): Likewise.
73239         * tests/test-rmdir.c (main): Likewise.
73240         * tests/test-unlink.c (main): Likewise.
73241         * tests/test-unlinkat.c (main): Likewise.
73242         * tests/test-areadlink-with-size.c (main): Don't require a
73243         debug-only system call to pass, aiding cross-testing to mingw.
73244         * tests/test-areadlink.c (main): Likewise.
73245         * tests/test-areadlinkat-with-size.c (main): Likewise.
73246         * tests/test-areadlinkat.c (main): Likewise.
73247         * tests/test-canonicalize-lgpl.c (main): Likewise.
73248         * tests/test-canonicalize.c (main): Likewise.
73249         * tests/test-chown.c (main): Likewise.
73250         * tests/test-fchownat.c (main): Likewise.
73251         * tests/test-lchown.c (main): Likewise.
73252         * tests/test-fdutimensat.c (main): Likewise.
73253         * tests/test-futimens.c (main): Likewise.
73254         * tests/test-link.c (main): Likewise.
73255         * tests/test-linkat.c (main): Likewise.
73256         * tests/test-mkdir.c (main): Likewise.
73257         * tests/test-mkdirat.c (main): Likewise.
73258         * tests/test-mkfifo.c (main): Likewise.
73259         * tests/test-mkfifoat.c (main): Likewise.
73260         * tests/test-mknod.c (main): Likewise.
73261         * tests/test-readlink.c (main): Likewise.
73262         * tests/test-remove.c (main): Likewise.
73263         * tests/test-rename.c (main): Likewise.
73264         * tests/test-renameat.c (main): Likewise.
73265         * tests/test-symlink.c (main): Likewise.
73266         * tests/test-symlinkat.c (main): Likewise.
73267         * tests/test-utimens.c (main): Likewise.
73268         * tests/test-utimensat.c (main): Likewise.
73270 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73272         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
73273         on $(UNUSED_PARAMETER_H) to avoid build failure.
73275 2009-12-28  Jim Meyering  <meyering@redhat.com>
73277         update-copyright: you may specify a max. line length other than 72
73278         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73280         maint: use consistent FSF copyright line syntax
73281         * lib/posixtm.c: Add missing comma in FSF copyright line.
73282         * lib/posixtm.h: Likewise.
73283         * lib/getugroups.c: Add missing ", Inc.".
73285         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
73286         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
73287         FSF copyright line.  Remove trailing blanks.
73289 2009-12-28  Eric Blake  <ebb9@byu.net>
73291         test-dup2: reduce dependencies
73292         * modules/cloexec (Configure.ac): Set witness.
73293         * modules/dup2-tests (Depends-on): Drop cloexec.
73294         * tests/test-dup2.c (main): Skip portion of test if cloexec module
73295         not present.
73296         Suggested by Bruno Haible.
73298 2009-12-26  Bruno Haible  <bruno@clisp.org>
73300         Remove an unneeded dependency.
73301         * modules/fseterr (Depends-on): Remove dup2.
73303 2009-12-26  Eric Blake  <ebb9@byu.net>
73305         tests: use macros.h in more places
73306         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
73307         (ASSERT_STREAM): Provide default of stderr.
73308         * tests/test-dirent-safer.c: Include macros.h, using alternate
73309         stream for assertions.
73310         * tests/test-dup-safer.c: Likewise.
73311         * tests/test-freopen-safer.c: Likewise.
73312         * tests/test-getopt.c: Likewise.
73313         * tests/test-openat-safer.c: Likewise.
73314         * tests/test-pipe.c: Likewise.
73315         * tests/test-popen-safer.c: Likewise.
73316         * modules/dirent-safer-tests (Files): Include macros.h.
73317         * modules/unistd-safer-tests (Files): Likewise.
73318         * modules/freopen-safer-tests (Files): Likewise.
73319         * modules/getopt-posix-tests (Files): Likewise.
73320         * modules/openat-safer-tests (Files): Likewise.
73321         * modules/pipe-tests (Files): Likewise.
73323 2009-12-26  Bruno Haible  <bruno@clisp.org>
73325         javacomp-script: Portability fix.
73326         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
73327         that it also works on Solaris.
73329 2009-12-26  Bruno Haible  <bruno@clisp.org>
73331         localename: Fix storage allocation of gl_locale_name_thread's result.
73332         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
73333         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
73334         all platforms that have 'uselocale'.
73335         (gl_locale_name_thread_unsafe): New function, extracted from
73336         gl_locale_name_thread.
73337         (gl_locale_name_thread): Call struniq on all platforms that have
73338         'uselocale'.
73339         * tests/test-localename.c (test_locale_name_thread): Check that the
73340         resulting strings are permanently allocated.
73341         * modules/localename-tests (Depends-on): Add strdup.
73343 2009-12-26  Bruno Haible  <bruno@clisp.org>
73345         * tests/test-localename.c (categories): Fill in the strings.
73347 2009-12-26  Jim Meyering  <meyering@redhat.com>
73349         isdir: complete the removal of m4/isdir.m4
73350         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
73352         isdir: clean up, since at least grep still uses it
73353         * lib/isdir.c: Include "isdir.h".
73354         (S_ISDIR): Remove now-unneeded definition.
73355         * modules/isdir (Files): Add lib/isdir.h.
73356         * lib/isdir.h: New file, with declaration.
73357         * m4/isdir.m4: Remove file -- unneeded.
73359 2009-12-25  Bruno Haible  <bruno@clisp.org>
73361         selinux-h: Make generated .h files standalone.
73362         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
73363         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
73364         * lib/se-selinux.in.h: Likewise.
73365         * modules/selinux-h (Depends-on): Add unused-parameter.
73366         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
73367         selinux/selinux.h and selinux/context.h.
73368         Suggested by Eric Blake.
73370 2009-12-25  Bruno Haible  <bruno@clisp.org>
73372         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
73373         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
73374         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
73375         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
73376         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
73378 2009-12-24  Bruno Haible  <bruno@clisp.org>
73380         openat: Fix warning.
73381         * lib/openat-proc.c: Include <unistd.h>.
73383 2009-12-24  Bruno Haible  <bruno@clisp.org>
73385         New module 'unused-parameter'.
73386         * build-aux/unused-parameter.h: New file, extracted from earlier
73387         gnulib-common.m4.
73388         * modules/unused-parameter: New file.
73389         * lib/unistr.h: Include unused-parameter.h.
73390         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
73391         _GL_UNUSED.
73392         * modules/unistr/base (Depends-on): Add unused-parameter.
73394 2009-12-24  Bruno Haible  <bruno@clisp.org>
73396         Add missing dependencies to 'extensions' module.
73397         * m4/extensions.m4: Add comment.
73398         * modules/accept4 (Depends-on): Add extensions.
73399         * modules/dup3 (Depends-on): Likewise.
73400         * modules/fcntl (Depends-on): Likewise.
73401         * modules/futimens (Depends-on): Likewise.
73402         * modules/mknod (Depends-on): Likewise.
73403         * modules/pipe2 (Depends-on): Likewise.
73404         * modules/stat-time (Depends-on): Likewise.
73405         * modules/strcasestr-simple (Depends-on): Likewise.
73406         * modules/strsignal (Depends-on): Likewise.
73407         * modules/utimensat (Depends-on): Likewise.
73408         * modules/localcharset (Depends-on): Likewise. Needed because of
73409         gl_FCNTL_O_FLAGS.
73410         * modules/wcrtomb (Depends-on): Likewise. Needed because of
73411         AC_TYPE_MBSTATE_T.
73412         * modules/wcsnrtombs (Depends-on): Likewise.
73413         * modules/wcsrtombs (Depends-on): Likewise.
73415 2009-12-24  Bruno Haible  <bruno@clisp.org>
73417         binary-io: Avoid gcc warning due to SET_BINARY.
73418         * lib/binary-io.h (SET_BINARY): Cast the result to void.
73419         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
73421 2009-12-24  Bruno Haible  <bruno@clisp.org>
73423         Avoid future namespace pollution on glibc systems.
73424         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
73425         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
73426         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
73427         glibc systems.
73429 2009-12-24  Bruno Haible  <bruno@clisp.org>
73431         Refactor common macros used in tests.
73432         * tests/macros.h: New file.
73433         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
73434         and/or <stdlib.h>, if appropriate.
73435         (ASSERT, SIZEOF): Remove macros.
73436         * tests/test-areadlink-with-size.c: Likewise.
73437         * tests/test-areadlinkat.c: Likewise.
73438         * tests/test-areadlinkat-with-size.c: Likewise.
73439         * tests/test-argmatch.c: Likewise.
73440         * tests/test-argv-iter.c: Likewise.
73441         * tests/test-array-mergesort.c: Likewise.
73442         * tests/test-array_list.c: Likewise.
73443         * tests/test-array_oset.c: Likewise.
73444         * tests/test-avltree_list.c: Likewise.
73445         * tests/test-avltree_oset.c: Likewise.
73446         * tests/test-avltreehash_list.c: Likewise.
73447         * tests/test-base64.c: Likewise.
73448         * tests/test-binary-io.c: Likewise.
73449         * tests/test-bitrotate.c: Likewise.
73450         * tests/test-btowc.c: Likewise.
73451         * tests/test-byteswap.c: Likewise.
73452         * tests/test-c-ctype.c: Likewise.
73453         * tests/test-c-stack.c: Likewise.
73454         * tests/test-c-strcasecmp.c: Likewise.
73455         * tests/test-c-strcasestr.c: Likewise.
73456         * tests/test-c-strncasecmp.c: Likewise.
73457         * tests/test-c-strstr.c: Likewise.
73458         * tests/test-canonicalize-lgpl.c: Likewise.
73459         * tests/test-canonicalize.c: Likewise.
73460         * tests/test-carray_list.c: Likewise.
73461         * tests/test-ceilf1.c: Likewise.
73462         * tests/test-ceilf2.c: Likewise.
73463         * tests/test-ceill.c: Likewise.
73464         * tests/test-chown.c: Likewise.
73465         * tests/test-cloexec.c: Likewise.
73466         * tests/test-copy-acl.c: Likewise.
73467         * tests/test-copy-file.c: Likewise.
73468         * tests/test-count-one-bits.c: Likewise.
73469         * tests/test-dprintf-posix.c: Likewise.
73470         * tests/test-dup2.c: Likewise.
73471         * tests/test-dup3.c: Likewise.
73472         * tests/test-duplocale.c: Likewise.
73473         * tests/test-fbufmode.c: Likewise.
73474         * tests/test-fchdir.c: Likewise.
73475         * tests/test-fchownat.c: Likewise.
73476         * tests/test-fcntl-safer.c: Likewise.
73477         * tests/test-fcntl.c: Likewise.
73478         * tests/test-fdopendir.c: Likewise.
73479         * tests/test-fdutimensat.c: Likewise.
73480         * tests/test-fflush2.c: Likewise.
73481         * tests/test-file-has-acl.c: Likewise.
73482         * tests/test-filevercmp.c: Likewise.
73483         * tests/test-flock.c: Likewise.
73484         * tests/test-floorf1.c: Likewise.
73485         * tests/test-floorf2.c: Likewise.
73486         * tests/test-floorl.c: Likewise.
73487         * tests/test-fnmatch.c: Likewise.
73488         * tests/test-fopen.h: Likewise.
73489         * tests/test-fpending.c: Likewise.
73490         * tests/test-fprintf-posix.c: Likewise.
73491         * tests/test-fpurge.c: Likewise.
73492         * tests/test-freadable.c: Likewise.
73493         * tests/test-freadahead.c: Likewise.
73494         * tests/test-freading.c: Likewise.
73495         * tests/test-freadptr.c: Likewise.
73496         * tests/test-freadptr2.c: Likewise.
73497         * tests/test-freadseek.c: Likewise.
73498         * tests/test-freopen.c: Likewise.
73499         * tests/test-frexp.c: Likewise.
73500         * tests/test-frexpl.c: Likewise.
73501         * tests/test-fseek.c: Likewise.
73502         * tests/test-fseeko.c: Likewise.
73503         * tests/test-fstatat.c: Likewise.
73504         * tests/test-fstrcmp.c: Likewise.
73505         * tests/test-fsync.c: Likewise.
73506         * tests/test-ftell.c: Likewise.
73507         * tests/test-ftello.c: Likewise.
73508         * tests/test-func.c: Likewise.
73509         * tests/test-futimens.c: Likewise.
73510         * tests/test-fwritable.c: Likewise.
73511         * tests/test-fwriting.c: Likewise.
73512         * tests/test-getcwd.c: Likewise.
73513         * tests/test-getdate.c: Likewise.
73514         * tests/test-getdelim.c: Likewise.
73515         * tests/test-getdtablesize.c: Likewise.
73516         * tests/test-getgroups.c: Likewise.
73517         * tests/test-getline.c: Likewise.
73518         * tests/test-getndelim2.c: Likewise.
73519         * tests/test-glob.c: Likewise.
73520         * tests/test-hash.c: Likewise.
73521         * tests/test-i-ring.c: Likewise.
73522         * tests/test-iconv-utf.c: Likewise.
73523         * tests/test-iconv.c: Likewise.
73524         * tests/test-idpriv-drop.c: Likewise.
73525         * tests/test-idpriv-droptemp.c: Likewise.
73526         * tests/test-inet_ntop.c: Likewise.
73527         * tests/test-inet_pton.c: Likewise.
73528         * tests/test-isblank.c: Likewise.
73529         * tests/test-isfinite.c: Likewise.
73530         * tests/test-isinf.c: Likewise.
73531         * tests/test-isnan.c: Likewise.
73532         * tests/test-isnand.h: Likewise.
73533         * tests/test-isnanf.h: Likewise.
73534         * tests/test-isnanl.h: Likewise.
73535         * tests/test-lchown.c: Likewise.
73536         * tests/test-ldexpl.c: Likewise.
73537         * tests/test-link.c: Likewise.
73538         * tests/test-linkat.c: Likewise.
73539         * tests/test-linked_list.c: Likewise.
73540         * tests/test-linkedhash_list.c: Likewise.
73541         * tests/test-localename.c: Likewise.
73542         * tests/test-lseek.c: Likewise.
73543         * tests/test-lstat.c: Likewise.
73544         * tests/test-mbmemcasecmp.c: Likewise.
73545         * tests/test-mbmemcasecoll.c: Likewise.
73546         * tests/test-mbrtowc.c: Likewise.
73547         * tests/test-mbscasecmp.c: Likewise.
73548         * tests/test-mbscasestr1.c: Likewise.
73549         * tests/test-mbscasestr2.c: Likewise.
73550         * tests/test-mbscasestr3.c: Likewise.
73551         * tests/test-mbscasestr4.c: Likewise.
73552         * tests/test-mbschr.c: Likewise.
73553         * tests/test-mbscspn.c: Likewise.
73554         * tests/test-mbsinit.c: Likewise.
73555         * tests/test-mbsncasecmp.c: Likewise.
73556         * tests/test-mbsnrtowcs.c: Likewise.
73557         * tests/test-mbspbrk.c: Likewise.
73558         * tests/test-mbspcasecmp.c: Likewise.
73559         * tests/test-mbsrchr.c: Likewise.
73560         * tests/test-mbsrtowcs.c: Likewise.
73561         * tests/test-mbsspn.c: Likewise.
73562         * tests/test-mbsstr1.c: Likewise.
73563         * tests/test-mbsstr2.c: Likewise.
73564         * tests/test-mbsstr3.c: Likewise.
73565         * tests/test-memchr.c: Likewise.
73566         * tests/test-memchr2.c: Likewise.
73567         * tests/test-memcmp.c: Likewise.
73568         * tests/test-memmem.c: Likewise.
73569         * tests/test-memrchr.c: Likewise.
73570         * tests/test-mkdir.c: Likewise.
73571         * tests/test-mkdirat.c: Likewise.
73572         * tests/test-mkfifo.c: Likewise.
73573         * tests/test-mkfifoat.c: Likewise.
73574         * tests/test-mknod.c: Likewise.
73575         * tests/test-nanosleep.c: Likewise.
73576         * tests/test-nl_langinfo.c: Likewise.
73577         * tests/test-obstack-printf.c: Likewise.
73578         * tests/test-open.c: Likewise.
73579         * tests/test-openat.c: Likewise.
73580         * tests/test-pipe-filter-gi1.c: Likewise.
73581         * tests/test-pipe-filter-gi2-main.c: Likewise.
73582         * tests/test-pipe-filter-ii1.c: Likewise.
73583         * tests/test-pipe-filter-ii2-main.c: Likewise.
73584         * tests/test-pipe2.c: Likewise.
73585         * tests/test-popen.h: Likewise.
73586         * tests/test-posixtm.c: Likewise.
73587         * tests/test-pread.c: Likewise.
73588         * tests/test-printf-frexp.c: Likewise.
73589         * tests/test-printf-frexpl.c: Likewise.
73590         * tests/test-printf-posix.c: Likewise.
73591         * tests/test-priv-set.c: Likewise.
73592         * tests/test-quotearg.c: Likewise.
73593         * tests/test-random_r.c: Likewise.
73594         * tests/test-rawmemchr.c: Likewise.
73595         * tests/test-rbtree_list.c: Likewise.
73596         * tests/test-rbtree_oset.c: Likewise.
73597         * tests/test-rbtreehash_list.c: Likewise.
73598         * tests/test-readlink.c: Likewise.
73599         * tests/test-remove.c: Likewise.
73600         * tests/test-rename.c: Likewise.
73601         * tests/test-renameat.c: Likewise.
73602         * tests/test-rmdir.c: Likewise.
73603         * tests/test-round1.c: Likewise.
73604         * tests/test-roundf1.c: Likewise.
73605         * tests/test-roundl.c: Likewise.
73606         * tests/test-safe-alloc.c: Likewise.
73607         * tests/test-sameacls.c: Likewise.
73608         * tests/test-set-mode-acl.c: Likewise.
73609         * tests/test-setenv.c: Likewise.
73610         * tests/test-sigaction.c: Likewise.
73611         * tests/test-signbit.c: Likewise.
73612         * tests/test-sleep.c: Likewise.
73613         * tests/test-snprintf-posix.c: Likewise.
73614         * tests/test-snprintf.c: Likewise.
73615         * tests/test-sprintf-posix.c: Likewise.
73616         * tests/test-stat-time.c: Likewise.
73617         * tests/test-stat.c: Likewise.
73618         * tests/test-strcasestr.c: Likewise.
73619         * tests/test-strchrnul.c: Likewise.
73620         * tests/test-strerror.c: Likewise.
73621         * tests/test-striconv.c: Likewise.
73622         * tests/test-striconveh.c: Likewise.
73623         * tests/test-striconveha.c: Likewise.
73624         * tests/test-strsignal.c: Likewise.
73625         * tests/test-strstr.c: Likewise.
73626         * tests/test-strtod.c: Likewise.
73627         * tests/test-strverscmp.c: Likewise.
73628         * tests/test-symlink.c: Likewise.
73629         * tests/test-symlinkat.c: Likewise.
73630         * tests/test-trunc1.c: Likewise.
73631         * tests/test-trunc2.c: Likewise.
73632         * tests/test-truncf1.c: Likewise.
73633         * tests/test-truncf2.c: Likewise.
73634         * tests/test-truncl.c: Likewise.
73635         * tests/test-uname.c: Likewise.
73636         * tests/test-unlink.c: Likewise.
73637         * tests/test-unlinkat.c: Likewise.
73638         * tests/test-unsetenv.c: Likewise.
73639         * tests/test-usleep.c: Likewise.
73640         * tests/test-utimens.c: Likewise.
73641         * tests/test-utimensat.c: Likewise.
73642         * tests/test-vasnprintf-posix.c: Likewise.
73643         * tests/test-vasnprintf-posix2.c: Likewise.
73644         * tests/test-vasnprintf.c: Likewise.
73645         * tests/test-vasprintf-posix.c: Likewise.
73646         * tests/test-vasprintf.c: Likewise.
73647         * tests/test-vdprintf-posix.c: Likewise.
73648         * tests/test-vfprintf-posix.c: Likewise.
73649         * tests/test-vprintf-posix.c: Likewise.
73650         * tests/test-vsnprintf-posix.c: Likewise.
73651         * tests/test-vsnprintf.c: Likewise.
73652         * tests/test-vsprintf-posix.c: Likewise.
73653         * tests/test-wcrtomb.c: Likewise.
73654         * tests/test-wcsnrtombs.c: Likewise.
73655         * tests/test-wcsrtombs.c: Likewise.
73656         * tests/test-wctype.c: Likewise.
73657         * tests/test-wcwidth.c: Likewise.
73658         * tests/test-xfprintf-posix.c: Likewise.
73659         * tests/test-xmemdup0.c: Likewise.
73660         * tests/test-xprintf-posix.c: Likewise.
73661         * tests/test-xvasprintf.c: Likewise.
73662         * tests/unicase/test-locale-language.c: Likewise.
73663         * tests/unicase/test-mapping-part1.h: Likewise.
73664         * tests/unicase/test-predicate-part1.h: Likewise.
73665         * tests/unicase/test-u8-casecmp.c: Likewise.
73666         * tests/unicase/test-u8-casecoll.c: Likewise.
73667         * tests/unicase/test-u8-casefold.c: Likewise.
73668         * tests/unicase/test-u8-is-cased.c: Likewise.
73669         * tests/unicase/test-u8-is-casefolded.c: Likewise.
73670         * tests/unicase/test-u8-is-lowercase.c: Likewise.
73671         * tests/unicase/test-u8-is-titlecase.c: Likewise.
73672         * tests/unicase/test-u8-is-uppercase.c: Likewise.
73673         * tests/unicase/test-u8-tolower.c: Likewise.
73674         * tests/unicase/test-u8-totitle.c: Likewise.
73675         * tests/unicase/test-u8-toupper.c: Likewise.
73676         * tests/unicase/test-u16-casecmp.c: Likewise.
73677         * tests/unicase/test-u16-casecoll.c: Likewise.
73678         * tests/unicase/test-u16-casefold.c: Likewise.
73679         * tests/unicase/test-u16-is-cased.c: Likewise.
73680         * tests/unicase/test-u16-is-casefolded.c: Likewise.
73681         * tests/unicase/test-u16-is-lowercase.c: Likewise.
73682         * tests/unicase/test-u16-is-titlecase.c: Likewise.
73683         * tests/unicase/test-u16-is-uppercase.c: Likewise.
73684         * tests/unicase/test-u16-tolower.c: Likewise.
73685         * tests/unicase/test-u16-totitle.c: Likewise.
73686         * tests/unicase/test-u16-toupper.c: Likewise.
73687         * tests/unicase/test-u32-casecmp.c: Likewise.
73688         * tests/unicase/test-u32-casecoll.c: Likewise.
73689         * tests/unicase/test-u32-casefold.c: Likewise.
73690         * tests/unicase/test-u32-is-cased.c: Likewise.
73691         * tests/unicase/test-u32-is-casefolded.c: Likewise.
73692         * tests/unicase/test-u32-is-lowercase.c: Likewise.
73693         * tests/unicase/test-u32-is-titlecase.c: Likewise.
73694         * tests/unicase/test-u32-is-uppercase.c: Likewise.
73695         * tests/unicase/test-u32-tolower.c: Likewise.
73696         * tests/unicase/test-u32-totitle.c: Likewise.
73697         * tests/unicase/test-u32-toupper.c: Likewise.
73698         * tests/unicase/test-ulc-casecmp.c: Likewise.
73699         * tests/unicase/test-ulc-casecoll.c: Likewise.
73700         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
73701         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
73702         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
73703         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
73704         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
73705         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
73706         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
73707         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
73708         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
73709         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
73710         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
73711         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
73712         * tests/unictype/test-bidi_byname.c: Likewise.
73713         * tests/unictype/test-bidi_name.c: Likewise.
73714         * tests/unictype/test-bidi_of.c: Likewise.
73715         * tests/unictype/test-bidi_test.c: Likewise.
73716         * tests/unictype/test-block_list.c: Likewise.
73717         * tests/unictype/test-block_of.c: Likewise.
73718         * tests/unictype/test-block_test.c: Likewise.
73719         * tests/unictype/test-categ_and.c: Likewise.
73720         * tests/unictype/test-categ_and_not.c: Likewise.
73721         * tests/unictype/test-categ_byname.c: Likewise.
73722         * tests/unictype/test-categ_name.c: Likewise.
73723         * tests/unictype/test-categ_none.c: Likewise.
73724         * tests/unictype/test-categ_of.c: Likewise.
73725         * tests/unictype/test-categ_or.c: Likewise.
73726         * tests/unictype/test-categ_test_withtable.c: Likewise.
73727         * tests/unictype/test-combining.c: Likewise.
73728         * tests/unictype/test-decdigit.c: Likewise.
73729         * tests/unictype/test-digit.c: Likewise.
73730         * tests/unictype/test-mirror.c: Likewise.
73731         * tests/unictype/test-numeric.c: Likewise.
73732         * tests/unictype/test-pr_byname.c: Likewise.
73733         * tests/unictype/test-pr_test.c: Likewise.
73734         * tests/unictype/test-predicate-part1.h: Likewise.
73735         * tests/unictype/test-scripts.c: Likewise.
73736         * tests/unictype/test-sy_c_ident.c: Likewise.
73737         * tests/unictype/test-sy_java_ident.c: Likewise.
73738         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
73739         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
73740         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
73741         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
73742         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
73743         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
73744         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
73745         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
73746         * tests/uninorm/test-canonical-decomposition.c: Likewise.
73747         * tests/uninorm/test-compat-decomposition.c: Likewise.
73748         * tests/uninorm/test-composition.c: Likewise.
73749         * tests/uninorm/test-decomposing-form.c: Likewise.
73750         * tests/uninorm/test-decomposition.c: Likewise.
73751         * tests/uninorm/test-u8-nfc.c: Likewise.
73752         * tests/uninorm/test-u8-nfd.c: Likewise.
73753         * tests/uninorm/test-u8-nfkc.c: Likewise.
73754         * tests/uninorm/test-u8-nfkd.c: Likewise.
73755         * tests/uninorm/test-u8-normcmp.c: Likewise.
73756         * tests/uninorm/test-u8-normcoll.c: Likewise.
73757         * tests/uninorm/test-u16-nfc.c: Likewise.
73758         * tests/uninorm/test-u16-nfd.c: Likewise.
73759         * tests/uninorm/test-u16-nfkc.c: Likewise.
73760         * tests/uninorm/test-u16-nfkd.c: Likewise.
73761         * tests/uninorm/test-u16-normcmp.c: Likewise.
73762         * tests/uninorm/test-u16-normcoll.c: Likewise.
73763         * tests/uninorm/test-u32-nfc.c: Likewise.
73764         * tests/uninorm/test-u32-nfd.c: Likewise.
73765         * tests/uninorm/test-u32-nfkc.c: Likewise.
73766         * tests/uninorm/test-u32-nfkd.c: Likewise.
73767         * tests/uninorm/test-u32-normalize-big.c: Likewise.
73768         * tests/uninorm/test-u32-normcmp.c: Likewise.
73769         * tests/uninorm/test-u32-normcoll.c: Likewise.
73770         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
73771         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
73772         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
73773         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
73774         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
73775         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
73776         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
73777         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
73778         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
73779         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
73780         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
73781         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
73782         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
73783         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
73784         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
73785         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
73786         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
73787         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
73788         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
73789         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
73790         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
73791         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
73792         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
73793         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
73794         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
73795         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
73796         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
73797         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
73798         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
73799         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
73800         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
73801         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
73802         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
73803         * tests/uniwidth/test-u8-strwidth.c: Likewise.
73804         * tests/uniwidth/test-u8-width.c: Likewise.
73805         * tests/uniwidth/test-u16-strwidth.c: Likewise.
73806         * tests/uniwidth/test-u16-width.c: Likewise.
73807         * tests/uniwidth/test-u32-strwidth.c: Likewise.
73808         * tests/uniwidth/test-u32-width.c: Likewise.
73809         * tests/uniwidth/test-uc_width.c: Likewise.
73810         * tests/uniwidth/test-uc_width2.c: Likewise.
73811         * modules/acl-tests (Files): Add tests/macros.h.
73812         * modules/areadlink-tests (Files): Likewise.
73813         * modules/areadlink-with-size-tests (Files): Likewise.
73814         * modules/areadlinkat-tests (Files): Likewise.
73815         * modules/areadlinkat-with-size-tests (Files): Likewise.
73816         * modules/argmatch-tests (Files): Likewise.
73817         * modules/argv-iter-tests (Files): Likewise.
73818         * modules/array-list-tests (Files): Likewise.
73819         * modules/array-mergesort-tests (Files): Likewise.
73820         * modules/array-oset-tests (Files): Likewise.
73821         * modules/avltree-list-tests (Files): Likewise.
73822         * modules/avltree-oset-tests (Files): Likewise.
73823         * modules/avltreehash-list-tests (Files): Likewise.
73824         * modules/base64-tests (Files): Likewise.
73825         * modules/binary-io-tests (Files): Likewise.
73826         * modules/bitrotate-tests (Files): Likewise.
73827         * modules/btowc-tests (Files): Likewise.
73828         * modules/byteswap-tests (Files): Likewise.
73829         * modules/c-ctype-tests (Files): Likewise.
73830         * modules/c-stack-tests (Files): Likewise.
73831         * modules/c-strcase-tests (Files): Likewise.
73832         * modules/c-strcasestr-tests (Files): Likewise.
73833         * modules/c-strstr-tests (Files): Likewise.
73834         * modules/canonicalize-lgpl-tests (Files): Likewise.
73835         * modules/canonicalize-tests (Files): Likewise.
73836         * modules/carray-list-tests (Files): Likewise.
73837         * modules/ceilf-tests (Files): Likewise.
73838         * modules/ceill-tests (Files): Likewise.
73839         * modules/chown-tests (Files): Likewise.
73840         * modules/cloexec-tests (Files): Likewise.
73841         * modules/copy-file-tests (Files): Likewise.
73842         * modules/count-one-bits-tests (Files): Likewise.
73843         * modules/dprintf-posix-tests (Files): Likewise.
73844         * modules/dup2-tests (Files): Likewise.
73845         * modules/dup3-tests (Files): Likewise.
73846         * modules/duplocale-tests (Files): Likewise.
73847         * modules/fbufmode-tests (Files): Likewise.
73848         * modules/fchdir-tests (Files): Likewise.
73849         * modules/fcntl-safer-tests (Files): Likewise.
73850         * modules/fcntl-tests (Files): Likewise.
73851         * modules/fdopendir-tests (Files): Likewise.
73852         * modules/fdutimensat-tests (Files): Likewise.
73853         * modules/fflush-tests (Files): Likewise.
73854         * modules/filevercmp-tests (Files): Likewise.
73855         * modules/flock-tests (Files): Likewise.
73856         * modules/floorf-tests (Files): Likewise.
73857         * modules/floorl-tests (Files): Likewise.
73858         * modules/fnmatch-tests (Files): Likewise.
73859         * modules/fopen-safer-tests (Files): Likewise.
73860         * modules/fopen-tests (Files): Likewise.
73861         * modules/fpending-tests (Files): Likewise.
73862         * modules/fprintf-posix-tests (Files): Likewise.
73863         * modules/fpurge-tests (Files): Likewise.
73864         * modules/freadable-tests (Files): Likewise.
73865         * modules/freadahead-tests (Files): Likewise.
73866         * modules/freading-tests (Files): Likewise.
73867         * modules/freadptr-tests (Files): Likewise.
73868         * modules/freadseek-tests (Files): Likewise.
73869         * modules/freopen-tests (Files): Likewise.
73870         * modules/frexp-nolibm-tests (Files): Likewise.
73871         * modules/frexp-tests (Files): Likewise.
73872         * modules/frexpl-nolibm-tests (Files): Likewise.
73873         * modules/frexpl-tests (Files): Likewise.
73874         * modules/fseek-tests (Files): Likewise.
73875         * modules/fseeko-tests (Files): Likewise.
73876         * modules/fstrcmp-tests (Files): Likewise.
73877         * modules/fsync-tests (Files): Likewise.
73878         * modules/ftell-tests (Files): Likewise.
73879         * modules/ftello-tests (Files): Likewise.
73880         * modules/func-tests (Files): Likewise.
73881         * modules/futimens-tests (Files): Likewise.
73882         * modules/fwritable-tests (Files): Likewise.
73883         * modules/fwriting-tests (Files): Likewise.
73884         * modules/getcwd-tests (Files): Likewise.
73885         * modules/getdate-tests (Files): Likewise.
73886         * modules/getdelim-tests (Files): Likewise.
73887         * modules/getdtablesize-tests (Files): Likewise.
73888         * modules/getgroups-tests (Files): Likewise.
73889         * modules/getline-tests (Files): Likewise.
73890         * modules/getndelim2-tests (Files): Likewise.
73891         * modules/glob-tests (Files): Likewise.
73892         * modules/hash-tests (Files): Likewise.
73893         * modules/i-ring-tests (Files): Likewise.
73894         * modules/iconv-tests (Files): Likewise.
73895         * modules/iconv_open-utf-tests (Files): Likewise.
73896         * modules/idpriv-drop-tests (Files): Likewise.
73897         * modules/idpriv-droptemp-tests (Files): Likewise.
73898         * modules/inet_ntop-tests (Files): Likewise.
73899         * modules/inet_pton-tests (Files): Likewise.
73900         * modules/isblank-tests (Files): Likewise.
73901         * modules/isfinite-tests (Files): Likewise.
73902         * modules/isinf-tests (Files): Likewise.
73903         * modules/isnan-tests (Files): Likewise.
73904         * modules/isnand-nolibm-tests (Files): Likewise.
73905         * modules/isnand-tests (Files): Likewise.
73906         * modules/isnanf-nolibm-tests (Files): Likewise.
73907         * modules/isnanf-tests (Files): Likewise.
73908         * modules/isnanl-nolibm-tests (Files): Likewise.
73909         * modules/isnanl-tests (Files): Likewise.
73910         * modules/lchown-tests (Files): Likewise.
73911         * modules/ldexpl-tests (Files): Likewise.
73912         * modules/link-tests (Files): Likewise.
73913         * modules/linkat-tests (Files): Likewise.
73914         * modules/linked-list-tests (Files): Likewise.
73915         * modules/linkedhash-list-tests (Files): Likewise.
73916         * modules/localename-tests (Files): Likewise.
73917         * modules/lseek-tests (Files): Likewise.
73918         * modules/lstat-tests (Files): Likewise.
73919         * modules/mbmemcasecmp-tests (Files): Likewise.
73920         * modules/mbmemcasecoll-tests (Files): Likewise.
73921         * modules/mbrtowc-tests (Files): Likewise.
73922         * modules/mbscasecmp-tests (Files): Likewise.
73923         * modules/mbscasestr-tests (Files): Likewise.
73924         * modules/mbschr-tests (Files): Likewise.
73925         * modules/mbscspn-tests (Files): Likewise.
73926         * modules/mbsinit-tests (Files): Likewise.
73927         * modules/mbsncasecmp-tests (Files): Likewise.
73928         * modules/mbsnrtowcs-tests (Files): Likewise.
73929         * modules/mbspbrk-tests (Files): Likewise.
73930         * modules/mbspcasecmp-tests (Files): Likewise.
73931         * modules/mbsrchr-tests (Files): Likewise.
73932         * modules/mbsrtowcs-tests (Files): Likewise.
73933         * modules/mbsspn-tests (Files): Likewise.
73934         * modules/mbsstr-tests (Files): Likewise.
73935         * modules/memchr-tests (Files): Likewise.
73936         * modules/memchr2-tests (Files): Likewise.
73937         * modules/memcmp-tests (Files): Likewise.
73938         * modules/memmem-tests (Files): Likewise.
73939         * modules/memrchr-tests (Files): Likewise.
73940         * modules/mkdir-tests (Files): Likewise.
73941         * modules/mkfifo-tests (Files): Likewise.
73942         * modules/mkfifoat-tests (Files): Likewise.
73943         * modules/mknod-tests (Files): Likewise.
73944         * modules/nanosleep-tests (Files): Likewise.
73945         * modules/nl_langinfo-tests (Files): Likewise.
73946         * modules/obstack-printf-tests (Files): Likewise.
73947         * modules/open-tests (Files): Likewise.
73948         * modules/openat-tests (Files): Likewise.
73949         * modules/pipe-filter-gi-tests (Files): Likewise.
73950         * modules/pipe-filter-ii-tests (Files): Likewise.
73951         * modules/pipe2-tests (Files): Likewise.
73952         * modules/popen-safer-tests (Files): Likewise.
73953         * modules/popen-tests (Files): Likewise.
73954         * modules/posixtm-tests (Files): Likewise.
73955         * modules/pread-tests (Files): Likewise.
73956         * modules/printf-frexp-tests (Files): Likewise.
73957         * modules/printf-frexpl-tests (Files): Likewise.
73958         * modules/printf-posix-tests (Files): Likewise.
73959         * modules/priv-set-tests (Files): Likewise.
73960         * modules/quotearg-tests (Files): Likewise.
73961         * modules/random_r-tests (Files): Likewise.
73962         * modules/rawmemchr-tests (Files): Likewise.
73963         * modules/rbtree-list-tests (Files): Likewise.
73964         * modules/rbtree-oset-tests (Files): Likewise.
73965         * modules/rbtreehash-list-tests (Files): Likewise.
73966         * modules/readlink-tests (Files): Likewise.
73967         * modules/remove-tests (Files): Likewise.
73968         * modules/rename-tests (Files): Likewise.
73969         * modules/renameat-tests (Files): Likewise.
73970         * modules/rmdir-tests (Files): Likewise.
73971         * modules/round-tests (Files): Likewise.
73972         * modules/roundf-tests (Files): Likewise.
73973         * modules/roundl-tests (Files): Likewise.
73974         * modules/safe-alloc-tests (Files): Likewise.
73975         * modules/setenv-tests (Files): Likewise.
73976         * modules/sigaction-tests (Files): Likewise.
73977         * modules/signbit-tests (Files): Likewise.
73978         * modules/sleep-tests (Files): Likewise.
73979         * modules/snprintf-posix-tests (Files): Likewise.
73980         * modules/snprintf-tests (Files): Likewise.
73981         * modules/sprintf-posix-tests (Files): Likewise.
73982         * modules/stat-tests (Files): Likewise.
73983         * modules/stat-time-tests (Files): Likewise.
73984         * modules/strcasestr-tests (Files): Likewise.
73985         * modules/strchrnul-tests (Files): Likewise.
73986         * modules/strerror-tests (Files): Likewise.
73987         * modules/striconv-tests (Files): Likewise.
73988         * modules/striconveh-tests (Files): Likewise.
73989         * modules/striconveha-tests (Files): Likewise.
73990         * modules/strsignal-tests (Files): Likewise.
73991         * modules/strstr-tests (Files): Likewise.
73992         * modules/strtod-tests (Files): Likewise.
73993         * modules/strverscmp-tests (Files): Likewise.
73994         * modules/symlink-tests (Files): Likewise.
73995         * modules/symlinkat-tests (Files): Likewise.
73996         * modules/trunc-tests (Files): Likewise.
73997         * modules/truncf-tests (Files): Likewise.
73998         * modules/truncl-tests (Files): Likewise.
73999         * modules/uname-tests (Files): Likewise.
74000         * modules/unicase/cased-tests (Files): Likewise.
74001         * modules/unicase/ignorable-tests (Files): Likewise.
74002         * modules/unicase/locale-language-tests (Files): Likewise.
74003         * modules/unicase/tolower-tests (Files): Likewise.
74004         * modules/unicase/totitle-tests (Files): Likewise.
74005         * modules/unicase/toupper-tests (Files): Likewise.
74006         * modules/unicase/u8-casecmp-tests (Files): Likewise.
74007         * modules/unicase/u8-casecoll-tests (Files): Likewise.
74008         * modules/unicase/u8-casefold-tests (Files): Likewise.
74009         * modules/unicase/u8-is-cased-tests (Files): Likewise.
74010         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
74011         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
74012         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
74013         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
74014         * modules/unicase/u8-tolower-tests (Files): Likewise.
74015         * modules/unicase/u8-totitle-tests (Files): Likewise.
74016         * modules/unicase/u8-toupper-tests (Files): Likewise.
74017         * modules/unicase/u16-casecmp-tests (Files): Likewise.
74018         * modules/unicase/u16-casecoll-tests (Files): Likewise.
74019         * modules/unicase/u16-casefold-tests (Files): Likewise.
74020         * modules/unicase/u16-is-cased-tests (Files): Likewise.
74021         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
74022         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
74023         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
74024         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
74025         * modules/unicase/u16-tolower-tests (Files): Likewise.
74026         * modules/unicase/u16-totitle-tests (Files): Likewise.
74027         * modules/unicase/u16-toupper-tests (Files): Likewise.
74028         * modules/unicase/u32-casecmp-tests (Files): Likewise.
74029         * modules/unicase/u32-casecoll-tests (Files): Likewise.
74030         * modules/unicase/u32-casefold-tests (Files): Likewise.
74031         * modules/unicase/u32-is-cased-tests (Files): Likewise.
74032         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
74033         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
74034         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
74035         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
74036         * modules/unicase/u32-tolower-tests (Files): Likewise.
74037         * modules/unicase/u32-totitle-tests (Files): Likewise.
74038         * modules/unicase/u32-toupper-tests (Files): Likewise.
74039         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
74040         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
74041         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
74042         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
74043         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
74044         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
74045         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
74046         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
74047         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
74048         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
74049         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
74050         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
74051         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
74052         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
74053         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
74054         * modules/unictype/bidicategory-name-tests (Files): Likewise.
74055         * modules/unictype/bidicategory-of-tests (Files): Likewise.
74056         * modules/unictype/bidicategory-test-tests (Files): Likewise.
74057         * modules/unictype/block-list-tests (Files): Likewise.
74058         * modules/unictype/block-of-tests (Files): Likewise.
74059         * modules/unictype/block-test-tests (Files): Likewise.
74060         * modules/unictype/category-C-tests (Files): Likewise.
74061         * modules/unictype/category-Cc-tests (Files): Likewise.
74062         * modules/unictype/category-Cf-tests (Files): Likewise.
74063         * modules/unictype/category-Cn-tests (Files): Likewise.
74064         * modules/unictype/category-Co-tests (Files): Likewise.
74065         * modules/unictype/category-Cs-tests (Files): Likewise.
74066         * modules/unictype/category-L-tests (Files): Likewise.
74067         * modules/unictype/category-Ll-tests (Files): Likewise.
74068         * modules/unictype/category-Lm-tests (Files): Likewise.
74069         * modules/unictype/category-Lo-tests (Files): Likewise.
74070         * modules/unictype/category-Lt-tests (Files): Likewise.
74071         * modules/unictype/category-Lu-tests (Files): Likewise.
74072         * modules/unictype/category-M-tests (Files): Likewise.
74073         * modules/unictype/category-Mc-tests (Files): Likewise.
74074         * modules/unictype/category-Me-tests (Files): Likewise.
74075         * modules/unictype/category-Mn-tests (Files): Likewise.
74076         * modules/unictype/category-N-tests (Files): Likewise.
74077         * modules/unictype/category-Nd-tests (Files): Likewise.
74078         * modules/unictype/category-Nl-tests (Files): Likewise.
74079         * modules/unictype/category-No-tests (Files): Likewise.
74080         * modules/unictype/category-P-tests (Files): Likewise.
74081         * modules/unictype/category-Pc-tests (Files): Likewise.
74082         * modules/unictype/category-Pd-tests (Files): Likewise.
74083         * modules/unictype/category-Pe-tests (Files): Likewise.
74084         * modules/unictype/category-Pf-tests (Files): Likewise.
74085         * modules/unictype/category-Pi-tests (Files): Likewise.
74086         * modules/unictype/category-Po-tests (Files): Likewise.
74087         * modules/unictype/category-Ps-tests (Files): Likewise.
74088         * modules/unictype/category-S-tests (Files): Likewise.
74089         * modules/unictype/category-Sc-tests (Files): Likewise.
74090         * modules/unictype/category-Sk-tests (Files): Likewise.
74091         * modules/unictype/category-Sm-tests (Files): Likewise.
74092         * modules/unictype/category-So-tests (Files): Likewise.
74093         * modules/unictype/category-Z-tests (Files): Likewise.
74094         * modules/unictype/category-Zl-tests (Files): Likewise.
74095         * modules/unictype/category-Zp-tests (Files): Likewise.
74096         * modules/unictype/category-Zs-tests (Files): Likewise.
74097         * modules/unictype/category-and-not-tests (Files): Likewise.
74098         * modules/unictype/category-and-tests (Files): Likewise.
74099         * modules/unictype/category-byname-tests (Files): Likewise.
74100         * modules/unictype/category-name-tests (Files): Likewise.
74101         * modules/unictype/category-none-tests (Files): Likewise.
74102         * modules/unictype/category-of-tests (Files): Likewise.
74103         * modules/unictype/category-or-tests (Files): Likewise.
74104         * modules/unictype/category-test-withtable-tests (Files): Likewise.
74105         * modules/unictype/combining-class-tests (Files): Likewise.
74106         * modules/unictype/ctype-alnum-tests (Files): Likewise.
74107         * modules/unictype/ctype-alpha-tests (Files): Likewise.
74108         * modules/unictype/ctype-blank-tests (Files): Likewise.
74109         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
74110         * modules/unictype/ctype-digit-tests (Files): Likewise.
74111         * modules/unictype/ctype-graph-tests (Files): Likewise.
74112         * modules/unictype/ctype-lower-tests (Files): Likewise.
74113         * modules/unictype/ctype-print-tests (Files): Likewise.
74114         * modules/unictype/ctype-punct-tests (Files): Likewise.
74115         * modules/unictype/ctype-space-tests (Files): Likewise.
74116         * modules/unictype/ctype-upper-tests (Files): Likewise.
74117         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
74118         * modules/unictype/decimal-digit-tests (Files): Likewise.
74119         * modules/unictype/digit-tests (Files): Likewise.
74120         * modules/unictype/mirror-tests (Files): Likewise.
74121         * modules/unictype/numeric-tests (Files): Likewise.
74122         * modules/unictype/property-alphabetic-tests (Files): Likewise.
74123         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
74124         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
74125         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
74126         Likewise.
74127         * modules/unictype/property-bidi-block-separator-tests (Files):
74128         Likewise.
74129         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
74130         Likewise.
74131         * modules/unictype/property-bidi-common-separator-tests (Files):
74132         Likewise.
74133         * modules/unictype/property-bidi-control-tests (Files): Likewise.
74134         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
74135         Likewise.
74136         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
74137         Likewise.
74138         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
74139         Likewise.
74140         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
74141         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
74142         Likewise.
74143         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
74144         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
74145         Likewise.
74146         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
74147         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
74148         * modules/unictype/property-bidi-segment-separator-tests (Files):
74149         Likewise.
74150         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
74151         * modules/unictype/property-byname-tests (Files): Likewise.
74152         * modules/unictype/property-combining-tests (Files): Likewise.
74153         * modules/unictype/property-composite-tests (Files): Likewise.
74154         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
74155         * modules/unictype/property-dash-tests (Files): Likewise.
74156         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
74157         * modules/unictype/property-default-ignorable-code-point-tests (Files):
74158         Likewise.
74159         * modules/unictype/property-deprecated-tests (Files): Likewise.
74160         * modules/unictype/property-diacritic-tests (Files): Likewise.
74161         * modules/unictype/property-extender-tests (Files): Likewise.
74162         * modules/unictype/property-format-control-tests (Files): Likewise.
74163         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
74164         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
74165         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
74166         * modules/unictype/property-hex-digit-tests (Files): Likewise.
74167         * modules/unictype/property-hyphen-tests (Files): Likewise.
74168         * modules/unictype/property-id-continue-tests (Files): Likewise.
74169         * modules/unictype/property-id-start-tests (Files): Likewise.
74170         * modules/unictype/property-ideographic-tests (Files): Likewise.
74171         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
74172         * modules/unictype/property-ids-trinary-operator-tests (Files):
74173         Likewise.
74174         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
74175         * modules/unictype/property-iso-control-tests (Files): Likewise.
74176         * modules/unictype/property-join-control-tests (Files): Likewise.
74177         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
74178         * modules/unictype/property-line-separator-tests (Files): Likewise.
74179         * modules/unictype/property-logical-order-exception-tests (Files):
74180         Likewise.
74181         * modules/unictype/property-lowercase-tests (Files): Likewise.
74182         * modules/unictype/property-math-tests (Files): Likewise.
74183         * modules/unictype/property-non-break-tests (Files): Likewise.
74184         * modules/unictype/property-not-a-character-tests (Files): Likewise.
74185         * modules/unictype/property-numeric-tests (Files): Likewise.
74186         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
74187         * modules/unictype/property-other-default-ignorable-code-point-tests
74188         (Files): Likewise.
74189         * modules/unictype/property-other-grapheme-extend-tests (Files):
74190         Likewise.
74191         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
74192         * modules/unictype/property-other-id-start-tests (Files): Likewise.
74193         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
74194         * modules/unictype/property-other-math-tests (Files): Likewise.
74195         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
74196         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
74197         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
74198         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
74199         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
74200         * modules/unictype/property-private-use-tests (Files): Likewise.
74201         * modules/unictype/property-punctuation-tests (Files): Likewise.
74202         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
74203         * modules/unictype/property-radical-tests (Files): Likewise.
74204         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
74205         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
74206         * modules/unictype/property-space-tests (Files): Likewise.
74207         * modules/unictype/property-terminal-punctuation-tests (Files):
74208         Likewise.
74209         * modules/unictype/property-test-tests (Files): Likewise.
74210         * modules/unictype/property-titlecase-tests (Files): Likewise.
74211         * modules/unictype/property-unassigned-code-value-tests (Files):
74212         Likewise.
74213         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
74214         * modules/unictype/property-uppercase-tests (Files): Likewise.
74215         * modules/unictype/property-variation-selector-tests (Files): Likewise.
74216         * modules/unictype/property-white-space-tests (Files): Likewise.
74217         * modules/unictype/property-xid-continue-tests (Files): Likewise.
74218         * modules/unictype/property-xid-start-tests (Files): Likewise.
74219         * modules/unictype/property-zero-width-tests (Files): Likewise.
74220         * modules/unictype/scripts-tests (Files): Likewise.
74221         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
74222         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
74223         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
74224         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
74225         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
74226         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
74227         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
74228         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
74229         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
74230         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
74231         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
74232         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
74233         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
74234         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
74235         * modules/uninorm/composition-tests (Files): Likewise.
74236         * modules/uninorm/decomposing-form-tests (Files): Likewise.
74237         * modules/uninorm/decomposition-tests (Files): Likewise.
74238         * modules/uninorm/filter-tests (Files): Likewise.
74239         * modules/uninorm/nfc-tests (Files): Likewise.
74240         * modules/uninorm/nfd-tests (Files): Likewise.
74241         * modules/uninorm/nfkc-tests (Files): Likewise.
74242         * modules/uninorm/nfkd-tests (Files): Likewise.
74243         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
74244         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
74245         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
74246         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
74247         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
74248         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
74249         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
74250         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
74251         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
74252         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
74253         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
74254         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
74255         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
74256         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
74257         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
74258         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
74259         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
74260         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
74261         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
74262         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
74263         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
74264         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
74265         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
74266         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
74267         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
74268         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
74269         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
74270         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
74271         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
74272         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
74273         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
74274         * modules/uniwidth/u8-width-tests (Files): Likewise.
74275         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
74276         * modules/uniwidth/u16-width-tests (Files): Likewise.
74277         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
74278         * modules/uniwidth/u32-width-tests (Files): Likewise.
74279         * modules/uniwidth/width-tests (Files): Likewise.
74280         * modules/unlink-tests (Files): Likewise.
74281         * modules/unsetenv-tests (Files): Likewise.
74282         * modules/usleep-tests (Files): Likewise.
74283         * modules/utimens-tests (Files): Likewise.
74284         * modules/utimensat-tests (Files): Likewise.
74285         * modules/vasnprintf-posix-tests (Files): Likewise.
74286         * modules/vasnprintf-tests (Files): Likewise.
74287         * modules/vasprintf-posix-tests (Files): Likewise.
74288         * modules/vasprintf-tests (Files): Likewise.
74289         * modules/vdprintf-posix-tests (Files): Likewise.
74290         * modules/vfprintf-posix-tests (Files): Likewise.
74291         * modules/vprintf-posix-tests (Files): Likewise.
74292         * modules/vsnprintf-posix-tests (Files): Likewise.
74293         * modules/vsnprintf-tests (Files): Likewise.
74294         * modules/vsprintf-posix-tests (Files): Likewise.
74295         * modules/wcrtomb-tests (Files): Likewise.
74296         * modules/wcsnrtombs-tests (Files): Likewise.
74297         * modules/wcsrtombs-tests (Files): Likewise.
74298         * modules/wctype-tests (Files): Likewise.
74299         * modules/wcwidth-tests (Files): Likewise.
74300         * modules/xmemdup0-tests (Files): Likewise.
74301         * modules/xprintf-posix-tests (Files): Likewise.
74302         * modules/xvasprintf-tests (Files): Likewise.
74304 2009-12-24  Eric Blake  <ebb9@byu.net>
74306         test-nanosleep: fix typo
74307         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
74308         patch.
74309         Reported by Bruno Haible.
74311 2009-12-24  Bruno Haible  <bruno@clisp.org>
74313         Reduce namespace pollution on glibc systems.
74314         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
74315         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
74316         systems.
74317         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
74318         <getopt.h> on glibc systems.
74319         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
74320         systems.
74321         * lib/fcntl.c: Include <unistd.h> here instead.
74323 2009-12-24  Bruno Haible  <bruno@clisp.org>
74325         * lib/stdlib.in.h (includes): Fix typo in today's commit.
74327 2009-12-24  Eric Blake  <ebb9@byu.net>
74329         tests: add signature checks
74330         * tests/signature.h (SIGNATURE_CHECK): New file.
74331         * modules/atexit-tests (Files): Use it.
74332         * modules/btowc-tests (Files): Likewise.
74333         * modules/canonicalize-lgpl-tests (Files): Likewise.
74334         * modules/ceilf-tests (Files): Likewise.
74335         * modules/ceill-tests (Files): Likewise.
74336         * modules/chown-tests (Files): Likewise.
74337         * modules/dprintf-posix-tests (Files): Likewise.
74338         * modules/dup2-tests (Files): Likewise.
74339         * modules/dup3-tests (Files): Likewise.
74340         * modules/duplocale-tests (Files): Likewise.
74341         * modules/fchdir-tests (Files): Likewise.
74342         * modules/fcntl-tests (Files): Likewise.
74343         * modules/fdopendir-tests (Files): Likewise.
74344         * modules/fflush-tests (Files): Likewise.
74345         * modules/flock-tests (Files): Likewise.
74346         * modules/floorf-tests (Files): Likewise.
74347         * modules/floorl-tests (Files): Likewise.
74348         * modules/fnmatch-tests (Files): Likewise.
74349         * modules/fopen-tests (Files): Likewise.
74350         * modules/fprintf-posix-tests (Files): Likewise.
74351         * modules/freopen-tests (Files): Likewise.
74352         * modules/frexp-nolibm-tests (Files): Likewise.
74353         * modules/frexp-tests (Files): Likewise.
74354         * modules/frexpl-nolibm-tests (Files): Likewise.
74355         * modules/frexpl-tests (Files): Likewise.
74356         * modules/fseek-tests (Files): Likewise.
74357         * modules/fseeko-tests (Files): Likewise.
74358         * modules/fsync-tests (Files): Likewise.
74359         * modules/ftell-tests (Files): Likewise.
74360         * modules/ftello-tests (Files): Likewise.
74361         * modules/futimens-tests (Files): Likewise.
74362         * modules/getaddrinfo-tests (Files): Likewise.
74363         * modules/getcwd-tests (Files): Likewise.
74364         * modules/getdelim-tests (Files): Likewise.
74365         * modules/getdtablesize-tests (Files): Likewise.
74366         * modules/getgroups-tests (Files): Likewise.
74367         * modules/gethostname-tests (Files): Likewise.
74368         * modules/getline-tests (Files): Likewise.
74369         * modules/getopt-posix-tests (Files): Likewise.
74370         * modules/gettimeofday-tests (Files): Likewise.
74371         * modules/glob-tests (Files): Likewise.
74372         * modules/iconv-tests (Files): Likewise.
74373         * modules/inet_ntop-tests (Files): Likewise.
74374         * modules/inet_pton-tests (Files): Likewise.
74375         * modules/isblank-tests (Files): Likewise.
74376         * modules/lchown-tests (Files): Likewise.
74377         * modules/ldexpl-tests (Files): Likewise.
74378         * modules/link-tests (Files): Likewise.
74379         * modules/linkat-tests (Files): Likewise.
74380         * modules/lseek-tests (Files): Likewise.
74381         * modules/lstat-tests (Files): Likewise.
74382         * modules/mbrtowc-tests (Files): Likewise.
74383         * modules/mbsinit-tests (Files): Likewise.
74384         * modules/mbsnrtowcs-tests (Files): Likewise.
74385         * modules/mbsrtowcs-tests (Files): Likewise.
74386         * modules/memchr-tests (Files): Likewise.
74387         * modules/memcmp-tests (Files): Likewise.
74388         * modules/memmem-tests (Files): Likewise.
74389         * modules/memrchr-tests (Files): Likewise.
74390         * modules/mkdir-tests (Files): Likewise.
74391         * modules/mkfifo-tests (Files): Likewise.
74392         * modules/mkfifoat-tests (Files): Likewise.
74393         * modules/mknod-tests (Files): Likewise.
74394         * modules/nanosleep-tests (Files): Likewise.
74395         * modules/nl_langinfo-tests (Files): Likewise.
74396         * modules/obstack-printf-tests (Files): Likewise.
74397         * modules/open-tests (Files): Likewise.
74398         * modules/openat-tests (Files): Likewise.
74399         * modules/perror-tests (Files): Likewise.
74400         * modules/pipe2-tests (Files): Likewise.
74401         * modules/poll-tests (Files): Likewise.
74402         * modules/popen-tests (Files): Likewise.
74403         * modules/posix_spawn-tests (Files): Likewise.
74404         * modules/posix_spawnp-tests (Files): Likewise.
74405         * modules/pread-tests (Files): Likewise.
74406         * modules/printf-posix-tests (Files): Likewise.
74407         * modules/pty-tests (Files): Likewise.
74408         * modules/random_r-tests (Files): Likewise.
74409         * modules/rawmemchr-tests (Files): Likewise.
74410         * modules/readlink-tests (Files): Likewise.
74411         * modules/remove-tests (Files): Likewise.
74412         * modules/rename-tests (Files): Likewise.
74413         * modules/renameat-tests (Files): Likewise.
74414         * modules/rmdir-tests (Files): Likewise.
74415         * modules/round-tests (Files): Likewise.
74416         * modules/roundf-tests (Files): Likewise.
74417         * modules/roundl-tests (Files): Likewise.
74418         * modules/select-tests (Files): Likewise.
74419         * modules/setenv-tests (Files): Likewise.
74420         * modules/sigaction-tests (Files): Likewise.
74421         * modules/sleep-tests (Files): Likewise.
74422         * modules/snprintf-posix-tests (Files): Likewise.
74423         * modules/snprintf-tests (Files): Likewise.
74424         * modules/sprintf-posix-tests (Files): Likewise.
74425         * modules/stat-tests (Files): Likewise.
74426         * modules/strcasestr-tests (Files): Likewise.
74427         * modules/strchrnul-tests (Files): Likewise.
74428         * modules/strerror-tests (Files): Likewise.
74429         * modules/strsignal-tests (Files): Likewise.
74430         * modules/strstr-tests (Files): Likewise.
74431         * modules/strtod-tests (Files): Likewise.
74432         * modules/strverscmp-tests (Files): Likewise.
74433         * modules/symlink-tests (Files): Likewise.
74434         * modules/symlinkat-tests (Files): Likewise.
74435         * modules/times-tests (Files): Likewise.
74436         * modules/trunc-tests (Files): Likewise.
74437         * modules/truncf-tests (Files): Likewise.
74438         * modules/truncl-tests (Files): Likewise.
74439         * modules/tsearch-tests (Files): Likewise.
74440         * modules/uname-tests (Files): Likewise.
74441         * modules/unlink-tests (Files): Likewise.
74442         * modules/unsetenv-tests (Files): Likewise.
74443         * modules/usleep-tests (Files): Likewise.
74444         * modules/utimensat-tests (Files): Likewise.
74445         * modules/vasprintf-tests (Files): Likewise.
74446         * modules/vdprintf-posix-tests (Files): Likewise.
74447         * modules/vfprintf-posix-tests (Files): Likewise.
74448         * modules/vprintf-posix-tests (Files): Likewise.
74449         * modules/vsnprintf-posix-tests (Files): Likewise.
74450         * modules/vsnprintf-tests (Files): Likewise.
74451         * modules/vsprintf-posix-tests (Files): Likewise.
74452         * modules/wcrtomb-tests (Files): Likewise.
74453         * modules/wcsnrtombs-tests (Files): Likewise.
74454         * modules/wcsrtombs-tests (Files): Likewise.
74455         * modules/wcwidth-tests (Files): Likewise.
74456         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
74457         * tests/test-isinf.c (isinf): Likewise.
74458         * tests/test-isnan.c (isnan): Likewise.
74459         * tests/test-signbit.c (signbit): Likewise.
74460         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
74461         declaration, either as macro or with correct signature.
74462         (select): Ensure function under test is declared with correct
74463         signature in correct header.
74464         * tests/test-atexit.c (atexit): Likewise.
74465         * tests/test-btowc.c (btowc): Likewise.
74466         * tests/test-canonicalize-lgpl.c (realpath)
74467         (canonicalize_file_name): Likewise.
74468         * tests/test-ceilf1.c (ceilf): Likewise.
74469         * tests/test-ceill.c (ceill): Likewise.
74470         * tests/test-chown.c (chown): Likewise.
74471         * tests/test-dprintf-posix.c (dprintf): Likewise.
74472         * tests/test-dup2.c (dup2): Likewise.
74473         * tests/test-dup3.c (dup3): Likewise.
74474         * tests/test-duplocale.c (duplocale): Likewise.
74475         * tests/test-fchdir.c (fchdir): Likewise.
74476         * tests/test-fchownat.c (fchownat): Likewise.
74477         * tests/test-fcntl.c (fcntl): Likewise.
74478         * tests/test-fdopendir.c (fdopendir): Likewise.
74479         * tests/test-fflush.c (fflush): Likewise.
74480         * tests/test-flock.c (flock): Likewise.
74481         * tests/test-floorf1.c (floorf): Likewise.
74482         * tests/test-floorl.c (floorl): Likewise.
74483         * tests/test-fnmatch.c (fnmatch): Likewise.
74484         * tests/test-fopen.c (fopen): Likewise.
74485         * tests/test-fprintf-posix.c (fprintf): Likewise.
74486         * tests/test-freopen.c (freopen): Likewise.
74487         * tests/test-frexp.c (frexp): Likewise.
74488         * tests/test-frexpl.c (frexpl): Likewise.
74489         * tests/test-fseek.c (fseek): Likewise.
74490         * tests/test-fseeko.c (fseeko): Likewise.
74491         * tests/test-fstatat.c (fstatat): Likewise.
74492         * tests/test-fsync.c (fsync): Likewise.
74493         * tests/test-ftell.c (ftell): Likewise.
74494         * tests/test-ftello.c (ftello): Likewise.
74495         * tests/test-futimens.c (futimens): Likewise.
74496         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
74497         (gai_strerror): Likewise.
74498         * tests/test-getcwd.c (getcwd): Likewise.
74499         * tests/test-getdelim.c (getdelim): Likewise.
74500         * tests/test-getdtablesize.c (getdtablesize): Likewise.
74501         * tests/test-getgroups.c (getgroups): Likewise.
74502         * tests/test-gethostname.c (gethostname): Likewise.
74503         * tests/test-getline.c (getline): Likewise.
74504         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
74505         Likewise.
74506         * tests/test-gettimeofday.c (gettimeofday): Likewise.
74507         * tests/test-glob.c (glob, globfree): Likewise.
74508         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
74509         * tests/test-inet_ntop.c (inet_ntop): Likewise.
74510         * tests/test-inet_pton.c (inet_pton): Likewise.
74511         * tests/test-isblank.c (isblank): Likewise.
74512         * tests/test-lchown.c (lchown): Likewise.
74513         * tests/test-ldexpl.c (ldexpl): Likewise.
74514         * tests/test-link.c (link): Likewise.
74515         * tests/test-linkat.c (linkat): Likewise.
74516         * tests/test-lseek.c (lseek): Likewise.
74517         * tests/test-lstat.c (lstat): Likewise.
74518         * tests/test-mbrtowc.c (mbrtowc): Likewise.
74519         * tests/test-mbsinit.c (mbsinit): Likewise.
74520         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
74521         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
74522         * tests/test-memchr.c (memchr): Likewise.
74523         * tests/test-memcmp.c (memcmp): Likewise.
74524         * tests/test-memmem.c (memmem): Likewise.
74525         * tests/test-memrchr.c (memrchr): Likewise.
74526         * tests/test-mkdir.c (mkdir): Likewise.
74527         * tests/test-mkdirat.c (mkdirat): Likewise.
74528         * tests/test-mkfifo.c (mkfifo): Likewise.
74529         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
74530         * tests/test-mknod.c (mknod): Likewise.
74531         * tests/test-nanosleep.c (nanosleep): Likewise.
74532         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
74533         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
74534         Likewise.
74535         * tests/test-open.c (open): Likewise.
74536         * tests/test-openat.c (openat): Likewise.
74537         * tests/test-perror.c (perror): Likewise.
74538         * tests/test-pipe2.c (pipe2): Likewise.
74539         * tests/test-poll.c (poll): Likewise.
74540         * tests/test-popen.c (popen, pclose): Likewise.
74541         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
74542         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
74543         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
74544         (posix_spawn_file_actions_destroy)
74545         (posix_spawn_file_actions_addclose)
74546         (posix_spawn_file_actions_addopen)
74547         (posix_spawn_file_actions_adddup2): Likewise.
74548         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
74549         * tests/test-pread.c (pread): Likewise.
74550         * tests/test-printf-posix.c (printf): Likewise.
74551         * tests/test-pty.c (openpty, forkpty): Likewise.
74552         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
74553         (random_r): Likewise.
74554         * tests/test-rawmemchr.c (rawmemchr): Likewise.
74555         * tests/test-readlink.c (readlink): Likewise.
74556         * tests/test-remove.c (remove): Likewise.
74557         * tests/test-rename.c (rename): Likewise.
74558         * tests/test-renameat.c (renameat): Likewise.
74559         * tests/test-rmdir.c (rmdir): Likewise.
74560         * tests/test-round1.c (round): Likewise.
74561         * tests/test-roundf1.c (roundf): Likewise.
74562         * tests/test-roundl.c (roundl): Likewise.
74563         * tests/test-setenv.c (setenv): Likewise.
74564         * tests/test-sigaction.c (sigaction): Likewise.
74565         * tests/test-sleep.c (sleep): Likewise.
74566         * tests/test-snprintf.c (snprintf): Likewise.
74567         * tests/test-sprintf-posix.c (sprintf): Likewise.
74568         * tests/test-stat.c (stat): Likewise.
74569         * tests/test-stpncpy.c (stpncpy): Likewise.
74570         * tests/test-strcasestr.c (strcasestr): Likewise.
74571         * tests/test-strchrnul.c (strchrnul): Likewise.
74572         * tests/test-strerror.c (strerror): Likewise.
74573         * tests/test-strsignal.c (strsignal): Likewise.
74574         * tests/test-strstr.c (strstr): Likewise.
74575         * tests/test-strtod.c (strtod): Likewise.
74576         * tests/test-strverscmp.c (strverscmp): Likewise.
74577         * tests/test-symlink.c (symlink): Likewise.
74578         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
74579         * tests/test-times.c (times): Likewise.
74580         * tests/test-trunc1.c (trunc): Likewise.
74581         * tests/test-truncf1.c (truncf): Likewise.
74582         * tests/test-truncl.c (truncl): Likewise.
74583         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
74584         Likewise.
74585         * tests/test-uname.c (uname): Likewise.
74586         * tests/test-unlink.c (unlink): Likewise.
74587         * tests/test-unlinkat.c (unlinkat): Likewise.
74588         * tests/test-unsetenv.c (unsetenv): Likewise.
74589         * tests/test-usleep.c (usleep): Likewise.
74590         * tests/test-utimensat.c (utimensat): Likewise.
74591         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
74592         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
74593         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
74594         * tests/test-vprintf-posix.c (vprintf): Likewise.
74595         * tests/test-vsnprintf.c (vsnprintf): Likewise.
74596         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
74597         * tests/test-wcrtomb.c (wcrtomb): Likewise.
74598         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
74599         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
74600         * tests/test-wcwidth.c (wcwidth): Likewise.
74602         build: pull in conditional headers during GNULIB_POSIXCHECK
74603         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
74604         definitions from any conditionally-included headers.
74605         * lib/stdlib.in.h (includes): Likewise.
74606         * lib/unistd.in.h (includes): Likewise.
74608 2009-12-24  Bruno Haible  <bruno@clisp.org>
74610         * tests/test-argv-iter.c: Include header file being tested immediately
74611         after config.h.
74612         * tests/test-base64.c: Likewise.
74613         * tests/test-flock.c: Likewise.
74614         * tests/test-fsync.c: Likewise.
74615         * tests/test-getdate.c: Likewise.
74616         * tests/test-getndelim2.c: Likewise.
74617         * tests/test-isfinite.c: Likewise.
74618         * tests/test-isinf.c: Likewise.
74619         * tests/test-strerror.c: Likewise.
74620         * tests/test-strsignal.c: Likewise.
74622 2009-12-23  Eric Blake  <ebb9@byu.net>
74624         unistd: work around cygwin bug
74625         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
74626         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
74627         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
74629 2009-12-23  Bruno Haible  <bruno@clisp.org>
74631         localename: More tests.
74632         * tests/test-localename.c (SIZEOF): New macro.
74633         (categories): New variable.
74634         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
74635         test_locale_name_default): Add test w.r.t. thread locale.
74636         (test_locale_name_thread): New function.
74637         (main): Invoke it.
74639         localename: Make aware of thread locale.
74640         * lib/localename.h (gl_locale_name_thread): New declaration.
74641         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
74642         behaviour with respect to thread locale.
74643         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
74644         <langinfo.h>, glthread/lock.h.
74645         (SIZE_BITS): New macro.
74646         (string_hash): New function.
74647         (struct hash_node): New type.
74648         (HASH_TABLE_SIZE): New macro.
74649         (struniq_hash_table, struniq_lock): New variables.
74650         (struniq): New function.
74651         (gl_locale_name_thread): New function.
74652         (gl_locale_name): Invoke it.
74653         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
74654         * modules/localename (Depends-on): Add lock.
74655         Reported by Mike Gran <spk121@yahoo.com>.
74657 2009-12-23  Eric Blake  <ebb9@byu.net>
74659         va-args: new module
74660         * modules/va-args: New file.
74661         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
74662         * MODULES.html.sh (Core language properties): Mention it.
74664         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
74665         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
74666         named alias for __attribute__((__unused__)).
74667         * lib/chown.c: Update client.
74668         * lib/fchmodat.c: Likewise.
74669         * lib/fts.c: Likewise.
74670         * lib/getdate.y: Likewise.
74671         * lib/getgroups.c: Likewise.
74672         * lib/getopt.c: Likewise.
74673         * lib/getugroups.c: Likewise.
74674         * lib/mkdir.c: Likewise.
74675         * lib/mkfifo.c: Likewise.
74676         * lib/mkfifoat.c: Likewise.
74677         * lib/mknod.c: Likewise.
74678         * lib/mknodat.c: Likewise.
74679         * lib/readlink.c: Likewise.
74680         * lib/se-context.in.h: Likewise.
74681         * lib/se-selinux.in.h: Likewise.
74682         * lib/sockets.c: Likewise.
74683         * lib/symlink.c: Likewise.
74684         * lib/symlinkat.c: Likewise.
74685         * lib/unicodeio.c: Likewise.
74686         * lib/unistr.h: Likewise.
74687         * tests/test-areadlink.c: Likewise.
74688         * tests/test-areadlinkat.c: Likewise.
74689         * tests/test-filenamecat.c: Likewise.
74690         * tests/test-fseeko.c: Likewise.
74691         * tests/test-ftello.c: Likewise.
74692         * tests/test-getdate.c: Likewise.
74693         * tests/test-getgroups.c: Likewise.
74694         * tests/test-gethostname.c: Likewise.
74695         * tests/test-quotearg.c: Likewise.
74696         * tests/test-version-etc.c: Likewise.
74697         * tests/test-xalloc-die.c: Likewise.
74698         * tests/test-xfprintf-posix.c: Likewise.
74699         * tests/test-xprintf-posix.c: Likewise.
74700         * tests/test-xvasprintf.c: Likewise.
74702         tests: avoid compiler warnings
74703         * tests/test-fcntl.c (main): Delete unused parameters.
74704         * tests/test-freopen-safer.c (main): Likewise.
74705         * tests/test-xalloc-die.c (main): Mark unused parameters.
74706         * tests/test-fseeko.c (main): Likewise.
74707         * tests/test-ftello.c (main): Likewise.
74708         * tests/test-nanosleep.c (main): Avoid declaration warning.
74709         * tests/test-sleep.c (main): Likewise.
74710         * tests/test-unsetenv.c (main): Silence warning about string
74711         literal.
74712         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
74714 2009-12-23  Bruno Haible  <bruno@clisp.org>
74716         * tests/test-localename.c (test_locale_name): New function, extracted
74717         from main. Also test mixed situations.
74718         (test_locale_name_posix, test_locale_name_environ,
74719         test_locale_name_default): New functions.
74720         (main): Invoke them all.
74721         * modules/localename-tests (configure.ac): Test for newlocale.
74723 2009-12-23  Bruno Haible  <bruno@clisp.org>
74725         unistd: Ensure getcwd gets declared before being overridden.
74726         * lib/unistd.in.h: Conditionally include <io.h>.
74728 2009-12-22  Bruno Haible  <bruno@clisp.org>
74730         wchar: Diagnose broken combination of glibc and gcc versions and flags.
74731         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
74732         (gl_WCHAR_H): Invoke it.
74733         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
74734         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
74735         Reported by Karl Berry <karl@freefriends.org>.
74737 2009-12-22  Eric Blake  <ebb9@byu.net>
74739         math, unistd: avoid redundant includes
74740         * lib/math.in.h (isnan): No need to re-include <math.h>.
74741         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
74743         getsubopt: work around cygwin bug
74744         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
74745         avoid conflicting with system getsubopt.
74746         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
74747         bug.
74749         getopt: synchronize from glibc
74750         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
74751         parameter order.  Adjust all callers.
74752         (_getopt_internal_r, main): Adjust quoting in error messages.
74753         Drop considerations for outdated POSIX 1003.2 error message.
74754         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
74755         callers.
74756         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
74758         test-getopt: test stderr behavior
74759         * modules/getopt-posix-tests (Depends-on): Add dup2.
74760         * tests/test-getopt.c (ASSERT): Avoid stderr.
74761         (main): Move stderr to a temporary file.
74762         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
74763         Instead, add parameter to inform caller if output occurred.
74764         (test_getopt): Adjust all existing tests to expect silence, and
74765         add new tests of leading ":".
74766         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
74767         glibc shortcomings with leading "-:" or "+:" in optstring.
74768         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
74769         Likewise.
74770         * doc/posix-functions/getopt.texi (getopt): Likewise.
74772         test-getopt: enhance test
74773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
74774         supports optind=0.
74775         * tests/test-getopt.c (OPTIND_MIN): Move...
74776         * tests/test-getopt.h (OPTIND_MIN): ...here.
74777         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
74778         Require that optind=0 works, since modern BSD supports it in
74779         addition to optreset, and since coreutils expects it.
74780         (test_getopt_long_only): New test.
74781         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
74782         glibc shortcomings with 'W;', and enforcement of optind=0.
74783         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
74784         Likewise.
74786 2009-12-21  Bruno Haible  <bruno@clisp.org>
74788         localename: Improvements for MacOS X and Cygwin.
74789         * lib/localename.h (gl_locale_name_environ): New declaration.
74790         * lib/localename.c (gl_locale_name_environ): New function, extracted from
74791         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
74792         (gl_locale_name_posix): Invoke it.
74793         (gl_locale_name_default): Add comments. Use Windows native API also on
74794         Cygwin.
74796 2009-12-21  Bruno Haible  <bruno@clisp.org>
74798         Update list of Win32 locale ids.
74799         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
74800         (LANG_SAMI): Renamed from LANG_SAAMI.
74801         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
74802         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
74803         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
74804         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
74805         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
74806         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
74807         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
74808         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
74809         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
74810         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
74811         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
74812         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
74813         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
74814         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
74815         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
74816         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
74817         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
74818         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
74819         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
74820         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
74821         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
74822         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
74823         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
74824         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
74825         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
74826         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
74827         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
74828         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
74829         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
74830         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
74831         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
74832         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
74833         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
74834         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
74835         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
74836         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
74837         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
74838         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
74839         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
74840         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
74841         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
74842         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
74843         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
74844         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
74845         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
74846         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
74847         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
74848         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
74849         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
74850         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
74851         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
74852         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
74853         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
74854         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
74855         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
74856         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
74857         Add more languages and countries for Sami, Sorbian. Add more countries
74858         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
74859         for Pashto. Change country for Syriac, Tswana.
74861 2009-12-21  Eric Blake  <ebb9@byu.net>
74863         test-utimens: avoid spurious failure
74864         * tests/test-chown.h (nap): Factor...
74865         * tests/nap.h: ...into new file.
74866         * tests/test-lchown.h (nap): Avoid duplication.
74867         * tests/test-utimens-common.h (nap): Use shared implementation,
74868         necessary on file systems with 1-second resolution.
74869         * modules/chown-tests (Files): Include new file.
74870         * modules/fdutimensat-tests (Files): Likewise.
74871         * modules/futimens-tests (Files): Likewise.
74872         * modules/lchown-tests (Files): Likewise.
74873         * modules/openat-tests (Files): Likewise.
74874         * modules/utimens-tests (Files): Likewise.
74875         * modules/utimensat-tests (Files): Likewise.
74877 2009-12-19  Eric Blake  <ebb9@byu.net>
74879         futimens, utimensat: work around Linux bug
74880         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
74881         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74882         * lib/utimensat.c (rpl_utimensat): Work around it.
74883         * lib/futimens.c (rpl_futimens): Adjust comment.
74885         utimens: work around Linux ctime bug
74886         * lib/utimens.c (detect_ctime_bug): New helper function.
74887         (update_timespec): Differentiate between workaround needed for
74888         this bug vs. what is needed for systems that lack utimensat.
74889         (fdutimens, lutimens): Work around bug.
74891         utimens: check for ctime update
74892         * tests/test-utimens-common.h (check_ctime): Define.
74893         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
74894         * tests/test-futimens.h (test_futimens): Likewise.
74895         * tests/test-lutimens.h (test_lutimens): Likewise.
74896         * doc/posix-functions/futimens.texi (futimens): Document the bug.
74897         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74899 2009-12-19  Bruno Haible  <bruno@clisp.org>
74901         dprintf-posix: Check against memory leak fixed on 2009-12-15.
74902         * tests/test-dprintf-posix2.sh: New file.
74903         * tests/test-dprintf-posix2.c: New file.
74904         * modules/dprintf-posix-tests (Files): Add them.
74905         (configure.ac): Check for getrlimit and setrlimit.
74906         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
74908 2009-12-19  Bruno Haible  <bruno@clisp.org>
74910         fprintf-posix: Check against memory leak fixed on 2009-12-15.
74911         * tests/test-fprintf-posix3.sh: New file.
74912         * tests/test-fprintf-posix3.c: New file.
74913         * modules/fprintf-posix-tests (Files): Add them.
74914         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
74916 2009-12-19  Eric Blake  <ebb9@byu.net>
74918         dirfd: fix prototype
74919         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
74920         * lib/dirfd.c (dirfd): Likewise.
74922         canonicalize: reduce memory usage
74923         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
74924         allocation to size.
74925         Reported by Solar Designer <solar@openwall.com>.
74927 2009-12-19  Bruno Haible  <bruno@clisp.org>
74929         New module attribute 'Applicability'.
74930         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
74931         * gnulib-tool: New option --extract-applicability.
74932         (func_usage): Document it.
74933         (sed_extract_prog): Recognize it.
74934         (func_get_applicability): New function.
74935         (func_import): Generalize handling of 'link-warning' module.
74936         * modules/link-warning (Applicability): New section.
74937         * modules/arg-nonnull (Applicability): New section.
74938         Repoted by Simon Josefsson <simon@josefsson.org>.
74940 2009-12-19  Bruno Haible  <bruno@clisp.org>
74942         fflush: tweak
74943         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
74944         * lib/fseeko.c (rpl_fseeko): Likewise.
74946 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
74948         * lib/gl_list.h: Fix typo in comment.
74950 2009-12-16  Eric Blake  <ebb9@byu.net>
74952         fcntl: use to simplify other modules
74953         * modules/cloexec (Depends-on): Add fcntl.
74954         * modules/fchdir (Depends-on): Likewise.
74955         * modules/fd-safer-flag (Depends-on): Likewise.
74956         * modules/unistd-safer (Depends-on): Likewise.
74957         * modules/dup3 (configure.ac): Set module indicator.
74958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
74959         missing.
74960         * lib/fchdir.c (_gl_register_dup): Fix comment.
74961         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
74962         * lib/dup-safer.c (dup_safer): Likewise.
74963         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
74964         * lib/dup3.c (dup3): Likewise.
74965         * tests/test-fchdir.c (main): Enhance test.
74966         Fixes a dup_cloexec bug reported by Ondřej Vašík.
74968         fcntl: port portions of fcntl to mingw
74969         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
74970         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
74971         replacement for mingw.
74972         * modules/fcntl (Description): Update.
74973         (Depends-on): Add dup2.
74974         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
74975         * modules/fcntl-h (Makefile.am): Substitute it.
74976         * lib/fcntl.in.h (fcntl): Update declaration.
74977         (F_DUPFD, F_GETFD): New macros, when needed.
74978         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
74979         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
74980         * tests/test-fcntl.c (check_flags, main): Enhance test for items
74981         we now guarantee.
74983         fcntl: work around cygwin bug in F_DUPFD
74984         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
74985         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
74986         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
74987         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
74988         * doc/posix-functions/fcntl.texi (fcntl): Document it.
74990         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
74991         * modules/fcntl (Files): List new files.
74992         (configure.ac): Run a test.
74993         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
74994         * lib/fcntl.c (rpl_fcntl): Likewise.
74995         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
74996         (gl_FCNTL_H): Always replace fcntl.h.
74997         * modules/fcntl-h (Makefile.am): Substitute witnesses.
74998         * lib/fcntl.in.h (fcntl): Declare replacement.
74999         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
75000         needed, plus a witness.
75001         * doc/posix-functions/fcntl.texi (fcntl): Document this.
75002         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
75003         * tests/test-fcntl.c: New file.
75004         * modules/fcntl-tests: Likewise.
75006         binary-io: avoid potential compilation warning
75007         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
75008         directives.
75010         fflush: avoid compilation error on NetBSD
75011         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
75012         between off_t and fpos_t, since the latter is sometimes a struct.
75013         * lib/fseeko.c (rpl_fseeko): Likewise.
75014         Reported by Alexander Nasonov <alnsn@yandex.ru>.
75016 2009-12-15  Eric Blake  <ebb9@byu.net>
75018         fcntl-h, stdio, sys_ioctl: fix declarations
75019         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
75020         function must not take arguments.
75021         * lib/sys_ioctl.in.h (ioctl): Likewise.
75022         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
75023         (open): Add a link warning.
75025 2009-12-15  Jim Meyering  <meyering@redhat.com>
75027         areadlink, areadlink-with-size: relax license to LGPLv2+
75028         * modules/areadlink (License): Relax to LGPLv2+.
75029         * modules/areadlink-with-size (License): Likewise.
75031 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
75032             Bruno Haible  <bruno@clisp.org>
75034         *printf: Fix memory leak.
75035         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
75036         * lib/vfprintf.c (vfprintf): Likewise.
75037         * lib/dprintf.c (dprintf): Likewise.
75038         * lib/vdprintf.c (vdprintf): Likewise.
75040 2009-12-14  Eric Blake  <ebb9@byu.net>
75042         accept4: adjust module dependencies
75043         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
75045         utimens: one more try at avoiding compiler warning
75046         * lib/utimens.c (lutimens): Lower scope of result.
75048 2009-12-13  Bruno Haible  <bruno@clisp.org>
75050         Move the malloc checking from module 'list' to new module 'xlist'.
75051         * modules/xlist: New file.
75052         * lib/gl_xlist.h: New file.
75053         * lib/gl_xlist.c: New file.
75054         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
75055         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
75056         gl_list_add_last, gl_list_add_before, gl_list_add_after,
75057         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
75058         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
75059         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
75060         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
75061         gl_sortedlist_nx_add): New declarations.
75062         (struct gl_list_implementation): Rename and change methods accordingly.
75063         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
75064         (gl_list_nx_create): Renamed from gl_list_create.
75065         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75066         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75067         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75068         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75069         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75070         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75071         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75072         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75073         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
75074         gl_list_create_empty.
75075         (gl_list_nx_create): Renamed from gl_list_create.
75076         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75077         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75078         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75079         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75080         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75081         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75082         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75083         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75084         * lib/gl_array_list.c: Don't include xalloc.h.
75085         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
75086         NULL upon out-of-memory.
75087         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
75088         out-of-memory.
75089         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
75090         Change return type to 'int'.
75091         (gl_array_nx_set_at): Renamed from gl_array_set_at.
75092         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75093         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
75094         upon out-of-memory.
75095         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
75096         upon out-of-memory.
75097         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
75098         upon out-of-memory.
75099         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
75100         upon out-of-memory.
75101         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
75102         out-of-memory.
75103         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
75104         Update.
75105         (gl_array_list_implementation): Update.
75106         * lib/gl_carray_list.c: Don't include xalloc.h.
75107         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
75108         Return NULL upon out-of-memory.
75109         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
75110         out-of-memory.
75111         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
75112         Change return type to 'int'.
75113         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
75114         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75115         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
75116         upon out-of-memory.
75117         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
75118         upon out-of-memory.
75119         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
75120         out-of-memory.
75121         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
75122         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
75123         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
75124         Update.
75125         (gl_carray_list_implementation): Update.
75126         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
75127         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
75128         gl_linked_create_empty. Return NULL upon out-of-memory.
75129         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
75130         out-of-memory.
75131         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
75132         Change return type to 'int'. Return -1 upon out-of-memory.
75133         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
75134         out-of-memory.
75135         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
75136         upon out-of-memory.
75137         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
75138         upon out-of-memory.
75139         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
75140         NULL upon out-of-memory.
75141         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
75142         upon out-of-memory.
75143         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
75144         out-of-memory.
75145         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
75146         Update.
75147         * lib/gl_linked_list.c: Don't include xalloc.h.
75148         (gl_linked_list_implementation): Update.
75149         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
75150         (add_to_bucket): Change return type to 'int'.
75151         (gl_linkedhash_list_implementation): Update.
75152         * lib/gl_anytree_list1.h (free_subtree): New function.
75153         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
75154         gl_tree_create_empty. Return NULL upon out-of-memory.
75155         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
75156         Change return type to 'int'. Return -1 upon out-of-memory.
75157         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
75158         out-of-memory.
75159         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
75160         (gl_tree_remove_node): New function, moved here from
75161         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
75162         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
75163         Update.
75164         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
75165         malloc, not xmalloc. Return NULL upon out-of-memory.
75166         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75167         out-of-memory.
75168         (gl_tree_remove_node_from_tree): New function, extracted from
75169         gl_tree_remove_node.
75170         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75171         upon out-of-memory.
75172         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75173         out-of-memory.
75174         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75175         upon out-of-memory.
75176         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75177         upon out-of-memory.
75178         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75179         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
75180         not xmalloc. Return NULL upon out-of-memory.
75181         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75182         out-of-memory.
75183         (gl_tree_remove_node_from_tree): New function, extracted from
75184         gl_tree_remove_node.
75185         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75186         upon out-of-memory.
75187         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75188         out-of-memory.
75189         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75190         upon out-of-memory.
75191         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75192         upon out-of-memory.
75193         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75194         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
75195         gl_anytree_list1.h before gl_anyavltree_list2.h.
75196         (gl_avltree_list_implementation): Update.
75197         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
75198         gl_anytree_list1.h before gl_anyavltree_list2.h.
75199         (gl_rbtree_list_implementation): Update.
75200         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
75201         Change return type to 'int'. Return -1 upon out-of-memory. Use
75202         __builtin_expect.
75203         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
75204         (gl_avltreehash_list_implementation): Update.
75205         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
75206         (gl_rbtreehash_list_implementation): Update.
75207         * modules/array-list (Depends-on): Remove xalloc.
75208         * modules/carray-list (Depends-on): Likewise.
75209         * modules/linked-list (Depends-on): Likewise.
75210         * modules/linkedhash-list (Depends-on): Likewise.
75211         * modules/avltree-list (Depends-on): Likewise.
75212         * modules/rbtree-list (Depends-on): Likewise.
75213         * modules/avltreehash-list (Depends-on): Likewise.
75214         * modules/rbtreehash-list (Depends-on): Likewise.
75216         * modules/xsublist: New file.
75217         * lib/gl_xsublist.h: New file.
75218         * lib/gl_xsublist.c: New file.
75219         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
75220         (gl_sublist_nx_create): New declaration.
75221         * lib/gl_sublist.c: Don't include xalloc.h.
75222         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
75223         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
75224         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
75225         Change return type to 'int'. Return -1 upon out-of-memory.
75226         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
75227         upon out-of-memory.
75228         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
75229         NULL upon out-of-memory.
75230         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
75231         upon out-of-memory.
75232         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
75233         NULL upon out-of-memory.
75234         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
75235         NULL upon out-of-memory.
75236         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
75237         upon out-of-memory.
75238         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
75239         (gl_sublist_list_implementation): Update.
75240         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
75241         upon out-of-memory.
75242         * modules/sublist (Depends-on): Remove xalloc.
75244         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
75245         * tests/test-carray_list.c: Likewise.
75246         * tests/test-linked_list.c: Likewise.
75247         * tests/test-linkedhash_list.c: Likewise.
75248         * tests/test-avltree_list.c: Likewise.
75249         * tests/test-rbtree_list.c: Likewise.
75250         * tests/test-avltreehash_list.c: Likewise.
75251         * tests/test-rbtreehash_list.c: Likewise.
75252         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
75253         * modules/carray-list-tests (Makefile.am): Likewise.
75254         * modules/linked-list-tests (Makefile.am): Likewise.
75255         * modules/linkedhash-list-tests (Makefile.am): Likewise.
75256         * modules/avltree-list-tests (Makefile.am): Likewise.
75257         * modules/rbtree-list-tests (Makefile.am): Likewise.
75258         * modules/avltreehash-list-tests (Makefile.am): Likewise.
75259         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
75261         * NEWS: Mention the changes.
75263         * lib/clean-temp.c: Include gl_xlist.h.
75264         * modules/clean-temp (Depends-on): Add xlist.
75266         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
75267         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
75269         * tests/test-array_oset.c: Include gl_xlist.h.
75270         * modules/array-oset-tests (Depends-on): Add xlist.
75272         Reported by José E. Marchesi <jemarch@gnu.org>.
75274 2009-12-13  Bruno Haible  <bruno@clisp.org>
75276         Move the malloc checking from module 'oset' to new module 'xoset'.
75277         * modules/xoset: New file.
75278         * lib/gl_xoset.h: New file.
75279         * lib/gl_xoset.c: New file.
75280         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
75281         declarations.
75282         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
75283         (struct gl_oset_implementation): Rename and change methods accordingly.
75284         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
75285         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75286         'int'. Mark as __warn_unused_result__.
75287         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
75288         gl_oset_create_empty.
75289         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75290         'int'.
75291         * lib/gl_array_oset.c: Don't include xalloc.h.
75292         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
75293         malloc, not xmalloc.
75294         (grow): Change return type to 'int'. Don't call xalloc_die.
75295         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
75296         to 'int'.
75297         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
75298         'int'.
75299         (gl_array_oset_implementation): Update.
75300         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
75301         gl_tree_create_empty.
75302         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
75303         'int'.
75304         * lib/gl_avltree_oset.c: Don't include xalloc.h.
75305         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75306         xmalloc.
75307         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75308         not xmalloc.
75309         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75310         xmalloc.
75311         (gl_avltree_oset_implementation): Update.
75312         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
75313         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75314         xmalloc.
75315         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75316         not xmalloc.
75317         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75318         xmalloc.
75319         (gl_rbtree_oset_implementation): Update.
75320         * modules/array-oset (Depends-on): Remove xalloc.
75321         * modules/avltree-oset (Depends-on): Likewise.
75322         * modules/rbtree-oset (Depends-on): Likewise.
75323         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
75324         * tests/test-avltree_oset.c: Likewise.
75325         * tests/test-rbtree_oset.c: Likewise.
75326         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75327         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
75328         * modules/rbtree-oset-tests (Makefile.am): Likewise.
75329         * NEWS: Mention the change.
75331 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
75333         maint.mk: allow a project to override release-prep commands
75334         * top/maint.mk (alpha, beta, stable): Move release-preparatory
75335         commands into a new rule.
75336         (release-prep): New rule.
75337         (release-prep-hook): New overridable variable.
75339 2009-12-13  Bruno Haible  <bruno@clisp.org>
75341         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
75343 2009-12-13  Jim Meyering  <meyering@redhat.com>
75345         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
75346         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
75348 2009-12-12  Bruno Haible  <bruno@clisp.org>
75350         duplocale: Tweak.
75351         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
75353 2009-12-12  Karl Berry  <karl@gnu.org>
75355         * config/srclist.txt (strtoll.c): tab changes, no more sync.
75357 2009-12-12  Bruno Haible  <bruno@clisp.org>
75359         * m4/po.m4: Undo incorrect untabification.
75361 2009-12-12  Bruno Haible  <bruno@clisp.org>
75363         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
75364         * modules/c-strtod (Depends-on): Add locale.
75365         * modules/c-strtold (Depends-on): Likewise.
75367 2009-12-12  Bruno Haible  <bruno@clisp.org>
75369         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
75371 2009-12-11  Eric Blake  <ebb9@byu.net>
75373         setenv: relax requirement in light of POSIX ruling
75374         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
75375         not NULL.
75376         * tests/test-setenv.c (main): Relax test.
75377         * tests/test-unsetenv.c (main): Likewise.
75378         * doc/posix-functions/setenv.texi (setenv): Document this.
75379         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
75381 2009-12-11  Bruno Haible  <bruno@clisp.org>
75383         New module 'fd-safer-flag'.
75384         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
75385         * lib/dup-safer.c (dup_safer_flag): Remove function.
75386         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
75387         * lib/fd-safer.c (fd_safer_flag): Remove function.
75388         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
75389         * modules/cloexec (configure.ac): Drop indicator macro.
75390         * modules/fd-safer-flag: New file.
75391         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
75392         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
75393         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
75395 2009-12-11  Bruno Haible  <bruno@clisp.org>
75397         Tests for module 'nl_langinfo'.
75398         * modules/nl_langinfo-tests: New file.
75399         * tests/test-nl_langinfo.sh: New file.
75400         * tests/test-nl_langinfo.c: New file.
75402         New module 'nl_langinfo'.
75403         * lib/nl_langinfo.c: New file.
75404         * m4/nl_langinfo.m4: New file.
75405         * modules/nl_langinfo: New file.
75406         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
75408 2009-12-11  Bruno Haible  <bruno@clisp.org>
75410         Tests for module 'langinfo'.
75411         * modules/langinfo-tests: New file.
75412         * tests/test-langinfo.c: New file.
75414         New module 'langinfo'.
75415         * lib/langinfo.in.h: New file.
75416         * m4/langinfo_h.m4: New file.
75417         * modules/langinfo: New file.
75418         * doc/posix-headers/langinfo.texi: Mention the new module.
75420 2009-12-11  Bruno Haible  <bruno@clisp.org>
75422         * lib/config.charset: Untabify.
75424 2009-12-11  Bruno Haible  <bruno@clisp.org>
75426         * modules/unistd-safer (configure.ac): Drop indicator macro.
75428 2009-12-11  Bruno Haible  <bruno@clisp.org>
75430         Move pipe2-safer code to its own file.
75431         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
75432         * lib/pipe-safer.c (pipe2_safer): Remove function.
75433         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
75434         (Makefile.am): Add it to lib_SOURCES.
75436 2009-12-10  Bruno Haible  <bruno@clisp.org>
75438         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
75440 2009-12-10  Bruno Haible  <bruno@clisp.org>
75442         Declare which arguments expect non-NULL values, for GCC and clang.
75443         * build-aux/arg-nonnull.h: New file.
75444         * modules/arg-nonnull: New file.
75445         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
75446         (inet_ntop, inet_pton): Use it.
75447         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
75448         (closedir, dirfd, opendir, scandir, alphasort): Use it.
75449         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
75450         (open, openat): Use it.
75451         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
75452         (fnmatch): Use it.
75453         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
75454         (getopt, getopt_long, getopt_long_only): Use it.
75455         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
75456         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
75457         Use it.
75458         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
75459         (iconv_open): Use it.
75460         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
75461         (strtoimax, strtoumax): Use it.
75462         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
75463         (duplocale): Use it.
75464         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
75465         (frexp, frexpl): Use it.
75466         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
75467         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
75468         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
75469         (tsearch, tfind, tdelete, twalk): Use it.
75470         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
75471         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
75472         sigpending): Use it.
75473         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
75474         (posix_spawn, posix_spawnp, posix_spawnattr_init,
75475         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
75476         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
75477         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
75478         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
75479         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
75480         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
75481         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
75482         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
75483         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
75484         Use it.
75485         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
75486         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
75487         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
75488         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
75489         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
75490         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
75491         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
75492         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
75493         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
75494         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
75495         strtoull, unsetenv): Use it.
75496         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
75497         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
75498         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
75499         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
75500         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
75501         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
75502         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
75503         (strcasecmp, strncasecmp): Use it.
75504         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
75505         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
75506         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
75507         rpl_setsockopt): Use it.
75508         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
75509         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
75510         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
75511         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
75512         (gettimeofday): Use it.
75513         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
75514         (times): Use it.
75515         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
75516         (uname): Use it.
75517         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
75518         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
75519         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
75520         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
75521         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
75522         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
75523         unlinkat, write): Use it.
75524         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
75525         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
75526         * lib/argv-iter.h: Include arg-nonnull.h.
75527         (_ATTRIBUTE_NONNULL_): Remove macro.
75528         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
75529         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
75530         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
75531         optimization.
75532         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
75533         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
75534         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
75535         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
75536         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
75537         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
75538         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
75539         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
75540         * modules/arpa_inet (Depends-on): Add arg-nonnull.
75541         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
75542         * modules/dirent (Depends-on): Add arg-nonnull.
75543         (Makefile.am): Insert arg-nonnull.h into dirent.h.
75544         * modules/fcntl-h (Depends-on): Add arg-nonnull.
75545         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
75546         * modules/fnmatch (Depends-on): Add arg-nonnull.
75547         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
75548         * modules/getopt-posix (Depends-on): Add arg-nonnull.
75549         (Makefile.am): Insert arg-nonnull.h into getopt.h.
75550         * modules/glob (Depends-on): Add arg-nonnull.
75551         (Makefile.am): Insert arg-nonnull.h into glob.h.
75552         * modules/iconv_open (Depends-on): Add arg-nonnull.
75553         (Makefile.am): Insert arg-nonnull.h into iconv.h.
75554         * modules/inttypes (Depends-on): Add arg-nonnull.
75555         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
75556         * modules/locale (Depends-on): Add arg-nonnull.
75557         (Makefile.am): Insert arg-nonnull.h into locale.h.
75558         * modules/math (Depends-on): Add arg-nonnull.
75559         (Makefile.am): Insert arg-nonnull.h into math.h.
75560         * modules/netdb (Depends-on): Add arg-nonnull.
75561         (Makefile.am): Insert arg-nonnull.h into netdb.h.
75562         * modules/search (Depends-on): Add arg-nonnull.
75563         (Makefile.am): Insert arg-nonnull.h into search.h.
75564         * modules/signal (Depends-on): Add arg-nonnull.
75565         (Makefile.am): Insert arg-nonnull.h into signal.h.
75566         * modules/spawn (Depends-on): Add arg-nonnull.
75567         (Makefile.am): Insert arg-nonnull.h into spawn.h.
75568         * modules/stdio (Depends-on): Add arg-nonnull.
75569         (Makefile.am): Insert arg-nonnull.h into stdio.h.
75570         * modules/stdlib (Depends-on): Add arg-nonnull.
75571         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
75572         * modules/string (Depends-on): Add arg-nonnull.
75573         (Makefile.am): Insert arg-nonnull.h into string.h.
75574         * modules/strings (Depends-on): Add arg-nonnull.
75575         (Makefile.am): Insert arg-nonnull.h into strings.h.
75576         * modules/sys_socket (Depends-on): Add arg-nonnull.
75577         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
75578         * modules/sys_stat (Depends-on): Add arg-nonnull.
75579         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
75580         * modules/sys_time (Depends-on): Add arg-nonnull.
75581         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
75582         * modules/sys_times (Depends-on): Add arg-nonnull.
75583         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
75584         * modules/sys_utsname (Depends-on): Add arg-nonnull.
75585         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
75586         * modules/time (Depends-on): Add arg-nonnull.
75587         (Makefile.am): Insert arg-nonnull.h into time.h.
75588         * modules/unistd (Depends-on): Add arg-nonnull.
75589         (Makefile.am): Insert arg-nonnull.h into unistd.h.
75590         * modules/wchar (Depends-on): Add arg-nonnull.
75591         (Makefile.am): Insert arg-nonnull.h into wchar.h.
75592         * modules/argv-iter (Depends-on): Add arg-nonnull.
75593         * tests/test-canonicalize.c (null_ptr): New function.
75594         (main): Use it.
75595         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
75596         (main): Use it.
75597         * tests/test-memmem.c (null_ptr): New function.
75598         (main): Use it.
75599         Reported by Jim Meyering.
75601 2009-12-10  Bruno Haible  <bruno@clisp.org>
75603         Use spaces for indentation, not tabs.
75604         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
75605         * m4/*.m4: Untabify.
75606         * build-aux/*.h: Untabify.
75607         * tests/**/*.[hc]: Untabify.
75608         * README: New section "Indent with spaces, not TABs", based on
75609         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
75610         * NEWS: Mention the change.
75612 2009-12-10  Bruno Haible  <bruno@clisp.org>
75614         pty test: Fix link error.
75615         * modules/pty-tests (Makefile.am): Add the default LDADD value to
75616         test_pty_LDADD.
75618 2009-12-07  Simon Josefsson  <simon@josefsson.org>
75620         * modules/pty: New file.
75621         * modules/pty-tests: New file.
75622         * m4/pty.m4: New file.
75623         * tests/test-pty.c: New file.
75624         * doc/glibc-headers/pty.texi: Modified.
75625         * doc/glibc-functions/forkpty.texi: Modified.
75626         * doc/glibc-functions/openpty.texi: Modified.
75628 2009-12-10  Bruno Haible  <bruno@clisp.org>
75630         Avoid syntax error in C++ mode.
75631         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
75633 2009-12-10  Bruno Haible  <bruno@clisp.org>
75635         Use sed with option -e.
75636         * gnulib-tool (func_version, func_emit_copyright_notice,
75637         func_emit_initmacro_end, func_import, func_create_testdir): Pass
75638         option -e to sed.
75639         * modules/link-warning (Makefile.am): Likewise.
75641 2009-12-10  Jim Meyering  <meyering@redhat.com>
75643         mgetgroups: do not write bytes beyond end of malloc'd buffer
75644         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
75645         username, we call getgroups with a one-element-shorter buffer,
75646         but still told it the length was original, max_n_groups.
75648 2009-12-09  Eric Blake  <ebb9@byu.net>
75650         cloexec: relax license
75651         * modules/cloexec (Maintainer): Add myself.
75652         (License): Use LGPL, not GPL.
75654         link-warning: optimize generation
75655         * modules/link-warning (Makefile.am): Reduce process usage.
75657 2009-12-09  Bruno Haible  <bruno@clisp.org>
75659         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
75660         workaround was added on 2009-11-17.
75662 2009-12-09  Jim Meyering  <meyering@redhat.com>
75663             Bruno Haible  <bruno@clisp.org>
75665         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
75666         * modules/link-warning (Makefile.am): Make the comment-removing sed
75667         command more robust in the face of bootstrap-prepended comment lines.
75669 2009-12-09  Bruno Haible  <bruno@clisp.org>
75671         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
75672         most one group.
75674 2009-12-09  Simon Josefsson  <simon@josefsson.org>
75675             Bruno Haible  <bruno@clisp.org>
75677         * build-aux/link-warning.h: Add copyright notice.
75678         * modules/link-warning (Makefile.am): Generate link-warning.h from
75679         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
75680         * NEWS: Mention change in link-warning module.
75681         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
75682         * modules/dirent (Makefile.am): Add dependency to dirent.h.
75683         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
75684         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
75685         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
75686         * modules/math (Makefile.am): Add dependency to math.h.
75687         * modules/search (Makefile.am): Add dependency to search.h.
75688         * modules/signal (Makefile.am): Add dependency to signal.h.
75689         * modules/spawn (Makefile.am): Add dependency to spawn.h.
75690         * modules/stdio (Makefile.am): Add dependency to stdio.h.
75691         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
75692         * modules/string (Makefile.am): Add dependency to string.h.
75693         * modules/strings (Makefile.am): Add dependency to strings.h.
75694         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
75695         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
75696         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
75697         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
75698         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
75699         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
75700         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
75701         * modules/unistd (Makefile.am): Add dependency to unistd.h.
75702         * modules/wchar (Makefile.am): Add dependency to wchar.h.
75704 2009-12-09  Bruno Haible  <bruno@clisp.org>
75706         fchdir: Optimize away rpl_fstat when possible.
75707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
75708         REPLACE_OPEN_DIRECTORY.
75709         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
75711 2009-12-09  Bruno Haible  <bruno@clisp.org>
75713         * lib/fchdir.c: Update comment.
75715 2009-12-09  Bruno Haible  <bruno@clisp.org>
75717         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
75719 2009-12-08  Eric Blake  <ebb9@byu.net>
75721         fchdir: avoid memory leak on re-registration.
75722         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
75724 2009-12-08  Jim Meyering  <meyering@redhat.com>
75726         init.sh: avoid Solaris 10 /bin/sh portability problem
75727         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
75728         sourced script:
75729           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
75730           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
75731           bar
75732         tests/init.sh relied on that, accepting a --set-path=DIR argument,
75733         and two tests used that idiom.
75734         * tests/init.sh: Update suggested usage comments.
75735         (path_prepend_): New function, to be used in place
75736         of the --src-path=DIR option.
75737         (setup_): Move PATH-prepending code into path_prepend_.
75738         * tests/test-pread.sh: Adapt to new usage.
75739         * tests/test-xalloc-die.sh: Likewise.
75741 2009-12-08  Simon Josefsson  <simon@josefsson.org>
75743         * doc/gnulib.texi (Glibc pty.h): Add.
75744         * doc/glibc-functions/forkpty.texi: Add.
75745         * doc/glibc-functions/openpty.texi: Add.
75746         Suggested by Bruno Haible.
75748 2009-12-08  Eric Blake  <ebb9@byu.net>
75750         fchdir: fix logic bugs
75751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
75752         * tests/test-fchdir.c (main): Enhance test.
75753         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
75754         is in use.
75756         dup2: fix logic bugs
75757         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
75758         REPLACE_DUP2 to decide when rpl_dup2 is needed.
75759         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
75760         exists.
75761         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
75763 2009-12-07  Eric Blake  <ebb9@byu.net>
75765         unlink: fix m4 detection
75766         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
75768         unistd-safer: add unit test
75769         * modules/unistd-safer-tests: New file.
75770         * tests/test-dup-safer.c: Likewise.
75771         * tests/test-cloexec.c (setmode): Avoid compiler warning.
75772         * tests/test-dup2.c (setmode): Likewise.
75773         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
75775         cloexec: preserve text vs. binary across dup_cloexec
75776         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
75777         mode.
75778         * modules/dup2-tests (Depends-on): Add binary-io.
75779         * modules/cloexec-tests (Depends-on): Likewise.
75780         * tests/test-dup2.c (setmode, is_mode): New helpers.
75781         (main): Add tests that translation mode is preserved.
75782         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
75783         Reported by Bruno Haible.
75785         mgetgroups: reduce duplicate listings
75786         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
75787         resulting array.
75788         * tests/test-chown.h (test_chown): Simplify client.
75789         * tests/test-lchown.h (test_lchown): Likewise.
75791 2009-12-06  Bruno Haible  <bruno@clisp.org>
75793         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
75794         value.
75796 2009-12-06  Bruno Haible  <bruno@clisp.org>
75798         * lib/progname.c: Include stdio.h, stdlib.h.
75799         (set_program_name): Reject a NULL argument.
75801 2009-12-05  Eric Blake  <ebb9@byu.net>
75803         pipe2-safer: new module
75804         * modules/pipe2-safer: New file.
75805         * lib/unistd-safer.h (pipe2_safer): New prototype.
75806         * lib/unistd--.h (pipe2): New wrapper.
75807         * lib/pipe-safer.c (pipe2_safer): New function.
75808         * modules/pipe (Depends-on): Add pipe2-safer.
75809         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
75811         stdlib-safer: preserve cloexec flag for mkostemp[s]
75812         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
75813         fd_safer_flag.
75815         unistd-safer: allow preservation of cloexec status via flag
75816         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
75817         prototypes.
75818         * lib/dup-safer.c (dup_safer_flag): New function.
75819         * lib/fd-safer.c (fd_safer_flag): Likewise.
75820         * modules/cloexec (configure.ac): Set witness.
75822         test-dup2: enhance test
75823         * modules/dup2-tests (Depends-on): Add cloexec.
75824         * tests/test-dup2.c (main): Enhance test.
75826         cloexec: add dup_cloexec
75827         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
75828         header and comments.
75829         * lib/cloexec.c (set_cloexec_flag): Add comments.
75830         (dup_cloexec): New function, with mingw implementation borrowed
75831         from...
75832         * lib/w32spawn.h (dup_noinherit): ...here.
75833         * modules/execute (Depends-on): Add cloexec.
75834         * modules/pipe (Depends-on): Likewise.
75835         * modules/cloexec (Depends-on): Add dup2.
75836         * modules/cloexec-tests (Files): New file.
75837         * tests/test-cloexec.c: Likewise.
75839         test-xalloc-die: fix test for mingw
75840         * modules/xalloc-die-tests (Files): Add tests/init.sh.
75841         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
75842         directory and .exe suffix off argv[0] output.
75844         test-fseeko: fix test for mingw
75845         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
75846         than undefining fseek, so test will pass on mingw.
75848 2009-12-05  Bruno Haible  <bruno@clisp.org>
75850         * lib/progname.h (set_program_name): Clarify specification.
75851         * lib/progname.c (set_program_name): Likewise.
75852         Reported by Jim Meyering.
75854 2009-12-05  Jim Meyering  <meyering@redhat.com>
75856         maint.mk: backslash-escape parens in default regexp
75857         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
75858         backslash-escape the literal parentheses.
75860         maint.mk: news-date-check: use grep -E
75861         * top/maint.mk (today): Define a Make variable, not a...
75862         (news-date-check): ...shell variable.
75863         (news-date-regexp): Use the Make variable.
75864         Use grep's -E option.  Change the failing diagnostic to mention
75865         the variable, $(news-date-regexp).
75867 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
75869         maintainer-makefile: allow customization of NEWS entry format
75870         * top/maint.mk (news-date-regexp): New overridable variable.
75871         (news-date-check): Use it.
75873 2009-12-04  Eric Blake  <ebb9@byu.net>
75875         mgetgroups: add xgetgroups, and avoid ENOSYS failures
75876         * lib/mgetgroups.h (xgetgroups): New prototype.
75877         * lib/mgetgroups.c (xgetgroups): New wrapper.
75878         (mgetgroups): Handle ENOSYS.
75879         * modules/mgetgroups (Depends-on): Add realloc.
75880         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
75882         mgetgroups: avoid argument promotion issues with -1
75883         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
75884         for invalid gid_t.
75885         * tests/test-chown.h (getegid, test_chown): Likewise.
75886         * tests/test-lchown.h (getegid, test_lchown): Likewise.
75888 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
75890         exclude: Fix header file problems.
75891         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
75893 2009-12-01  Jim Meyering  <meyering@redhat.com>
75895         fts: fts_open: do not let an empty string cause immediate failure
75896         This is required in support of GNU rm, for which the command
75897         "rm A '' B" must process and remove both A and B, in spite of
75898         the empty string argument.
75899         * lib/fts.c (fts_open): Do not let the presence of an empty string
75900         cause fts_open to fail immediately.  Most fts-using tools must be
75901         able to process all arguments, in order, and can be expected to
75902         diagnose such arguments themselves.
75904 2009-11-30  Eric Blake  <ebb9@byu.net>
75906         utimens: fix compilation error
75907         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
75908         Declare variable at right scope.
75910 2009-11-29  Jim Meyering  <meyering@redhat.com>
75912         bootstrap: handle perl-5.11's changed --version output
75913         * build-aux/bootstrap (get_version): Handle perl separately,
75914         since perl-5.11's --version output is different.
75916 2009-11-28  Jim Meyering  <meyering@redhat.com>
75918         userspec: depend on the inttostr module, too
75919         * modules/userspec (Depends-on): Add inttostr.
75921         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
75922         * lib/userspec.c (parse_with_separator): Do not accept a user ID
75923         number of MAXUID when it evaluates to (uid_t) -1.
75924         Likewise for group ID.  Reported by Matt McCutchen in
75925         <http://savannah.gnu.org/bugs/?28113>
75927         userspec: reformat to use spaces, not TABs
75928         * lib/userspec.c: Expand TABs to spaces.
75929         Add Emacs' "indent-tabs-mode: nil" hint.
75931 2009-11-27  Eric Blake  <ebb9@byu.net>
75933         getopt-gnu: flush out another BSD bug
75934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
75935         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
75936         flush out BSD bug.
75937         * tests/test-getopt.h (test_getopt): End lists with NULL.
75938         * tests/test-getopt_long.h (test_getopt_long): Likewise.
75939         (test_getopt_long_posix): Enhance test.
75940         * modules/getopt-posix-tests (Depends-on): Add stdbool.
75941         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
75942         getopt-gnu.
75943         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75944         Likewise.
75946 2009-11-27  Simon Josefsson  <simon@josefsson.org>
75948         * modules/idpriv-droptemp-tests (Notice): Fix text.
75950 2009-11-27  Jim Meyering  <meyering@redhat.com>
75952         test-xalloc-die: avoid spurious failure due to libtool argv difference
75953         In a libtool-enabled project, this test would fail due to a difference
75954         in the emitted program name, e.g.,
75955         -test-xalloc-die: memory exhausted
75956         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
75957         Use program to avoid that.
75958         * modules/xalloc-die-tests (Depends-on): Add progname.
75959         * tests/test-xalloc-die.c: Include progname.h".
75960         (program_name): Remove decl.
75961         (main): Call set_program_name.
75962         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
75964 2009-11-26  Richard Jones  <rjones@redhat.com>
75966         w32sock: leave win32 error in place.
75967         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
75969 2009-11-26  Eric Blake  <ebb9@byu.net>
75971         init.sh: suggest to use skip_ and fail_ functions in comments
75972         * tests/init.sh: Add a sentence.
75974 2009-11-25  Bruno Haible  <bruno@clisp.org>
75976         init.sh: add documentation in comments
75977         * tests/init.sh: Add some developer and user documentation.
75979 2009-11-26  Jim Meyering  <meyering@redhat.com>
75981         init.sh: accommodate even those who specify bogus srcdir manually
75982         * tests/init.sh: Normally, srcdir is guaranteed by automake and
75983         configure-time tests to be sanitized, so that there is no need to
75984         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
75985         (with no double quotes) suffices.  However, since tests may be
75986         invoked manually, and since you may explicitly set srcdir to the
75987         name of a directory containing spaces, do quote its uses here.
75988         * tests/test-pread.sh: Likewise.
75989         Suggested by Bruno Haible.
75991         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
75992         * tests/test-pread.sh: Write no data into the pipe, because
75993         test-pread actually reads none.  This avoids a diagnostic,
75994         "bash: echo: write error: Broken pipe", that arises in the unusual
75995         event something is ignoring SIGPIPE, and might be interpreted
75996         as some sort of failure.  Reported by Bruno Haible.
75998 2009-11-25  Jim Meyering  <meyering@redhat.com>
76000         test-pread: cover failure with ESPIPE and EINVAL
76001         * tests/test-pread.c (main): Test for failure, too.
76002         * tests/test-pread.sh: Invoke with stdin on a pipe.
76003         Suggested by Eric Blake.
76005         pread: improvement and fix
76006         * modules/pread (Depends-on): Depend on lseek, for portability to
76007         e.g., mingw.  Suggested by Eric Blake.
76008         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
76010         unistd.in.h: correct declaration of pread
76011         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
76012         Reported by Richard W.M. Jones.
76014         test-pread.sh: distribute the test script
76015         * modules/pread-tests (Files): Include test-pread.sh.
76017         test-pread.sh: clean up
76018         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
76019         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
76020         That is unnecessary, since it's always ".".
76021         Suggestion from Eric Blake.
76023         test-pread.sh: make executable
76024         * tests/test-pread.sh: Set executable bit.
76025         Reported by Eric Blake.
76027         correct typo in test-pread.sh
76028         * tests/test-pread.sh: Add #! line.
76030         test pread
76031         * tests/test-pread.c: New file.
76032         * tests/test-pread.sh: Likewise.
76033         * modules/pread-tests: Likewise.
76035         pread: new module
76036         * modules/pread: New file.
76037         * lib/unistd.in.h (pread): Define/declare.
76038         * lib/pread.c (pread): New file.
76039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
76040         * modules/unistd (Makefile.am): Substitute witnesses.
76041         * doc/posix-functions/pread.texi (pread): Update.
76042         * MODULES.html.sh: Add pread.
76044 2009-11-25  Jim Meyering  <meyering@redhat.com>
76046         tests/init.sh: new file to be used via most *.sh tests
76047         * tests/init.sh: New file.
76049 2009-11-25  Eric Blake  <ebb9@byu.net>
76051         utimens: work around older Linux failure with symlinks
76052         * lib/utimens.c (lutimensat_works_really): New variable.
76053         (fdutimens, lutimens): Use it to manage kernels that support
76054         nanosecond times on files, but not on symlinks.
76055         Reported by Ondřej Vašík.
76057         utimes: fix configure grammar
76058         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
76060 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
76062         regex: Fix fastmap for multibyte character ranges.
76063         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
76064         characters when a multibyte character range is included.
76066 2009-11-22  Andy Wingo  <wingo@pobox.com>
76068         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
76069         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
76071 2009-11-24  Bruno Haible  <bruno@clisp.org>
76073         doc: Most *_l functions exist in MacOS X 10.5.
76074         * doc/posix-functions/duplocale.texi: Update platforms list.
76075         * doc/posix-functions/freelocale.texi: Likewise.
76076         * doc/posix-functions/newlocale.texi: Likewise.
76077         * doc/posix-functions/uselocale.texi: Likewise.
76078         * doc/posix-functions/isalnum_l.texi: Likewise.
76079         * doc/posix-functions/isalpha_l.texi: Likewise.
76080         * doc/posix-functions/isblank_l.texi: Likewise.
76081         * doc/posix-functions/iscntrl_l.texi: Likewise.
76082         * doc/posix-functions/isdigit_l.texi: Likewise.
76083         * doc/posix-functions/isgraph_l.texi: Likewise.
76084         * doc/posix-functions/islower_l.texi: Likewise.
76085         * doc/posix-functions/isprint_l.texi: Likewise.
76086         * doc/posix-functions/ispunct_l.texi: Likewise.
76087         * doc/posix-functions/isspace_l.texi: Likewise.
76088         * doc/posix-functions/isupper_l.texi: Likewise.
76089         * doc/posix-functions/iswalnum_l.texi: Likewise.
76090         * doc/posix-functions/iswalpha_l.texi: Likewise.
76091         * doc/posix-functions/iswblank_l.texi: Likewise.
76092         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76093         * doc/posix-functions/iswctype_l.texi: Likewise.
76094         * doc/posix-functions/iswdigit_l.texi: Likewise.
76095         * doc/posix-functions/iswgraph_l.texi: Likewise.
76096         * doc/posix-functions/iswlower_l.texi: Likewise.
76097         * doc/posix-functions/iswprint_l.texi: Likewise.
76098         * doc/posix-functions/iswpunct_l.texi: Likewise.
76099         * doc/posix-functions/iswspace_l.texi: Likewise.
76100         * doc/posix-functions/iswupper_l.texi: Likewise.
76101         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76102         * doc/posix-functions/isxdigit_l.texi: Likewise.
76103         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
76104         * doc/posix-functions/strcasecmp_l.texi: Likewise.
76105         * doc/posix-functions/strcoll_l.texi: Likewise.
76106         * doc/posix-functions/strfmon_l.texi: Likewise.
76107         * doc/posix-functions/strftime_l.texi: Likewise.
76108         * doc/posix-functions/strncasecmp_l.texi: Likewise.
76109         * doc/posix-functions/strxfrm_l.texi: Likewise.
76110         * doc/posix-functions/tolower_l.texi: Likewise.
76111         * doc/posix-functions/toupper_l.texi: Likewise.
76112         * doc/posix-functions/towctrans_l.texi: Likewise.
76113         * doc/posix-functions/towlower_l.texi: Likewise.
76114         * doc/posix-functions/towupper_l.texi: Likewise.
76115         * doc/posix-functions/wcscoll_l.texi: Likewise.
76116         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76117         * doc/posix-functions/wctrans_l.texi: Likewise.
76118         * doc/posix-functions/wctype_l.texi: Likewise.
76119         * doc/glibc-functions/strptime_l.texi: Likewise.
76120         * doc/glibc-functions/strtod_l.texi: Likewise.
76121         * doc/glibc-functions/strtof_l.texi: Likewise.
76122         * doc/glibc-functions/strtol_l.texi: Likewise.
76123         * doc/glibc-functions/strtold_l.texi: Likewise.
76124         * doc/glibc-functions/strtoll_l.texi: Likewise.
76125         * doc/glibc-functions/strtoul_l.texi: Likewise.
76126         * doc/glibc-functions/strtoull_l.texi: Likewise.
76127         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76128         * doc/glibc-functions/wcstod_l.texi: Likewise.
76129         * doc/glibc-functions/wcstof_l.texi: Likewise.
76130         * doc/glibc-functions/wcstol_l.texi: Likewise.
76131         * doc/glibc-functions/wcstold_l.texi: Likewise.
76132         * doc/glibc-functions/wcstoll_l.texi: Likewise.
76133         * doc/glibc-functions/wcstoul_l.texi: Likewise.
76134         * doc/glibc-functions/wcstoull_l.texi: Likewise.
76136 2009-11-24  Bruno Haible  <bruno@clisp.org>
76138         duplocale: Fix logic bug.
76139         * lib/duplocale.c: Don't include <langinfo.h>.
76140         (_NL_LOCALE_NAME): Remove macro.
76141         (rpl_duplocale): Use setlocale instead of nl_langinfo.
76142         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
76144 2009-11-23  Jim Meyering  <meyering@redhat.com>
76146         test-update-copyright: don't hard-code /usr/bin/perl
76147         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
76148         perl to print the current year.  Gilles Espinasse reported that
76149         the replaced use of perl was hard-coded as /usr/bin/perl.
76151 2009-11-23  Bruno Haible  <bruno@clisp.org>
76153         duplocale: Add support for glibc 2.3.x.
76154         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
76156 2009-11-22  Bruno Haible  <bruno@clisp.org>
76158         vasnprintf: Tiny optimization.
76159         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
76160         MacOS X.
76162 2009-11-22  Bruno Haible  <bruno@clisp.org>
76164         Tests for module 'duplocale'.
76165         * modules/duplocale-tests: New file.
76166         * tests/test-duplocale.c: New file.
76168         New module 'duplocale'.
76169         * m4/duplocale.m4: New file.
76170         * lib/locale.in.h (duplocale): New declaration.
76171         * lib/duplocale.c: New file.
76172         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
76173         gl_LOCALE_H_DEFAULTS): New macros.
76174         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
76175         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
76176         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
76177         REPLACE_DUPLOCALE.
76178         * modules/duplocale: New file.
76179         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
76181 2009-11-22  Bruno Haible  <bruno@clisp.org>
76183         * modules/locale-tests (configure.ac): Test for newlocale function.
76184         * tests/test-locale.c: When the system has extended locale functions,
76185         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
76187         locale: Make locale_t available when possible.
76188         * lib/locale.in.h: Include <xlocale.h> when it exists.
76189         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
76190         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
76191         * modules/locale (Depends-on): Add extensions.
76192         (Makefile.am): Also substitute HAVE_XLOCALE_H.
76193         * doc/posix-headers/locale.texi: Document the problem with locale_t.
76195 2009-11-22  Bruno Haible  <bruno@clisp.org>
76197         Add comments.
76198         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
76199         invocation.
76200         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
76201         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
76202         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
76204 2009-11-22  Bruno Haible  <bruno@clisp.org>
76206         error: account for the possibility of freopen (stdout).
76207         * lib/error.c: Include <unistd.h>.
76208         (flush_stdout): New function, extracted from error and error_at_line.
76209         Determine stdout's fd dynamically.
76210         (error, error_at_line): Invoke flush_stdout.
76211         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
76212         * modules/error (Depends-on): Add unistd.
76214 2009-11-22  Bruno Haible  <bruno@clisp.org>
76216         diffseq: Add comment.
76217         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
76219 2009-11-22  Jim Meyering  <meyering@redhat.com>
76221         c-stack: avoid defining an unused static function
76222         * lib/c-stack.c (find_stack_direction): Do not define this function
76223         when it will not be used.
76225         diffseq: avoid spurious gcc warnings
76226         * lib/diffseq.h (IF_LINT2): Define.
76227         (compareseq): Use it to initialize two members of "part".
76228         This avoids two used-uninitialized warnings.
76230 2009-11-21  Jim Meyering  <meyering@redhat.com>
76232         c-stack: avoid "ignoring return value of `write'" warning
76233         * lib/c-stack.c: Include "ignore-value.h".
76234         (die): Explicitly ignore each write return value.
76235         * modules/c-stack (Depends-on): Add ignore-value.
76237 2009-11-21  Bruno Haible  <bruno@clisp.org>
76239         diffseq: reduce scope of variable 'best'.
76240         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
76241         variable, earlier used for two different purposes.
76243 2009-11-21  Jim Meyering  <meyering@redhat.com>
76245         diffseq: remove useless assignment to "best"
76246         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
76247         assignment.  At that point "best" is already guaranteed to be zero.
76249 2009-11-20  Eric Blake  <ebb9@byu.net>
76251         build: mention ftp redirector in release announcements
76252         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
76253         values that used to come from cfg.mk; mention FTP redirect URL.
76254         * build-aux/announce-gen: Mention the mirror list.
76255         Suggested by Karl Berry.
76257         nanosleep: improve port to mingw
76258         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
76259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
76260         LIB_NANOSLEEP, but only when needed.
76261         * modules/select (Link): Document LIBSOCKET.
76262         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
76263         enough.
76265         nanosleep: work around cygwin bug
76266         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
76267         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
76268         bug.
76269         (getnow): Delete, not needed.
76270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
76271         LIB_CLOCK_GETTIME.
76272         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
76273         clock-time, gettime.
76274         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
76275         bug.
76276         * modules/nanosleep-tests: New test.
76277         * tests/test-nanosleep.c: New file.
76279         sleep: work around cygwin bug
76280         * lib/sleep.c (rpl_sleep): Work around the bug.
76281         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
76282         (gl_PREREQ_SLEEP): Delete unused macro.
76283         * modules/sleep (Depends-on): Add verify.
76284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76285         * modules/unistd (Makefile.am): Substitute witness.
76286         * lib/unistd.in.h (sleep): Update prototype.
76287         * doc/posix-functions/sleep.texi (sleep): Document the bug.
76288         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
76289         * modules/sleep-tests (Depends-on): Check for alarm.
76291 2009-11-20  Jim Meyering  <meyering@redhat.com>
76293         maint.mk: improve sc_prohibit_magic_number_exit
76294         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
76295         so it does not match uses like System.exit(1).
76296         Add comments showing how to correct all offenders.
76298 2009-11-19  Eric Blake  <ebb9@byu.net>
76300         xalloc-die-tests: add missing library
76301         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
76303         test-xvasprintf: silence compiler warnings
76304         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
76305         empty string from gcc.
76307 2009-11-19  Jim Meyering  <meyering@redhat.com>
76309         xfreopen: new module, from coreutils
76310         * modules/xfreopen: New module.
76311         * lib/xfreopen.c: New file.
76312         * lib/xfreopen.h: New file.
76313         * MODULES.html.sh (File stream based Input/Output"): Add it.
76315 2009-11-19  Eric Blake  <ebb9@byu.net>
76317         manywarnings: depend on warnings
76318         * modules/manywarnings (Depends-on): Add warnings.
76320         build: avoid compiler warnings
76321         * lib/select.c (rpl_select): Delete unused variable.
76322         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
76324 2009-11-18  Eric Blake  <ebb9@byu.net>
76326         tests: avoid false negative with --with-packager
76327         * tests/test-version-etc.sh: Discard packager information.
76328         * tests/test-argp-version-etc-1.sh: Likewise.
76329         Reported by Mike Frysinger.
76331         utimens: fix regression on Solaris
76332         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
76333         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
76334         can only change fd timestamps via futimesat.  Instead, use an
76335         additional witness macro to avoid BSD bug.
76336         Reported by Jim Meyering.
76338 2009-11-17  Eric Blake  <ebb9@byu.net>
76340         usleep: use it to simplify tests
76341         * modules/stat-time-tests (Depends-on): Add usleep.
76342         (configure.ac): Drop usleep check.
76343         * modules/chown-tests (Depends-on, configure.ac): Likewise.
76344         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
76345         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
76346         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
76347         * modules/openat-tests (Depends-on, configure.ac): Likewise.
76348         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
76349         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
76350         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
76351         Likewise.
76352         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
76353         * tests/test-lchown.h (nap): Likewise.
76354         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
76355         * tests/test-stat-time.c (nap): Likewise.
76356         * tests/test-utimens-common.h (nap): Update comments.
76358         usleep: new module
76359         * modules/usleep: New file.
76360         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
76361         * lib/usleep.c (usleep): Likewise.
76362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76363         * modules/unistd (Makefile.am): Substitute witnesses.
76364         * lib/unistd.in.h (usleep): Add declaration.
76365         * doc/pastposix-functions/usleep.texi (usleep): Document this.
76366         * MODULES.html.sh (Date and time): Likewise.
76367         * modules/usleep-tests (Depends-on): New test.
76368         * tests/test-usleep.c: New file.
76370         chown: work around OpenBSD bug
76371         * lib/chown.c (rpl_chown): Work around the bug.
76372         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
76373         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
76374         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
76375         * modules/chown (Depends-on): Add stdbool.
76376         * modules/lchown (Depends-on): Likewise.
76377         * doc/posix-functions/chown.texi (chown): Document the bug.
76378         * doc/posix-functions/lchown.texi (lchown): Likewise.
76379         * tests/test-lchown.h (test_chown): Relax test.
76381         mkstemp: avoid conflict with C++ keyword template
76382         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
76383         * lib/mkostemp.c (mkostemp): Likewise.
76384         * lib/mkostemps.c (mkostemps): Likewise.
76385         * lib/mkstemp.c (mkstemp): Likewise.
76386         * lib/mkstemps.c (mkstemps): Likewise.
76388         xalloc-die-tests: optimize
76389         * tests/test-xalloc-die.sh: Reduce number of processes.
76391 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76393         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
76394         patch from ludo@gnu.org (Ludovic Courtès).
76396 2009-11-17  Jim Meyering  <meyering@redhat.com>
76398         version-etc: use proper license string
76399         * modules/version-etc (License): Use LGPL, not LGPLv3+.
76400         * modules/version-etc-fsf: Likewise.
76402 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76404         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
76405         printed to stdout.  Deal with EOL differences.
76407 2009-11-17  Eric Blake  <ebb9@byu.net>
76409         unsetenv: work around Solaris bug
76410         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
76411         * lib/unsetenv.c (rpl_unsetenv): Work around it.
76412         Reported by Jim Meyering.
76414         vasnprintf: avoid compiler warnings
76415         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
76416         variables.
76417         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
76419 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76421         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
76422         settings since xalloc-die is no longer the self test,
76423         xalloc-die.sh is.
76425 2009-11-17  Jim Meyering  <meyering@redhat.com>
76427         test-xalloc-die.sh: make the code agree with the commit log
76428         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
76429         at the end, just in case you happen to have a test-xalloc-die
76430         program in some other PATH directory.
76432         test-xalloc-die.sh: fix a portability bug
76433         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
76434         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
76435         Otherwise, argv[0] (as often seen in diagnostics) would be too
76436         system-dependent, sometimes with, and sometimes without the leading "./".
76438         version-etc-fsf: relax license to LGPLv3+
76439         * modules/version-etc-fsf (License): Relax license.
76441 2009-11-16  Eric Blake  <ebb9@byu.net>
76443         xalloc-die-tests: avoid printing null pointer
76444         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
76445         shell script.
76446         * tests/test-xalloc-die.c (program_name): Declare.
76447         * tests/test-xalloc-die.sh (tmpfiles): New file.
76449         setenv, unsetenv: work around various bugs
76450         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
76451         (setenv) [HAVE_SETENV]: Work around bugs.
76452         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
76453         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
76454         for bugs.
76455         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
76456         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
76457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
76458         * modules/stdlib (Makefile.am): Update substitutions.
76459         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
76460         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
76461         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76462         * modules/setenv-tests: New test.
76463         * modules/unsetenv-tests: Likewise.
76464         * tests/test-setenv.c: New file.
76465         * tests/test-unsetenv.c: Likewise.
76467 2009-11-16  Jim Meyering  <meyering@redhat.com>
76469         version-etc: relax license to LGPLv3+
76470         * modules/version-etc (License): Relax license.
76472         better AC_REQUIRE expanded-before-required-warning avoidance
76473         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
76474         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
76475         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
76476         which is no longer needed.
76478 2009-11-16  Eric Blake  <ebb9@byu.net>
76480         test-freading: clean up temporary file
76481         * tests/test-freading.c (main): Remove file on success, and use
76482         ASSERT more liberally.
76483         Reported by Jim Meyering.
76485 2009-11-16  Jim Meyering  <meyering@redhat.com>
76487         avoid new AC_REQUIRE expanded-before-required warnings
76488         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
76489         merely using it.
76490         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
76491         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
76493 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76495         * tests/test-xalloc-die.c: New file.
76496         * modules/xalloc-die-tests: New file.
76497         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
76498         XFAIL_TESTS so it can be appended by modules.
76500 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76502         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
76503         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
76505 2009-11-14  Eric Blake  <ebb9@byu.net>
76507         fnmatch: avoid compiler warning
76508         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
76509         to silence compiler warning about mismatch signedness in ?:.
76510         Reported by Robert Millan.
76512         intprops: add double-inclusion guard
76513         * lib/intprops.h: Allow idempotent includes.
76514         Suggested by Bruce Korb.
76516         openat: detect Solaris fchownat bug
76517         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
76518         penalizing glibc chownat when only lchownat is broken.
76519         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
76520         trailing slash bugs.
76521         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
76522         * modules/openat-tests (Files): Include more files.
76523         (Depends-on): Add mgetgroups, sleep, stat-time.
76524         (configure.ac): Add additional checks.
76525         (Makefile.am): Build new test.
76526         * tests/test-fchownat.c: New file.
76528         lchown: detect Solaris and FreeBSD bug
76529         * lib/lchown.c (rpl_lchown): Work around bug.
76530         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
76531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76532         * modules/unistd (Makefile.am): Populate it.
76533         * lib/unistd.in.h (lchown): Update declaration.
76534         * doc/posix-functions/lchown.texi (lchown): Document the bug.
76535         * modules/lchown-tests: New file.
76536         * tests/test-lchown.h (test_lchown): Likewise.
76537         * tests/test-lchown.c (main): Likewise.
76539         chown: detect Solaris and FreeBSD bug
76540         * lib/chown.c (rpl_chown): Work around bug.
76541         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
76542         (gl_PREREQ_CHOWN): Delete.
76543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76544         * modules/unistd (Makefile.am): Populate it.
76545         * lib/unistd.in.h (chown): Update declaration.
76546         * lib/lchown.c (chown): Update client.
76547         * modules/lchown (Depends-on): Add lstat.
76548         * doc/posix-functions/chown.texi (chown): Document the bug.
76549         * doc/posix-functions/getgroups.texi (getgroups): Document
76550         getgroups pitfall.
76551         * modules/chown-tests: New file.
76552         * tests/test-chown.h (test_chown): Likewise.
76553         * tests/test-chown.c (main): Likewise.
76555 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
76557         gnulib-tool: correctly detect absence of m4 directories
76558         * gnulib-tool: Avoid extra newline on data passed to wc -l.
76560 2009-11-14  Jim Meyering  <meyering@redhat.com>
76562         maint.mk: Prohibit inclusion of "xalloc.h" without use.
76563         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
76565 2009-11-14  John W. Eaton  <jwe@gnu.org>
76567         strftime.h: wrap function declaration in extern "C" block
76568         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
76570 2009-11-13  Eric Blake  <ebb9@byu.net>
76572         getgroups: avoid compiler warning
76573         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
76575         getgroups: work around FreeBSD bug
76576         * lib/getgroups.c (rpl_getgroups): Work around the bug.
76577         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
76578         * doc/posix-functions/getgroups.texi (getgroups): Document it.
76579         * tests/test-getgroups.c (main): Fix buffer overrun.
76581         getgroups: avoid compilation failure
76582         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
76583         * modules/getgroups (Depends-on): Add stdint.
76585 2009-11-13  Jim Meyering  <meyering@redhat.com>
76587         test-getgroups: avoid compilation failure
76588         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
76590 2009-11-13  Eric Blake  <ebb9@byu.net>
76592         mgetgroups: new module, taken from coreutils
76593         * modules/mgetgroups: New file.
76594         * lib/mgetgroups.h: Likewise.
76595         * lib/mgetgroups.c (mgetgroups): Likewise.
76596         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
76597         * MODULES.html.sh (Users and groups): Mention it.
76599         getgroups: don't expose GETGROUPS_T to user
76600         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
76601         an element at a time if GETGROUPS_T is wrong size.
76602         * lib/getugroups.h (getugroups): Change signature.
76603         * lib/unistd.in.h (getgroups): Likewise.
76604         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
76605         signature needs fixing.
76606         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
76607         AC_TYPE_GETGROUPS.
76608         * modules/group-member (Depends-on): Add getgroups.
76609         * lib/group-member.c (group_info, get_group_info): Use gid_t.
76610         (group_member): Rely on getgroups replacement.
76611         * lib/getugroups.c (getugroups): Use gid_t.
76612         * tests/test-getgroups.c (main): Likewise.
76613         * NEWS: Mention the signature change.
76614         * doc/posix-functions/getgroups.texi (getgroups): Mention the
76615         problem with signature.
76616         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
76617         GETGROUPS_T is still useful for setgroups.
76619         getgroups, getugroups: provide stubs for mingw
76620         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
76621         * lib/getugroups.c (getugroups): Likewise.
76622         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
76623         function.  Modernize replacement scheme.
76624         (gl_PREREQ_GETGROUPS): Delete.
76625         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
76626         * modules/getgroups (configure.ac): Declare witness.
76627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76628         * modules/unistd (Depends-on): Substitute witness.
76629         * lib/unistd.in.h (getgroups): Declare replacement.
76631         getgroups: avoid calling exit
76632         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
76633         drop xalloc.
76634         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
76635         dependencies.
76636         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
76637         exiting, in the rare case of malloc failure.
76639         getgroups: fix logic error
76640         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
76641         has more than 20 groups.
76642         * modules/getgroups-tests: New test.
76643         * tests/test-getgroups.c: New file.
76645 2009-11-13  Simon Josefsson  <simon@josefsson.org>
76647         * tests/test-base64.c: Improve.
76649 2009-11-13  Simon Josefsson  <simon@josefsson.org>
76651         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
76652         Blake <ebb9@byu.net>.
76654 2009-11-13  Simon Josefsson  <simon@josefsson.org>
76656         * tests/test-xvasprintf.c: Add %s%s related checks.
76658 2009-11-12  Eric Blake  <ebb9@byu.net>
76660         version-etc: match standards.texi style
76661         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
76662         and use <> only for URLs.
76664 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
76666         fts: do not fail on a submount during traversal
76667         * lib/fts.c (fts_build): Read the stat info again after opening
76668         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
76669         Original report at http://bugzilla.redhat.com/501848.
76671 2009-11-12  Jim Meyering  <meyering@redhat.com>
76673         bootstrap: sync from coreutils
76674         * build-aux/bootstrap (bootstrap_epilogue): New function.
76675         Use git_modules_config in one more place.  This make bootstrap's
76676         --gnulib-srcdir option more useful for testing.
76678         bootstrap: generalize autoheader check
76679         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
76680         AC_CONFIG_HEADERS.
76682 2009-11-11  Eric Blake  <ebb9@byu.net>
76684         mkfifoat: use new modules for Solaris and BSD bugs
76685         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
76686         * lib/mkfifoat.c (mknodat): Split...
76687         * lib/mknodat.c (mknodat): ...into new file.
76688         * modules/mkfifoat (Files): Ship new file.
76689         (Depends-on): Add mkfifo, mknod.
76690         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
76691         (Depends-on): Add symlink.
76692         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
76693         redundant with test_mkfifo.h.
76694         (do_mkfifoat, do_mknodat): New helpers.
76696         mknod: new module
76697         * modules/mknod: New file.
76698         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
76699         * lib/mknod.c (mknod): Likewise.
76700         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
76701         defaults.
76702         * modules/sys_stat (Makefile.am): Substitute them.
76703         * lib/sys_stat.in.h (mknod): Declare replacement.
76704         * MODULES.html.sh (Support for systems lacking POSIX:2008):
76705         Document it.
76706         * doc/posix-functions/mknod.texi (mknod): Likewise.
76707         * modules/mknod-tests: New test.
76708         * tests/test-mknod.c: Likewise.
76710         mkfifo: new module
76711         * modules/mkfifo: New file.
76712         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
76713         * lib/mkfifo.c (mkfifo): Likewise.
76714         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
76715         defaults.
76716         * modules/sys_stat (Makefile.am): Substitute them.
76717         * lib/sys_stat.in.h (mkfifo): Declare replacement.
76718         * MODULES.html.sh (Support for systems lacking POSIX:2008):
76719         Document it.
76720         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
76721         * modules/mkfifo-tests: New test.
76722         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
76723         from test-mkfifoat.c.
76724         * tests/test-mkfifo.c: New file.
76726         readlink: detect FreeBSD bug
76727         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
76728         slash on symlink.
76729         * doc/posix-functions/readlink.texi (readlink): Document the bug.
76730         * tests/test-readlink.h (test_readlink): Enhance test.
76732         symlink: detect FreeBSD bug
76733         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
76734         slash on symlink.
76735         * doc/posix-functions/symlink.texi (symlink): Document the bug.
76736         * tests/test-symlink.h (test_symlink): Enhance test.
76738 2009-11-10  Eric Blake  <ebb9@byu.net>
76740         link: detect FreeBSD bug
76741         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
76742         symlink.
76743         * doc/posix-functions/link.texi (link): Document the bug.
76744         * tests/test-link.h (test_link): Enhance test.
76745         * tests/test-linkat.c (main): Update caller.
76747         unlink, remove: detect FreeBSD bug
76748         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
76749         slash on symlink.
76750         * doc/posix-functions/unlink.texi (unlink): Document the bug.
76751         * doc/posix-functions/remove.texi (remove): Likewise.
76752         * tests/test-unlink.h (test_unlink): Enhance test.
76753         * tests/test-remove.c (main): Likewise.
76755 2009-11-09  Eric Blake  <ebb9@byu.net>
76757         rename: detect FreeBSD bug
76758         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
76759         slash on symlink.
76760         * modules/renameat-tests (Depends-on): Add filenamecat.
76761         * tests/test-rename.h (test_rename): Allow one more errno.
76762         * tests/test-renameat.c (main): Likewise.
76763         * doc/posix-functions/rename.texi (rename): Document the bug.
76765         open: detect FreeBSD bug
76766         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
76767         symlink.
76768         * doc/posix-functions/open.texi (open): Document the bug.
76769         * doc/posix-functions/utimes.texi (utimes): Likewise.
76770         * tests/test-open.h (test_open): Add parameters, and test symlink
76771         handling.
76772         * tests/test-open.c (main): Adjust caller.
76773         * tests/test-fcntl-safer.c (main): Likewise.
76774         * modules/open-tests (Depends-on): Add stdbool, symlink.
76775         * modules/fcntl-safer-tests (Depends-on): Likewise.
76776         * tests/test-openat.c (main): Add test-open tests.
76778         stat: detect FreeBSD bug
76779         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
76780         symlink.
76781         * doc/posix-functions/stat.texi (stat): Document the bug.
76782         * tests/test-stat.h (test_stat_func): Add argument.
76783         * tests/test-stat.c (main): Adjust caller.
76784         * tests/test-fstatat.c (main): Likewise.
76785         * modules/stat-tests (Depends-on): Add stdbool, symlink.
76786         Reported by Jim Meyering.
76788 2009-11-09  James Youngman  <jay@gnu.org>
76790         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
76791         * lib/strftime.c: Correct placement of #include "ignore-value.h".
76793 2009-11-08  Jim Meyering  <meyering@redhat.com>
76795         utimens: remove invalid futimesat call
76796         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
76797         It used the file descriptor of the target file as the DIR_FD
76798         parameter and NULL as the file name.  That caused failure with
76799         errno == EFAULT on FreeBSD-8.0-rc2
76801 2009-11-07  Eric Blake  <ebb9@byu.net>
76803         fflush, freadseek: use fseeko, not fseek
76804         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
76805         (clear_ungetc_buffer): Avoid potential problems on large files.
76806         * lib/freadseek.c (freadseek): Likewise.
76807         * modules/freadseek (Depends-on): Add fseeko.
76808         * modules/fseek (configure.ac): Set a witness.
76809         * tests/test-fflush.c (main): Use fseeko.
76810         * tests/test-fpurge.c (fseek): Disable link warning.
76811         * tests/test-freadable.c (fseek): Likewise.
76812         * tests/test-freading.c (fseek): Likewise.
76813         * tests/test-fseeko.c (fseek): Likewise.
76814         * tests/test-ftell.c (fseek): Likewise.
76815         * tests/test-ftello.c (fseek): Likewise.
76816         * tests/test-fwritable.c (fseek): Likewise.
76817         * tests/test-fwriting.c (fseek): Likewise.
76819 2009-11-06  Simon Josefsson  <simon@josefsson.org>
76821         * modules/memchr (Depends-on): Drop getpagesize dependency.
76823 2009-11-06  Simon Josefsson  <simon@josefsson.org>
76825         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
76826         Reported by Ludovic Courtès.
76827         * build-aux/pmccabe2html: Improve example usage.
76828         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
76830 2009-11-06  Jim Meyering  <meyering@redhat.com>
76832         do-release-commit-and-tag: New module.
76833         Automate the release-commit and tag process.
76834         * build-aux/do-release-commit-and-tag: New script, from coreutils.
76835         * modules/do-release-commit-and-tag: New file.
76836         * MODULES.html.sh (Support for maintaining and releasing): Add it.
76838 2009-11-06  Simon Josefsson  <simon@josefsson.org>
76840         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
76841         because test-select.c uses inet_pton.
76843 2009-11-06  Simon Josefsson  <simon@josefsson.org>
76845         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
76846         GETADDRINFO_LIB.  Bump serial number.
76847         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
76848         Suggested by Eric Blake <ebb9@byu.net>.
76850 2009-11-05  Eric Blake  <ebb9@byu.net>
76852         strtod: detect darwin bug
76853         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
76854         Reported by Leo Davis.
76856         freopen-safer: new module
76857         * modules/freopen-safer: New module.
76858         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
76859         * lib/freopen-safer.c (freopen_safer): New file.
76860         * lib/stdio-safer.h (freopen_safer): New declaration.
76861         * lib/stdio--.h (freopen): New override.
76862         * MODULES.html.sh (File stream based Input/Output): Mention it.
76863         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
76864         freopen-safer module.
76865         * doc/posix-functions/stderr.texi (stderr): Likewise.
76866         * doc/posix-functions/stdin.texi (stdin): Likewise.
76867         * doc/posix-functions/stdout.texi (stdout): Likewise.
76868         * modules/freopen-safer-tests: New test.
76869         * tests/test-reopen-safer.c: New file.
76871 2009-11-05  Jim Meyering  <meyering@redhat.com>
76873         maint.mk: Prohibit inclusion of "close-stream.h" without use.
76874         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
76876 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76878         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
76880 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76882         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
76884 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76886         Fix link error.
76887         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
76888         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76890 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76892         * tests/test-func.c: Also test value of __func__.
76894 2009-11-05  Simon Josefsson  <simon@josefsson.org>
76896         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
76897         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
76899 2009-11-05  Bruno Haible  <bruno@clisp.org>
76901         Fix link error.
76902         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
76903         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76904         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
76906 2009-11-05  Bruno Haible  <bruno@clisp.org>
76908         Tests for module 'inet_pton'.
76909         * modules/inet_pton-tests: New file.
76910         * tests/test-inet_pton.c: New file.
76912 2009-11-05  Bruno Haible  <bruno@clisp.org>
76914         Tests for module 'inet_ntop'.
76915         * modules/inet_ntop-tests: New file.
76916         * tests/test-inet_ntop.c: New file.
76918 2009-11-04  Eric Blake  <ebb9@byu.net>
76920         stdlib-safer: wrap all mkstemp variants
76921         * modules/mkostemp (configure.ac): Set witness.
76922         * modules/mkostemps (configure.ac): Likewise.
76923         * modules/mkstemps (configure.ac): Likewise.
76924         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
76925         (mkstemps_safer): Wrap more functions.
76926         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
76927         wrapping.
76928         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
76929         (mkstemps_safer): Implement the wrappers.
76931         mkstemps, mkostemps: new modules
76932         * modules/mkostemps: New module.
76933         * modules/mkstemps: Likewise.
76934         * lib/mkostemps.c (mkostemps): New file.
76935         * lib/mkstemps.c (mkstemps): Likewise.
76936         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
76937         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
76938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
76939         * modules/stdlib (Makefile.am): Substitute them.
76940         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
76941         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
76942         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
76943         * doc/gnulib.texi (Glibc stdlib.h): Include them.
76944         * MODULES.html.sh (File system functions): Mention them.
76946         tempname: resync from glibc
76947         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
76948         same values for __GT_FILE as glibc.  Abort even when assertions
76949         are disabled.
76950         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
76951         match its value otherwise.  Allow idempotent inclusion.
76952         * lib/mkdtemp.c (mkdtemp): Adjust caller.
76953         * lib/mkostemp.c (mkostemp): Likewise.
76954         * lib/mkstemp.c (mkstemp): Likewise.
76955         * lib/tmpfile.c (tmpfile): Likewise.
76956         * NEWS: Document this.
76958         utimens: fix use of futimens on older Linux
76959         * lib/utimens.c (fdutimens): Use updated, rather than original,
76960         timespec to avoid bug in older Linux kernel.
76961         Reported by Simon Josefsson.
76963 2009-11-04  Bruno Haible  <bruno@clisp.org>
76965         Make num_processors more flexible and consistent.
76966         * lib/nproc.h (enum nproc_query): New type.
76967         (num_processors): Add a 'query' argument.
76968         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
76969         (num_processors): Add a 'query' argument. Test the value of the
76970         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
76971         mingw, count the number of CPUs available for the current process.
76972         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
76973         Check for sched_getaffinity and sched_getaffinity_np.
76974         * modules/nproc (Depends-on): Add c-ctype, extensions.
76975         * NEWS: Mention the change.
76977 2009-11-03  Bruno Haible  <bruno@clisp.org>
76979         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
76981 2009-11-03  Jim Meyering  <meyering@redhat.com>
76983         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
76984         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
76985         if it is defined.
76987 2009-11-02  Eric Blake  <ebb9@byu.net>
76989         mktime, timegm: share common declaration
76990         * lib/mktime-internal.h: New file.
76991         * lib/mktime.c: Use it rather than open-coding a declaration.
76992         * lib/timegm.c: Likewise.
76993         * modules/mktime (Files): Ship it.
76994         * modules/timegm (Files): Likewise.
76995         Suggested by Bruno Haible.
76997         test-update-copyright: update test to match script changes
76998         * tests/test-update-copyright.sh: Avoid hard-coding perl
76999         location.  Don't update *.bak created by earlier runs.
77001 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77002             Simon Josefsson  <simon@josefsson.org>
77003             Bruno Haible  <bruno@clisp.org>
77005         Fix link error on Solaris 8.
77006         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
77007         also in libnsl. Define also INET_PTON_LIB.
77008         * modules/inet_pton (Link): New section.
77010 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77011             Bruno Haible  <bruno@clisp.org>
77013         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
77014         * modules/inet_ntop (Link): New section.
77015         Reported by Boyan Kasarov <bkasarov@gmail.com>.
77017 2009-11-02  Eric Blake  <ebb9@byu.net>
77019         maint: avoid compiler warnings in m4 macros
77020         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
77021         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
77023 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77025         * m4/pmccabe2html.m4: Remove file.
77026         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
77027         function.  Change maintainer.
77028         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
77029         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
77030         Courtès).
77032 2009-10-31  Eric Blake  <ebb9@byu.net>
77034         fseeko: fix m4 regression
77035         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
77036         regression from 2009-10-27.
77037         Reported by Ralf Wildenhues.
77039 2009-10-31  Jim Meyering  <meyering@redhat.com>
77041         inttostr: aesthetics and improved (compile-time) safety
77042         Define inttype_is_signed rather than inttype_is_unsigned,
77043         since the sole use is via "#if inttype_is_signed".
77044         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
77045         inttype_is_unsigned.
77046         * lib/offtostr.c (inttype_is_signed): Likewise.
77047         * lib/uinttostr.c (inttype_is_signed): Likewise.
77048         * lib/umaxtostr.c (inttype_is_signed): Likewise.
77049         * lib/inttostr.c (inttostr): Use verify to cross-check the
77050         inttype_is_signed value and the signedness of the actual type.
77051         * modules/inttostr (Depends-on): Add verify.
77053 2009-10-30  Eric Blake  <ebb9@byu.net>
77055         build: avoid compiler warnings
77056         * lib/fchmodat.c (lchmod): Mark unused variables.
77057         * lib/getopt.c (_getopt_initialize): Likewise.
77058         * lib/mktime.c (__mktime_internal): Provide prototype.
77059         * lib/inttostr.c (inttostr): Avoid compiler warning even with
77060         older gcc that do not understand #pragma GCC diagnostic.
77061         * lib/uinttostr.c (inttype_is_unsigned): Define.
77062         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
77064 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
77066         stat: fix compilation on AIX
77067         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
77068         only see struct stat64.
77070 2009-10-30  Eric Blake  <ebb9@byu.net>
77072         exclude: make more robust
77073         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
77074         rather than masking a coding bug.
77075         Suggested by Bruno Haible.
77077 2009-10-30  Jim Meyering  <meyering@redhat.com>
77079         perl scripts: remove #!/usr/bin/perl in favor of more portable...
77080         Rather than putting #!/usr/bin/perl on the first line,
77081         start with a variant of what's recommended by "man perlrun" that
77082         invokes the first "perl" program from your shell's search path.
77083         * build-aux/gitlog-to-changelog: Replace #!... as above.
77084         Add a "Local Variables" perl mode setting.
77085         Prompted by a patch from Ludovic Courtès.
77086         Improved by Eric Blake.
77087         * build-aux/useless-if-before-free: Likewise.
77088         * build-aux/announce-gen: Likewise.
77089         * build-aux/update-copyright: Likewise.
77091 2009-10-29  Eric Blake  <ebb9@byu.net>
77093         filenamecat-lgpl: adjust clients
77094         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
77095         filenamecat.
77096         * modules/renameat (Depends-on): Likewise.
77098         filenamecat: split into filenamecat-lgpl
77099         * modules/filenamecat-lgpl: New module.
77100         * modules/filenamecat (Files): Move library-safe files into
77101         filenamecat-lgpl.
77102         (Depends-on): Add filenamecat-lgpl.
77103         (configure.ac): Declare witness.
77104         * lib/filenamecat.h (file_name_concat): Only declare when using
77105         GPL module.
77106         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
77107         Move...
77108         * lib/filenamecat-lgpl.c: ...into new file.
77109         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
77110         (gl_FILE_NAME_CONCAT): Use it.
77111         * MODULES.html.sh (File system functions): Mention new module.
77113         argp: avoid memory leak
77114         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
77115         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
77116         base_name, since the latter malloc()s and can call exit().
77117         Leak introduced 2006-07-03.
77119         dirname-lgpl: adjust clients that don't need full dirname
77120         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
77121         * modules/filenamecat (Depends-on): Likewise.
77122         * modules/linkat (Depends-on): Likewise.
77123         * modules/mkancesdirs (Depends-on): Likewise.
77124         * modules/mkdir (Depends-on): Likewise.
77125         * modules/openat (Depends-on): Likewise.
77126         * modules/savewd (Depends-on): Likewise.
77127         * modules/rename (Depends-on): Likewise.
77128         (License): Relax license.
77129         * modules/mkdir-tests (Depends-on): Drop progname.
77130         (Makefile.am): Delete unneeded LDADD.
77131         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
77133         dirname: split into dirname-lgpl
77134         * modules/dirname-lgpl: New module.
77135         * modules/dirname (Files): Move library-safe files into
77136         dirname-lgpl.
77137         (Depends-on): Add dirname-lgpl.
77138         (configure.ac): Declare witness.
77139         * modules/double-slash-root (License): Relax license.
77140         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
77141         module.
77142         * lib/dirname.c (dir_len, mdir_name): Move...
77143         * lib/dirname-lgpl.c: ...into new file.
77144         * lib/basename.c (last_component, base_len): Move...
77145         * lib/basename-lgpl.c: ...into new file.
77146         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
77147         (gl_DIRNAME): Use it.
77148         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
77149         Mention new module.
77150         * modules/dirname-tests (Depends-on): Add progname.
77151         * tests/test-dirname.c (program_name): Delete.
77153         mkdir: make safe for libraries
77154         * modules/mkdir (Depends-on): Drop xalloc.
77155         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
77156         exit.
77158         tests: avoid some compiler warnings
77159         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
77160         literals.
77161         * tests/test-memchr.c (main): Avoid type mismatch.
77162         * tests/test-arpa_inet.c (main): Avoid unused parameters.
77163         * tests/test-base64.c (main): Likewise.
77164         * tests/test-getdelim.c (main): Likewise.
77165         * tests/test-gethostname.c (main): Likewise.
77166         * tests/test-getline.c (main): Likewise.
77167         * tests/test-netinet_in.c (main): Likewise.
77168         * tests/test-select.c (open_server_socket, main): Likewise.
77169         * tests/test-select-stdin.c (main): Likewise.
77170         * tests/test-sockets.c (main): Likewise.
77171         * tests/test-strsignal.c (main): Likewise.
77172         * tests/test-sys_select.c (main): Likewise.
77173         * tests/test-sys_socket.c (main): Likewise.
77174         * tests/test-u64.c (main): Likewise.
77175         * tests/test-xfprintf-posix.c (main): Likewise.
77176         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
77178         sockets: avoid compiler warning
77179         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
77181         maint: detect usage(1) and other suspicious exits
77182         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
77184 2009-10-29  Jim Meyering  <meyering@redhat.com>
77186         timespec: long-to-int truncation could make timespec_cmp malfunction
77187         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
77188         a multiple of 2^32 nanoseconds as no difference.
77190 2009-10-28  Jim Meyering  <meyering@redhat.com>
77192         fprintftime: wrap macro code argument in "do {...} while(0)"
77193         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
77194         cpy macro must be a statement that can be followed by a semicolon.
77195         Now that the else clause contains a comment and is hence longer
77196         than one line, I require curly braces.  That in turn requires
77197         that we wrap this code block in the standard do...while(0).
77199         fprintftime: remove stray semicolon from previous change
77200         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
77202         fprintftime: avoid a warning about ignored fwrite return value
77203         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
77204         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
77205         that is unsafe.
77206         * modules/fprintftime (Depends-on): Add ignore-value.
77208         exclude: avoid an unwarranted warning
77209         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
77211 2009-10-27  Eric Blake  <ebb9@byu.net>
77213         fseek: avoid compilation failure when fflush is replaced
77214         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
77215         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
77216         module is in use.
77217         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
77218         module is not in use; since REPLACE_FSEEK worked otherwise.
77219         (GNULIB_FTELLO): Likewise for ftell.
77220         Reported by Ian Beckwith and others.
77222 2009-10-27  Bruno Haible  <bruno@clisp.org>
77224         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
77225         Reported by Jim Meyering.
77227 2009-10-27  Jim Meyering  <jim@meyering.net>
77228             Bruno Haible  <bruno@clisp.org>
77230         Avoid warning despite dropping the return value of fwrite.
77231         * lib/unicodeio.c: Include ignore-value.h.
77232         (fwrite_success_callback): Explicitly ignore fwrite's return value.
77233         * modules/unicodeio (Depends-on): Add ignore-value.
77235 2009-10-26  Eric Blake  <ebb9@byu.net>
77237         areadlinkat: fix fallback path
77238         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
77239         pointer and zero.
77241 2009-10-22  Pádraig Brady  <P@draigBrady.com>
77243         Use a better IO block size for modern systems
77244         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
77245         * lib/md2.c: Likewise.
77246         * lib/md4.c: Likewise.
77247         * lib/md5.c: Likewise.
77248         * lib/sha1.c: Likewise.
77249         * lib/sha256.c: Likewise.
77250         * lib/sha512.c: Likewise.
77252 2009-10-22  Eric Blake  <ebb9@byu.net>
77254         tests: avoid several compiler warnings
77255         * tests/test-getcwd.c (main): Avoid buffer underflow.
77256         * tests/test-getdate.c (main): String literals are not safe with
77257         putenv, so use setenv.  Declare unused argument.
77258         * modules/getdate-tests (Depends-on): Add setenv.
77259         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
77260         problems with string literals in char *.
77261         * tests/test-hash.c (main): Avoid shadowing declaration.
77262         (insert_new): Treat string literals as char const *.
77263         * tests/test-getopt.h (test_getopt): Likewise.
77264         (getopt_loop): Alter types to minimize casting elsewhere.
77265         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
77266         (test_getopt_long_posix): Likewise.
77267         (do_getopt_long): Add wrapper to minimize casting.
77268         * tests/test-atexit.c (clear_temp_file): Use void.
77269         * tests/test-areadlink-with-size.c (main): Declare unused
77270         arguments.
77271         * tests/test-areadlink.c (main): Likewise.
77272         * tests/test-areadlinkat-with-size.c (main): Likewise.
77273         * tests/test-areadlinkat.c (main): Likewise.
77274         * tests/test-canonicalize-lgpl.c (main): Likewise.
77275         * tests/test-canonicalize.c (main): Likewise.
77276         * tests/test-dirent-safer.c (main): Likewise.
77277         * tests/test-dirname.c (main): Likewise.
77278         * tests/test-dup2.c (main): Likewise.
77279         * tests/test-fchdir.c (main): Likewise.
77280         * tests/test-fcntl-h.c (main): Likewise.
77281         * tests/test-fcntl-safer.c (main): Likewise.
77282         * tests/test-fdopendir.c (main): Likewise.
77283         * tests/test-fdutimensat.c (main): Likewise.
77284         * tests/test-fflush.c (main): Likewise.
77285         * tests/test-filenamecat.c (main): Likewise.
77286         * tests/test-filevercmp.c (main): Likewise.
77287         * tests/test-fopen-safer.c (main): Likewise.
77288         * tests/test-fopen.c (main): Likewise.
77289         * tests/test-fpending.c (main): Likewise.
77290         * tests/test-fpurge.c (main): Likewise.
77291         * tests/test-freading.c (main): Likewise.
77292         * tests/test-fstatat.c (main): Likewise.
77293         * tests/test-fsync.c (main): Likewise.
77294         * tests/test-futimens.c (main): Likewise.
77295         * tests/test-getndelim2.c (main): Likewise.
77296         * tests/test-gettimeofday.c (main): Likewise.
77297         * tests/test-getopt.c (main): Likewise.
77298         * tests/test-i-ring.c (main): Likewise.
77299         * tests/test-inttypes.c (main): Likewise.
77300         * tests/test-link.c (main): Likewise.
77301         * tests/test-lstat.c (main): Likewise.
77302         * tests/test-math.c (main): Likewise.
77303         * tests/test-md5.c (main): Likewise.
77304         * tests/test-memchr2.c (main): Likewise.
77305         * tests/test-memrchr.c (main): Likewise.
77306         * tests/test-mkdir.c (main): Likewise.
77307         * tests/test-mkdirat.c (main): Likewise.
77308         * tests/test-mkfifoat.c (main): Likewise.
77309         * tests/test-open.c (main): Likewise.
77310         * tests/test-openat-safer.c (main): Likewise.
77311         * tests/test-openat.c (main): Likewise.
77312         * tests/test-quotearg.c (main): Likewise.
77313         * tests/test-rawmemchr.c (main): Likewise.
77314         * tests/test-readlink.c (main): Likewise.
77315         * tests/test-remove.c (main): Likewise.
77316         * tests/test-rename.c (main): Likewise.
77317         * tests/test-renameat.c (main): Likewise.
77318         * tests/test-rmdir.c (main): Likewise.
77319         * tests/test-sha1.c (main): Likewise.
77320         * tests/test-signal.c (main): Likewise.
77321         * tests/test-sigaction.c (main): Likewise.
77322         * tests/test-stat.c (main): Likewise.
77323         * tests/test-stat-time.c (main): Likewise.
77324         * tests/test-stddef.c (main): Likewise.
77325         * tests/test-stdint.c (main): Likewise.
77326         * tests/test-stdio.c (main): Likewise.
77327         * tests/test-stdlib.c (main): Likewise.
77328         * tests/test-strchrnul.c (main): Likewise.
77329         * tests/test-strerror.c (main): Likewise.
77330         * tests/test-string.c (main): Likewise.
77331         * tests/test-strtod.c (main): Likewise.
77332         * tests/test-strverscmp.c (main): Likewise.
77333         * tests/test-symlink.c (main): Likewise.
77334         * tests/test-symlinkat.c (main): Likewise.
77335         * tests/test-sys_stat.c (main): Likewise.
77336         * tests/test-sys_time.c (main): Likewise.
77337         * tests/test-time.c (main): Likewise.
77338         * tests/test-unistd.c (main): Likewise.
77339         * tests/test-unlink.c (main): Likewise.
77340         * tests/test-unlinkat.c (main): Likewise.
77341         * tests/test-utimens.c (main): Likewise.
77342         * tests/test-utimensat.c (main): Likewise.
77343         * tests/test-version-etc.c (main): Likewise.
77344         * tests/test-wchar.c (main): Likewise.
77345         * tests/test-wctype.c (main): Likewise.
77346         * tests/test-xprintf-posix.c (main): Likewise.
77347         * tests/test-posixtm.c (main): Likewise.
77348         (STREQ): Delete unused macro.
77349         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
77350         shadowed variables.
77351         * tests/test-memchr.c (main): Likewise.
77353 2009-10-21  Eric Blake  <ebb9@byu.net>
77355         areadlinkat: avoid failure on older glibc
77356         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
77357         rather than mis-comparing 0 against FUNC_RESULT of char*.
77359 2009-10-21  Bruno Haible  <bruno@clisp.org>
77361         * modules/stpncpy (License): Relicense under LGPLv2+.
77362         Reported by David Lutterkort <lutter@redhat.com>.
77364 2009-10-20  Eric Blake  <ebb9@byu.net>
77366         utimensat: work around Solaris 9 bug
77367         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
77368         has trailing slash bugs.
77369         * tests/test-lutimens.h (test_lutimens): Enhance test.
77370         * tests/test-utimens.h (test_utimens): Likewise.
77371         * doc/posix-functions/utime.texi (utime): Enhance documentation.
77372         * doc/posix-functions/utimes.texi (utimes): Likewise.
77373         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77374         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
77375         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
77376         * doc/posix-functions/futimens.texi (futimens): Likewise.
77378         fdutimensat: new module
77379         * modules/fdutimensat: New file.
77380         * lib/fdutimensat.c (fdutimensat): Likewise.
77381         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
77382         * MODULES.html.sh (File system functions): Mention module.
77383         * modules/fdutimensat-tests: New test.
77384         * tests/test-fdutimensat.c: Likewise.
77386         doc: regenerate INSTALL
77387         * doc/INSTALL: Reflect recent autoconf update.
77388         * doc/INSTALL.ISO: Likewise.
77389         * doc/INSTALL.UTF-8: Likewise.
77391 2009-10-20  Pádraig Brady  <P@draigBrady.com>
77393         acl: warn if ACL support is not detected
77394         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
77396 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
77398         * lib/nproc.h: Add extern "C" block for C++.
77400 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
77401             Bruno Haible  <bruno@clisp.org>
77403         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
77404         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
77405         * doc/posix-functions/isalpha.texi: Likewise.
77406         * doc/posix-functions/isblank.texi: Likewise.
77407         * doc/posix-functions/iscntrl.texi: Likewise.
77408         * doc/posix-functions/isdigit.texi: Likewise.
77409         * doc/posix-functions/isgraph.texi: Likewise.
77410         * doc/posix-functions/islower.texi: Likewise.
77411         * doc/posix-functions/isprint.texi: Likewise.
77412         * doc/posix-functions/ispunct.texi: Likewise.
77413         * doc/posix-functions/isspace.texi: Likewise.
77414         * doc/posix-functions/isupper.texi: Likewise.
77415         * doc/posix-functions/isxdigit.texi: Likewise.
77417 2009-10-18  Bruno Haible  <bruno@clisp.org>
77419         Tests for module 'isblank'.
77420         * modules/isblank-tests: New file.
77421         * tests/test-isblank.c: New file.
77423         New module 'isblank'.
77424         * lib/isblank.c: New file.
77425         * m4/isblank.m4: New file.
77426         * modules/isblank: New file.
77427         * doc/posix-functions/isblank.texi: Mention the new module.
77429 2009-10-18  Bruno Haible  <bruno@clisp.org>
77431         New module 'ctype'.
77432         * lib/ctype.in.h: New file.
77433         * m4/ctype.m4: New file.
77434         * modules/ctype: New file.
77435         * doc/posix-headers/ctype.texi: Mention the new module.
77437 2009-10-18  Jim Meyering  <meyering@redhat.com>
77439         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
77440         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
77441         right after its initialization, rather than farther down.
77442         Keeping these in close proximity makes it easier to ensure
77443         that each such variable is initialized.  E.g.,
77445             LIB_CLOCK_GETTIME=
77446             AC_SUBST([LIB_CLOCK_GETTIME])
77448         This change also increments these serial numbers.
77449         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
77450         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77451         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77453 2009-10-18  Bruno Haible  <bruno@clisp.org>
77455         Don't let environment variables perturb build.
77456         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
77457         (gl_PREREQ_GETHRXTIME): ... not here.
77459 2009-10-18  Bruno Haible  <bruno@clisp.org>
77461         Avoid symlink attack in localcharset module.
77462         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
77463         (O_NOFOLLOW): Define fallback.
77464         (get_charset_aliases): Don't open the file if it is a symbolic link.
77465         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
77466         gl_FCNTL_H.
77467         (gl_FCNTL_H): Require it.
77468         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
77469         * modules/localcharset (Files): Add m4/fcntl_h.m4.
77470         Reported by Fergal Glynn <fglynn@veracode.com>.
77472 2009-10-18  Bruno Haible  <bruno@clisp.org>
77474         Implement nproc for mingw.
77475         * lib/nproc.c: Include <windows.h>
77476         (num_processors): On native Windows platforms, try GetSystemInfo.
77478 2009-10-18  Bruno Haible  <bruno@clisp.org>
77480         Implement nproc for IRIX.
77481         * lib/nproc.c: Include <sys/sysmp.h>.
77482         (num_processors): On IRIX systems, try sysmp.
77483         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
77485 2009-10-18  Bruno Haible  <bruno@clisp.org>
77487         Implement nproc for HP-UX.
77488         * lib/nproc.c: Include <sys/pstat.h>
77489         (num_processors): On HP-UX systems, try pstat_getdynamic.
77490         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
77491         pstat_getdynamic.
77493 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
77494             Bruno Haible  <bruno@clisp.org>
77496         Implement nproc for NetBSD, OpenBSD.
77497         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
77498         (ARRAY_SIZE): New macro.
77499         (num_processors): On BSD systems, try sysctl of HW_NCPU.
77500         * m4/nproc.m4: New file.
77501         * modules/nproc (Files): Add m4/nproc.m4.
77502         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
77503         (Makefile.am): Instead, augment lib_SOURCES.
77505 2009-10-18  Bruno Haible  <bruno@clisp.org>
77507         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
77508         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
77509         sys/param.h.
77511 2009-10-16  Eric Blake  <ebb9@byu.net>
77513         utimensat: new module
77514         * modules/utimensat: New file.
77515         * lib/utimensat.c (utimensat): Likewise.
77516         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
77517         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
77518         so we can work around Linux bugs.
77519         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77520         * modules/sys_stat (Makefile.am): Substitute them.
77521         * lib/sys_stat.in.h (utimensat): Declare it.
77522         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77523         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77524         * modules/utimensat-tests: New test.
77525         * tests/test-utimensat.c: Likewise.
77527         utimens: let lutimens work on non-symlinks
77528         * lib/utimens.c (lutimens): Fall back to utimens rather than
77529         failing with ENOSYS, when file is not a symlink.
77530         (utimens): Reduce redirection.
77531         * tests/test-lutimens.h (test_lutimens): Update test to cover
77532         non-symlinks.
77533         * tests/test-utimens.h (test_utimens): Update test to cover
77534         symlinks.
77535         * tests/test-utimens.c (main): Update caller.
77537         utimens: cache whether utimensat syscall works
77538         * lib/utimens.c (utimensat_works_really): New cache variable.
77539         (fdutimens, lutimens): Use it to avoid failing syscall.
77541         test-stat-time, test-utimens: improve portability
77542         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
77543         ext4 on alpha, and for cygwin.
77544         * tests/test-utimens-common.h: New file.
77545         (nap): Factor delays into single function.
77546         * tests/test-lutimens.h (test_lutimens): Use new header.
77547         * tests/test-futimens.h (test_futimens): Likewise.
77548         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
77549         timestamps to occur from same machine, as was done previously for
77550         test_utimens.
77551         * modules/utimens-tests (Files): Ship new file.
77552         * modules/futimens-tests (Files): Likewise.
77553         Reported in part by Jim Meyering.
77555         sys_stat: sort replacement declarations
77556         * lib/sys_stat.in.h: Sort declarations.
77557         * lib/futimens.c (futimens): Fix typo.
77559 2009-10-15  Jim Meyering  <meyering@redhat.com>
77561         don't let environment settings perturb build
77562         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
77563         could cause a configure-time and/or build-time malfunction.
77564         Typically, a configure-time function-in-library test is performed
77565         via code like this:
77567           LIB_VAR=
77568           AC_SUBST([LIB_VAR])
77569           prefix_saved_LIBS=$LIBS
77570             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
77571                        [test "$ac_cv_search_FUNC" = "none required" ||
77572                         LIB_VAR=$ac_cv_search_FUNC])
77573           LIBS=$prefix_saved_LIBS
77575         However, in each of the files affected by this change, the LIB_VAR=
77576         initialization was omitted.  Thus, when set in the environment, its
77577         value would propagate into generated Makefiles when FUNC is not found
77578         in LIB_NAME.
77579         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
77580         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77583 2009-10-14  Eric Blake  <ebb9@byu.net>
77585         fchdir: avoid infinite recursion in mingw
77586         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
77587         recursing.
77589         test-stat-time: port to mingw
77590         * tests/test-stat-time.c (force_unlink): Return a value.
77591         (test_ctime) [W32]: Fix compilation error.
77592         (nap): Don't call usleep with too large an argument.  Use
77593         force_unlink.
77594         * doc/pastposix-functions/usleep.texi (usleep): Document the
77595         portability issue.
77597 2009-10-13  Jim Meyering  <meyering@redhat.com>
77599         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
77600         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
77601         * modules/pipe-filter-ii: Likewise.
77602         * modules/sys_socket-tests: Likewise.
77603         * modules/tsearch-tests: Likewise.
77604         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
77605         (check): Depend on it.
77607 2009-10-12  Eric Blake  <ebb9@byu.net>
77609         utimens-tests: port to NFS file systems
77610         * tests/test-utimens.h (test_utimens): Refactor utimecmp
77611         comparisons to avoid spurious failures from timestamp drift
77612         between NFS machines.
77614 2009-10-12  Eric Blake  <ebb9@byu.net>
77616         stat-time-tests: minor cleanups
77617         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
77618         * tests/test-stat-time.c (nap): Separate assignment from call.
77619         Suggested by Paolo Bonzini and Bruno Haible.
77621         sys_stat: guarantee struct timespec
77622         * lib/sys_stat.in.h (includes): Always include <time.h>
77623         * modules/sys_stat (Depends-on): Add time.
77624         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
77625         mode_t permission values.
77626         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
77627         get at subsecond timestamps.
77629 2009-10-10  Eric Blake  <ebb9@byu.net>
77631         futimens: new module
77632         * modules/futimens: New file.
77633         * lib/futimens.c (futimens): Likewise.
77634         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
77635         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
77636         we can work around Linux bugs.
77637         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77638         * modules/sys_stat (Makefile.am): Substitute them.
77639         * lib/sys_stat.in.h (futimens): Declare it.
77640         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77641         * doc/posix-functions/futimens.texi (futimens): Likewise.
77642         * modules/futimens-tests: New test.
77643         * tests/test-futimens.c: Likewise.
77645         utimens: introduce fdutimens
77646         * lib/utimens.h (fdutimens): New prototype.
77647         * lib/utimens.c (gl_futimens): Move guts...
77648         (fdutimens): ...to new interface.
77649         * tests/test-utimens.c (do_fdutimens): Use it.
77651         utimens: add UTIME_NOW and UTIME_OMIT support
77652         * lib/utimens.c (validate_timespec, update_timespec): New helper
77653         functions.
77654         (gl_futimens, lutimens): Use them.
77655         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
77656         stdbool, sys_stat.
77657         (Link): Mention resulting library dependency.
77658         * modules/utimecmp (Link): Likewise.
77659         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
77660         (Makefile.am): Pick up library dependency.
77661         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
77662         definition.
77663         * tests/test-sys_stat.c: Test the definitions.
77664         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
77665         * NEWS: Document library dependency.
77667         utimecmp: support symlink timestamps
77668         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
77669         hashing when possible.  Use pathconf when available.
77670         (SYSCALL_RESOLUTION): Recognize tighter resolution.
77671         * modules/utimecmp (Depends-on): Add lstat.
77673         utimens: add lutimens interface
77674         * lib/utimens.c (lutimens): New function.
77675         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
77676         * lib/utimens.h (lutimens): Declare new interface.
77677         * tests/test-utimens.c (main): Enhance test.
77678         * tests/test-lutimens.h (test_lutimens): New file.
77679         * modules/utimens-tests (Files): Distribute it.
77680         (Depends-on): Add symlink.
77681         (configure.ac): Check for usleep.
77683         utimens: validate futimens usage
77684         * lib/utimens.c (gl_futimens): Require valid fd up front, using
77685         fewer syscalls on failure later on.  Avoid compiler warning on
77686         mingw.
77687         * modules/utimens (Depends-on): Add dup2.
77689         utimens: add test
77690         * modules/utimens-tests: New test.
77691         * tests/test-utimens.h: New file.
77692         * tests/test-futimens.h: Likewise.
77693         * tests/test-utimens.c: Likewise.
77695         doc: mention timestamp portability issues
77696         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
77697         instead.
77698         * doc/posix-functions/utime.texi (utime): Likewise.
77699         * doc/posix-functions/utimes.texi (utimes): Likewise.
77700         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
77701         instead.
77702         * doc/posix-functions/futimens.texi (futimens): Mention utimens
77703         module.
77704         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77705         Mention weakness with symlink timestamps.
77706         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
77707         to utimensat/futimens instead.
77708         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
77710         test-dup2: enhance test
77711         * tests/test-dup2.c (main): Also check AT_FDCWD.
77713         test-stat-time: avoid more spurious failures
77714         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
77715         xfs; and avoid race if the two timestamps cross quantization edge.
77717         relocatable: prefer 'file system' over 'filesystem'
77718         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
77719         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
77720         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
77721         * doc/relocatable.texi (Enabling Relocatability): Likewise.
77722         * lib/relocatable.c (compute_curr_prefix): Likewise.
77724 2009-10-10  Jim Meyering  <meyering@redhat.com>
77726         stat-time-tests: check for the usleep function
77727         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
77729 2009-10-10  Bruno Haible  <bruno@clisp.org>
77731         * modules/xnanosleep: Put the Link section after the Include section.
77733 2009-10-09  Eric Blake  <ebb9@byu.net>
77735         dup2: work around FreeBSD 6.1 bug
77736         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
77737         * doc/posix-functions/dup2.texi (dup2): Document it.
77738         Reported by Nelson H. F. Beebe and Jim Meyering.
77740         test-stat-time: port to buggy NFS clients
77741         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
77742         (test_ctime): Also skip test if mtime and ctime are skewed.
77744         maint: prefer 'file system' over 'filesystem'
77745         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
77746         * doc/posix-functions/lstat.texi (lstat): Likewise.
77747         * lib/file-has-acl.c (file_has_acl): Likewise.
77748         * lib/fwriteerror.c [TEST]: Likewise.
77749         * tests/test-areadlink.h (test_areadlink): Likewise.
77750         * tests/test-areadlinkat-with-size.c (main): Likewise.
77751         * tests/test-areadlinkat.c (main): Likewise.
77752         * tests/test-canonicalize-lgpl.c (main): Likewise.
77753         * tests/test-canonicalize.c (main): Likewise.
77754         * tests/test-fstatat.c (main): Likewise.
77755         * tests/test-linkat.c (main): Likewise.
77756         * tests/test-lstat.h (test_lstat_func): Likewise.
77757         * tests/test-mkdir.h (test_mkdir): Likewise.
77758         * tests/test-readlink.h (test_readlink): Likewise.
77759         * tests/test-remove.c (main): Likewise.
77760         * tests/test-rename.h (test_rename): Likewise.
77761         * tests/test-renameat.c (main): Likewise.
77762         * tests/test-rmdir.h (test_rmdir_func): Likewise.
77763         * tests/test-symlink.h (test_symlink): Likewise.
77764         * tests/test-symlinkat.c (main): Likewise.
77765         * tests/test-unlink.h (test_unlink_func): Likewise.
77766         * tests/test-unlinkat.c (main): Likewise.
77768         maint: make realtime library usage explicit
77769         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
77770         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
77771         * modules/settime (Link): Likewise.
77772         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
77774         test-stat-time: speed up execution
77775         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
77776         warning on mingw.
77777         (nap): New helper function.
77778         (prepare_test): Use it to reduce sleep time.
77779         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
77780         execution.
77781         * modules/stat-time-tests (configure.ac): Check for usleep.
77783 2009-10-09  Jim Meyering  <meyering@redhat.com>
77785         selinux-h: always use getfilecon wrappers
77786         * lib/getfilecon.c: New file.
77787         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
77788         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
77789         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
77790         (fgetfilecon): Provide a stub.
77791         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
77792         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
77793         file unconditionally.
77794         When <selinux/selinux.h> is found, arrange to use wrappers.
77795         * modules/selinux-h (Files): Add getfilecon.c.
77796         (Makefile.am): Substitute include-next-related bits
77797         into the now-always-generated selinux/selinux.h file.
77798         * doc/glibc-functions/lgetfilecon.texi: New file.
77799         * doc/glibc-functions/fgetfilecon.texi: New file.
77800         * doc/glibc-functions/getfilecon.texi: New file.
77801         * doc/glibc-functions/getfilecon-desc.texi: New file.
77802         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
77803         which to pull in the new files.
77804         * MODULES.html.sh (Misc): Add selinux-h.
77806 2009-10-08  Jim Meyering  <meyering@redhat.com>
77808         unistd: fix comment typo
77809         * lib/unistd.in.h (euidaccess): Fix a comment typo.
77811 2009-10-08  Eric Blake  <ebb9@byu.net>
77813         areadlink: use SIZE_MAX consistently
77814         * modules/areadlink (Depends-on): Add stdint.
77815         * modules/areadlink-with-size (Depends-on): Likewise.
77816         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
77817         gives NULL; drop sys/types, since unistd gives size_t; and add
77818         stdint for SIZE_MAX.
77819         (SIZE_MAX): Rely on headers.
77820         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
77821         and add stdint.
77822         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
77823         (SIZE_MAX): Likewise.
77824         (INITIAL_BUF_SIZE): Turn into enum.
77825         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
77827 2009-10-08  Jim Meyering  <meyering@redhat.com>
77829         areadlinkat: avoid compilation failure
77830         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
77831         Fix typo in comment.
77833 2009-10-07  Eric Blake  <ebb9@byu.net>
77835         areadlinkat-with-size: new module
77836         * modules/areadlinkat-with-size: New module.
77837         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
77838         * lib/areadlink.h (areadlinkat): Declare it.
77839         * MODULES.html.sh (File system functions): Mention it.
77840         * modules/areadlinkat-with-size-tests: New test.
77841         * tests/test-areadlinkat-with-size.c: New file.
77843         xreadlinkat: new module
77844         * modules/xreadlinkat: New module.
77845         * lib/xreadlinkat.c (xreadlinkat): New file.
77846         * lib/xreadlink.h (xreadlinkat): Declare it.
77847         * MODULES.html.sh (File system functions): Mention it.
77849         areadlinkat: new module
77850         * lib/at-func.c (FUNC_FAIL): New define.
77851         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
77852         * modules/areadlinkat: New module.
77853         * lib/linkat.c (areadlinkat): Move...
77854         * lib/areadlinkat.c (areadlinkat): ...to new file.
77855         * lib/areadlink.h (areadlinkat): Declare it.
77856         * modules/linkat (Depends-on): Add areadlinkat.
77857         * MODULES.html.sh (File system functions): Mention it.
77858         * modules/areadlinkat-tests: New test.
77859         * tests/test-areadlinkat.c: New file.
77861         areadlink, areadlink-with-size: add tests
77862         * modules/areadlink-tests: New test.
77863         * modules/areadlink-with-size-tests: Likewise.
77864         * tests/test-areadlink.h: New file.
77865         * tests/test-areadlink.c: Likewise.
77866         * tests/test-areadlink-with-size.c: Likewise.
77868         maint: minor cleanups
77869         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
77870         _UNUSED_PARAMETER_ instead.
77871         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
77872         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
77873         * modules/linkat-tests (Files): Distribute test-link.h.
77875         openat, utimens: whitespace cleanup
77876         * lib/openat.c: Prefer space throughout, rather than mix of 8
77877         spaces vs. tabs.
77878         * lib/at-func.c: Likewise.
77879         * lib/utimens.c: Likewise.
77881         openat: avoid using wrong fd
77882         * lib/openat.c (openat_permissive): Reject user's fd if saving the
77883         working directory chooses same fd.
77884         * lib/at-func.c (AT_FUNC_NAME): Likewise.
77886         mkdir, mkdirat: fix cygwin 1.5.x bug
77887         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
77888         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
77889         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
77890         bug.
77891         (gl_PREREQ_MKDIR): Delete unused macro.
77892         * modules/mkdir (Files): Track file rename.
77893         (configure.ac): Update macro name.
77894         * modules/openat (Depends-on): Add mkdir.
77895         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
77897         mkdir, mkdirat: add tests
77898         * modules/mkdir-tests: New test.
77899         * tests/test-mkdir.h: New file.
77900         * tests/test-mkdir.c: Likewise.
77901         * tests/test-mkdirat.c: Likewise.
77902         * modules/openat-tests (Files): Add new files.
77903         (Makefile.am): Run new test.
77905 2009-10-06  Eric Blake  <ebb9@byu.net>
77907         doc: tweak *at function documentation
77908         * doc/posix-functions/faccessat.texi (faccessat): Mention
77909         known issue with replacement.
77910         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
77911         * doc/posix-functions/linkat.texi (linkat): Likewise.
77912         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
77913         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
77914         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
77915         * doc/posix-functions/renameat.texi (renameat): Likewise.
77916         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
77918         openat: fix GNU/Hurd bug in unlinkat
77919         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
77920         broken.
77921         * doc/posix-functions/unlink.texi (unlink): Document this.
77922         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
77924         fdopendir: fix GNU/Hurd bug
77925         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
77926         allowing non-directory fds.
77927         * lib/fdopendir.c (rpl_fdopendir): Work around it.
77928         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
77929         * modules/dirent (Makefile.am): Substitute it.
77930         * lib/dirent.in.h (fdopendir): Declare replacement.
77931         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
77932         * tests/test-fdopendir.c (main): Test something other than
77933         /dev/null, since on Hurd that behaves like a directory.
77935         test-symlink: port to GNU/Hurd
77936         * tests/test-symlink.h (test_symlink): Relax expected errno.
77938         doc: tweak more cygwin information
77939         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
77940         now compatible with glibc.
77941         * doc/posix-functions/getopt.texi (getopt): Likewise.
77943         getopt-gnu: add another test
77944         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
77945         guarantee behavior relied on by m4.
77946         * tests/test-getopt.c (main): Use it.
77947         * modules/getopt-posix-tests (Depends-on): Add setenv.
77948         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
77950         getopt: fix compilation on darwin
77951         * lib/getopt.in.h (includes): Leave breadcrumbs during system
77952         include.
77953         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
77954         Reported by Ludovic Courtès.
77956 2009-10-06  Bruno Haible  <bruno@clisp.org>
77958         * modules/size_max (Description): Discourage its use.
77959         Reported by Simon Josefsson.
77961 2009-10-06  Jim Meyering  <meyering@redhat.com>
77963         linkat: avoid compilation failure
77964         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
77966 2009-10-05  Eric Blake  <ebb9@byu.net>
77968         linkat: support Linux 2.6.17
77969         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
77970         linkat on Linux, but allow cache variable override.
77971         * lib/linkat.c (rpl_linkat): Define override.
77972         * modules/linkat (Depends-on): Add symlinkat.
77973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
77974         * modules/unistd (Makefile.am): Substitute it.
77975         * lib/unistd.in.h (linkat): Declare replacement.
77976         Reported by Pádraig Brady.
77978         quotearg: port test to systems with C.UTF-8 locale
77979         * tests/test-quotearg.c (struct result_strings): Add another
77980         member, differentiating between C.ASCII and C.UTF-8 handling.
77981         (compare_strings): Add parameter.
77982         (main): Adjust all callers.
77984         getopt: avoid clash with FreeBSD _getopt_internal
77985         * lib/getopt.in.h (_getopt_internal): Override the name.
77986         * lib/getopt_int.h (includes): Pick up any overrides.
77987         Reported by Reuben Thomas.
77989         hash: allow C89 compilation
77990         * lib/hash.c (check_tuning): Move declaration before statement.
77991         Reported by Reuben Thomas.
77993 2009-10-05  Karl Berry  <karl@gnu.org>
77995         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
77997 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
77998             Bruno Haible  <bruno@clisp.org>
78000         * lib/uname.c (uname): Use a table-driven algorithm to compute
78001         Windows NT versions.
78003 2009-10-04  Bruno Haible  <bruno@clisp.org>
78005         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
78006         program_invocation_short_name.
78007         * modules/progname (configure.ac): Test for presence of
78008         program_invocation_short_name.
78009         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
78011 2009-10-04  Bruno Haible  <bruno@clisp.org>
78013         * lib/progname.c (set_program_name): Fix comment.
78014         Reported by Jim Meyering.
78016 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78017             Bruno Haible  <bruno@clisp.org>
78019         * lib/uname.c: Include <string.h>.
78020         (uname): Do only one call to GetVersionEx in the common case.
78022 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78023             Bruno Haible  <bruno@clisp.org>
78025         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
78026         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
78027         (uname): Add support for Windows CE and various non-x86 CPU types.
78029 2009-10-03  Bruno Haible  <bruno@clisp.org>
78031         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
78032         invocation to tests/configure.ac.
78033         Reported by Ian Beckwith <ianb@erislabs.net>.
78035 2009-10-02  Eric Blake  <ebb9@byu.net>
78037         fchdir: avoid compiler warning
78038         * lib/fchdir.c (canonicalize_file_name)
78039         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
78041         test-open: support mingw errno values
78042         * tests/test-open.h (test_open): Relax test.
78043         * tests/test-fopen.h (test_fopen): Likewise.
78044         * tests/test-openat-safer.c (main): Likewise.
78046         open: fix opening directory on mingw
78047         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
78049         test-open: on GNU/Hurd, /dev/null is a directory
78050         * tests/test-fopen.h (main): Rename...
78051         (test_fopen): ...to this.  Use a guaranteed non-directory when
78052         confirming open behavior on trailing slash.
78053         * tests/test-openat-safer.c (main): Likewise.
78054         * tests/test-open.h (main): Likewise....
78055         (test_open): ...to this.
78056         * tests/test-fopen.c (main): Adjust caller.
78057         * tests/test-fopen-safer.c (main): Likewise.
78058         * tests/test-open.c (main): Likewise.
78059         * tests/test-fcntl-safer.c (main): Likewise.
78060         Reported by Samuel Thibault.
78062         rename, fchdir: don't ignore chdir failure
78063         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
78064         * lib/rename.c (rpl_rename) [W32]: Likewise.
78065         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
78066         an empty destination directory if source cannot be renamed,
78067         although there is still possibility for failure.
78068         * doc/posix-functions/rename.texi (rename): Document the race.
78069         Reported by Jim Meyering.
78071         maint: cleanup whitespace in recent commits
78072         * lib/rename.c (rpl_rename): Remove tabs.
78073         * tests/test-link.h (test_link): Likewise.
78074         * lib/fchdir.c (get_name): Likewise.
78075         Reported by Jim Meyering.
78077 2009-10-02  Ben Pfaff  <blp@gnu.org>
78079         relocatable-prog-wrapper: Add missing dependency on
78080         double-slash-root.
78081         * modules/relocatable-prog-wrapper: Add dependency.
78082         Reported by Ian Beckwith <ianb@erislabs.net>.
78084 2009-10-02  Eric Blake  <ebb9@byu.net>
78086         renameat: fix Solaris bugs
78087         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
78088         needed fixing.
78089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
78090         * modules/stdio (Makefile.am): Substitute it.
78091         * lib/stdio.in.h (renameat): Declare replacement.
78092         * lib/renameat.c (rpl_renameat): Implement fix.
78094         renameat: new module
78095         * modules/renameat: New file.
78096         * lib/renameat.c (renameat): Likewise.
78097         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
78098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78099         * modules/stdio (Makefile.am): Substitute them.
78100         * lib/stdio.in.h (renameat): Declare it.
78101         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78102         * doc/posix-functions/renameat.texi (renameat): Likewise.
78103         * modules/renameat-tests: New test.
78104         * tests/test-renameat.c: Likewise.
78106         rename: fix mingw bugs
78107         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
78108         directory overwrite bugs.
78110         rename: fix another cygwin 1.5 bug
78111         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
78112         checks.
78113         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
78114         unnecessary cygwin workarounds.  Also work around bug with moving
78115         full directory onto an empty one.
78116         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
78118         rename-dest-slash: merge into rename module
78119         * modules/rename-dest-slash (Status): Mark obsolete.
78120         (Depends-on): Add rename.
78121         (Files): Let rename do it all.
78122         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
78123         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
78124         * m4/rename-dest-slash.m4: ...so this file can be deleted.
78125         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
78126         * lib/rename.c (rpl_rename): Update comments.
78128         rename: fix cygwin 1.5.x bugs
78129         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
78130         * lib/rename.c (rpl_rename): Work around them.
78131         * modules/rename (Depends-on): Add same-inode.
78133         rename: fix Solaris 10 bug
78134         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78135         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
78136         was the only bug.
78138         rename: fix Solaris 9 bug
78139         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
78140         on non-directory.  Avoid calling exit.
78141         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
78142         strdup.
78143         * modules/rename-tests (Depends-on): Drop lstat.
78144         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78145         (gl_PREREQ_RENAME): Delete unused macro.
78147         rename-dest-slash: fix NetBSD bug
78148         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
78149         links.
78150         * modules/rename-dest-slash (Depends-on): Add same-inode.
78152         rename-tests: new test, exposes several platform bugs
78153         * modules/rename-tests: New file.
78154         * tests/test-rename.h: Likewise.
78155         * tests/test-rename.c: Likewise.
78156         * doc/posix-functions/rename.texi (rename): Improve documentation,
78157         including bugs that will eventually be fixed in gnulib.
78159 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
78161         * lib/uname.c: Include <stdlib.h>
78162         (uname): Assume version info is available.
78164 2009-10-02  Jim Meyering  <meyering@redhat.com>
78166         gnu-web-doc-update: correct --help output
78167         * build-aux/gnu-web-doc-update: Make --help output relevant.
78169         gnu-web-doc-update: add standard options
78170         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
78172         gnu-web-doc-update: New module.
78173         Use this script to automatically update the on-line web documentation
78174         for your GNU project at http://www.gnu.org/software/$pkg/manual/
78175         * modules/gnu-web-doc-update: New file, from coreutils.
78176         * build-aux/gnu-web-doc-update: New script.
78178 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
78180         link: LoadLibrary is not needed.
78181         * lib/link.c: Use GetModuleHandle.
78183 2009-10-01  Eric Blake  <ebb9@byu.net>
78185         getopt: bump serial number
78186         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
78187         change.
78189         tests: tighten link, rmdir, and remove tests
78190         * tests/test-link.h (includes): No need to use <config.h> here.
78191         Clean up if directory hard link was created, otherwise test for
78192         trailing '.'.
78193         * tests/test-linkat.c (main): Simplify.
78194         * tests/test-remove.c (main): Enhance test for trailing '.'.
78195         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78197 2009-10-01  Jim Meyering  <meyering@redhat.com>
78199         maint.mk: requiring "make major" was annoying, for a "minor" release.
78200         What is intended is "stable", to contrast with alpha and beta,
78201         so require "make stable", not "make major".
78202         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
78203         (get_tool_versions): Likewise.
78204         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
78206 2009-09-30  Ben Pfaff  <blp@gnu.org>
78208         Fix broken build of replacement for Windows tmpfile().
78209         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
78210         flags argument added along with the 'mkostemp' module.
78212 2009-09-28  Bruno Haible  <bruno@clisp.org>
78214         Avoid identifier clash with POSIX function 'remove' defined as a macro.
78215         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
78216         to 'remove_elt'.
78217         (gl_list_remove): Update.
78218         * lib/gl_list.c (gl_list_remove): Update.
78219         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
78220         to 'remove_elt'.
78221         (gl_oset_remove): Update.
78222         * lib/gl_list.c (gl_oset_remove): Update.
78223         Reported by Eric Blake.
78225 2009-09-28  Eric Blake  <ebb9@byu.net>
78227         doc: mention yet more cygwin 1.7 status
78228         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
78229         cygwin.
78230         * doc/glibc-functions/execvpe.texi (execvpe): New file.
78231         * doc/gnulib.texi (Glibc unistd.h): Mention it.
78233         argp: fix test failure
78234         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
78235         that are not upper-case.  Pass correct range to tolower.
78237 2009-09-27  Jim Meyering  <meyering@redhat.com>
78239         test-yesno: work around sparc-dash here-document infelicity
78240         Without this change, the literal \177 byte in a here document
78241         would make dash 0.5.5.1-3 access uninitialized memory.
78242         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
78243         Instead, use a marker, "@", and filter through tr to create the desired
78244         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
78246 2009-09-27  Bruno Haible  <bruno@clisp.org>
78248         Disable untested support for new flavours of ACLs on AIX.
78249         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
78250         progress.
78251         * lib/set-mode-acl.c (qset_acl): Likewise.
78253 2008-12-07  Bruno Haible  <bruno@clisp.org>
78255         Add support for new flavours of ACLs on AIX. (Untested.)
78256         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
78257         (file_has_acl): Add support for newer AIX.
78258         * lib/set-mode-acl.c (qset_acl): Likewise.
78259         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
78260         Rainer Tammer <tammer@tammer.net>.
78262 2009-09-26  Eric Blake  <ebb9@byu.net>
78264         argp: fix compilation of getopt
78265         * lib/getopt.in.h (includes): Use different guard than glibc.
78266         Reported by Sergey Poznyakoff.
78268         doc: mention more cygwin 1.7 status
78269         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
78270         bug.
78271         * doc/posix-functions/execl.texi (execl): Likewise.
78272         * doc/posix-functions/execle.texi (execle): Likewise.
78273         * doc/posix-functions/execlp.texi (execlp): Likewise.
78274         * doc/posix-functions/execv.texi (execv): Likewise.
78275         * doc/posix-functions/execve.texi (execve): Likewise.
78276         * doc/posix-functions/execvp.texi (execvp): Likewise.
78277         * doc/glibc-functions/canonicalize_file_name.texi
78278         (canonicalize_file_name): Cygwin 1.7 now provides this.
78279         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
78280         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
78281         on AT_SYMLINK_NOFOLLOW.
78283 2009-09-24  Eric Blake  <ebb9@byu.net>
78285         test-linkat: make test more robust
78286         * tests/test-linkat.c (main): Avoid collision with EEXIST.
78288         getopt: fix inclusion guards for cygwin
78289         * modules/getopt-posix (Depends-on): Add include-next.
78290         (Makefile.am): Substitute more items in replacement header.
78291         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
78292         <getopt.h>.
78293         * lib/getopt.in.h (includes): Use split inclusion guard, and
78294         prefer <getopt.h> over include <unistd.h> when one is present.
78295         (option): Also override name of 'struct option'.
78297         same-inode: revert prior change; it is not yet ready
78298         * NEWS: Undo mention of this change.
78299         * lib/same-inode.h (same-inode.h): Undo tri-state change.
78300         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78301         * lib/cycle-check.c (cycle_check): Likewise.
78302         * lib/same.c (same_name): Likewise.
78303         * lib/at-func2.c (at_func2): Likewise.
78305 2009-09-23  Eric Blake  <ebb9@byu.net>
78307         linkat: new module
78308         * modules/linkat: New file.
78309         * lib/at-func2.c (at_func2): Likewise.
78310         * lib/linkat.c (linkat): Likewise.
78311         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
78312         * lib/openat-priv.h (at_func2): Add declaration.
78313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78314         * modules/unistd (Makefile.am): Substitute them.
78315         * lib/unistd.in.h (linkat): Declare it.
78316         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78317         * doc/posix-functions/linkat.texi (linkat): Likewise.
78318         * doc/posix-functions/link.texi (link): Tweak wording.
78319         * tests/test-link.c (main): Move guts...
78320         * tests/test-link.h (test_link): ...into new file.
78321         * modules/linkat-tests: New test.
78322         * tests/test-linkat.c: Likewise.
78323         * modules/link-tests (Files): Ship new file.
78324         (Depends-on): Add stdbool.
78326         dirname: add library-safe mdir_name
78327         * lib/dirname.h (mdir_name): New prototype.
78328         * lib/dirname.c (dir_name): Move guts...
78329         (mdir_name): ...to new function that avoids xalloc_die.
78331         fchdir: another mingw fix
78332         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
78333         * lib/fchdir.c (get_name): New helper method; skips canonicalize
78334         on mingw (where it has not yet been ported), and make it optional
78335         elsewhere.
78336         (_gl_register_fd): Use it.
78338         same-inode: make SAME_INODE tri-state, to port to mingw
78339         * NEWS: Mention this change.
78340         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
78341         st_ino always being 0.
78342         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78343         * lib/cycle-check.c (cycle_check): Likewise.
78344         * lib/same.c (same_name): Likewise.
78346         lstat: avoid mingw compilation error
78347         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
78348         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
78349         lstat ourselves.
78350         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
78351         was adequate.
78352         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
78353         the checks for lstat.
78354         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
78356         link: fix test failure on Solaris 9
78357         * lib/link.c (rpl_link): Don't assume link will catch bogus
78358         trailing slash on source.
78360         test-symlinkat: enhance test
78361         * tests/test-readlink.c (main): Move guts...
78362         * tests/test-readlink.h (test_readlink): ...into new file.
78363         * tests/test-symlink.c (main): Move guts...
78364         * tests/test-symlink.h (test_symlink): ...into new file.
78365         * tests/test-symlinkat.c (main): Use new files for further
78366         coverage.
78367         (do_symlink, do_readlink): New helper functions.
78368         * modules/symlink-tests (Files): Ship new file.
78369         (Depends-on): Add stdbool.
78370         * modules/readlink-tests (Files): Ship new file.
78371         (Depends-on): Add stdbool.
78372         * modules/symlinkat-tests (Files): Use new files.
78374 2009-09-23  Eric Blake  <ebb9@byu.net>
78376         readlink: document portability issue with symlink length
78377         * doc/posix-functions/lstat.texi (lstat): Mention that some file
78378         systems have bogus st_size on symlinks, and mention the
78379         areadlink-with-size module.
78380         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78381         * doc/posix-functions/readlink.texi (readlink): Mention the
78382         areadlink module, and ERANGE failure.
78383         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78384         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
78386         readlink: fix Solaris 9 bug with trailing slash
78387         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
78388         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
78389         * doc/posix-functions/readlink.texi (readlink): Document this.
78390         * modules/readlink-tests: New test.
78391         * tests/test-readlink.c: Likewise.
78393         readlink: fix cygwin 1.5.x bug with return type
78394         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
78395         * lib/unistd.in.h (readlink): Use ssize_t.
78396         * lib/readlink.c (readlink): Likewise.
78397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78398         * modules/unistd (Makefile.am): Substitute it.
78399         * lib/unistd.in.h (readlink): Declare replacement.
78400         * doc/posix-functions/readlink.texi (readlink): Document this.
78402         symlink: use throughout gnulib
78403         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
78404         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
78405         symlink is not used.
78406         * modules/symlinkat (Depends-on): Add symlink.
78407         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
78408         * modules/canonicalize-tests (Depends-on): Likewise.
78409         * modules/lstat-tests (Depends-on): Likewise.
78410         * modules/openat-tests (Depends-on): Likewise.
78411         * modules/remove-tests (Depends-on): Likewise.
78412         * modules/rmdir-tests (Depends-on): Likewise.
78413         * modules/unlink-tests (Depends-on): Likewise.
78414         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
78415         * tests/test-canonicalize.c (symlink): Likewise.
78416         * tests/test-fstatat.c (symlink): Likewise.
78417         * tests/test-lstat.c (symlink): Likewise.
78418         * tests/test-remove.c (symlink): Likewise.
78419         * tests/test-rmdir.c (symlink): Likewise.
78420         * tests/test-unlink.c (symlink): Likewise.
78421         * tests/test-unlinkat.c (symlink): Likewise.
78423         symlink: new module, for Solaris 9 bug
78424         * modules/symlink: New file.
78425         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
78426         * lib/symlink.c: Likewise.
78427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78428         * modules/unistd (Makefile.am): Substitute them.
78429         * lib/unistd.in.h (symlink): Declare replacement.
78430         * MODULES.html.sh (File system functions): Mention it.
78431         * doc/posix-functions/symlink.texi (symlink): Likewise.
78432         * modules/symlink-tests: New test.
78433         * tests/test-symlink.c: Likewise.
78435 2009-09-23  Bruno Haible  <bruno@clisp.org>
78437         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
78438         when needed.
78439         Test case: gnulib-tool --import --with-tests atexit inttypes.
78440         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
78442 2009-09-23  Bruno Haible  <bruno@clisp.org>
78444         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
78445         subcommand, not in a subshell.
78447 2009-09-22  Eric Blake  <ebb9@byu.net>
78449         unistd: sort replacement declarations
78450         * lib/unistd.in.h: Sort declarations.
78452         open, openat: minor optimization
78453         * lib/open.c (open): If open succeeded, len is non-zero.
78454         * lib/openat.c (rpl_openat): Likewise.
78456         link-follow: ensure correct result
78457         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
78458         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
78459         distinguish between possible failures.
78461 2009-09-21  Eric Blake  <ebb9@byu.net>
78463         fts: avoid compiler warning
78464         * lib/fts.c (dirent_inode_sort_may_be_useful)
78465         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
78467 2009-09-19  Bruno Haible  <bruno@clisp.org>
78469         * lib/progreloc.c (canonicalize_file_name): New declaration.
78471 2009-09-19  Eric Blake  <ebb9@byu.net>
78473         link: fix quoting
78474         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
78476         openat: fix openat bugs on Solaris 9
78477         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
78478         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
78479         * modules/openat (Depends-on): Add open.
78480         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
78481         * modules/fcntl-h (Makefile.am): Substitute it.
78482         * lib/fcntl.in.h (openat): Declare replacement.
78483         * doc/posix-functions/openat.texi (openat): Document this.
78485         openat: move fstatat and unlinkat into correct files
78486         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
78487         compiled.
78488         * lib/openat.c (fstatat, unlinkat): Move...
78489         * lib/fstatat.c (fstatat): ...into correct files.
78490         * lib/unlinkat.c (unlinkat): Likewise.
78492         openat: fix unlinkat bugs on Solaris 9
78493         * lib/unlinkat.c (unlinkat): New file.
78494         * modules/openat (Depends-on): Add unlink.
78495         (Files): Distribute it.
78496         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
78497         trailing slash behavior is broken.
78498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78499         * modules/unistd (Makefile.am): Substitute it.
78500         * lib/unistd.in.h (unlinkat): Declare replacement.
78501         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
78503         openat: fix fstatat bugs on Solaris 9
78504         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
78505         stat.
78506         * doc/posix-functions/fstatat.texi (fstatat): Document this.
78508         test-unlinkat: enhance test, to expose Solaris 9 bug
78509         * tests/test-unlink.c (main): Factor guts...
78510         * tests/test-unlink.h (test_rmdir_func): ...into new file.
78511         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
78512         * tests/test-rmdir.c (main): Adjust caller.
78513         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
78514         (unlinker): New helper function.
78515         (rmdirat): Enhance check.
78516         * modules/rmdir-tests (Depends-on): Add stdbool.
78517         * modules/unlink-tests (Depends-on): Likewise.
78518         (Files): Add test-unlink.h.
78519         * modules/openat-tests (Files): Likewise.
78520         (Depends-on): Add unlinkdir.
78522         test-fstatat: new test, to expose Solaris 9 bugs
78523         * tests/test-stat.c (main): Factor guts...
78524         * tests/test-stat.h (test_stat_func): ...into new file.
78525         * tests/test-lstat.c (main): Factor guts...
78526         * tests/test-lstat.h (test_lstat_func): ...into new file.
78527         * tests/test-fstatat.c: New file.
78528         * modules/stat-tests (Files): Add test-stat.h.
78529         * modules/lstat-tests (Files): Add test-lstat.h.
78530         (Depends-on): Add stdbool.
78531         * modules/openat-tests (Depends-on): Add pathmax.
78532         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
78533         (Makefile.am): Run new test.
78535         remove: new module, for mingw and Solaris 9 bugs
78536         * modules/remove: New file.
78537         * lib/remove.c: Likewise.
78538         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
78539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78540         * modules/stdio (Makefile.am): Use them.
78541         * lib/stdio.in.h (remove): Declare replacement.
78542         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78543         * doc/posix-functions/remove.texi (remove): Likewise.
78544         * modules/remove-tests: New test.
78545         * tests/test-remove.c: Likewise.
78547         unlink: new module, for Solaris 9 bug
78548         * modules/unlink: New file.
78549         * lib/unlink.c: Likewise.
78550         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
78551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78552         * modules/unistd (Makefile.am): Use them.
78553         * lib/unistd.in.h (stat): Declare replacement.
78554         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78555         * doc/posix-functions/unlink.texi (unlink): Likewise.
78556         * modules/unlink-tests: New test.
78557         * tests/test-unlink.c: Likewise.
78559         lstat: fix Solaris 9 bug
78560         * lib/lstat.c (lstat): Also check for trailing slash on
78561         non-symlink, non-directories.  Use stat module to simplify logic.
78562         * doc/posix-functions/lstat.texi (lstat): Document it.
78563         * modules/lstat-tests (Depends-on): Add errno, same-inode.
78564         (configure.ac): Check for symlink.
78565         * tests/test-lstat.c (main): Add more tests.
78567         stat: add as dependency to other modules
78568         * modules/chown (Depends-on): Add stat.
78569         * modules/euidaccess (Depends-on): Likewise.
78570         * modules/fchdir (Depends-on): Likewise.
78571         * modules/isdir (Depends-on): Likewise.
78572         * modules/link (Depends-on): Likewise.
78573         * modules/lstat (Depends-on): Likewise.
78574         * modules/mkdir-p (Depends-on): Likewise.
78575         * modules/modechange (Depends-on): Likewise.
78576         * modules/open (Depends-on): Likewise.
78577         * modules/readlink (Depends-on): Likewise.
78578         * modules/same (Depends-on): Likewise.
78580         stat: fix Solaris 9 bug
78581         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
78582         slash.
78583         * lib/stat.c (rpl_stat): Work around it.
78584         * doc/posix-functions/stat.texi (stat): Update documentation.
78586         stat: new module, for mingw bug
78587         * modules/stat: New file.
78588         * lib/stat.c: Likewise.
78589         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
78590         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78591         * modules/sys_stat (Makefile.am): Use them.
78592         * lib/sys_stat.in.h (stat): Declare replacement.
78593         * lib/openat.c (fstatat): Deal with lstat and stat being function
78594         macros.
78595         * modules/openat (Depends-on): Add inline.
78596         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78597         * doc/posix-functions/stat.texi (stat): Likewise.
78598         * modules/stat-tests: New test.
78599         * tests/test-stat.c: Likewise.
78601 2009-09-19  Jim Meyering  <meyering@redhat.com>
78603         syntax-check: detect unnecessary inclusion of canonicalize.h
78604         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
78606 2009-09-19  Eric Blake  <ebb9@byu.net>
78608         canonicalize-lgpl: adjust clients to use correct header
78609         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
78610         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
78611         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
78612         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
78613         * lib/progreloc.c (includes): Likewise.
78615 2009-09-19  Jim Meyering  <meyering@redhat.com>
78617         test-posixtm.c: correct a comment
78618         * tests/test-posixtm.c: Correct first-line comment.
78619         Spotted by Eric Blake.
78621 2009-09-16  Jim Meyering  <meyering@redhat.com>
78623         posixtm-tests: make T const-correct; add a test case
78624         * tests/test-posixtm.c (T): Declare const.
78625         Add a test for -(2^31+1).
78626         Remove useless can-succeed-only-in-2002 test.
78628         posixtm-tests: adjust the sole failing test
78629         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
78630         expected output matches what mktime now produces.  Cross-checked via
78631         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
78633         posixtm: move #ifdef'd tests into a new module
78634         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
78635         * tests/test-posixtm.c: ... this new file.
78636         * modules/posixtm-tests: New module.
78638 2009-09-19  Eric Blake  <ebb9@byu.net>
78640         openat: simplify use of at-func.c
78641         * lib/at-func.c (includes): Include prerequisites here, to
78642         simplify requirements on client files.
78643         * lib/openat-priv.h: Add double-inclusion guard.
78644         * lib/faccessat.c (includes): Simplify.
78645         * lib/fchmodat.c (includes): Likewise.
78646         * lib/fchownat.c (includes): Likewise.
78647         * lib/mkdirat.c (includes): Likewise.
78648         * lib/mkfifoat.c (includes): Likewise.
78649         * lib/symlinkat.c (includes): Likewise.
78651         openat: allow return of fd 0
78652         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
78653         * modules/save-cwd (Depends-on): Replace fcntl-safer with
78654         unistd-safer.
78655         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
78656         <fcntl.h>; this module does not leak fds.
78657         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
78658         must be allowed to return 0, leaving openat_safer to add the
78659         safety.
78660         (openat_permissive): Avoid writing to just-opened fd 2 if
78661         restoring the current directory fails.
78662         * lib/openat-die.c (openat_restore_fail): Add comment.
78663         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
78664         (save_cwd): Guarantee safe fd, but without use of open_safer.
78665         * tests/test-openat.c: New test.
78666         * modules/openat-tests (Files, Makefile.am): Distribute and build
78667         new file.
78669         relocatable-prog-wrapper: fix build
78670         * modules/relocatable-prog-wrapper (Files): Update name of
78671         canonicalize m4 file, broken on 2009-09-17.
78672         Reported by emad hajjar <aleppos@hotmail.com>.
78674 2009-09-19  Bruno Haible  <bruno@clisp.org>
78676         * lib/safe-alloc.h: Use the standard header with GPL copyright.
78677         * lib/safe-alloc.c: Likewise.
78678         Reported by Ian Beckwith <ianb@erislabs.net>.
78680 2009-09-18  Bruno Haible  <bruno@clisp.org>
78682         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
78683         Reported by <erobles@sensacd.com.mx>.
78685 2009-09-17  Eric Blake  <ebb9@byu.net>
78687         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
78688         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
78689         slashes when checking if last component is missing.
78690         * tests/test-canonicalize.c (main): Test this.
78692         canonicalize, canonicalize-lgpl: honor // if distinct from /
78693         * modules/canonicalize (Files): Add double-slash-root.m4.
78694         * modules/canonicalize-lgpl (Files): Likewise.
78695         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
78696         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
78697         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
78698         fallback definition.
78699         (canonicalize_filename_mode): Use it to protect //.
78700         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
78701         (__realpath): Likewise.
78702         * tests/test-canonicalize.c (main): Test this.
78703         * tests/test-canonicalize-lgpl.c (main): Likewise.
78704         * modules/canonicalize-tests (Depends-on): Add same-inode.
78705         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
78707         canonicalize-lgpl: fix glibc bug with trailing slash
78708         * m4/canonicalize-lgpl.m4: Move contents...
78709         * m4/canonicalize.m4: ...here.
78710         (gl_CANONICALIZE_LGPL): Factor realpath check...
78711         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
78712         glibc 2.3.5 bug, fixed 2005-04-27.
78713         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
78714         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
78715         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
78716         * modules/canonicalize-lgpl (Files): Manage file rename.
78717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
78718         * modules/stdlib (Makefile.am): Substitute witness.
78719         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
78720         is needed.
78721         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
78722         replacement is required.
78723         * lib/canonicalize.c (canonicalize_file_name): Likewise.
78724         * doc/glibc-functions/canonicalize_file_name.texi
78725         (canonicalize_file_name): Document this.
78726         * doc/posix-functions/realpath.texi (realpath): Likewise.
78728         canonicalize-lgpl: reject non-directory with trailing slash
78729         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
78730         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
78731         catches failures in glibc 2.3.5.
78732         * tests/test-canonicalize.c (main): Likewise.
78734         canonicalize-lgpl: use native realpath if it works
78735         * lib/canonicalize-lgpl.c (realpath): Guard with
78736         FUNC_REALPATH_WORKS.
78737         * lib/stdlib.in.h (realpath): Make declaration optional based on
78738         HAVE_REALPATH.
78739         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
78740         native realpath works.
78741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
78742         * modules/stdlib (Makefile.am): Substitute witness.
78744         canonicalize, canonicalize-lgpl: use <stdlib.h>
78745         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
78746         (Include): Mention <stdlib.h>.
78747         (configure.ac): Mention functions we provide.
78748         * modules/canonicalize (configure.ac): Likewise.
78749         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
78750         realpath if canonicalize_file_name is missing.
78751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
78752         * modules/stdlib (Makefile.am): Substitute witnesses.
78753         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
78754         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
78755         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
78756         * NEWS: Document this.
78757         * doc/glibc-functions/canonicalize_file_name.texi
78758         (canonicalize_file_name): Likewise.
78759         * doc/posix-functions/realpath.texi (realpath): Likewise.
78760         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
78762         test-canonicalize: consolidate into single C program
78763         * tests/test-canonicalize.sh: Delete; move setup into...
78764         * tests/test-canonicalize.c (main): ...the program, making it
78765         easier to run in debugger.  Add some tests.
78766         * modules/canonicalize-tests (Files): Remove unused file.
78767         (Depends-on): Add progname.
78768         (configure.ac, Makefile.am): Simplify.
78770         test-canonicalize-lgpl: consolidate into single C program
78771         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
78772         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
78773         easier to run in debugger.  Add some tests.
78774         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
78775         (configure.ac, Makefile.am): Simplify.
78777         canonicalize: avoid resolvepath
78778         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
78779         unnecessary checks.
78780         * lib/canonicalize.c (includes): Simplify.
78781         (canonicalize_file_name): Drop resolvepath implementation.
78782         * modules/canonicalize (Depends-on): Drop filenamecat.
78784         canonicalize: don't lose errno
78785         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
78786         over calls to free.
78788         canonicalize: simplify errno handling
78789         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
78790         assignment.
78792         canonicalize, canonicalize-lgpl: update module dependencies
78793         * modules/canonicalize (Depends-on): Add extensions, lstat,
78794         pathmax, stdlib.
78795         (Files): Drop pathmax.h.
78796         (configure.ac): Adjust macro name.
78797         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
78798         lstat, stdlib, sys_stat.
78799         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
78800         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
78801         extensions.
78802         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
78803         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
78804         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
78805         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
78806         declaration, if available.
78807         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
78808         we can rely on the readlink module.
78809         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
78810         (includes): Use <unistd.h> unconditionally.
78812 2009-09-17  Eric Blake  <ebb9@byu.net>
78814         maint: make Include sections of modules consistent
78815         * modules/alloca: Use only header name; no need to list #include.
78816         * modules/alloca-opt: Likewise.
78817         * modules/arpa_inet: Likewise.
78818         * modules/canon-host: Likewise.
78819         * modules/configmake: Likewise.
78820         * modules/dirent: Likewise.
78821         * modules/eealloc: Likewise.
78822         * modules/environ: Likewise.
78823         * modules/fchdir: Likewise.
78824         * modules/fcntl: Likewise.
78825         * modules/fcntl-h: Likewise.
78826         * modules/gethrxtime: Likewise.
78827         * modules/gettime: Likewise.
78828         * modules/ignore-value: Likewise.
78829         * modules/inet_ntop: Likewise.
78830         * modules/inet_pton: Likewise.
78831         * modules/inttypes: Likewise.
78832         * modules/isnand-nolibm: Likewise.
78833         * modules/isnanf-nolibm: Likewise.
78834         * modules/mbchar: Likewise.
78835         * modules/mbfile: Likewise.
78836         * modules/mbiter: Likewise.
78837         * modules/mbuiter: Likewise.
78838         * modules/netdb: Likewise.
78839         * modules/netinet_in: Likewise.
78840         * modules/nproc: Likewise.
78841         * modules/pagealign_alloc: Likewise.
78842         * modules/poll: Likewise.
78843         * modules/printf-frexp: Likewise.
78844         * modules/pthread: Likewise.
78845         * modules/putenv: Likewise.
78846         * modules/random_r: Likewise.
78847         * modules/relocatable-prog: Likewise.
78848         * modules/search: Likewise.
78849         * modules/select: Likewise.
78850         * modules/selinux-h: Likewise.
78851         * modules/settime: Likewise.
78852         * modules/signal: Likewise.
78853         * modules/size_max: Likewise.
78854         * modules/socklen: Likewise.
78855         * modules/ssize_t: Likewise.
78856         * modules/stdarg: Likewise.
78857         * modules/stdbool: Likewise.
78858         * modules/stddef: Likewise.
78859         * modules/stdint: Likewise.
78860         * modules/stdio: Likewise.
78861         * modules/stdlib: Likewise.
78862         * modules/string: Likewise.
78863         * modules/strings: Likewise.
78864         * modules/sys_file: Likewise.
78865         * modules/sys_ioctl: Likewise.
78866         * modules/sys_select: Likewise.
78867         * modules/sys_socket: Likewise.
78868         * modules/sys_stat: Likewise.
78869         * modules/sys_time: Likewise.
78870         * modules/sys_times: Likewise.
78871         * modules/sys_utsname: Likewise.
78872         * modules/sys_wait: Likewise.
78873         * modules/sysexits: Likewise.
78874         * modules/time: Likewise.
78875         * modules/times: Likewise.
78876         * modules/tmpfile: Likewise.
78877         * modules/trim: Likewise.
78878         * modules/unistd: Likewise.
78879         * modules/wchar: Likewise.
78880         * modules/wctype: Likewise.
78882 2009-09-17  Bruno Haible  <bruno@clisp.org>
78884         Make getdate.y compile on QNX and NetBSD 5 / i386.
78885         * m4/getdate.m4 (gl_GETDATE): Conditionally define
78886         TIME_T_FITS_IN_LONG_INT.
78887         * lib/getdate.y (long_time_t): New type.
78888         (relative_time): Change type of 'seconds' field to long_time_t.
78889         (get_date): Update types of local variables. Check against overflow
78890         during conversion from long_time_t to time_t.
78891         Reported by Matt Kraai <kraai@ftbfs.org>
78892         and Hasso Tepper <hasso@netbsd.org>.
78894 2009-09-17  Bruno Haible  <bruno@clisp.org>
78896         * modules/COPYING: Update copyright years.
78897         * modules/README: Likeiwse.
78898         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
78899         Reported by Ian Beckwith <ianb@erislabs.net>.
78901 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
78903         * users.txt: Update references for gnuit package.
78905 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
78907         * m4/getdelim.m4: Fix typo in copyright line.
78909 2009-09-17  Bruno Haible  <bruno@clisp.org>
78911         * lib/atoll.c: Use the standard header with GPL copyright.
78912         * lib/argz.in.h: Likewise.
78913         * lib/glob.c: Likewise.
78914         * lib/glob-libc.h: Likewise.
78915         * lib/random_r.c: Likewise.
78916         * lib/siglist.h: Likewise.
78917         * lib/strsignal.c: Likewise.
78918         Reported by Ian Beckwith <ianb@erislabs.net>.
78920 2009-09-17  Eric Blake  <ebb9@byu.net>
78922         rmdir: ensure correct dependency order
78923         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
78925 2009-09-17  Bruno Haible  <bruno@clisp.org>
78927         Disable assertion that fails on NetBSD 5 / i386.
78928         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
78929         Reported by Sam Steingold <sds@gnu.org>
78930         and Hasso Tepper <hasso@netbsd.org>.
78932 2009-09-16  Eric Blake  <ebb9@byu.net>
78934         unlinkdir: port to mingw
78935         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
78936         on which no one can unlink a directory.
78938         stdlib: sort witness names
78939         * modules/stdlib (Makefile.am): Sort replacements.
78940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
78941         * lib/stdlib.in.h: Likewise.
78943         parse-duration-tests: avoid link failure
78944         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
78945         LIBINTL.
78946         Reported by Tom G. Christensen.
78948         openat-tests: ensure unlinkat behaves like rmdir
78949         * tests/test-rmdir.c (main): Factor guts...
78950         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
78951         * modules/rmdir-tests (Files): Ship new file.
78952         * modules/openat-tests: New test.
78953         * tests/test-unlinkat.c: Likewise.
78955         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
78956         * modules/rmdir-errno (Status, Notice): Now obsolete.
78958         rmdir: work around cygwin 1.5.x and mingw bugs
78959         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
78960         * lib/rmdir.c (rmdir): Work around it.
78961         * modules/rmdir (Status, Notice): No longer obsolete.
78962         (Files): Add dos.m4.
78963         (Depends-on): Add unistd.
78964         (configure.ac): Set witnesses.
78965         (License): Relax to LGPLv2+.
78966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
78967         * modules/unistd (Makefile.am): Substitute witnesses.
78968         * lib/unistd.in.h (rmdir): Declare replacement.
78969         * doc/posix-functions/rmdir.texi (rmdir): Document this.
78970         * modules/rmdir-tests: New tests.
78971         * tests/test-rmdir.c: Likewise.
78973 2009-09-15  Eric Blake  <ebb9@byu.net>
78975         fchdir: improve use of replacement functions
78976         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
78977         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
78978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
78979         REPLACE_CLOSEDIR.
78980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
78981         * modules/sys_stat (Makefile.am): Substitute correct witness.
78982         * modules/dirent (Makefile.am): Likewise.
78983         * modules/unistd (Makefile.am): Likewise.
78984         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
78985         * lib/unistd.in.h (dup): Likewise.
78986         * lib/sys_stat.in.h (fstat): Likewise.
78988         maint: ignore gnulib-tool temp files
78989         * .gitignore: Ignore files created during gnulib-tool --test.
78991 2009-09-13  Jim Meyering  <meyering@redhat.com>
78993         posixtm: don't reject a time that specify "60" as the number of seconds
78994         * lib/posixtm.c (posixtime): The code to reject invalid dates
78995         would also reject a time specified with the .60 suffix.
78996         But POSIX allows that, in order to accommodate leap seconds.
78997         So don't reject it.
78998         (main): Adjust tests accordingly.
78999         * modules/posixtm (Depends-on): Add stpcpy.
79001 2009-09-11  Jim Meyering  <meyering@redhat.com>
79003         announce-gen: include [$release_type] in emitted Subject:
79004         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
79005         e.g., [stable] in the emitted Subject: line.
79007 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79009         Remove obsolete macros from several modules.
79010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
79011         obsolete Autoconf macros with their modern counterparts.
79012         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
79013         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
79014         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
79015         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79016         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
79017         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79019         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
79020         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
79021         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
79022         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
79023         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
79024         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
79025         * m4/sockets.m4 (gl_SOCKETS): Likewise.
79026         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
79027         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
79028         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79029         * m4/time_r.m4 (gl_TIME_R): Likewise.
79030         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
79031         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
79032         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79034         Fix copyright header in build-aux scripts.
79035         * build-aux/git-version-gen: Fix copyright header to match GPLv3
79036         recommendation.
79037         * build-aux/ncftpput-ftp: Likewise.
79038         * build-aux/update-copyright: Likewise.
79040 2009-09-09  Eric Blake  <ebb9@byu.net>
79042         test-link: allow Linux choice of errno
79043         * tests/test-link.c (main): Relax test for alternate error.
79045         strndup: fix improper m4 caching
79046         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
79047         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
79048         (gl_PREREQ_STRNDUP): Delete.
79049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
79050         * modules/string (Makefile.am): Substitute it.
79051         * lib/string.in.h (strndup): Modernize prototype.
79053         getcwd: port to mingw
79054         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
79055         different from the POSIX assumptions made throughout the getcwd
79056         module; fortunately, the mingw getcwd does not need replacement.
79057         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
79058         * modules/getcwd-tests: New test.
79059         * tests/test-getcwd.c: Likewise.
79061         link: fix platform bugs
79062         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
79063         * lib/link.c (link): Work around them.  Fix related mingw bug.
79064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
79065         * modules/unistd (Makefile.am): Substitute it.
79066         * lib/unistd.in.h (link): Declare replacement.
79067         * doc/posix-functions/link.texi (link): Document this.
79068         * modules/link (Depends-on): Add strdup-posix, sys_stat.
79070         test-link: consolidate into single C program, test more cases
79071         * tests/test-link.sh: Delete.
79072         * tests/test-link.c: Test more error conditions.  Exposes bugs on
79073         at least Cygwin and Solaris.
79074         * modules/link-tests (Files): Remove unused file.
79075         (Depends-on): Add errno, sys_stat.
79076         (Makefile.am): Simplify.
79078 2009-09-08  Bruno Haible  <bruno@clisp.org>
79080         Work around towlower, towupper bug on mingw.
79081         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
79082         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
79083         * doc/posix-functions/towlower.texi: Mention the mingw bug.
79084         * doc/posix-functions/towupper.texi: Likewise.
79085         Reported by Eric Blake.
79087 2009-09-08  Jim Meyering  <meyering@redhat.com>
79089         build: don't try to run autoheader if we don't use it
79090         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
79091         is not used in configure.ac.
79093 2009-09-08  Eric Blake  <ebb9@byu.net>
79095         euidaccess: fix compilation error
79096         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
79098         rawmemchr: relax license
79099         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
79100         okay.
79101         Reported by Jim Meyering.
79103         mkfifoat: new module
79104         * modules/mkfifoat: New file.
79105         * lib/mkfifoat.c: Likewise.
79106         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
79107         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79108         * modules/sys_stat (Makefile.am): Use them.
79109         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
79110         * MODULES.html.sh (File system functions): Mention module.
79111         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79112         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79113         * modules/mkfifoat-tests: New test.
79114         * tests/test-mkfifoat.c: Likewise.
79116         strchrnul: relax license
79117         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
79118         okay.
79119         Reported by Jim Meyering.
79121 2009-09-08  Eric Blake  <ebb9@byu.net>
79123         fstatat: fix compilation on Solaris
79124         * lib/fstatat.c (includes): Add fcntl.h.
79125         Reported by Pádraig Brady.
79127 2009-09-07  Eric Blake  <ebb9@byu.net>
79129         rename: modernize replacement
79130         * modules/rename (Depends-on): Add stdio.
79131         (configure.ac): Declare witness.
79132         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
79133         stdio take care of replacement.
79134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
79135         * modules/stdio (Makefile.am): Substitute them.
79136         * lib/stdio.in.h (rename): Declare replacement.
79137         * lib/rename.c (includes): Allow cross-compilation to non-windows
79138         machines.
79139         * doc/posix-functions/rename.texi (rename): Improve
79140         documentation.
79142         stdio: sort witness names
79143         * modules/stdio (Makefile.am): Sort replacements.
79144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79145         * lib/stdio.in.h: Likewise.
79147         getcwd: minor cleanups
79148         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
79149         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
79151         openat: provide more convenience names
79152         * modules/faccessat (configure.ac): Add C witness.
79153         * lib/unistd.in.h (readlinkat): Fix typo.
79154         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
79155         convenience wrappers.
79156         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
79157         wrappers in syntax checks.
79159 2009-09-06  Eric Blake  <ebb9@byu.net>
79161         doc: fix comments in recent patches
79162         * lib/faccessat.c: Mention correct function.
79163         * lib/fchmodat.c: Likewise.
79164         * lib/fchownat.c: Likewise.
79165         * lib/symlinkat.c: Likewise.
79166         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
79167         constants.
79169         faccessat, symlinkat: continue cleanup of previous patch
79170         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
79171         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79172         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
79173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
79174         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
79175         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
79176         set.
79178 2009-09-06  Bruno Haible  <bruno@clisp.org>
79180         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
79181         (fstatat): Declare if GNULIB_FSTATAT is set.
79182         (mkdirat): Declare if GNULIB_MKDIRAT is set.
79183         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
79184         (unlinkat): Declare if GNULIB_UNLINKAT is set.
79185         * modules/fcntl-h (Files): Remove m4/openat.m4.
79186         * modules/sys_stat (Files): Remove m4/openat.m4.
79187         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
79188         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
79189         * modules/unistd (Files): Remove m4/openat.m4.
79190         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
79191         GNULIB_OPENAT.
79192         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
79193         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
79194         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
79195         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
79196         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
79197         gl_OPENAT_DEFAULTS.
79198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
79199         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
79200         Don't require gl_OPENAT_DEFAULTS.
79201         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
79202         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
79203         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
79204         (gl_OPENAT_DEFAULTS): Remove macro.
79206 2009-09-06  Bruno Haible  <bruno@clisp.org>
79208         * modules/openat (configure.ac): Remove unneeded witness.
79210 2009-09-06  Bruno Haible  <bruno@clisp.org>
79212         Set errno to ENOSYS when a function is entirely unsupported.
79213         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
79214         EOPNOTSUPP.
79215         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79216         * modules/chown (Depends-on): Remove errno.
79218 2009-09-06  Bruno Haible  <bruno@clisp.org>
79220         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
79222 2009-09-06  Bruno Haible  <bruno@clisp.org>
79224         * lib/sys_stat.in.h: Fix preprocessor command indentation.
79226 2009-09-06  Ben Pfaff  <blp@gnu.org>
79227             Bruno Haible  <bruno@clisp.org>
79229         Work around a glibc bug in strtok_r.
79230         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
79231         Undefine if UNDEFINE_STRTOK_R is set.
79232         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
79233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79234         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
79235         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
79236         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
79237         UNDEFINE_STRTOK_R.
79238         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
79240 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
79242         exclude: minor fix
79243         * lib/exclude.c: Include wctype.h
79245 2009-09-06  Akim Demaille  <demaille@gostai.com>
79247         bootstrap: improve error message
79248         * build-aux/bootstrap (find_tool): Upon failure, report the list
79249         of candidates.
79250         Honor the initial value of the envvar.
79252 2009-09-05  Eric Blake  <ebb9@byu.net>
79254         symlinkat: new module
79255         * modules/symlinkat: New file.
79256         * lib/symlinkat.c: Likewise.
79257         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
79258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79259         * modules/unistd (Makefile.am): Use them.
79260         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
79261         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
79262         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
79263         * MODULES.html.sh (File system functions): Mention module.
79264         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79265         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79266         * modules/symlinkat-tests: New test.
79267         * tests/test-symlinkat.c: Likewise.
79269         test-openat-safer: add more checks
79270         * tests/test-openat-safer.c (main): Check more code paths.
79272 2009-09-05  Jim Meyering  <meyering@redhat.com>
79274         syntax-check: detect unnecessary inclusion of openat.h
79275         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
79277 2009-09-05  Bruno Haible  <bruno@clisp.org>
79279         Support towlower, towupper.
79280         * doc/posix-functions/towlower.texi: Mention module wctype.
79281         * doc/posix-functions/towupper.texi: Likewise.
79282         * lib/wctype.in.h (towlower, towupper): New functions.
79283         * tests/test-wctype.c: Include stdio.h, stdlib.h.
79284         (ASSERT): New macro.
79285         (e): New variable.
79286         (main): Test also towlower, towupper. Test WEOF argument.
79287         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79289 2009-09-05  Bruno Haible  <bruno@clisp.org>
79291         Fix conversion behaviour when the input is invalid.
79292         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
79293         mark occurring in first pass of indirect conversion.
79294         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
79295         input.
79296         Found by clang's static analyzer.
79298 2009-09-05  Bruno Haible  <bruno@clisp.org>
79300         * tests/test-striconveh.c (main): Test indirect conversion on platforms
79301         where direct conversion is possible.
79303 2009-09-04  Eric Blake  <ebb9@byu.net>
79305         openat: fail with ENOENT on empty name
79306         * lib/openat-proc.c (openat_proc_name): Special-case the empty
79307         buffer.
79309         link-follow: fix logic bug in prior patch
79310         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
79311         reversed sense of yes and no in prior patch.  Avoid confusing
79312         compilation failure with desired semantics.
79314         link-follow: accommodate mingw and cross-compilation
79315         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
79316         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
79317         cross-compilation results to -1, to make linkat easier to
79318         implement when cross-compiling.  Trivially support mingw.
79319         * modules/link-follow (configure.ac): Call new name.
79320         * NEWS: Mention this.
79322 2009-09-03  Eric Blake  <ebb9@byu.net>
79324         faccessat: compile replacement
79325         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
79326         needed.
79328         fts: fix compilation error
79329         * lib/fts.c (includes): Re-add "openat.h", for
79330         openat_needs_fchdir.
79332         faccessat: new module
79333         * modules/faccessat: New file.
79334         * lib/faccessat.c: Likewise.
79335         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79337         * modules/unistd (Makefile.am): Use it.
79338         * lib/unistd.in.h (faccessat): Declare it.
79339         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
79340         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
79341         * MODULES.html.sh (File system functions): Mention it.
79342         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
79343         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
79345         euidaccess: prefer POSIX over non-standard implementation
79346         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
79347         * lib/euidaccess.c (euidaccess): Use it if available.
79349         openat: make template easier to use
79350         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
79351         AT_FUNC_F2 to be undefined.
79352         (VALIDATE_FLAG): New macro; use it to reject bad flags.
79353         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
79354         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
79355         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
79356         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
79357         Likewise.
79358         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
79359         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
79360         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
79361         Likewise.
79363         openat: declare in POSIX headers
79364         * NEWS: Mention this.
79365         * modules/openat (configure.ac): Declare witnesses.
79366         (Depends-on): Add fcntl-h, sys_stat, unistd.
79367         (Include): Mention correct headers.
79368         * modules/fcntl-h (Depends-on): Add link-warning.
79369         (Files): Add openat.m4.
79370         (Makefile.am): Substitute witnesses.
79371         * modules/sys_stat (Files, Makefile.am): Likewise.
79372         * modules/unistd (Files, Makefile.am): Likewise.
79373         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
79374         (gl_OPENAT_DEFAULTS): New macro.
79375         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
79376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
79377         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
79378         (SYS_STAT_H): Remove unused variable.
79379         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
79380         * lib/fcntl--.h (includes): Remove unneeded header.
79381         * lib/openat-safer.c (includes): Likewise.
79382         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
79383         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
79384         appropriate headers.
79385         (__OPENAT_PREFIX): Delete.
79386         * lib/fcntl.in.h (openat): Provide declaration.
79387         (AT_FDCWD): Fix Solaris bug.
79388         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
79389         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
79390         * lib/fchmodat.c (includes):  Adjust to find declaration.
79391         * lib/fchownat.c (includes): Likewise.
79392         * lib/mkdirat.c (includes): Likewise.
79393         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
79394         still visible.
79396 2009-09-02  Eric Blake  <ebb9@byu.net>
79398         errno: use consistently
79399         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
79400         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
79401         * lib/canonicalize.c (ELOOP): Likewise.
79402         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
79403         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
79404         * lib/lchown.c (EOPNOTSUPP): Likewise.
79405         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
79406         * lib/savewd.c (ESTALE): Likewise.
79407         * lib/settime.c (ENOSYS): Likewise.
79408         * lib/utimens.c (ENOSYS): Likewise.
79409         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
79410         * lib/chdir-safer.c (ELOOP): Likewise.
79411         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
79412         * modules/c-stack (Depends-on): Add errno.
79413         * modules/canonicalize (Depends-on): Likewise.
79414         * modules/chdir-safer (Depends-on): Likewise.
79415         * modules/fdopendir (Depends-on): Likewise.
79416         * modules/inet_ntop (Depends-on): Likewise.
79417         * modules/inet_pton (Depends-on): Likewise.
79418         * modules/lchown (Depends-on): Likewise.
79419         * modules/openat (Depends-on): Likewise.
79420         * modules/savewd (Depends-on): Likewise.
79421         * modules/settime (Depends-on): Likewise.
79422         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
79424         fts: avoid leaking fds
79425         * modules/fts (Depends-on): Add cloexec.
79426         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
79427         flag.
79429         fts: make directory fds more robust
79430         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
79431         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
79433         backupfile, chdir-long, fts, savedir: make safer
79434         * lib/backupfile.c (includes): Use "dirent--.h", since
79435         numbered_backup can write to stderr during readdir.
79436         * lib/savedir.c (includes): Likewise.
79437         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
79438         emulation can write to stderr on failure.
79439         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
79440         * lib/getcwd.c: Document why opendir_safer is unused.
79441         * lib/glob.c: Likewise.
79442         * lib/scandir.c: Likewise.
79443         * lib/openat-proc.c: Likewise, for open_safer.
79444         * modules/backupfile (Depends-on): Add dirent-safer.
79445         * modules/savedir (Depends-on): Likewise.
79446         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
79447         * modules/chdir-long (Depends-on): Add openat-safer.
79449         openat-safer: new module
79450         * modules/openat-safer: New file.
79451         * lib/openat-safer.c: Likewise.
79452         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
79453         * lib/fcntl-safer.h (openat_safer): Declare.
79454         * lib/fcntl--.h (openat): Override.
79455         * MODULES.html.sh (File descriptor based I/O): Mention it.
79456         * lib/openat.h: Add double-inclusion guards.
79457         * lib/openat.c (includes): Only include "fcntl-safer.h", not
79458         "fcntl--.h", so we can implement openat.
79459         * modules/openat-safer-tests: New test.
79460         * tests/test-openat-safer.c: New file.
79462         dirent-safer: new module
79463         * modules/dirent-safer: New file.
79464         * lib/dirent--.h: Likewise.
79465         * lib/dirent-safer.h: Likewise.
79466         * lib/opendir-safer.c: Likewise.
79467         * m4/dirent-safer.m4: Likewise.
79468         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
79469         * modules/dirent-safer-tests: New test.
79470         * tests/test-dirent-safer.c: New file.
79471         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
79473         fdopendir: optimize on mingw
79474         * lib/unistd.in.h (_gl_directory_name): New prototype.
79475         * lib/fchdir.c (_gl_directory_name): Implement it.
79476         (fchdir): Use it to simplify implementation.
79477         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
79478         fchdir, when available, to avoid calling [f]chdir().
79480         fdopendir: split into its own module
79481         * lib/openat.c (fdopendir): Move...
79482         * lib/fdopendir.c: ...into new file.
79483         * modules/fdopendir: New module.
79484         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
79485         * modules/openat (Depends-on): Add fdopendir.
79486         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
79487         fdopendir here.
79488         * modules/savedir (Depends-on): Only need fdopendir, not full
79489         openat.
79490         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
79491         * lib/openat.h (fdopendir): Drop prototype.
79492         * lib/dirent.in.h (fdopendir): Provide prototype.
79493         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
79494         * modules/dirent (Makefile.am): Substitute them.
79495         * MODULES.html.sh (File system functions): Mention it.
79496         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
79497         * modules/fdopendir-tests: New file.
79498         * tests/test-fdopendir.c: Likewise.
79500         fchdir: use more consistent macro convention
79501         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
79502         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
79503         REPLACE_FCHDIR, rather than relying on config.h macros.
79504         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
79505         inside a single make-time REPLACE_FCHDIR block, rather than using
79506         the config.h FCHDIR_REPLACEMENT.
79507         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
79508         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
79509         Manage fstat replacement.
79510         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
79511         REPLACE_FCHDIR.
79512         * modules/sys_stat (Files): Add m4/unistd_h.m4.
79513         (Makefile.am): Substitute REPLACE_FCHDIR.
79514         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
79515         FCHDIR_REPLACEMENT.
79516         * lib/dup-safer.c (dup_safer): Likewise.
79517         * lib/dup2.c (rpl_dup2): Likewise.
79518         * lib/dup3.c (rpl_dup3): Likewise.
79519         * lib/open.c (rpl_open): Likewise.
79521         fchdir: simplify error handling, and support dup3
79522         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
79523         stdbool, malloc-posix, realloc-posix.
79524         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
79525         (ensure_dirs_slot): Return false on allocation failure.
79526         (rpl_dup2): Delete.
79527         (_gl_register_dup): New function.
79528         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
79529         (_gl_register_fd): Close fd on allocation failure.
79530         * lib/fcntl.in.h (_gl_register_fd): Update signature.
79531         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
79532         prototype.
79533         (rpl_dup2_fchdir): Delete prototype.
79534         * lib/open.c (open): Update caller.
79535         * lib/dup2.c (dup2): Track fchdir metadata.
79536         * lib/dup3.c (dup3): Likewise.
79537         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
79538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
79540 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79542         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
79543         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
79544         don't pass arguments to AC_OUTPUT.
79546 2009-09-02  Bruno Haible  <bruno@clisp.org>
79548         * modules/mkdtemp (License): Relicense under LGPLv2+.
79549         Reported by Paolo Bonzini.
79551 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79553         Replace uses of obsolete autoconf macros in Jim's modules.
79554         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
79555         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
79556         can evoke a warning from autoconf when run with -Wobsolete
79557         enabled.  They were declared obsolete for good reasons (see
79558         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
79559         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
79560         should not continue using the deprecated macros.
79561         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
79562         obsolete Autoconf macros with modern counterparts.
79563         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79564         * m4/dos.m4 (gl_AC_DOS): Likewise.
79565         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
79566         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
79567         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
79568         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
79569         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
79570         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
79571         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
79572         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
79573         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
79574         Likewise.
79575         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
79576         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79577         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
79578         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
79579         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
79580         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79582 2009-09-01  Eric Blake  <ebb9@byu.net>
79584         fchdir: fix off-by-one bug in previous patch
79585         * lib/fchdir.c (rpl_fstat): Use correct bounds.
79586         (_gl_unregister_fd): Delete useless if.
79588 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
79590         maint.mk: sort the list of syntax-check rules
79591         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
79592         easier to get a sense of progress when the rules are run sequentially
79593         and take a long time.
79595 2009-09-01  Simon Josefsson  <simon@josefsson.org>
79597         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
79598         * modules/netinet_in: Likewise.
79599         * modules/sys_file: Likewise.
79600         * modules/sys_ioctl: Likewise.
79601         * modules/sys_select: Likewise.
79602         * modules/sys_socket: Likewise.
79603         * modules/sys_stat: Likewise.
79604         * modules/sys_time: Likewise.
79605         * modules/sys_times: Likewise.
79606         * modules/sys_utsname: Likewise.
79607         * modules/sys_wait: Likewise.
79609 2009-09-01  Jim Meyering  <meyering@redhat.com>
79611         fts: help ensure that return values are not ignored
79612         * lib/fts_.h (__GNUC_PREREQ): Define.
79613         (__attribute_warn_unused_result__): Define.
79614         (fts_children, fts_close, fts_open, fts_read): Declare with
79615         __attribute_warn_unused_result__.
79617         fts: fts_close now fails also when closing a dir file descriptor fails
79618         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
79619         and propagate to caller, along with errno.
79621         announce-gen: correct formatting in --help output
79622         * build-aux/announce-gen (usage): Move the one-line description in
79623         --help output "up", to where it belongs, just after Usage:.
79625 2009-08-31  Eric Blake  <ebb9@byu.net>
79627         fchdir: port to mingw
79628         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
79629         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
79630         opened, then use a substitute.
79631         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
79632         replacement.
79633         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
79634         (_gl_register_fd): No need to check stat if open already filters
79635         all directories.
79636         (fchdir): Fix error condition to match POSIX.
79637         * modules/fchdir (Depends-on): Add sys_stat.
79638         * doc/posix-functions/open.texi (open): Document the limitation.
79639         * modules/fchdir-tests: New file.
79640         * tests/test-fchdir.c: Likewise.
79642         canonicalize: allow cross-testing from cygwin to mingw
79643         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
79644         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
79645         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
79646         Likewise.
79647         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
79648         target does not support symlinks.
79649         * tests/test-canonicalize-lgpl.sh: Likewise.
79651         chown: avoid compilation warning on mingw
79652         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
79653         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
79654         mingw.
79655         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79656         * modules/chown (Depends-on): Add errno.
79658 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
79660         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
79661         command.
79663 2009-08-31  Jim Meyering  <meyering@redhat.com>
79665         canonicalize: remove useless initialization
79666         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
79667         initialization of local, "end".
79669 2009-08-30  Bruno Haible  <bruno@clisp.org>
79671         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
79672         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
79673         ENOSYS.
79675 2009-08-30  Bruno Haible  <bruno@clisp.org>
79677         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
79678         /usr/xpg4/bin/tr when it exists.
79679         * tests/test-pipe-filter-gi1.sh: Likewise.
79681 2009-08-30  Bruno Haible  <bruno@clisp.org>
79683         Work around deficient /usr/bin/id program on Solaris.
79684         * tests/test-file-has-acl.sh (ID): New variable.
79685         * tests/test-set-mode-acl.sh (ID): Likewise.
79686         * tests/test-copy-acl.sh (ID): Likewise.
79687         * tests/test-copy-file.sh (ID): Likewise.
79689 2009-08-30  Bruno Haible  <bruno@clisp.org>
79691         New module 'xstriconveh'.
79692         * lib/xstriconveh.h: New file.
79693         * lib/xstriconveh.c: New file.
79694         * modules/xstriconveh: New file.
79696 2009-08-30  Bruno Haible  <bruno@clisp.org>
79698         Make it easier to use mem_cd_iconveh.
79699         * lib/striconveh.h (iconveh_t): New type.
79700         (iconveh_open, iconveh_close): New declarations.
79701         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
79702         with a single 'const iconveh_t *' argument.
79703         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
79704         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
79705         with a single 'const iconveh_t *' argument.
79706         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
79707         * tests/test-striconveh.c (main): Update.
79708         * NEWS: Mention the change.
79710 2009-08-30  Bruno Haible  <bruno@clisp.org>
79712         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
79713         problem.
79715 2009-08-30  Bruno Haible  <bruno@clisp.org>
79717         Work around iconv_open problem on Solaris.
79718         * lib/iconv_open-solaris.gperf: New file.
79719         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
79720         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
79721         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
79722         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
79723         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
79724         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
79726 2009-08-29  Jim Meyering  <meyering@redhat.com>
79728         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
79729         * top/maint.mk (cvs-check): Remove target; it was just an alias
79730         to the better-named vc-diff-check.
79731         (maintainer-distcheck): Remove rule.  It was used only from
79732         the (alpha/beta/major) target, and all of its commands but one
79733         were coreutils-specific.
79734         (vc-dist): Remove rule.
79735         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
79736         Run vc-diff-check, not vc-dist.
79737         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
79739 2009-08-27  Bruno Haible  <bruno@clisp.org>
79741         * tests/test-bitrotate.c (main): Remove test that uses a shift count
79742         of 0.
79744 2009-08-27  Bruno Haible  <bruno@clisp.org>
79746         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
79747         compilers.
79748         * doc/func.texi: Document the SunPRO C bug.
79750 2009-08-27  Bruno Haible  <bruno@clisp.org>
79752         Fix link error on Solaris.
79753         * tests/test-parse-duration.c (xstrdup): Remove function.
79755 2009-08-26  Pádraig Brady  <P@draigbrady.com>
79757         ignore-value: handle pointer types, too
79758         * lib/ignore-value.h (__attribute__): Remove definition.
79759         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
79760         of a more concise and more-often effective "(void) i" statement.
79761         (ignore_ptr): New function to suppress warnings from functions that
79762         return pointers, and to make it explicit that one function doesn't
79763         handle all cases.
79765 2009-08-25  Bruno Haible  <bruno@clisp.org>
79767         dup2: work around a Linux bug.
79768         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
79769         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
79770         * doc/posix-functions/dup2.texi: Mention the Linux bug.
79771         Reported by Simon Josefsson.
79773 2009-08-25  Jim Meyering  <meyering@redhat.com>
79775         libguestfs uses gnulib
79776         * users.txt: Add libguestfs.
79778 2009-08-24  Eric Blake  <ebb9@byu.net>
79780         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
79781         * lib/pipe2.c (includes): Add binary-io.h.
79782         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
79784 2009-08-24  Bruno Haible  <bruno@clisp.org>
79786         Tolerate declared but missing accept4 syscall.
79787         * lib/accept4.c (accept4): Invoke original accept4 function first, if
79788         available.
79789         * lib/sys_socket.in.h (accept4): If the function is already present,
79790         override it.
79791         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
79792         * modules/accept4 (Makefile.am): Compile accept4.c always.
79793         Reported by Paolo Bonzini and Eric Blake.
79795 2009-08-23  Bruno Haible  <bruno@clisp.org>
79797         New module 'accept4'.
79798         * lib/sys_socket.in.h (accept4): New declaration.
79799         * lib/accept4.c: New file.
79800         * m4/accept4.m4: New file.
79801         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
79802         GNULIB_ACCEPT4, HAVE_ACCEPT4.
79803         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
79804         HAVE_ACCEPT4.
79805         * modules/accept4: New file.
79806         * doc/glibc-functions/accept4.texi: Mention the new module.
79808 2009-08-24  Jim Meyering  <meyering@redhat.com>
79810         progname: also set global program_invocation_name, when possible
79811         Before this change, a libtool-enabled program that calls glibc's
79812         error function would report the program name as
79813         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
79814         * modules/progname (configure.ac): Check for a declaration of
79815         program_invocation_name.
79816         * lib/progname.c:  Include <errno.h>.
79817         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
79818         Set program_invocation_name.
79820 2009-08-23  Bruno Haible  <bruno@clisp.org>
79822         * lib/dup3.c: Include <string.h>.
79824 2009-08-23  Bruno Haible  <bruno@clisp.org>
79826         * lib/dup3.c (dup3): Test only once whether the system actually exists.
79827         * lib/pipe2.c (pipe2): Likewise.
79828         Suggested by Eric Blake.
79830 2009-08-23  Bruno Haible  <bruno@clisp.org>
79832         Tolerate declared but missing dup3 syscall.
79833         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
79834         * lib/unistd.in.h (dup3): If the function is already present,
79835         override it.
79836         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
79837         * modules/dup3 (Makefile.am): Compile dup3.c always.
79838         Reported by Paolo Bonzini.
79840 2009-08-23  Bruno Haible  <bruno@clisp.org>
79842         Tolerate declared but missing pipe2 syscall.
79843         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
79844         available.
79845         * lib/unistd.in.h (pipe2): If the function is already present,
79846         override it.
79847         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
79848         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
79849         Reported by Paolo Bonzini.
79851 2009-08-23  Bruno Haible  <bruno@clisp.org>
79853         * lib/pipe2.c (pipe2): Move #ifs inside function.
79855 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
79857         quotearg: document limitations of quote_these_too
79858         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
79859         those limitations are created.
79860         * lib/quotearg.h (set_char_quoting): Document that digits and
79861         letters that are special after backslash are not permitted.
79862         (quotearg_char): Cross-reference set_char_quoting documentation.
79864 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
79866         quotearg: implement custom_quoting_style
79867         * lib/quotearg.c: (struct quoting_options): Add left_quote and
79868         right_quote fields.
79869         (set_custom_quoting): New public function.
79870         (quotearg_buffer_restyled): Add left_quote and right_quote
79871         arguments, handle them very much like locale quoting, and update
79872         all uses.
79873         (quotearg_n_custom): New public function.
79874         (quotearg_n_custom_mem): New public function.
79875         (quotearg_custom): New public function.
79876         (quotearg_custom_mem): New public function.
79877         * lib/quotearg.h: Prototype and document new public functions.
79878         (enum quoting_style): For escape_quoting_style and
79879         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
79880         ignored even though they're otherwise like c_quoting_style.
79881         Add custom_quoting_style member and document with comparison to
79882         clocale_quoting_style.
79883         * tests/test-quotearg.c (custom_quotes): New array.
79884         (custom_results): New array.
79885         (main): Extend to test custom quoting.
79887 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
79889         quotearg: fix right quote escaping when it's in quote_these_too
79890         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
79891         quote, be sure to prepend only one backslash.
79892         * tests/test-quotearg.c (use_quote_double_quotes): New function.
79893         (main): Test it.
79895 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
79897         quotearg-tests: test escaping of embedded locale quotes
79898         * tests/test-quotearg.c (struct result_strings): Add member for
79899         new input.
79900         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
79901         (inputs): Add new input.
79902         (results_g): Add expected results.
79903         (flag_results): Likewise.
79904         (locale_results): Likewise.
79905         (compare_strings): Check those.
79907 2009-08-23  Bruno Haible  <bruno@clisp.org>
79909         Tests for module 'dup3'.
79910         * modules/dup3-tests: New file.
79911         * tests/test-dup3.c: New file.
79913         New module 'dup3'.
79914         * lib/unistd.in.h (dup3): New declaration.
79915         * lib/dup3.c: New file.
79916         * m4/dup3.m4: New file.
79917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
79918         HAVE_DUP3.
79919         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
79920         * modules/dup3: New file.
79921         * doc/glibc-functions/dup3.texi: Mention the new module.
79923 2009-08-23  Bruno Haible  <bruno@clisp.org>
79925         Tweak the dup2 test.
79926         * tests/test-dup2.c (main): Create the test file empty. Verify that an
79927         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
79928         the test file is still empty. Fix argument order of lseek.
79930 2009-08-23  Bruno Haible  <bruno@clisp.org>
79932         Avoid test link errors when the modules getopt-gnu, gettext are used.
79933         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
79934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79936 2009-08-23  Bruno Haible  <bruno@clisp.org>
79938         Fix getdtablesize() on mingw.
79939         * lib/getdtablesize.c (getdtablesize): Implement differently.
79940         * lib/unistd.in.h (getdtablesize): Improve comment.
79942 2009-08-23  Bruno Haible  <bruno@clisp.org>
79944         New module 'mkostemp'.
79945         Based on Ulrich Drepper's 2007-08-10 change in glibc.
79946         * lib/stdlib.in.h (mksotemp): New declaration.
79947         * lib/mkostemp.c: New file, from glibc with modifications.
79948         * lib/tempname.h (GT_FILE): Remove outdated comment.
79949         (gen_tempname): Add flags argument.
79950         * lib/tempname.c (__GT_BIGFILE): Remove macro.
79951         (__GT_FILE): Map to 1.
79952         (small_open, large_open): Remove macros.
79953         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
79954         * lib/mkstemp.c (mkstemp): Update.
79955         * lib/mkdtemp.c (mkdtemp): Likewise.
79956         * m4/mkostemp.m4: New file.
79957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
79958         HAVE_MKOSTEMP.
79959         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
79960         HAVE_MKOSTEMP.
79961         * modules/mkostemp: New file, based on modules/mkstemp.
79962         * doc/glibc-functions/mkostemp.texi: Mention the new module.
79963         * NEWS: Mention the change.
79965 2009-08-23  Bruno Haible  <bruno@clisp.org>
79967         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
79968         Reported by Eric Blake.
79970 2009-08-23  Bruno Haible  <bruno@clisp.org>
79972         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
79973         Reported by Eric Blake.
79975 2009-08-23  Bruno Haible  <bruno@clisp.org>
79977         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
79978         * modules/pipe2 (Depends-on): Likewise.
79980 2009-08-23  Eric Blake  <ebb9@byu.net>
79982         fcntl-h: add O_TTY_INIT support
79983         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
79984         * tests/test-fcntl-h.c (o): Test it.
79985         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
79987         fcntl-h: rename from fcntl, in preparation for fcntl(2)
79988         * modules/fcntl: Move <fcntl.h> header replacement...
79989         * modules/fcntl-h: ...to new name, so as not to collide with
79990         like-named function.
79991         * tests/test-fcntl.c: Rename...
79992         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
79993         * modules/fcntl-tests: Rename...
79994         * modules/fcntl-h-tests: ...to this.  Update test file name.
79995         * modules/chdir-long (Depends-on): Update clients.
79996         * modules/chdir-safer (Depends-on): Likewise.
79997         * modules/fcntl-safer (Depends-on): Likewise.
79998         * modules/fts (Depends-on): Likewise.
79999         * modules/mkancesdirs (Depends-on): Likewise.
80000         * modules/mkdir-p (Depends-on): Likewise.
80001         * modules/open (Depends-on): Likewise.
80002         * modules/savewd (Depends-on): Likewise.
80003         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
80004         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80006 2009-08-22  Bruno Haible  <bruno@clisp.org>
80008         * modules/binary-io (License): Relicense under LGPL.
80009         * modules/pipe2 (License): Likewise.
80011 2009-08-22  Bruno Haible  <bruno@clisp.org>
80013         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
80014         return value.
80015         * lib/pipe-filter-gi.c (filter_init): Likewise.
80016         Reported by Eric Blake.
80018 2009-08-22  Bruno Haible  <bruno@clisp.org>
80020         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
80021         * modules/pipe (Depends-on): Add pipe2.
80023 2009-08-22  Bruno Haible  <bruno@clisp.org>
80025         Tests for module 'pipe2'.
80026         * modules/pipe2-tests: New file.
80027         * tests/test-pipe2.c: New file.
80029         New module 'pipe2'.
80030         * lib/unistd.in.h (pipe2): New declaration.
80031         * lib/pipe2.c: New file.
80032         * m4/pipe2.m4: New file.
80033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
80034         HAVE_PIPE2.
80035         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
80036         * modules/pipe2: New file.
80037         * doc/glibc-functions/pipe2.texi: Mention the new module.
80039 2009-08-22  Bruno Haible  <bruno@clisp.org>
80041         Reference some new glibc functions.
80042         * doc/glibc-functions/accept4.texi: New file.
80043         * doc/glibc-functions/dup3.texi: New file.
80044         * doc/glibc-functions/mkostemp.texi: New file.
80045         * doc/glibc-functions/pipe2.texi: New file.
80046         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
80047         (Glibc sys/socket.h): Refer to accept4.
80048         (Glibc unistd.h): Refer to dup3, pipe2.
80049         Reported by Eric Blake.
80051 2009-08-22  Jim Meyering  <meyering@redhat.com>
80052             Bruno Haible  <bruno@clisp.org>
80054         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
80055         This makes it so packages using automake-1.11's silent-rules option
80056         can print e.g., a single "GEN    configmake.h" line, rather than
80057         the 30+ statements that perform the job.  If you want to see the
80058         actual commands, you can still run "make V=1".
80059         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
80060         so that make output is abbreviated when those variables are defined
80061         appropriately.
80062         * modules/argz: Likewise.
80063         * modules/arpa_inet: Likewise.
80064         * modules/byteswap: Likewise.
80065         * modules/configmake: Likewise.
80066         * modules/dirent: Likewise.
80067         * modules/errno: Likewise.
80068         * modules/fcntl: Likewise.
80069         * modules/float: Likewise.
80070         * modules/fnmatch: Likewise.
80071         * modules/getopt-posix: Likewise.
80072         * modules/glob: Likewise.
80073         * modules/iconv_open: Likewise.
80074         * modules/inttypes: Likewise.
80075         * modules/localcharset: Likewise.
80076         * modules/locale: Likewise.
80077         * modules/math: Likewise.
80078         * modules/netdb: Likewise.
80079         * modules/netinet_in: Likewise.
80080         * modules/poll: Likewise.
80081         * modules/posix_spawnp-tests: Likewise.
80082         * modules/sched: Likewise.
80083         * modules/search: Likewise.
80084         * modules/selinux-h: Likewise.
80085         * modules/signal: Likewise.
80086         * modules/spawn: Likewise.
80087         * modules/stdarg: Likewise.
80088         * modules/stdbool: Likewise.
80089         * modules/stddef: Likewise.
80090         * modules/stdint: Likewise.
80091         * modules/stdio: Likewise.
80092         * modules/stdlib: Likewise.
80093         * modules/string: Likewise.
80094         * modules/strings: Likewise.
80095         * modules/sys_file: Likewise.
80096         * modules/sys_ioctl: Likewise.
80097         * modules/sys_select: Likewise.
80098         * modules/sys_socket: Likewise.
80099         * modules/sys_stat: Likewise.
80100         * modules/sys_time: Likewise.
80101         * modules/sys_times: Likewise.
80102         * modules/sys_utsname: Likewise.
80103         * modules/sys_wait: Likewise.
80104         * modules/sysexits: Likewise.
80105         * modules/time: Likewise.
80106         * modules/unistd: Likewise.
80107         * modules/wchar: Likewise.
80108         * modules/wctype: Likewise.
80110 2009-08-22  Jim Meyering  <meyering@redhat.com>
80112         announce-gen: detect write failure
80113         * build-aux/announce-gen: Add Coda at end.
80114         Remove equivalent-but-more-verbose block at top.
80116 2009-08-19  Akim Demaille  <demaille@gostai.com>
80118         bootstrap: --help to stdout.
80119         * bootstrap (usage): Don't send --help to stderr.
80120         Use a here doc instead of a long string.
80122 2009-08-21  Eric Blake  <ebb9@byu.net>
80124         test-popen-safer: split from test-popen
80125         * tests/test-popen.c (main): Move...
80126         * tests/test-popen.h: ...into new file.
80127         * tests/test-popen-safer2.c: New file.
80128         * modules/popen-tests (Files): Add test-popen.h.
80129         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
80130         Suggested by Bruno Haible.
80132         test-fcntl-safer: split from test-open
80133         * tests/test-open.c (main): Move...
80134         * tests/test-open.h: ...into new file.
80135         * tests/test-fcntl-safer.c: New file.
80136         * modules/open-tests (Files): Add test-open.h.
80137         * modules/fcntl-safer-tests: New file.
80138         Suggested by Bruno Haible.
80140         test-fopen-safer: split from test-fopen
80141         * tests/test-fopen.c (main): Move...
80142         * tests/test-fopen.h: ...into new file.
80143         * tests/test-fopen-safer.c: New file.
80144         * modules/fopen-tests (Files): Add test-fopen.h.
80145         * modules/fopen-safer-tests: New file.
80146         Suggested by Bruno Haible.
80148 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80150         popen-safer: test O_CLOEXEC at run-time.
80151         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
80153 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80155         fcntl: move more flags to the header
80156         * lib/cloexec.c: Do not define FD_CLOEXEC here.
80157         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
80158         * lib/fcntl.in.h: Do both things here.
80160 2009-08-21  Jim Meyering  <meyering@redhat.com>
80162         consistently remove $@-t before redirecting to it
80163         * modules/argz: Remove $@-t and $@ before redirecting to the former.
80164         * modules/alloca-opt: Likewise.
80165         * modules/byteswap: Likewise.
80166         * modules/fnmatch: Likewise.
80167         * modules/getopt-posix: Likewise.
80168         * modules/glob: Likewise.
80169         * modules/poll: Likewise.
80170         * modules/posix_spawnp-tests: Likewise.
80171         * modules/sys_socket: Likewise.
80172         * modules/sysexits: Likewise.
80174 2009-08-21  Eric Blake  <ebb9@byu.net>
80176         popen: simplify access to original popen
80177         * lib/popen.c (rpl_popen): No need to worry about popen being a
80178         macro.
80179         Reported by Bruno Haible.
80181 2009-08-20  Eric Blake  <ebb9@byu.net>
80183         build: avoid some compiler warnings
80184         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
80185         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
80186         type.
80187         (new_exclude_segment, excluded_file_pattern_p)
80188         (excluded_file_name_p): Reduce scope.
80189         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
80190         old-style declaration.
80192 2009-08-20  Simon Josefsson  <simon@josefsson.org>
80194         * tests/test-exclude1.sh: Handle Windows EOL.
80195         * tests/test-exclude2.sh: Likewise.
80196         * tests/test-exclude3.sh: Likewise.
80197         * tests/test-exclude4.sh: Likewise.
80198         * tests/test-exclude5.sh: Likewise.
80199         * tests/test-exclude6.sh: Likewise.
80200         * tests/test-exclude7.sh: Likewise.
80202 2009-08-19  Akim Demaille  <demaille@gostai.com>
80204         bootstrap: find sha1sum when named gsha1sum.
80205         * bootstrap (find_tool): New.
80206         ($SHA1SUM): New.
80207         Use it.
80209 2009-08-20  Jim Meyering  <meyering@redhat.com>
80211         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
80212         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
80213         expression that converts "." in a file name to "\." in the resulting
80214         regexp.  Start with a dummy statement, so that prior shell variable
80215         definitions are expanded portably.  Reported by Simon Josefsson.
80217 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
80219         Fix polling for writeability of a screen buffer.
80220         * lib/poll.c: Distinguish input and screen buffers for the
80221         Win32 implementation.
80222         * lib/select.c: Likewise.
80224 2009-08-19  Eric Blake  <ebb9@byu.net>
80226         popen-safer: prevent popen from clobbering std descriptors
80227         * modules/popen-safer: New file.
80228         * lib/popen-safer.c: Likewise.
80229         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
80230         * lib/stdio--.h (popen): Provide override.
80231         * lib/stdio-safer.h (popen_safer): Provide declaration.
80232         * tests/test-popen.c (includes): Partially test this.
80233         * modules/popen-safer-tests: New file, for more tests.
80234         * tests/test-popen-safer.c: Likewise.
80235         * MODULES.html.sh (file stream based Input/Output): Mention it.
80237         tests: test some of the *-safer modules
80238         * modules/fopen-safer (Depends-on): Add fopen.
80239         * modules/fcntl-safer (Depends-on): Add fcntl.
80240         * modules/stdlib-safer (Depends-on): Add stdlib.
80241         (configure.ac): Set indicator.
80242         * modules/unistd-safer (configure.ac): Likewise.
80243         * modules/tmpfile-safer (configure.ac): Likewise.
80244         (Depends-on): Add tmpfile.
80245         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
80246         active.
80247         * tests/test-fopen.c (includes): Test safer versions when they are
80248         in use.
80249         * tests/test-open.c (includes): Likewise.
80251         popen: fix cygwin 1.5 bug when stdin closed
80252         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
80253         * modules/popen: New file.
80254         * modules/popen-tests: Likewise.
80255         * tests/test-popen.c: Likewise.
80256         * m4/popen.m4: Likewise.
80257         * lib/popen.c: Likewise.
80258         * lib/stdio.in.h (popen): New declaration.
80259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
80260         * modules/stdio (Makefile.am): Likewise.
80261         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
80263 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
80265         maint.mk: give full control over update-copyright exclusions
80266         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
80267         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
80268         (update-copyright): Don't force inclusion of top-level
80269         ChangeLog.  Don't force exclusion of all COPYING files, but make
80270         them the default exclusion instead.
80272 2009-08-16  Bruno Haible  <bruno@clisp.org>
80274         Fix test failures on Solaris 10.
80275         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
80276         tests when Solaris iconv() is used.
80277         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
80278         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
80279         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
80280         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
80281         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
80283 2009-08-16  Bruno Haible  <bruno@clisp.org>
80285         Fix test failures on Solaris 10.
80286         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
80287         'tr' program and pass it as first argument.
80288         * tests/test-pipe-filter-gi1.sh: Likewise.
80289         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
80290         program as first argument.
80291         * tests/test-pipe-filter-gi1.c (main): Likewise.
80293 2009-08-16  Eric Blake  <ebb9@byu.net>
80295         fpurge: fix previous commits
80296         * modules/fpurge (Makefile.am): Make replacement conditional,
80297         partially reverting 2007-04-29 change; missed in previous
80298         attempt.
80299         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
80300         is missing.
80302 2009-08-16  Bruno Haible  <bruno@clisp.org>
80304         Clarify fpurge's effect on the file position.
80305         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
80306         * tests/test-fpurge.c (main): Make a second pass for checking the file
80307         position.
80309 2009-08-16  Bruno Haible  <bruno@clisp.org>
80311         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
80312         declaration of fpurge is missing.
80313         * tests/test-fpurge.c (main): Check that the file has not more contents
80314         than expected. Close the file before removing it.
80316 2009-08-15  Eric Blake  <ebb9@byu.net>
80318         fpurge: don't wrap working cygwin implementation
80319         * lib/fpurge.c (fpurge): Fix comment typo.
80320         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
80321         1.7 to avoid replacement.
80322         * tests/test-fpurge.c (main): Enhance test.
80324 2009-08-15  Eric Blake  <ebb9@byu.net>
80325         and Jim Meyering  <meyering@redhat.com>
80327         test-update-copyright: skip if perl is insufficient
80328         * tests/test-update-copyright.sh: Failure to run maintainer tool
80329         should not cause testsuite failure on cygwin 1.5.
80331 2009-08-14  Eric Blake  <ebb9@byu.net>
80333         doc: mention more functions added in cygwin 1.7.0
80334         * doc/posix-headers/limits.texi (limits.h): Update for recent
80335         cygwin additions.
80336         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
80337         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
80338         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
80339         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
80340         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
80342 2009-08-14  Eric Blake  <ebb9@byu.net>
80344         maint.mk: simplify update-copyright rule
80345         * top/maint.mk (update-copyright-local): Delete, and document how
80346         to do it in cfg.mk instead.
80347         (update-copyright-exclude-regexp): Delete, and document how to do
80348         it in .x-update-copyright instead.
80349         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
80350         exclude ChangeLog.
80352 2009-08-14  Bruno Haible  <bruno@clisp.org>
80354         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
80356 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80358         maint.mk: support update-copyright-env
80359         * top/maint.mk (update-copyright-env): Define place-holder.
80360         (update-copyright): Expand $(update-copyright-env) before
80361         invoking update-copyright.
80363 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80365         update-copyright: implement forced reformatting
80366         * build-aux/update-copyright: Implement and document
80367         UPDATE_COPYRIGHT_FORCE.
80368         * tests/test-update-copyright.sh: Test it.
80370 2009-08-14  Eric Blake  <ebb9@byu.net>
80371         and Bruno Haible  <bruno@clisp.org>
80373         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
80374         * tests/test-locale.c: Revert previous patch related to NULL.
80375         * tests/test-stdio.c: Likewise.
80376         * tests/test-stdlib.c: Likewise.
80377         * tests/test-string.c: Likewise.
80378         * tests/test-unistd.c: Likewise.
80379         * modules/time-tests (Depends-on): Add verify.
80380         * modules/wchar-tests (Depends-on): Likewise.
80381         * tests/test-time.c: Test for NULL compliance.
80382         * tests/test-wchar.c: Likewise.
80383         * modules/locale (Depends-on): Add stddef.
80384         * modules/stdio (Depends-on): Likewise.
80385         * modules/stdlib (Depends-on): Likewise.
80386         * modules/string (Depends-on): Likewise.
80387         * modules/time (Depends-on): Likewise.
80388         * modules/unistd (Depends-on): Likewise.
80389         * modules/wchar (Depends-on): Likewise.
80390         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
80391         * lib/stdlib.in.h (includes): Likewise.
80392         * lib/string.in.h (includes): Likewise.
80393         * lib/time.in.h (includes): Likewise.
80394         * lib/unistd.in.h (includes): Likewise.
80395         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
80396         replaced.
80397         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
80398         * m4/stddef_h.m4: New file.
80399         * modules/stddef: Likewise.
80400         * lib/stddef.in.h: Likewise.
80401         * modules/stddef-tests: Likewise.
80402         * tests/test-stddef.c: Likewise.
80403         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
80404         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
80405         * doc/posix-headers/locale.texi (locale.h): Likewise.
80406         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
80407         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
80408         * doc/posix-headers/string.texi (string.h): Likewise.
80409         * doc/posix-headers/time.texi (time.h): Likewise.
80410         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
80411         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
80413 2009-08-14  Eric Blake  <ebb9@byu.net>
80415         doc: improve git diff of texinfo files
80416         * .gitattributes: Add rule for *.texi files, with hint on how to
80417         use it.
80418         Copied from m4, and based on a report by Bruno Haible.
80420 2009-08-14  Bruno Haible  <bruno@clisp.org>
80422         Disable multithread support by default on Cygwin 1.5.x for real.
80423         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
80425 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80427         update-copyright: much ado about intervals
80428         * build-aux/update-copyright: Implement and document
80429         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
80430         of copyright year intervals.
80431         Also, document UPDATE_COPYRIGHT_YEAR.
80432         * tests/test-update-copyright.sh: Test it.
80434         update-copyright: convert 2-digit to 4-digit years
80435         * build-aux/update-copyright: Implement and document.
80436         * tests/test-update-copyright.sh: Update.
80438 2009-08-14  Jim Meyering  <meyering@redhat.com>
80440         test-exclude: avoid coreutils "make check" failure
80441         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
80442         just as in test-argmatch.c.
80444 2009-08-13  Eric Blake  <ebb9@byu.net>
80446         test-dup2: fix bad assumption
80447         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
80448         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
80450         test-version-etc: fix CRLF portability issue
80451         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
80452         recognize \r.
80453         * tests/test-argp-version-etc-1.sh: Likewise.
80455         getopt: update client modules
80456         * modules/argp (Depends-on): Use getopt-gnu.
80457         * modules/git-merge-changelog (Depends-on): Likewise.
80458         * modules/long-options (Depends-on): Likewise.
80459         * modules/xstrtol (Depends-on): Likewise.
80461 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80463         * tests/test-version-etc.sh: Don't fail on different
80464         project/version.  Don't fail on CRLF differences.  Rewrite to use
80465         multiple -e instead of multiple sed forks, suggested by Eric Blake
80466         <ebb9@byu.net>.
80467         * tests/test-argp-version-etc-1.sh: Likewise.
80469 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80471         * tests/test-version-etc.sh: Don't fail on different
80472         project/version.
80474 2009-08-12  Bruno Haible  <bruno@clisp.org>
80476         Tests for modules 'getopt-posix', 'getopt-gnu'.
80477         * modules/getopt-posix-tests: New file.
80478         * tests/test-getopt.c: New file.
80479         * tests/test-getopt.h: New file.
80480         * tests/test-getopt_long.h: New file.
80482         New modules 'getopt-posix', 'getopt-gnu'.
80483         * modules/getopt-gnu: New file, renamed from modules/getopt.
80484         * modules/getopt-posix: New file.
80485         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
80486         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
80487         (gl_GETOPT): Remove macro.
80488         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
80489         Disable the test against BSD systems that declare optreset. Test
80490         against mingw bug. Test against lack of support of optional arguments
80491         on many platforms.
80492         * doc/glibc-headers/getopt.texi: Update module name and list of
80493         relevant platforms.
80494         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
80495         'getopt-gnu' and more portability problems.
80496         * NEWS: Mention the changes.
80498 2009-08-12  Bruno Haible  <bruno@clisp.org>
80500         Ensure that optarg etc. get declared by <unistd.h>.
80501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
80502         AC_USE_SYSTEM_EXTENSIONS.
80503         * modules/getopt (Depends-on): Add 'extensions'.
80505 2009-08-12  Bruno Haible  <bruno@clisp.org>
80507         Avoid test link errors.
80508         * modules/pipe-filter-ii-tests (Makefile.am): Define
80509         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
80510         * modules/pipe-filter-gi-tests (Makefile.am): Define
80511         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
80512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80514 2009-08-12  Bruno Haible  <bruno@clisp.org>
80516         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
80517         gl_GETOPT_SUBSTITUTE before.
80518         (gl_GETOPT): Use it.
80519         * m4/argp.m4 (gl_ARGP): Update.
80520         Reported by Sergey Poznyakoff.
80522         * m4/getopt.m4: Reorder macros.
80523         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
80524         (gl_GETOPT_SUBSTITUTE): Remove macro.
80526 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80528         Minor improvement in gitlog-to-changelog
80530         * build-aux/gitlog-to-changelog: New option `--format' makes
80531         output format string configurable.
80533 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80535         Optimize exclude: use hash tables for non-wildcard patterns.
80537         * lib/exclude.c: Include hash.h and mbuiter.h
80538         (struct exclude_pattern, exclude_segment): New data types.
80539         (struct exclude): Rewrite.
80540         (fnmatch_pattern_has_wildcards): New function.
80541         (new_exclude_segment, free_exclude_segment): New functions.
80542         (excluded_file_pattern_p, excluded_file_name_p): New functions.
80543         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
80544         * lib/exclude.h (is_fnmatch_pattern): New prototype.
80545         * modules/exclude: Depend on hash and mbuiter.
80547         * modules/exclude-tests: New file.
80548         * tests/test-exclude.c: New file.
80549         * tests/test-exclude1.sh: New file.
80550         * tests/test-exclude2.sh: New file.
80551         * tests/test-exclude3.sh: New file.
80552         * tests/test-exclude4.sh: New file.
80553         * tests/test-exclude5.sh: New file.
80554         * tests/test-exclude6.sh: New file.
80555         * tests/test-exclude7.sh: New file.
80557 2009-08-12  Bruno Haible  <bruno@clisp.org>
80559         Ensure that getopt() gets declared by <unistd.h>.
80560         * lib/unistd.in.h: Conditionally include getopt.h.
80561         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
80562         Set GNULIB_UNISTD_H_GETOPT.
80563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80564         GNULIB_UNISTD_H_GETOPT.
80565         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
80567 2009-08-12  Bruno Haible  <bruno@clisp.org>
80569         Clarify logic.
80570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
80571         gl_replace_getopt instead of GETOPT_H.
80573 2009-08-12  Bruno Haible  <bruno@clisp.org>
80575         * m4/getopt.m4: Add comments.
80577 2009-08-12  Bruno Haible  <bruno@clisp.org>
80579         Disable multithread support by default on Cygwin 1.5.x.
80580         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
80581         set gl_use_threads=no if not specified otherwise.
80583 2009-08-11  Bruno Haible  <bruno@clisp.org>
80585         Avoid compilation error on NetBSD 5.0.
80586         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
80587         * tests/test-stdio.c: Likewise.
80588         * tests/test-stdlib.c: Likewise.
80589         * tests/test-string.c: Likewise.
80590         * tests/test-unistd.c: Likewise.
80591         Reported by Greg Troxel <gdt@ir.bbn.com>
80592         at <https://savannah.gnu.org/support/?106973>.
80594 2009-08-11  Bruno Haible  <bruno@clisp.org>
80596         * modules/dup2-tests (Depends-on): Remove close.
80598         Undo 2009-07-19 commit.
80599         * modules/acl-tests (Depends-on): Remove close.
80600         * modules/binary-io-tests (Depends-on): Likewise.
80601         * modules/closein-tests (Depends-on): Likewise.
80602         * modules/flock-tests (Depends-on): Likewise.
80603         * modules/fsync-tests (Depends-on): Likewise.
80604         * modules/lseek-tests (Depends-on): Likewise.
80605         * modules/pipe-tests (Depends-on): Likewise.
80606         * modules/posix_spawn-tests (Depends-on): Likewise.
80607         * modules/posix_spawnp-tests (Depends-on): Likewise.
80608         * modules/stat-time-tests (Depends-on): Likewise.
80609         * modules/yesno-tests (Depends-on): Likewise.
80611 2009-08-10  Bruno Haible  <bruno@clisp.org>
80613         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
80615 2009-08-10  Bruno Haible  <bruno@clisp.org>
80617         Fix a gcc warning.
80618         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
80620 2009-08-10  Bruno Haible  <bruno@clisp.org>
80622         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
80623         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
80624         not only the first time.
80625         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
80626         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
80627         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
80628         is 1, not only the first time.
80630 2009-08-10  Bruno Haible  <bruno@clisp.org>
80632         Make it possible to use module 'gethostname' without module 'close'.
80633         * lib/unistd.in.h (close): Evoke a link error only if
80634         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
80635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80636         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80637         * modules/unistd (Makefile.am): Substitute
80638         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80639         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
80640         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
80641         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
80642         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80643         * modules/sys_ioctl (Makefile.am): Substitute
80644         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80645         * modules/socket (configure.ac): On native Windows, set
80646         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
80647         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80648         Reported by Sam Steingold <sds@gnu.org>.
80650 2009-08-10  Bruno Haible  <bruno@clisp.org>
80652         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
80653         * modules/ioctl (configure.ac): Likewise.
80655 2009-08-10  Bruno Haible  <bruno@clisp.org>
80657         Avoid collision between gnulib wrapper and libintl wrapper.
80658         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
80659         already defined in intl/printf.c.
80660         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
80661         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
80663 2009-08-09  Bruno Haible  <bruno@clisp.org>
80665         Make <sys/select.h> really self-contained, also on Solaris 10.
80666         * lib/sys_select.in.h: Include <string.h>.
80667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
80668         Solaris 10 problem.
80669         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
80670         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
80671         Reported by Jim Meyering.
80673 2009-08-09  Bruno Haible  <bruno@clisp.org>
80675         Avoid warnings from 'aclocal' that are due to a use of macro name
80676         AM_XGETTEXT_OPTION that is not defined in automake.
80677         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
80678         automake.
80679         * modules/error (configure.ac): Likewise.
80680         * modules/propername (configure.ac): Likewise.
80681         * modules/vasprintf (configure.ac): Likewise.
80682         * modules/verror (configure.ac): Likewise.
80683         * modules/xprintf (configure.ac): Likewise.
80684         * modules/xvasprintf (configure.ac): Likewise.
80686 2009-08-08  Bruno Haible  <bruno@clisp.org>
80688         Avoid compilation error in C++ mode.
80689         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
80690         Reported by Sam Steingold <sds@gnu.org>.
80692 2009-08-08  Bruno Haible  <bruno@clisp.org>
80694         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
80695         for the various Unix platforms.
80696         * doc/posix-headers/limits.texi: Update platforms list regarding
80697         HOST_NAME_MAX.
80698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80700 2009-08-07  Jim Meyering  <meyering@redhat.com>
80702         selinux-at: fix typo in a comment
80703         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
80704         Spotted by Paolo Bonzini.
80706         selinux-at: remove redundant m4 code, add documentation
80707         * modules/selinux-at (configure.ac): Remove redundant code.
80708         LIB_SELINUX is already set via the dependent module, selinux-h.
80709         (Include): Add quotes around selinux-at.h.
80710         * lib/selinux-at.h: Add documentation.
80711         Reported by Bruno Haible in
80712         http://marc.info/?l=gnulib-bug&m=124958988300749
80714 2009-08-07  Bruno Haible  <bruno@clisp.org>
80716         Avoid link error on MacOS X 10.3 and 10.4.
80717         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
80718         on non-ELF systems.
80719         * lib/argp-pv.c (argp_program_version): Likewise.
80720         Reported by Simon Josefsson.
80722 2009-08-07  Simon Josefsson  <simon@josefsson.org>
80724         * tests/test-version-etc.sh: Use $EXEEXT.
80726 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
80728         update-copyright: update documentation to point to maint.mk
80729         * build-aux/update-copyright: Here.
80731 2009-08-06  Jim Meyering  <meyering@redhat.com>
80733         maint.mk: support update-copyright-local
80734         * top/maint.mk (update-copyright-local): Define place-holder.
80735         (update-copyright): Depend on $(update-copyright-local).
80737 2009-08-06  Jim Meyering  <meyering@redhat.com>
80739         selinux-at: new module
80740         Initially written for coreutils, this module will soon be
80741         used by findutils, too.
80742         * MODULES.html.sh [Misc]: Add selinux-at.
80743         * lib/selinux-at.h: New file, from coreutils.
80744         * lib/selinux-at.c: Likewise.
80745         * modules/selinux-at: Likewise.
80746         (License): Change from LGPL to GPL, since it depends
80747         on the GPL'd openat module.
80749         doc: update README
80750         * README: Remove references to cogito.
80751         Remove cvs-repo-updating instructions from 2007.
80752         Don't imply that CVS is better if you have limited disk space.
80754 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80756         update-copyright: support C-style comments
80757         * build-aux/update-copyright: Implement and document.
80758         * tests/test-update-copyright.sh: Test.
80760 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80762         update-copyright: support omitted "(C)"
80763         * build-aux/update-copyright: Implement and document.  Also,
80764         allow variable whitespace before "(C)".
80765         * tests/test-update-copyright.sh: Test.
80767 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80769         update-copyright: don't trip on non-FSF copyright statements
80770         * build-aux/update-copyright: Fix so that the first correctly
80771         formatted FSF copyright statement is recognized no matter what
80772         appears before it.  Update documentation.
80773         * tests/test-update-copyright.sh: Test that.
80775 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80777         update-copyright: clean up code a little
80778         * build-aux/update-copyright: Append "_re" to the name of any
80779         variable holding a regular expression.
80780         Replace "old" and "new" with "stmt" in variable names.
80781         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
80782         handled correctly.
80783         Format code more consistently.
80785 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
80787         update-copyright-tests: improve portability
80788         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
80789         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
80791 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
80793         update-copyright: support @copyright{} and &copy;
80794         * build-aux/update-copyright: Implement and document.
80795         * tests/test-update-copyright.sh: Test.
80797 2009-08-04  Jim Meyering  <meyering@redhat.com>
80799         update-copyright-tests: correctly test EOL=\r\n handling
80800         * tests/test-update-copyright.sh: Put \r at the end of some lines
80801         for the dos-eol tests.  Based on a patch by Joel E. Denny.
80803         maint.mk: make update-copyright exclusion list more configurable
80804         * top/maint.mk (update-copyright): Default to excluding COPYING,
80805         but allow an override, in case someone does want to update that file.
80807         maint.mk: don't update copyright date in COPYING
80808         * top/maint.mk (update-copyright): Exclude COPYING.
80810         maint.mk: add a copyright-updating rule
80811         * top/maint.mk (update-copyright): New rule.
80812         Derived from coreutils/Makefile.am.
80814         update-copyright: rename some variables
80815         * build-aux/update-copyright: Rename a few variables for clarity.
80816         Tweak syntax.  List Joel E. Denny as coauthor.
80818 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
80820         update-copyright: fix bug for 2-digit last year and add tests
80821         * build-aux/update-copyright: Fix bug.
80822         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
80823         specified.
80824         * modules/update-copyright-tests: New
80825         * tests/test-update-copyright.sh: New.
80827 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
80829         update-copyright: handle leading tabs in line prefix
80830         * build-aux/update-copyright: Count leading tabs as 8 spaces
80831         when computing margin.  This helps with the formatting of
80832         ChangeLogs, for example.
80833         Fix documentation a little.
80835 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
80837         update-copyright: support EOL=\r\n
80838         * build-aux/update-copyright: Implement that.
80840 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
80842         update-copyright: automatically format copyright statements
80843         * build-aux/update-copyright: Implement that.
80844         Also, be a little more predictable and safer by always failing
80845         when the full copyright format is not perfectly recognized as an
80846         unbroken whole.  Discussed at
80847         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
80848         Rewrite documentation.
80850 2009-08-03  Bruno Haible  <bruno@clisp.org>
80852         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
80854 2009-08-02  Bruno Haible  <bruno@clisp.org>
80856         Tests for module 'uname'.
80857         * modules/uname-tests: New file.
80858         * tests/test-uname.c: New file.
80860         New module 'uname'.
80861         * lib/uname.c: New file.
80862         * m4/uname.m4: New file.
80863         * modules/uname: New file.
80864         * doc/posix-functions/uname.texi: Mention the new module.
80866 2009-08-02  Bruno Haible  <bruno@clisp.org>
80868         Tests for module 'sys_utsname'.
80869         * modules/sys_utsname-tests: New file.
80870         * tests/test-sys_utsname.c: New file.
80872         New module 'sys_utsname'.
80873         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
80874         * m4/sys_utsname_h.m4: New file.
80875         * modules/sys_utsname: New file.
80876         * doc/posix-headers/sys_utsname.texi: Mention the new module.
80878 2009-08-02  Bruno Haible  <bruno@clisp.org>
80880         Implicitly initialize the sockets library.
80881         * lib/gethostname.c: Include sockets.h.
80882         (rpl_gethostname): Invoke gl_sockets_startup.
80883         * lib/socket.c: Include sockets.h.
80884         (rpl_socket): Invoke gl_sockets_startup.
80885         * modules/gethostname (Depends-on): Add sockets.
80886         * modules/socket (Depends-on): Likewise.
80887         * tests/test-poll.c: Don't include sockets.h.
80888         (main): Don't invoke gl_sockets_startup.
80889         * tests/test-select.c: Don't include sockets.h.
80890         (main): Don't invoke gl_sockets_startup.
80892 2009-08-02  Bruno Haible  <bruno@clisp.org>
80894         Allow multiple calls to gl_sockets_startup.
80895         * lib/sockets.c (initialized_sockets_version): New variable.
80896         (gl_sockets_startup): Do nothing if already called for this or a higher
80897         version.
80898         (gl_sockets_cleanup): Reset initialized_sockets_version.
80900 2009-08-03  Simon Josefsson  <simon@josefsson.org>
80902         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
80903         different project/version.
80905 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
80906             Bruno Haible  <bruno@clisp.org>
80908         Tests for module 'pipe-filter-gi'.
80909         * modules/pipe-filter-gi-tests: New file.
80910         * tests/test-pipe-filter-gi1.sh: New file.
80911         * tests/test-pipe-filter-gi1.c: New file.
80912         * tests/test-pipe-filter-gi2.sh: New file.
80913         * tests/test-pipe-filter-gi2-main.c: New file.
80914         * tests/test-pipe-filter-gi2-child.c: New file.
80916         New module 'pipe-filter-gi'.
80917         * lib/pipe-filter-gi.c: New file.
80918         * modules/pipe-filter-gi: New file.
80920 2009-08-02  Bruno Haible  <bruno@clisp.org>
80921             Paolo Bonzini  <bonzini@gnu.org>
80923         Tests for module 'pipe-filter-ii'.
80924         * modules/pipe-filter-ii-tests: New file.
80925         * tests/test-pipe-filter-ii1.sh: New file.
80926         * tests/test-pipe-filter-ii1.c: New file.
80927         * tests/test-pipe-filter-ii2.sh: New file.
80928         * tests/test-pipe-filter-ii2-main.c: New file.
80929         * tests/test-pipe-filter-ii2-child.c: New file.
80931         New module 'pipe-filter-ii'.
80932         * lib/pipe-filter.h: New file.
80933         * lib/pipe-filter-ii.c: New file.
80934         * lib/pipe-filter-aux.h: New file.
80935         * modules/pipe-filter-ii: New file.
80937 2009-08-02  Simon Josefsson  <simon@josefsson.org>
80939         * lib/gc-libgcrypt.c: Change copyright to FSF.
80940         * lib/gc-gnulib.c: Likewise.
80942 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
80944         * lib/gethostname.c: Include limits.h.
80946 2009-08-02  Simon Josefsson  <simon@josefsson.org>
80947             Bruno Haible  <bruno@clisp.org>
80949         Ensure HOST_NAME_MAX as part of the gethostname module.
80950         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
80951         define also HOST_NAME_MAX.
80952         * tests/test-gethostname.c: Include <limits.h>.
80953         (main): Check also HOST_NAME_MAX.
80954         * doc/posix-headers/limits.texi: Document the mingw problem.
80956 2009-08-02  Bruno Haible  <bruno@clisp.org>
80958         * lib/gethostname.c (gethostname): Fix handling of large len argument.
80959         Add comments.
80961 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80963         * lib/gethostname.c: Add Windows wrapper.
80964         * m4/gethostname.m4: Look for gethostname in -lws2_32.
80965         * modules/gethostname: Depend on sys_socket & errno, for also
80966         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
80967         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
80969 2009-07-31  Jim Meyering  <meyering@redhat.com>
80971         getloadavg: fix symbol name in comment
80972         * lib/getloadavg.c: Correct a typo I introduced when adding
80973         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
80974         Matt Kraai spotted the problem.
80976 2009-07-29  Matt Kraai  <mkraai@beckman.com>
80978         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
80979         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
80980         code also if ! defined N_NAME_POINTER.
80981         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
80982         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
80983         but the n_name member is a 12-byte array.
80985 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
80987         update-copyright: generalize comment handling
80988         * build-aux/update-copyright: Handle copyright statements
80989         within more comment styles.
80990         Document usage.
80991         Report any file with an external copyright holder or parse failure.
80993 2009-07-29  Jim Meyering  <meyering@redhat.com>
80995         mktime: correct setting of REPLACE_MKTIME
80996         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
80998         update-copyright: new module
80999         * modules/update-copyright: New file.
81000         * build-aux/update-copyright: New file.
81001         * MODULES.html.sh (maint+release support): Add update-copyright.
81003 2009-07-27  Bruno Haible  <bruno@clisp.org>
81005         Fix compilation error when <ctime> is used and mktime is replaced.
81006         * lib/time.in.h (mktime): New declaration.
81007         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
81008         REPLACE_MKTIME instead of defining mktime in config.h.
81009         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
81010         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
81011         Reported by Ross McFarland <rwmcfa1@neces.com>.
81013 2009-07-27  Bruno Haible  <bruno@clisp.org>
81015         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
81016         Reported by Matt Kraai <mkraai@beckman.com>.
81018 2009-07-25  Jim Meyering  <meyering@redhat.com>
81020         maint.mk: avoid warnings about missing files
81021         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
81022         diagnostic when .prev-version does not exist.
81023         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
81024         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
81025         nonexistent cfg.mk.
81026         Suggestions from Simon Josefsson.
81028 2009-07-25  Bruno Haible  <bruno@clisp.org>
81030         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
81031         defined as macros. Needed on QNX 6.4.1.
81032         Reported by Matt Kraai <mkraai@beckman.com>.
81034 2009-07-23  Jim Meyering  <meyering@redhat.com>
81036         maint.mk: invoke "make dist" with a working value of XZ_OPT
81037         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
81039 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
81041         Make fseeko.c compile on QNX.
81042         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
81044 2009-07-22  Peter Simons  <simons@cryp.to>
81046         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
81047         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
81048         * lib/md4.h: Likewise.
81049         * lib/md5.h: Likewise.
81050         * lib/sha1.h: Likewise.
81051         * lib/sha256.h: Likewise.
81052         * lib/sha512.h: Likewise.
81054         tests-sha1: don't assign literal string to 'char *' variable
81055         * tests/test-sha1.c (main): Declare locals with "const" to match
81056         attributes of the right hand side.
81058 2009-07-21  Eric Blake  <ebb9@byu.net>
81060         dup2: fix more mingw problems
81061         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
81062         fd to itself.
81063         * doc/posix-functions/dup2.texi (dup2): Document the bug.
81064         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
81065         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
81066         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
81067         care of mingw bugs.
81069 2009-07-21  Jim Meyering  <meyering@redhat.com>
81071         vc-list-files: avoid failure when /bin/sh is dash
81072         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
81073         On some Debian based systems, /bin/sh is a symlink to dash, and running
81074         this command would omit the "/" following each 'tests' prefix:
81075           dash -x build-aux/vc-list-files -C . tests
81076         That is because bash and dash work differently:
81077           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
81078           bash ok
81079           dash odd
81081 2009-07-21  Eric Blake  <ebb9@byu.net>
81083         dup2-tests: test previous patch
81084         * modules/dup2-tests: New file.
81085         * tests/test-dup2.c: Likewise.
81086         * tests/test-open.c (main): Avoid unspecified behavior.
81087         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
81088         test.
81090         dup2: work around mingw and cygwin 1.5 bug
81091         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
81092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81093         * modules/unistd (Makefile.am): Substitute it.
81094         * lib/unistd.in.h (dup2): Declare the replacement.
81095         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
81096         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
81097         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
81098         * modules/execute (Depends-on): Add dup2.
81099         * modules/fseterr (Depends-on): Likewise.
81100         * modules/pipe (Depends-on): Likewise.
81101         * modules/posix_spawn-internal (Depends-on): Likewise.
81103 2009-07-21  Bruno Haible  <bruno@clisp.org>
81105         * modules/.gitattributes: New file.
81107 2009-07-20  Bruno Haible  <bruno@clisp.org>
81109         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
81110         (main): Use it.
81112 2009-07-20  Eric Blake  <ebb9@byu.net>
81114         test-pipe: make a bit more robust.
81115         * tests/test-pipe.c (myerr): Allow error messages regardless of
81116         what we do to stderr.
81117         (test_pipe): Rearrange to avoid deadlock.
81118         (child_main): Try a larger read, to ensure we avoided deadlock.
81119         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
81120         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
81121         if misused.
81123 2009-07-19  Jim Meyering  <meyering@redhat.com>
81125         fts: avoid false-positive cycle-detection
81126         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
81127         for each new command line argument.
81129 2009-07-19  Bruno Haible  <bruno@clisp.org>
81131         Fix build error on mingw with the modules sys_select and unistd.
81132         * modules/acl-tests (Depends-on): Add close.
81133         * modules/binary-io-tests (Depends-on): Likewise.
81134         * modules/closein-tests (Depends-on): Likewise.
81135         * modules/flock-tests (Depends-on): Likewise.
81136         * modules/fsync-tests (Depends-on): Likewise.
81137         * modules/lseek-tests (Depends-on): Likewise.
81138         * modules/pipe-tests (Depends-on): Likewise.
81139         * modules/posix_spawn-tests (Depends-on): Likewise.
81140         * modules/posix_spawnp-tests (Depends-on): Likewise.
81141         * modules/stat-time-tests (Depends-on): Likewise.
81142         * modules/yesno-tests (Depends-on): Likewise.
81144 2009-07-19  Bruno Haible  <bruno@clisp.org>
81146         Unify conditionals.
81147         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
81148         macros, not at the compiler macros.
81149         * lib/pipe.c: Likewise.
81150         * lib/execute.c: Likewise.
81151         * lib/spawni.c: Likewise.
81153 2009-07-19  Bruno Haible  <bruno@clisp.org>
81155         Fix handling of closed stdin/stdout/stderr on mingw.
81156         * lib/w32spawn.h: Include unistd.h.
81157         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
81158         file descriptor with O_NOINHERIT flag.
81159         (fd_safer_noinherit): New function, based on fd-safer.c.
81160         (dup_safer_noinherit): New function, based on dup-safer.c.
81161         (undup_safer_noinherit): New function.
81162         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
81163         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
81164         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
81165         instead of fd_safer.
81166         * tests/test-pipe.c: Include <windows.h>.
81167         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
81168         result.
81170         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
81171         from main.
81172         (test_pipe): Pass an extra argument for disambiguation.
81173         (main): Invoke parent_main or child_main.
81175         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
81176         consistently.
81178 2009-07-18  Eric Blake  <ebb9@byu.net>
81180         test-pipe: fix mingw build
81181         * tests/test-pipe.c (main): Avoid fcntl on mingw.
81183 2009-07-18  Bruno Haible  <bruno@clisp.org>
81185         * modules/pipe-tests (Makefile.am): Fix typo.
81187 2009-07-18  Eric Blake  <ebb9@byu.net>
81189         error: fix mingw build
81190         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
81191         Reported by Bruno Haible.
81193         error: avoid undefined use of stdout
81194         * lib/error.c (error, error_at_line): Check that fd 1 is open
81195         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
81196         is handling faults and the close_stdout module wants to report the
81197         detection of closed stdout as an error.
81199 2009-07-17  Eric Blake  <ebb9@byu.net>
81201         pipe: be robust in face of closed fds
81202         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
81203         should cause child to misbehave.
81204         * modules/pipe-tests: New module.
81205         * tests/test-pipe.c: New file.
81206         * tests/test-pipe.sh: New file.
81207         Reported by Akim Demaille.
81209 2009-07-14  Bruno Haible  <bruno@clisp.org>
81211         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
81212         Reported by anonymous kc.
81214 2009-07-07  Jim Meyering  <meyering@redhat.com>
81216         maint.mk: don't look for translatable strings in *.m4 or *.mk
81217         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
81218         when searching for translatable strings.
81220 2009-07-05  Jim Meyering  <meyering@redhat.com>
81222         remove superfluous parentheses in STREQ definition
81223         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
81224         * lib/getugroups.c (STREQ): Likewise.
81225         * lib/fnmatch.c (STREQ): Likewise.
81226         Spotted by Bruno Haible.
81228 2009-07-04  Jim Meyering  <meyering@redhat.com>
81230         argv-iter: new module
81231         * MODULES.html.sh: Add argv-iter.
81232         * lib/argv-iter.c, lib/argv-iter.h: New files.
81233         * modules/argv-iter: New file.
81234         * modules/argv-iter-tests: New file.
81235         * tests/test-argv-iter.c: Test it.
81237 2009-07-04  Bruno Haible  <bruno@clisp.org>
81239         Fix assertion.
81240         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
81241         contains more exact copies of a given entry than file2, leave the extra
81242         copies unpaired rather than aborting.
81243         Reported by Eric Blake.
81245 2009-07-02  Bruno Haible  <bruno@clisp.org>
81247         Speedup git-merge-changelog for git cherry-pick.
81248         * lib/git-merge-changelog.c (struct entries_mapping): New type.
81249         (entries_mapping_get): New function, extracted from compute_mapping.
81250         (entries_mapping_reverse_get): New function.
81251         (compute_mapping): Add a 'full' argument. Return the result in a
81252         'struct entries_mapping'.
81253         (main): Update. Access the mappings through entries_mapping_get.
81254         Reported by Eric Blake.
81256 2009-07-02  Bruno Haible  <bruno@clisp.org>
81258         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
81259         best_i.
81261 2009-07-02  Bruno Haible  <bruno@clisp.org>
81263         Speed up approximate search for matching ChangeLog entries.
81264         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
81265         argument. Call fstrcmp_bounded instead of fstrcmp.
81266         (compute_mapping, try_split_merged_entry, main): Update callers.
81268 2009-07-02  Bruno Haible  <bruno@clisp.org>
81270         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
81272 2009-06-30  Bruno Haible  <bruno@clisp.org>
81274         Reduce the number of uc_is_cased calls.
81275         * lib/unicase.h (casing_suffix_context_t): Add
81276         'first_char_except_ignorable' field.
81277         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
81278         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
81279         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
81280         Update initializer.
81281         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
81282         case-ignorable characters.
81283         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
81284         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
81285         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
81286         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
81287         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
81289 2009-06-30  Bruno Haible  <bruno@clisp.org>
81291         Tests for module 'unicase/ignorable'.
81292         * modules/unicase/ignorable-tests: New file.
81293         * tests/unicase/test-ignorable.c: New file, generated by
81294         gen-uni-tables.
81296         Tests for module 'unicase/cased'.
81297         * modules/unicase/cased-tests: New file.
81298         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
81299         * tests/unicase/test-predicate-part1.h: New file, derived from
81300         tests/unictype/test-predicate-part1.h.
81301         * tests/unicase/test-predicate-part2.h: New file, same as
81302         tests/unictype/test-predicate-part2.h.
81304         Fix evaluation of "Before C" condition of FINAL_SIGMA.
81305         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
81306         (output_casing_properties): New function.
81307         (main): Call it.
81308         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
81309         * lib/unicase/cased.c: Include unictype/bitmap.h.
81310         (uc_is_cased): Define through a bitmap lookup.
81311         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
81312         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
81313         (uc_is_case_ignorable): Define through a bitmap lookup.
81314         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
81315         lib/unictype/bitmap.h.
81316         (Depends-on): Add inline. Clean up.
81317         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
81318         lib/unictype/bitmap.h.
81319         (Depends-on): Add inline. Clean up.
81320         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
81321         recognition.
81322         * tests/unicase/test-u16-tolower.c (main): Likewise.
81323         * tests/unicase/test-u32-tolower.c (main): Likewise.
81325 2009-06-30  Bruno Haible  <bruno@clisp.org>
81327         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
81328         * lib/unicase/u16-casemap.c: Likewise.
81329         * lib/unicase/u32-casemap.c: Likewise.
81331 2009-06-29  Bruno Haible  <bruno@clisp.org>
81333         Define u32_casefold as a wrapper around u32_ct_casefold.
81334         * lib/unicase/u32-casefold.c: Update.
81335         * modules/unicase/u32-casefold (Depends-on): Add
81336         unicase/u32-ct-casefold, unicase/empty-prefix-context,
81337         unicase/empty-suffix-context. Clean up.
81339         Define u16_casefold as a wrapper around u16_ct_casefold.
81340         * lib/unicase/u16-casefold.c: Update.
81341         * modules/unicase/u16-casefold (Depends-on): Add
81342         unicase/u16-ct-casefold, unicase/empty-prefix-context,
81343         unicase/empty-suffix-context. Clean up.
81345         Define u8_casefold as a wrapper around u8_ct_casefold.
81346         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
81347         * lib/unicase/u8-casefold.c: Update.
81348         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
81349         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81351         Define u32_totitle as a wrapper around u32_ct_totitle.
81352         * lib/unicase/u32-totitle.c: Update.
81353         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
81354         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81356         Define u16_totitle as a wrapper around u16_ct_totitle.
81357         * lib/unicase/u16-totitle.c: Update.
81358         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
81359         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81361         Define u8_totitle as a wrapper around u8_ct_totitle.
81362         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
81363         functions.
81364         (FUNC): Delegate to U_CT_TOTITLE.
81365         * lib/unicase/u8-totitle.c: Update.
81366         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
81367         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81369         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
81370         invocation.
81371         * modules/unicase/u32-tolower (Depends-on): Add
81372         unicase/empty-prefix-context, unicase/empty-suffix-context.
81374         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
81375         invocation.
81376         * modules/unicase/u16-tolower (Depends-on): Add
81377         unicase/empty-prefix-context, unicase/empty-suffix-context.
81379         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
81380         * modules/unicase/u8-tolower (Depends-on): Add
81381         unicase/empty-prefix-context, unicase/empty-suffix-context.
81383         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
81384         invocation.
81385         * modules/unicase/u32-toupper (Depends-on): Add
81386         unicase/empty-prefix-context, unicase/empty-suffix-context.
81388         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
81389         invocation.
81390         * modules/unicase/u16-toupper (Depends-on): Add
81391         unicase/empty-prefix-context, unicase/empty-suffix-context.
81393         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
81394         * modules/unicase/u8-toupper (Depends-on): Add
81395         unicase/empty-prefix-context, unicase/empty-suffix-context.
81397         New module 'unicase/u32-ct-casefold'.
81398         * lib/unicase/u32-ct-casefold.c: New file.
81399         * modules/unicase/u32-ct-casefold: New file.
81401         New module 'unicase/u16-ct-casefold'.
81402         * lib/unicase/u16-ct-casefold.c: New file.
81403         * modules/unicase/u16-ct-casefold: New file.
81405         New module 'unicase/u8-ct-casefold'.
81406         * lib/unicase/u8-ct-casefold.c: New file.
81407         * lib/unicase/u-ct-casefold.h: New file, derived from
81408         lib/unicase/u-casefold.h.
81409         * modules/unicase/u8-ct-casefold: New file.
81411         New module 'unicase/u32-ct-totitle'.
81412         * lib/unicase/u32-ct-totitle.c: New file.
81413         * modules/unicase/u32-ct-totitle: New file.
81415         New module 'unicase/u16-ct-totitle'.
81416         * lib/unicase/u16-ct-totitle.c: New file.
81417         * modules/unicase/u16-ct-totitle: New file.
81419         New module 'unicase/u8-ct-totitle'.
81420         * lib/unicase/u8-ct-totitle.c: New file.
81421         * lib/unicase/u-ct-totitle.h: New file, derived from
81422         lib/unicase/u-totitle.h.
81423         * modules/unicase/u8-ct-totitle: New file.
81425         New module 'unicase/u32-ct-tolower'.
81426         * lib/unicase/u32-ct-tolower.c: New file.
81427         * modules/unicase/u32-ct-tolower: New file.
81429         New module 'unicase/u16-ct-tolower'.
81430         * lib/unicase/u16-ct-tolower.c: New file.
81431         * modules/unicase/u16-ct-tolower: New file.
81433         New module 'unicase/u8-ct-tolower'.
81434         * lib/unicase/u8-ct-tolower.c: New file.
81435         * modules/unicase/u8-ct-tolower: New file.
81437         New module 'unicase/u32-ct-toupper'.
81438         * lib/unicase/u32-ct-toupper.c: New file.
81439         * modules/unicase/u32-ct-toupper: New file.
81441         New module 'unicase/u16-ct-toupper'.
81442         * lib/unicase/u16-ct-toupper.c: New file.
81443         * modules/unicase/u16-ct-toupper: New file.
81445         New module 'unicase/u8-ct-toupper'.
81446         * lib/unicase/u8-ct-toupper.c: New file.
81447         * modules/unicase/u8-ct-toupper: New file.
81449         Add context arguments to u*_casemap functions.
81450         * lib/unicase/unicasemap.h: Include unicase.h.
81451         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
81452         suffix_context arguments.
81453         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
81454         functions.
81455         (FUNC): Add prefix_context and suffix_context arguments. Use
81456         uc_is_cased and uc_is_case_ignorable.
81457         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
81458         * lib/unicase/u16-casemap.c: Likewise.
81459         * lib/unicase/u32-casemap.c: Likewise.
81460         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
81461         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81462         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
81463         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81464         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
81465         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81467         New module 'unicase/u32-suffix-context'.
81468         * lib/unicase/u32-suffix-context.c: New file.
81469         * modules/unicase/u32-suffix-context: New file.
81471         New module 'unicase/u16-suffix-context'.
81472         * lib/unicase/u16-suffix-context.c: New file.
81473         * modules/unicase/u16-suffix-context: New file.
81475         New module 'unicase/u8-suffix-context'.
81476         * lib/unicase/u8-suffix-context.c: New file.
81477         * lib/unicase/u-suffix-context.h: New file.
81478         * modules/unicase/u8-suffix-context: New file.
81480         New module 'unicase/empty-suffix-context'.
81481         * lib/unicase/empty-suffix-context.c: New file.
81482         * modules/unicase/empty-suffix-context: New file.
81484         New module 'unicase/u32-prefix-context'.
81485         * lib/unicase/u32-prefix-context.c: New file.
81486         * modules/unicase/u32-prefix-context: New file.
81488         New module 'unicase/u16-prefix-context'.
81489         * lib/unicase/u16-prefix-context.c: New file.
81490         * modules/unicase/u16-prefix-context: New file.
81492         New module 'unicase/u8-prefix-context'.
81493         * lib/unicase/u8-prefix-context.c: New file.
81494         * lib/unicase/u-prefix-context.h: New file.
81495         * lib/unicase/context.h: New file.
81496         * modules/unicase/u8-prefix-context: New file.
81498         New module 'unicase/empty-prefix-context'.
81499         * lib/unicase/empty-prefix-context.c: New file.
81500         * modules/unicase/empty-prefix-context: New file.
81502         New module 'unicase/ignorable'.
81503         * lib/unicase/ignorable.c: New file.
81504         * modules/unicase/ignorable: New file.
81506         New module 'unicase/cased'.
81507         * lib/unicase/caseprop.h: New file.
81508         * lib/unicase/cased.c: New file.
81509         * modules/unicase/cased: New file.
81511         New functions for case mapping of substrings.
81512         * lib/unicase.h (casing_prefix_context_t): New type.
81513         (unicase_empty_prefix_context): New variable.
81514         (u8_casing_prefix_context, u16_casing_prefix_context,
81515         u32_casing_prefix_context, u8_casing_prefixes_context,
81516         u16_casing_prefixes_context, u32_casing_prefixes_context): New
81517         declarations.
81518         (casing_suffix_context_t): New type.
81519         (unicase_empty_suffix_context): New variable.
81520         (u8_casing_suffix_context, u16_casing_suffix_context,
81521         u32_casing_suffix_context, u8_casing_suffixes_context,
81522         u16_casing_suffixes_context, u32_casing_suffixes_context,
81523         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
81524         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
81525         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
81526         declarations.
81528 2009-06-28  Jim Meyering  <meyering@redhat.com>
81530         boostrap: indent only with spaces
81531         * build-aux/bootstrap: Indent only with spaces, never TABs.
81533         bootstrap: split long lines
81534         * build-aux/bootstrap: Keep line length < 80.
81536         bootstrap: sync from coreutils
81537         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
81538         just as autoreconf does.  Verify a list of prerequisite
81539         package-name,version-number pairs if defined in bootstrap.conf.
81540         Refer to README-prereq, if prerequisites are not satisfied.
81542 2009-06-27  Eric Blake  <ebb9@byu.net>
81544         tests: add test for bogus NULL definition
81545         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
81546         * tests/test-stdlib.c: Likewise.
81547         * tests/test-string.c: Likewise.
81548         * tests/test-locale.c: Likewise.
81549         * tests/test-unistd.c: Likewise.
81550         * modules/stdio-tests (Depends-on): Add verify.
81551         * modules/stdlib-tests (Depends-on): Likewise.
81552         * modules/string-tests (Depends-on): Likewise.
81553         * modules/locale-tests (Depends-on): Likewise.
81554         * modules/unistd-tests (Depends-on): Likewise.
81556 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
81558         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
81559         self-explaining comment.
81560         * m4/selinux-selinux-h: Update serial.
81561         (gl_LIBSELINUX): New macro, adding a warning for missing development
81562         packages to code extracted from...
81563         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
81564         Add warning for missing development packages here, too.
81566 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
81568         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
81570 2009-06-25  Eric Blake  <ebb9@byu.net>
81572         version-etc: fix regression
81573         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
81574         gcc.
81575         (version_etc): Use it, to catch bugs with trailing NULL.
81576         * lib/version-etc.c (version_etc_arn): Delete unused argument.
81577         (version_etc_va): Fix logic bug.
81578         * modules/version-etc-tests: Add test.
81579         * tests/test-version-etc.c: New file.
81580         * tests/test-version-etc.sh: Likewise.
81582 2009-06-25  Sam Steingold  <sds@gnu.org>
81584         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
81585         mbtowc declaration.
81587 2009-06-25  Eric Blake  <ebb9@byu.net>
81589         fpurge: migrate into <stdio.h>
81590         * lib/fpurge.h: Delete...
81591         * lib/stdio.in.h (fpurge): ...and declare here, instead.
81592         * lib/fpurge.c (fpurge): Change declaring header.
81593         * modules/fpurge (Files): Drop deleted file.
81594         (Depends-on): Add stdio.
81595         (configure.ac): Set witness.
81596         * modules/stdio (Makefile.am): Support fpurge macros.
81597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81598         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
81599         * lib/fflush.c: Update client.
81600         * tests/test-fpurge.c: Likewise.
81601         * NEWS: Mention the change.
81603 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81605         * lib/argp-version-etc.c (program_authors): Add const
81606         qualifier.
81607         * lib/version-etc.c: Fix typos in the comments.
81608         * modules/argp-version-etc: Depends on version-etc.
81610 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81612         argp-version-etc: new module.
81614         * lib/argp-version-etc.c: New file.
81615         * lib/argp-version-etc.h: New file.
81616         * modules/argp-version-etc: New file.
81617         * modules/argp-version-etc-tests: New file.
81618         * tests/test-argp-version-etc.c: New test.
81619         * tests/test-argp-version-etc-1.sh: New test.
81621 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81623         Provide additional interfaces and documentation for version-etc
81624         module.
81626         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
81627         interfaces.
81628         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
81629         prototypes.
81631 2009-06-24  Bruno Haible  <bruno@clisp.org>
81633         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
81634         HAVE_LIB${NAME} macro.
81635         Reported by Sam Steingold <sds@gnu.org>.
81637 2009-06-23  Simon Josefsson  <simon@josefsson.org>
81639         * modules/hash-tests (test_hash_LDADD): Link to libintl when
81640         needed.
81642 2009-06-21  Bruno Haible  <bruno@clisp.org>
81644         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
81645         work.
81646         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
81647         together with LIB${NAME}, LTLIB${NAME}.
81648         Reported by Sam Steingold <sds@gnu.org>.
81650 2009-06-20  Jim Meyering  <meyering@redhat.com>
81652         tests: make sc_require_test_exit_idiom more generic
81653         * top/maint.mk (Exit_witness_file): New overridable variable.
81654         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
81655         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
81657 2009-06-19  Jim Meyering  <meyering@redhat.com>
81659         hash: reverse order of src/dst parameters in an internal interface
81660         * lib/hash.c (transfer_entries): Reverse order of parameters to
81661         put DST before SRC.  Adjust callers.
81663         tests: test-hash: avoid wholesale duplication
81664         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
81665         Instead, use a loop and add a single conditional.
81667         tests: test-hash: allow seed selection via a command line argument
81668         * tests/test-hash.c (get_seed): New function.
81669         (main): Use it.
81671 2009-06-19  Eric Blake  <ebb9@byu.net>
81673         hash: avoid memory leak on allocation failure
81674         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
81675         failure.  Factor repeated algorithm...
81676         (transfer_entries): ...into new helper routine.
81677         (hash_delete): React to hash_rehash return value.
81679         hash: reduce memory pressure in hash_rehash no-op case
81680         * lib/hash.c (next_prime): Avoid overflow.
81681         (hash_initialize): Factor bucket size computation...
81682         (compute_bucket_size): ...into new helper function.
81683         (hash_rehash): Use new function and open coding to reduce memory
81684         pressure, and avoid a memory leak in USE_OBSTACK code.
81685         Reported by Jim Meyering.
81687 2009-06-18  Eric Blake  <ebb9@byu.net>
81689         hash: make rotation more obvious
81690         * modules/hash (Depends-on): Add bitrotate and stdint.
81691         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
81692         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
81693         (SIZE_MAX): Rely on headers for definition.
81694         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
81695         (raw_hasher): Use rotr_sz.
81696         Suggested by Jim Meyering.
81698         hash: fix memory leak in last patch
81699         * lib/hash.c (hash_rehash): Avoid memory leak.
81701         hash: avoid no-op rehashing
81702         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
81704         hash: provide default callback functions
81705         * lib/hash.c (raw_hasher, raw_comparator): New functions.
81706         (hash_initialize): Use them as defaults.
81707         * tests/test-hash.c (main): Test this.
81709         hash: minor optimization
81710         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
81711         when possible.
81712         (hash_initialize): Document this promise.
81713         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
81714         * tests/test-hash.c (hash_compare_strings): Test this.
81716 2009-06-18  Bruno Haible  <bruno@clisp.org>
81718         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
81719         going to be replaced anyway.
81721 2009-06-18  Bruno Haible  <bruno@clisp.org>
81723         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
81724         in one place.
81725         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
81726         be replaced anyway.
81728 2009-06-18  Eric Blake  <ebb9@byu.net>
81730         hash: check for resize before insertion
81731         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
81732         threshold before insertion, so that a pathological hash_rehash
81733         that fills every bucket can still trigger another rehash.
81735 2009-06-18  Jim Meyering  <meyering@redhat.com>
81737         hash-tests: add a loop around the small tests
81738         * tests/test-hash.c (main): Repeat small tests with selected
81739         small initial table sizes.
81741 2009-06-17  Eric Blake  <ebb9@byu.net>
81743         hash: minor cleanups
81744         * lib/hash.h (hash_entry): Make opaque, by moving...
81745         * lib/hash.c (hash_entry): ...here.
81746         (hash_insert): Clarify restrictions on what can be inserted.
81747         (hash_get_next): Clarify when it is safe to remove an element
81748         during traversal.
81749         (check_tuning): Skip verification when tuning is known safe.
81750         (hash_initialize): Clarify restrictions on tuning.
81752 2009-06-17  Jim Meyering  <jim@meyering.net>
81753         and Eric Blake  <ebb9@byu.net>
81755         hash-tests: new module
81756         * modules/hash-tests: New file.
81757         * tests/test-hash.c: New file.
81759 2009-06-17  Eric Blake  <ebb9@byu.net>
81761         strstr-simple: document new module
81762         * MODULES.html.sh: Document new module.
81764         strstr, strcasestr: replace on platforms with broken memchr
81765         * modules/strstr: Split into...
81766         * modules/strstr-simple: ...new module that does not care about
81767         performance, but does care about glibc bug.
81768         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
81769         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
81770         if platform memchr is broken, per Debian bug 521737.
81771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
81772         memchr.
81773         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
81774         * doc/posix-functions/strstr.texi (strstr): Document the fix.
81775         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
81776         * modules/mountlist (Depends-on): Add strstr-simple.
81777         * modules/gen-uni-tables (Depends-on): Likewise.
81778         * modules/argz (Depends-on): Add strstr.
81780 2009-06-17  Bruno Haible  <bruno@clisp.org>
81782         * modules/posix_spawn-internal (Depends-on): Add errno.
81784 2009-06-17  Bruno Haible  <bruno@clisp.org>
81786         Define missing ESTALE on Interix 3.5.
81787         * lib/errno.in.h (ESTALE): Assign a value if missing.
81788         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
81789         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
81790         missing.
81791         * doc/posix-headers/errno.texi: Mention the Interix bug.
81792         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
81794 2009-06-15  Eric Blake  <ebb9@byu.net>
81796         memchr, memchr2: add valgrind exception
81797         * lib/memchr.valgrind: New file.
81798         * lib/memchr2.valgrind: New file.
81799         * modules/memchr (Files): Distribute valgrind file.
81800         * modules/memchr2 (Files): Likewise.
81802         docs: memchr is no longer obsolete
81803         * MODULES.html.sh: Move memchr from obsolete to string.h section.
81804         * lib/string.in.h (memchr): Simplify logic.
81806 2009-06-14  Jim Meyering  <meyering@redhat.com>
81808         link-follow: fix the "checking..." message to not mention trailing slash
81809         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
81810         never considered trailing slashes.
81812 2009-06-14  Bruno Haible  <bruno@clisp.org>
81814         * m4/memchr.m4: Mention also the bug on IA-64.
81815         * doc/posix-functions/memchr.texi: Likewise.
81817 2009-06-12  Eric Blake  <ebb9@byu.net>
81819         memchr: detect broken x86_64 and alpha implementations
81820         * modules/memchr-tests (Depends-on): Move mmap detection...
81821         * modules/memchr (Depends-on): ...here.
81822         (configure.ac): Set indicator.
81823         * lib/string.in.h (memchr): Declare replacement.
81824         * modules/string (Makefile.am): Trigger replacement.
81825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81826         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
81827         bugs.
81828         * doc/posix-functions/memchr.texi (memchr): Document the bug.
81829         * modules/getpagesize (License): Relax license.
81831 2009-06-11  Bruno Haible  <bruno@clisp.org>
81833         * lib/idpriv.h: Add more references.
81835 2009-06-08  Bruno Haible  <bruno@clisp.org>
81837         Tests for module 'idpriv-droptemp'.
81838         * modules/idpriv-droptemp-tests: New file.
81839         * tests/test-idpriv-droptemp.sh: New file.
81840         * tests/test-idpriv-droptemp.su.sh: New file.
81841         * tests/test-idpriv-droptemp.c: New file.
81843         New module 'idpriv-droptemp'.
81844         * lib/idpriv-droptemp.c: New file.
81845         * modules/idpriv-droptemp: New file.
81847 2009-06-08  Bruno Haible  <bruno@clisp.org>
81849         Tests for module 'idpriv-drop'.
81850         * modules/idpriv-drop-tests: New file.
81851         * tests/test-idpriv-drop.sh: New file.
81852         * tests/test-idpriv-drop.su.sh: New file.
81853         * tests/test-idpriv-drop.c: New file.
81855         New module 'idpriv-drop'.
81856         * lib/idpriv.h: New file.
81857         * lib-idpriv-drop.c: New file.
81858         * m4/idpriv.m4: New file.
81859         * modules/idpriv-drop: New file.
81861 2009-06-08  Bruno Haible  <bruno@clisp.org>
81863         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
81864         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81865         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81866         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81867         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81868         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81869         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81871 2009-06-08  Eric Blake  <ebb9@byu.net>
81873         test-strstr: use memory fence, when possible
81874         * tests/test-strstr.c (main): Use memory fence, in order to be
81875         more likely to trigger Debian bug 521737.
81876         * modules/strstr-tests (Files): Pull in additional files.
81878         memchr: no longer obsolete, for wider field testing
81879         * modules/memchr (Status, Notice): Delete, this module is no
81880         longer obsolete.
81881         * modules/vasnprintf (Depends-on): Add memchr.
81883 2009-06-07  Jim Meyering  <meyering@redhat.com>
81885         hash: declare some functions with the warn_unused_result attribute
81886         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
81888 2009-06-07  Bruno Haible  <bruno@clisp.org>
81890         * tests/test-alignof.c: Don't test int64_t if it does not exist.
81891         Reported by Eric Blake.
81893 2009-06-06  Eric Blake  <ebb9@byu.net>
81895         test-alignof: fix typo with long double
81896         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
81897         compiler error.
81899 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
81901         Escape non-texinfo { and }s.
81902         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
81903         markup error.
81905 2009-06-04  Jim Meyering  <meyering@redhat.com>
81907         gitlog-to-changelog: don't infloop on an empty commit log
81908         * build-aux/gitlog-to-changelog: Warn about an empty log message.
81909         Reported by Boris Petersen <transacid@centerim.org>.
81911 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
81913         version-etc: extend for packagers
81914         Add three new configure options, intended for packagers:
81915           --with-packager="packager name"
81916           --with-packager-version="packager-specific version"
81917           --with-packager-bug-reports="packager bug reporting"
81918         An example with coreutils:
81919           $ ./configure \
81920             --with-packager=Gentoo \
81921             --with-packager-bug-report=http://bugs.gentoo.org/ \
81922             --with-packager-version="patchset 1.6"
81923           $ ./src/ls --version | head -n2
81924           ls (GNU coreutils) 7.1-dirty
81925           Packaged by Gentoo (patchset 1.6)
81926         Note that the bug reporting info via --help doesn't show up because
81927         coreutils uses its own custom emit_bug_reporting_address() implementation
81928         in src/system.h.  If it didn't, it'd look like:
81929           $ ./src/ls --help | tail -n4
81930           Report bugs to <bug-coreutils@gnu.org>.
81931           Report Gentoo bugs to <http://bugs.gentoo.org/>.
81932           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
81933           General help using GNU software: <http://www.gnu.org/gethelp/>.
81934         * lib/version-etc.c: Print new information, if provided.
81935         * m4/version-etc.m4: New file.
81936         * modules/version-etc (Files): Add m4/version-etc.m4.
81937         (configure.ac): Add gl_VERSION_ETC.
81939 2009-05-31  Bruno Haible  <bruno@clisp.org>
81941         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
81942         and 'int64_t'.
81943         * modules/alignof-tests (Dependencies): Add stdint.
81944         Reported by Eric Blake.
81946 2009-05-31  Bruno Haible  <bruno@clisp.org>
81948         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
81949         restriction due to compiler bugs.
81950         Reported by Eric Blake.
81952 2009-05-31  Simon Josefsson  <simon@josefsson.org>
81953             Bruno Haible  <bruno@clisp.org>
81955         Fix test-alignof failure.
81956         * lib/alignof.h (alignof_slot): New macro.
81957         (alignof_type): New macro, with the same semantics as the previous
81958         'alignof'.
81959         (alignof): Alias to alignof_slot.
81960         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
81961         check that the results are usable as constant expressions.
81963 2009-05-31  Bruno Haible  <bruno@clisp.org>
81965         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
81966         * tests/test-memchr.c (main): Check that memchr does not read past the
81967         first occurrence of the byte.
81968         * tests/test-strstr.c (main): Update comment.
81969         Suggested by Eric Blake.
81971 2009-05-30  Bruno Haible  <bruno@clisp.org>
81973         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
81974         detail how to use dumpbin.
81975         Reported by David Byron <dbyron@dbyron.com>.
81977 2009-06-02  Simon Josefsson  <simon@josefsson.org>
81979         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
81981 2009-06-02  Simon Josefsson  <simon@josefsson.org>
81983         * m4/manywarnings.m4: Add GCC 4.4 warnings.
81985 2009-05-28  Bruno Haible  <bruno@clisp.org>
81987         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
81988         build-aux/ files.
81990 2009-05-28  Simon Josefsson  <simon@josefsson.org>
81992         * gnulib-tool (func_import): Transform license on build-aux/ files too.
81994 2009-05-27  Simon Josefsson  <simon@josefsson.org>
81996         * gnulib-tool (sed_transform_main_lib_file)
81997         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
81998         regexps.
82000 2009-05-26  Simon Josefsson  <simon@josefsson.org>
82002         * tests/test-strstr.c: Add another self-test.
82003         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
82004         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
82006 2009-05-23  Bruno Haible  <bruno@clisp.org>
82008         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
82009         change.
82011 2009-05-21  Bruno Haible  <bruno@clisp.org>
82013         Simplify use of mode_t varargs.
82014         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
82015         uses 'mode_t' or 'int'.
82016         * lib/openat.c (openat): Likewise.
82017         * lib/open-safer.c (open_safer): Likewise.
82018         * m4/mode_t.m4: New file.
82019         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
82020         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
82021         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
82022         * modules/open (Files): Add m4/mode_t.m4.
82023         * modules/openat (Files): Likewise.
82024         * modules/fcntl-safer (Files): Likewise.
82025         Suggested by Eric Blake.
82027 2009-05-21  Pádraig Brady  <P@draigbrady.com>
82029         * doc/glibc-functions/fallocate.texi: New file.
82030         * doc/gnulib.texi: Include it.
82032 2009-05-21  Eric Blake  <ebb9@byu.net>
82033             Bruno Haible  <bruno@clisp.org>
82035         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
82036         invocations.
82037         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
82039 2009-05-21  Eric Blake  <ebb9@byu.net>
82040             Bruno Haible  <bruno@clisp.org>
82042         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
82043         include_next. Fix of 2008-11-20 commit.
82044         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
82045         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
82046         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
82047         NEXT_MATH_H.
82048         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
82049         instead of NEXT_MATH_H.
82051 2009-05-21  Bruno Haible  <bruno@clisp.org>
82053         Avoid redefinition warnings for SIZE_MAX.
82054         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
82055         Reported by Simon Josefsson.
82057 2009-05-21  Bruno Haible  <bruno@clisp.org>
82059         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
82060         AC_CACHE_VAL.
82062 2009-05-20  Bruno Haible  <bruno@clisp.org>
82064         Make zeroptr.h work on mingw.
82065         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
82066         mprotect.
82067         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
82068         * modules/memchr2-tests (configure.ac): Likewise.
82069         * modules/memcmp-tests (configure.ac): Likewise.
82070         * modules/memmem-tests (configure.ac): Likewise.
82071         * modules/memrchr-tests (configure.ac): Likewise.
82072         Reported by Simon Josefsson.
82074 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82076         * tests/test-glob.c: Include string.h for strcmp prototype.
82078 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82080         * modules/getdelim (Depends-on): Add explicit stdint, although it
82081         was implicitly already pulled in via realloc-posix.
82082         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
82084 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82086         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
82087         G. Christensen" <tgc@jupiterrise.com>.
82088         * m4/sys_socket_h.m4: Check for sa_family_t.
82089         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
82090         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
82091         * tests/test-sys_socket.c: Check that sa_family_t works.
82093 2009-05-18  Eric Blake  <ebb9@byu.net>
82095         maint.mk: allow gnulib_dir in VPATH build
82096         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
82098 2009-05-15  Jim Meyering  <meyering@redhat.com>
82100         maint.mk: Give gnulib_dir a default definition.
82101         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
82102         Thus, most packages no longer need to specify this variable in cfg.mk
82104 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
82106         rename.m4: fix typos that would make non-mingw cross-configure fail
82107         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
82109 2009-05-13  Eric Blake  <ebb9@byu.net>
82111         mmap-anon: avoid out-of-order autoconf expansion
82112         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
82113         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
82114         * modules/memchr-tests (Depends-on): Add extensions.
82115         * modules/memchr2-tests (Depends-on): Add extensions.
82116         * modules/memcmp-tests (Depends-on): Add extensions.
82117         * modules/memmem-tests (Depends-on): Add extensions.
82118         * modules/memrchr-tests (Depends-on): Add extensions.
82120 2009-05-13  Bruno Haible  <bruno@clisp.org>
82122         Make some tests ISO C 99 compliant.
82123         * tests/zerosize-ptr.h: New file.
82124         * tests/test-memchr.c: Include zerosize-ptr.h.
82125         (main): Use a zero-size object pointer instead of NULL.
82126         * tests/test-memchr2.c: Include zerosize-ptr.h.
82127         (main): Use a zero-size object pointer instead of NULL.
82128         * tests/test-memcmp.c: Include zerosize-ptr.h.
82129         (main): Use a zero-size object pointer instead of NULL.
82130         * tests/test-memmem.c: Include zerosize-ptr.h.
82131         (main): Use a zero-size object pointer instead of NULL.
82132         * tests/test-memrchr.c: Include zerosize-ptr.h.
82133         (main): Use a zero-size object pointer instead of NULL.
82134         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
82135         m4/mmap-anon.m4.
82136         (Depends-on): Add getpagesize.
82137         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82138         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
82139         m4/mmap-anon.m4.
82140         (Depends-on): Add getpagesize.
82141         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82142         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
82143         m4/mmap-anon.m4.
82144         (Depends-on): Add getpagesize.
82145         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82146         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
82147         m4/mmap-anon.m4.
82148         (Depends-on): Add getpagesize.
82149         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82150         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
82151         m4/mmap-anon.m4.
82152         (Depends-on): Add getpagesize.
82153         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82155 2009-05-12  Bruno Haible  <bruno@clisp.org>
82157         Tests for module 'alignof'.
82158         * modules/alignof-tests: New file.
82159         * tests/test-alignof.c: New file.
82161 2009-05-12  Bruno Haible  <bruno@clisp.org>
82163         Fix alignof macro.
82164         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
82165         vendor compilers that are always correct.
82167 2009-05-12  Bruno Haible  <bruno@clisp.org>
82169         Make the MAP_ANONYMOUS detection work on HP-UX 11.
82170         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
82171         not whether its fully works.
82173 2009-05-12  Bruno Haible  <bruno@clisp.org>
82175         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
82177 2009-05-12  Jim Meyering  <meyering@redhat.com>
82179         * top/maint.mk: Adjust backslash alignment.
82181 2009-05-11  Simon Josefsson  <simon@josefsson.org>
82183         * top/maint.mk: Make $(srcdir)/build-aux configurable.
82185 2009-05-11  Eric Blake  <ebb9@byu.net>
82187         argp: avoid undefined behavior
82188         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
82189         macros.
82191 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82193         * tests/test-vc-list-files-git.sh: Do git config of user.email and
82194         user.name to prevent git commit from complaining.
82196 2009-05-10  Bruno Haible  <bruno@clisp.org>
82198         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
82199         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
82200         it rewrites every file name only once.
82201         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
82203 2009-05-08  Bruno Haible  <bruno@clisp.org>
82205         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
82206         instead of 'max'.
82208 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82210         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
82211         sockaddr_storage test.
82213 2009-05-07  Simon Josefsson  <simon@josefsson.org>
82215         * modules/sys_socket (Makefile.am): Substitute
82216         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
82217         * m4/sys_socket_h.m4: Check for sockaddr_storage.
82218         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
82219         * tests/test-sys_socket.c: Check sockaddr_storage.
82221 2009-05-08  Bruno Haible  <bruno@clisp.org>
82223         New module 'alignof'.
82224         * lib/alignof.h: New file.
82225         * modules/alignof: New file.
82227 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82228             Bruno Haible  <bruno@clisp.org>
82230         Fix test-file-has-acl on FreeBSD.
82231         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
82232         mask is implicitly added.
82233         * tests/test-file-has-acl.c: Include <signal.h>.
82234         (main): Terminate the test after 5 seconds.
82235         * modules/acl-tests (configure.ac): Check for alarm function.
82237 2009-05-04  Bruno Haible  <bruno@clisp.org>
82239         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
82240         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
82241         * modules/errno (configure.ac): Drop AC_REQUIRE.
82242         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
82243         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
82245 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82247         * modules/glob-tests: New module.
82248         * tests/test-glob.c: Add.
82250 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82252         * modules/fnmatch-tests: New module.
82253         * tests/test-fnmatch.c: Add.
82255 2009-05-04  Eric Blake  <ebb9@byu.net>
82257         maint: make the new no-submodule-changes rule VPATH-safe
82258         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
82260 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82261             Bruno Haible  <bruno@clisp.org>
82263         acl: Fix infinite loop on FreeBSD.
82264         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
82265         of return value from acl_get_entry.
82266         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
82267         Likewise.
82269 2009-05-03  Bruno Haible  <bruno@clisp.org>
82271         * lib/acl-internal.h (acl_entries): Clarify return value.
82272         * lib/acl_entries.c (acl_entries): Likewise.
82274 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82276         Bug fix in acl module.
82277         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
82279 2009-05-03  Bruno Haible  <bruno@clisp.org>
82281         Create gperf-generated file in the source dir, not in the build dir.
82282         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
82283         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
82284         * modules/unicase/locale-language (unicase/locale-languages.h):
82285         Likewise.
82286         * modules/unicase/special-casing (unicase/special-casing-table.h):
82287         Likewise.
82288         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
82289         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
82290         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
82291         Reported by Ralf Wildenhues.
82293 2009-05-03  Bruno Haible  <bruno@clisp.org>
82295         * modules/fnmatch (Description, configure.ac): Taken from
82296         fnmatch-posix.
82297         * modules/fnmatch-posix: Turn into a symbolic reference to the
82298         'fnmatch' module, and deprecate.
82299         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
82301 2009-05-03  Bruno Haible  <bruno@clisp.org>
82303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
82304         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
82305         Reported by Ralf Wildenhues.
82307 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82309         * m4/fnmatch.m4: Fix fnmatch re-define.
82311 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82313         priv-set: new module and tests; adapt write-any-file
82314         * lib/priv-set.c: New file.
82315         * lib/priv-set.h: New file.
82316         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
82317         * lib/write-any-file.c: Simplify by using priv-set module.
82318         * m4/priv-set.m4: New file.
82319         * modules/priv-set: New file.
82320         * modules/unlinkdir: Add dependency on priv-set module.
82321         * modules/write-any-file: Likewise.
82323         Tests for module 'priv-set'.
82324         * modules/priv-set-tests: New file.
82325         * tests/test-priv-set.c: New file.
82327 2009-05-03  Jim Meyering  <meyering@redhat.com>
82328             Bruno Haible  <bruno@clisp.org>
82330         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
82331         use the converted UTF-8 variant of the name instead.
82333 2009-05-03  Jim Meyering  <meyering@redhat.com>
82335         tests: tighten some getdate tests
82336         * tests/test-getdate.c (main): Tighten tests: require equality,
82337         not just greater than.  Set TZ envvar to UTC0.
82339 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
82341         getdate: correctly interpret "next monday" when run on a Monday
82342         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
82343         that e.g., "next tues" (when run on a tuesday) results in a date
82344         that is one week in the future, and not today's date.
82345         I.e., add a week when the wday is the same as the current one.
82346         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
82347         and earlier by Martin Bernreuther and Jan Minář.
82348         * tests/test-getdate.c (main): Check that "next DAY" is always in
82349         the future and that "last DAY" is always in the past.
82351 2009-05-02  Jim Meyering  <meyering@redhat.com>
82353         build: ensure that a release build fails when a submodule is unclean
82354         * top/maint.mk (no-submodule-changes): New rule.
82355         (alpha beta major): Depend on it.
82357 2009-05-02  Bruno Haible  <bruno@clisp.org>
82359         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
82360         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
82361         shell variable gl_fnmatch_required to detect which variant is
82362         requested.
82363         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
82364         gl_FUNC_FNMATCH_POSIX.
82365         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
82366         exclude fnmatch-posix.
82368 2009-05-02  Bruno Haible  <bruno@clisp.org>
82370         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
82371         * modules/mbsrtowcs (License): Change to LGPLv2+.
82372         * modules/strnlen1 (License): Likewise.
82373         Reported by Simon Josefsson.
82375 2009-05-02  Bruno Haible  <bruno@clisp.org>
82377         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
82378         "cross".
82379         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
82380         gnulib-tool was called with option --source-base=lib.
82382 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82384         Use automake *-local hooks without commands, for extensibility.
82385         * modules/localcharset (Makefile.am): Rename install-exec-local
82386         rule to install-exec-localcharset, and make it a prerequisite of
82387         install-exec-local.  Likewise, rename the uninstall-local rule to
82388         uninstall-localcharset, and make it a prerequisite of the former.
82390 2009-05-01  Bruno Haible  <bruno@clisp.org>
82392         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
82393         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82394         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
82395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
82396         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
82397         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82398         m4/locale-zh.m4, m4/codeset.m4.
82400         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82401         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
82402         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82403         m4/locale-zh.m4.
82405         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
82406         REPLACE_WCRTOMB if mbstate_t must be replaced.
82407         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
82408         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
82410 2009-05-01  Bruno Haible  <bruno@clisp.org>
82412         Avoid compiler warnings when redefining macros defined by <libintl.h>.
82413         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
82414         dngettext, dcngettext, textdomain, bindtextdomain,
82415         bind_textdomain_codeset): Undefine before redefining.
82417 2009-04-30  Bruno Haible  <bruno@clisp.org>
82419         Fix bug introduced on 2009-04-25.
82420         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
82421         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
82422         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
82423         is defined.
82424         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
82425         is defined.
82426         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
82427         is defined.
82428         Reported by Elbert_Pol <elbert.pol@gmail.com>.
82430 2009-04-28  Bruno Haible  <bruno@clisp.org>
82432         Comment tweaks.
82433         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
82434         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
82435         * lib/unicase.h (u*_casexfrm): Likewise.
82436         Reported by Paolo Bonzini.
82438 2009-04-28  Bruno Haible  <bruno@clisp.org>
82440         Fix a compilation error.
82441         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
82442         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82443         Reported by Jim Meyering.
82445 2009-04-27  Bruno Haible  <bruno@clisp.org>
82447         New module 'libunistring'.
82448         * modules/libunistring: New file.
82449         * m4/libunistring.m4: New file.
82450         * MODULES.html.sh (Unicode string functions): Add it.
82452 2009-04-27  Eric Blake  <ebb9@byu.net>
82454         maint.mk: allow package-specific header to provide <config.h>
82455         * top/maint.mk (sc_require_config_h): New variable.
82456         (sc_require_config_h, sc_require_config_h_first): Use it.
82458 2009-04-27  Simon Josefsson  <simon@josefsson.org>
82460         * top/maint.mk (sc_avoid_if_before_free): Except
82461         useless-if-before-free script.
82463 2009-04-27  Eric Blake  <ebb9@byu.net>
82465         maintainer-makefile: depend on all required helper scripts
82466         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
82467         useless-if-before-free.
82468         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
82469         version, rather than assuming gnulib checkout is available.
82470         Reported by Simen Josefsson.
82472 2009-04-26  Bruno Haible  <bruno@clisp.org>
82474         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
82475         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
82476         "../" or "..".
82478 2009-04-26  Bruno Haible  <bruno@clisp.org>
82480         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
82481         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
82482         AC_LIB_HAVE_LINKFLAGS.
82484 2009-04-26  Bruno Haible  <bruno@clisp.org>
82486         Simplify calling convention of u*_conv_from_encoding.
82487         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
82488         u32_conv_from_encoding): Expect a resultbuf argument and return the
82489         result directly as a pointer.
82490         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
82491         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
82492         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
82493         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
82494         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
82495         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82496         Update.
82497         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
82498         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
82499         * lib/vasnprintf.c (VASNPRINTF): Update.
82500         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
82501         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
82502         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
82503         * NEWS: Mention the change.
82505 2009-04-26  Bruno Haible  <bruno@clisp.org>
82507         Simplify calling convention of u*_conv_to_encoding.
82508         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
82509         u32_conv_to_encoding): Expect a resultbuf argument and return the
82510         result directly as a pointer.
82511         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82512         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
82513         freeing scaled_offsets if mem_iconveha failed.
82514         * lib/unicase/u-casexfrm.h (FUNC): Update.
82515         * lib/uninorm/u-normxfrm.h (FUNC): Update.
82516         * lib/vasnprintf.c (VASNPRINTF): Update.
82517         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
82518         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
82519         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
82520         * NEWS: Mention the change.
82522 2009-04-26  Bruno Haible  <bruno@clisp.org>
82524         Avoid test failures on AIX and OSF/1.
82525         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
82526         malloc(0).
82527         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82528         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82529         Likewise.
82530         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
82531         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
82532         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
82533         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
82534         * doc/posix-functions/malloc.texi: Document the portability problem
82535         related to malloc(0).
82537 2009-04-26  Bruno Haible  <bruno@clisp.org>
82539         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
82540         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
82541         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
82543 2009-04-25  Bruno Haible  <bruno@clisp.org>
82545         Avoid link error when creating a namespace clean library.
82546         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
82547         as macro with arguments if already defined as an alias.
82548         * lib/signbitf.c (gl_signbitf): Don't undefine.
82549         * lib/signbitd.c (gl_signbitd): Don't undefine.
82550         * lib/signbitl.c (gl_signbitl): Don't undefine.
82552 2009-04-25  Jim Meyering  <meyering@redhat.com>
82554         vc-list-files: fix another quoting bug
82555         * build-aux/vc-list-files: Avoid sed backslash expansion
82556         of pathological directory names.
82558 2009-04-25  Eric Blake  <ebb9@byu.net>
82560         vc-list-files: fix shell quoting error
82561         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
82562         timestamp.
82564 2009-04-25  Jim Meyering  <meyering@redhat.com>
82566         vc-list-files: restore lost functionality with subdir argument
82567         * build-aux/vc-list-files: When given a non-"." sub-directory
82568         argument, substitute the $dir/ prefix back onto each resulting name.
82569         Otherwise, coreutils' root_tests check would fail.
82571 2009-04-24  Eric Blake  <ebb9@byu.net>
82573         vc-list-files: ignore git symlinks
82574         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
82575         than ls-files, to ignore git symlinks.
82577         maint.mk: import improvements from m4
82578         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
82579         (move_if_change): Delete unused macro.
82580         (news-date-check, vc-diff-check): Support VPATH builds.
82581         (announcement): Likewise.  Split --bootstrap-tools list...
82582         (boostrap-tools): ...into separate list, which can be overridden
82583         in cfg.mk.
82584         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
82585         requiring dependency on useless-if-before-free module.
82586         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
82587         Support VPATH builds.
82589 2009-04-24  Jim Meyering  <meyering@redhat.com>
82591         maint.mk: remove coreutils-specific rules and variables
82592         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
82593         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
82594         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
82596         maint.mk: remove obsolete rule
82597         * top/maint.mk (rel-check): Remove rule.
82598         (WGET, WGETFLAGS): Remove now-unused variables.
82600 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82602         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
82603         consistency.
82605         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
82606         '$(PATH_SEPARATOR)' instead of ':'.
82608 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82610         * lib/getopt1.c (main): Use 'const' for static array.
82612 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82614         * top/maint.mk: Sync with coreutils.
82615         * NEWS: Explain incompatibilities.
82617 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82618             Bruno Haible  <bruno@clisp.org>
82620         Fix cross-compilation results.
82621         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
82622         statement, as third argument of AC_TRY_RUN.
82623         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
82624         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
82625         Likewise.
82626         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
82627         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
82628         Likewise.
82629         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
82630         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
82631         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
82633 2009-04-20  Bruno Haible  <bruno@clisp.org>
82635         Avoid test failure on mingw.
82636         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
82638 2009-04-20  Bruno Haible  <bruno@clisp.org>
82640         Avoid compilation error on mingw.
82641         * modules/localename-tests (Depends-on): Add locale.
82643 2009-04-19  Bruno Haible  <bruno@clisp.org>
82645         Support for building a shared library on Windows platforms.
82646         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
82647         (main): Test the presence of UNINORM_NFC here.
82648         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
82649         (main): Test the presence of UNINORM_NFD here.
82650         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
82651         (main): Test the presence of UNINORM_NFKC here.
82652         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
82653         (main): Test the presence of UNINORM_NFKD here.
82655 2009-04-19  Bruno Haible  <bruno@clisp.org>
82657         Avoid a compiler warning.
82658         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
82659         Change type of variable 'sequence'.
82661 2009-04-19  Bruno Haible  <bruno@clisp.org>
82663         * modules/configmake (Makefile.am): When the contents of configmake.h
82664         does not change, arrange to preserve its modification time.
82666 2009-04-17  Simon Josefsson  <simon@josefsson.org>
82668         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
82669         gettext domain.
82671 2009-04-16  Jim Meyering  <meyering@redhat.com>
82673         useless-if-before-free: improve conversion code
82674         * build-aux/useless-if-before-free: Adjust code-in-comment to match
82675         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
82677 2009-04-14  Bruno Haible  <bruno@clisp.org>
82679         * modules/fcntl (Depends-on): Add extensions.
82680         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
82682 2009-04-12  Ben Pfaff  <blp@gnu.org>
82684         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
82685         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
82687 2009-03-20  Ben Pfaff  <blp@gnu.org>
82689         Make rename replace existing destinations on Windows.
82690         * m4/rename.m4: Add test for Mingw.
82691         * lib/rename.c: Add rename replacement that uses MoveFileEx with
82692         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
82693         * doc/posix-functions/rename.texi: Document.
82695 2009-04-10  Bruno Haible  <bruno@clisp.org>
82697         New include file "iconveh.h".
82698         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
82699         * lib/striconveh.h: Include it.
82700         (enum iconv_ilseq_handler): Remove definition.
82701         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
82702         striconveh.h.
82703         * lib/striconveha.c: Include striconveh.h.
82704         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
82705         * modules/striconveh (Files): Add lib/iconveh.h.
82706         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
82707         lib/striconveh.h.
82709 2009-04-10  Bruno Haible  <bruno@clisp.org>
82711         * lib/uniconv.h: Update comment.
82713 2009-04-10  Bruno Haible  <bruno@clisp.org>
82715         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
82716         always.
82717         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
82718         * lib/unistr/u16-mbtouc-aux.c: Likewise.
82719         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
82720         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
82721         "unistring-notinline.h", so that the function gets defined always.
82722         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
82723         * lib/unistr/u8-uctomb.c: Likewise.
82724         * lib/unistr/u16-mbtouc.c: Likewise.
82725         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
82726         * lib/unistr/u16-uctomb.c: Likewise.
82727         * lib/unistr/u32-mbtouc.c: Likewise.
82728         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
82729         * lib/unistr/u32-uctomb.c: Likewise.
82731 2009-04-10  Bruno Haible  <bruno@clisp.org>
82733         Mark 'utime' obsolete.
82734         * modules/utime (Status, Notice): New sections.
82735         Suggested by Jim Meyering.
82737         Fix cross-compile guess for utime test.
82738         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
82739         autoconf.
82740         * doc/posix-functions/utime.texi: Give more precisions.
82741         Reported by Jan <ipif@ymail.com>.
82743 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
82745         filevercmp: correct today's change
82746         * lib/filevercmp.c: Also handle coreutils' test inputs.
82747         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
82749         Fix regression in 'filevercmp' module. Thanks Sven Joachim
82750         for reporting it.
82751         * lib/filevercmp.c: Special handle for "", "." and "..".
82752         * tests/test-filevercmp.c: Enlarge the set suite.
82754 2009-04-07  Jim Meyering  <meyering@redhat.com>
82756         useless-if-before-free: show how to remove braced useless free, too
82757         * build-aux/useless-if-before-free: still only in a comment, though.
82759 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
82761         maint.mk: import changes to syntax-check macros from coreutils
82762         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
82763         Use them in the relevant macros.
82765 2009-04-06  Bruno Haible  <bruno@clisp.org>
82767         Fix unportable use of bit-fields.
82768         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
82769         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
82770         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
82772 2009-04-06  Bruno Haible  <bruno@clisp.org>
82774         Avoid test failures on AIX and OSF/1.
82775         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
82776         that malloc(0) = NULL.
82777         * tests/unicase/test-u8-tolower.c (check): Likewise.
82778         * tests/unicase/test-u8-totitle.c (check): Likewise.
82779         * tests/unicase/test-u8-toupper.c (check): Likewise.
82780         * tests/unicase/test-u16-casefold.c (check): Likewise.
82781         * tests/unicase/test-u16-tolower.c (check): Likewise.
82782         * tests/unicase/test-u16-totitle.c (check): Likewise.
82783         * tests/unicase/test-u16-toupper.c (check): Likewise.
82784         * tests/unicase/test-u32-casefold.c (check): Likewise.
82785         * tests/unicase/test-u32-tolower.c (check): Likewise.
82786         * tests/unicase/test-u32-totitle.c (check): Likewise.
82787         * tests/unicase/test-u32-toupper.c (check): Likewise.
82788         * tests/uninorm/test-u8-nfc.c (check): Likewise.
82789         * tests/uninorm/test-u8-nfd.c (check): Likewise.
82790         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
82791         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
82792         * tests/uninorm/test-u16-nfc.c (check): Likewise.
82793         * tests/uninorm/test-u16-nfd.c (check): Likewise.
82794         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
82795         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
82796         * tests/uninorm/test-u32-nfc.c (check): Likewise.
82797         * tests/uninorm/test-u32-nfd.c (check): Likewise.
82798         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
82799         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
82801 2009-04-05  Bruno Haible  <bruno@clisp.org>
82803         Work around an autoconf limitation.
82804         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
82805         comment line if it would be longer than 3 KB.
82807 2009-04-05  Bruno Haible  <bruno@clisp.org>
82809         Avoid test failure with libiconv-1.13.
82810         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
82811         of the expected test results.
82813 2009-04-05  Bruno Haible  <bruno@clisp.org>
82815         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
82816         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
82817         that it should be installed.
82819 2009-04-05  Bruno Haible  <bruno@clisp.org>
82821         * gnulib-tool: New option --copy-file.
82822         (func_usage): Document it.
82823         (func_dest_tmpfilename): Moved out of func_import.
82824         (func_add_file, func_update_file): New functions, extracted from
82825         func_import.
82826         (func_import): Update.
82828 2009-04-05  Karl Berry  <karl@gnu.org>
82830         * README: prominently mention gnulib-tool.
82831         Rearrange sections so getting the code is near the top.
82833 2009-04-05  Bruno Haible  <bruno@clisp.org>
82835         * lib/unicase.h: Mention u*_cmp2.
82836         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
82837         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
82838         * lib/unicase/ulc-casecmp.c: Likewise.
82839         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
82840         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
82841         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
82842         unistr/u8-cmp.
82843         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
82844         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
82845         unistr/u16-cmp.
82846         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
82847         unistr/u32-cmp.
82849         * lib/uninorm.h: Mention u*_cmp2.
82850         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
82851         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
82852         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
82853         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
82854         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
82855         unistr/u8-cmp.
82856         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
82857         unistr/u16-cmp.
82858         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
82859         unistr/u32-cmp.
82861         New module 'unistr/u32-cmp2'.
82862         * lib/unistr/u32-cmp2.c: New file.
82863         * modules/unistr/u32-cmp2: New file.
82865         New module 'unistr/u16-cmp2'.
82866         * lib/unistr/u16-cmp2.c: New file.
82867         * modules/unistr/u16-cmp2: New file.
82869         New module 'unistr/u8-cmp2'.
82870         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
82871         * lib/unistr/u8-cmp2.c: New file.
82872         * lib/unistr/u-cmp2.h: New file.
82873         * modules/unistr/u8-cmp2: New file.
82875 2009-04-05  Bruno Haible  <bruno@clisp.org>
82877         * lib/unictype.h (uc_property_is_valid): New macro.
82878         * tests/unictype/test-pr_byname.c (main): Use it.
82880         * lib/unistr.h: Doc fixes.
82881         * lib/uniconv.h: Doc fixes.
82882         * lib/unictype.h: Doc fixes.
82884 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
82886         Port coreutils 7.2 to Solaris 8.
82888         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
82889         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
82890         for Solaris 8.  This is a bit of a hack, as it means it's the
82891         caller's responsibility to add -lnsl if needed, but most likely it
82892         won't be needed since only getaddrinfo uses this and getaddrinfo
82893         isn't needed on Solaris 8.
82895         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
82896         problem to Solaris 8 encountered with coreutils 7.2, which
82897         resulted in a message "fnmatch.c:292: warning: passing argument 4
82898         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
82899         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
82901 2009-04-03  Simon Josefsson  <simon@josefsson.org>
82903         * m4/ld-version-script.m4: Add FIXME comment.
82905 2009-04-02  Simon Josefsson  <simon@josefsson.org>
82907         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
82908         SOVERSION variable.
82910 2009-04-02  Bruno Haible  <bruno@clisp.org>
82912         * Makefile (info, html, dvi, pdf): Combine the rules.
82913         Suggested by Jim Meyering.
82915 2009-04-01  Bruno Haible  <bruno@clisp.org>
82917         * Makefile (info, html, dvi, pdf): New targets.
82918         Reported by Reuben Thomas <rrt@sc3d.org>.
82920 2009-04-01  Bruno Haible  <bruno@clisp.org>
82922         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
82923         can be put into PATH.
82924         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
82926 2009-04-01  Bruno Haible  <bruno@clisp.org>
82928         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
82930 2009-04-01  Bruno Haible  <bruno@clisp.org>
82932         Rename module 'visibility'.
82933         * modules/lib-symbol-visibility: Renamed from modules/visibility.
82934         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
82935         * doc/gnulib.texi: Update.
82936         * MODULES.html.sh (Misc): Update.
82937         * NEWS: Mention the change.
82939 2009-04-01  Simon Josefsson  <simon@josefsson.org>
82941         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
82942         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
82943         Eric Blake <ebb9@byu.net> for review.
82944         * MODULES.html.sh: Add lib-msvc-compat.
82945         * doc/gnulib.texi: Link to new section.
82946         * m4/ld-output-def.m4: New file.
82947         * doc/ld-output-def.texi: New file.
82949 2009-04-01  Simon Josefsson  <simon@josefsson.org>
82951         Rename ld-version-script to lib-symbol-versions.  Suggested by
82952         Bruno Haible <bruno@clisp.org>.
82953         * modules/ld-version-script: Renamed to lib-symbol-versions.
82954         * doc/ld-version-script.texi: Fix module name.
82955         * MODULES.html.sh: Add lib-symbol-versions.
82957 2009-03-31  Simon Josefsson  <simon@josefsson.org>
82959         * modules/u64-tests: New file.
82960         * tests/test-u64.c: New file.
82962 2009-03-04  Simon Josefsson  <simon@josefsson.org>
82964         * MODULES.html.sh: Mention u64.
82965         * modules/u64: New module.
82966         * modules/crypto/sha512: Depend on u64 module instead of providing
82967         u64.h.
82969 2009-03-27  Eric Blake  <ebb9@byu.net>
82971         test-strerror: make debugging EAI_SYSTEM easier
82972         * modules/getaddrinfo-tests (Depends-on): Add strerror.
82973         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
82974         failure was EAI_SYSTEM.
82976 2009-03-25  Bruno Haible  <bruno@clisp.org>
82978         Fix a problem with --enable-relocatable on Solaris 7.
82979         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
82980         since 2008-02-24.
82982 2009-03-25  Eric Blake  <ebb9@byu.net>
82984         test-sockets: avoid gcc warning
82985         * tests/test-sockets.c (main): Silence compiler warning.
82987 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82989         New modules nproc, pthread, contributed by Glen Lenker.
82991         * MODULES.html.sh: Add pthread, nproc.
82992         * lib/nproc.c: New file.
82993         * lib/nproc.h: New file.
82994         * lib/pthread.in.h: New file.
82995         * m4/pthread.m4: New file.
82996         * modules/nproc: New file.
82997         * modules/pthread: New file.
82999 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83001         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
83002         New variable.
83004 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
83006         filevercmp: handle simple~ and numbered.~3~ backup suffixes
83007         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
83008         * tests/test-filevercmp.c: Add tests for backup suffixes.
83010 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83012         * modules/stdlib (Depends-on): Add stdint, needed when defining
83013         struct random_data on, for example, HP-UX 10.20.  Reported by
83014         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83016 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83018         * lib/readline.c (readline): Call fflush on stdout after printing
83019         prompt.
83021 2009-03-20  Bruno Haible  <bruno@clisp.org>
83023         Remove dependency from 'close' module to -lws2_32 on native Windows.
83024         * lib/close-hook.h: New file.
83025         * lib/close-hook.c: New file.
83026         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
83027         w32sock.h.
83028         (_gl_close_fd_maybe_socket): Remove function.
83029         (rpl_close): Invoke execute_all_close_hooks instead of
83030         _gl_close_fd_maybe_socket.
83031         * lib/sockets.c: Include close-hook.h, w32sock.h.
83032         (close_fd_maybe_socket): New function, essentially from lib/close.c.
83033         (close_sockets_hook): New variable.
83034         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
83035         (gl_sockets_cleanup): Unregister it.
83036         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
83037         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
83038         * modules/close-hook: New file.
83039         * modules/close (Files): Remove lib/w32sock.h.
83040         (Depends-on): Add close-hook.
83041         (Link): Remove section.
83042         * modules/sockets (Files): Add lib/w32sock.h.
83043         (Depends-on): Add close-hook.
83044         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
83045         invocation.
83046         * NEWS: Mention that LIB_CLOSE is gone.
83048 2009-03-23  Eric Blake  <ebb9@byu.net>
83050         signal-tests: test previous patch
83051         * tests/test-signal.c: New file.
83052         * modules/signal-tests: Likewise.
83054         signal.h: always support 'volatile sig_atomic_t'
83055         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
83056         (gl_SIGNAL_H_DEFAULTS): Add a default.
83057         * modules/signal (Makefile.am): Substitute if needed.
83058         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
83059         users can blindly add volatile.
83060         * doc/posix-headers/signal.texi (signal.h): Document it.
83061         Reported by Matthew Woehlke.
83063 2009-03-23  Jim Meyering  <meyering@redhat.com>
83065         pathmax: PATH_MAX: use pathconf only when available
83066         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
83067         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
83068         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
83069         This avoids a link failure in a PSP cross-compilation environment
83070         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
83072         * lib/vasnprintf.c (divide): Fix typo in comment.
83074 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83076         * gnulib-tool (func_filter_filelist): Fix comment.
83078 2009-03-20  Bruno Haible  <bruno@clisp.org>
83080         Make sockets.h self-contained.
83081         * lib/sockets.c: Include sockets.h first.
83082         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
83084 2009-03-19  Eric Blake  <ebb9@byu.net>
83086         doc: mention more functions added in cygwin 1.7.0
83087         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
83088         addition.
83089         * doc/posix-functions/log2f.texi: Likewise.
83091 2009-03-19  Jim Meyering  <meyering@redhat.com>
83093         fsusage: avoid syntax error due to statement-before-declaration
83094         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
83095         after all declarations.  Reported by Matthew Woehlke in
83096         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
83098 2009-03-18  Eric Blake  <ebb9@byu.net>
83100         build-aux/compile: sync from automake
83101         * build-aux/compile: New file, from automake.
83102         * config/srclist.txt: Mention build-aux/compile.
83104 2009-03-17  Bruno Haible  <bruno@clisp.org>
83106         * lib/git-merge-changelog.c: Fix typo in comment.
83107         Reported by Reuben Thomas <rrt@sc3d.org>.
83109 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
83111         * m4/regex.m4: update and improve help for
83112         --without-included-regex.
83114 2009-03-17  Simon Josefsson  <simon@josefsson.org>
83116         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
83117         failure on missing include files.
83119 2009-03-17  Eric Blake  <ebb9@byu.net>
83121         doc: mention more functions added in cygwin 1.7.0
83122         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
83123         addition.
83124         * doc/posix-functions/fwscanf.texi: Likewise.
83125         * doc/posix-functions/swprintf.texi: Likewise.
83126         * doc/posix-functions/swscanf.texi: Likewise.
83127         * doc/posix-functions/vfwprintf.texi: Likewise.
83128         * doc/posix-functions/vfwscanf.texi: Likewise.
83129         * doc/posix-functions/vswprintf.texi: Likewise.
83130         * doc/posix-functions/vswscanf.texi: Likewise.
83131         * doc/posix-functions/vwprintf.texi: Likewise.
83132         * doc/posix-functions/vwscanf.texi: Likewise.
83133         * doc/posix-functions/wcscasecmp.texi: Likewise.
83134         * doc/posix-functions/wcsdup.texi: Likewise.
83135         * doc/posix-functions/wcsftime.texi: Likewise.
83136         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83137         * doc/posix-functions/wprintf.texi: Likewise.
83138         * doc/posix-functions/wscanf.texi: Likewise.
83139         * doc/glibc-functions/gethostbyname2.texi: Likewise.
83141 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83143         maint.mk: really add $(AM_MAKEFLAGS)
83144         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
83145         was inadvertently omitted in the last commit.
83146         Spotted by Bruno Haible.
83148         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
83149         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
83150         $(AM_MAKEFLAGS)' rather than plain `make'.
83152         gnulib-tool: execute $MAKE not make
83153         * gnulib-tool: Default $MAKE to 'make'.
83154         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
83155         than make.  Initialize $MAKE in the do-autobuild script.
83157         gnulib-tool: use $MAKE not make in generated files
83158         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
83159         make, in generated files.  Initialize $MAKE in the do-autobuild
83160         script.
83162         * top/GNUmakefile (_have-git-version-gen): Fix typo.
83164         GNUmakefile: disable parallelism only for multiple, recursive targets
83165         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
83166         additions in the Makefile.
83167         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
83168         by Automake.
83169         (.NOTPARALLEL): Only disable parallel builds if multiple targets
83170         are listed on the command line and at least one of them is
83171         listed in $(ALL_RECURSIVE_TARGETS).
83173 2009-03-14  Bruno Haible  <bruno@clisp.org>
83175         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
83176         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
83177         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
83178         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
83179         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
83180         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
83181         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
83182         unistr/u8-uctomb.
83183         * modules/unistr/u8-strchr (Depends-on): Likewise.
83184         * modules/unistr/u8-strrchr (Depends-on): Likewise.
83185         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
83186         unistr/u16-uctomb.
83187         * modules/unistr/u16-strchr (Depends-on): Likewise.
83188         * modules/unistr/u16-strrchr (Depends-on): Likewise.
83190 2009-03-12  Bruno Haible  <bruno@clisp.org>
83192         Work around select() bug on Interix 3.5.
83193         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
83194         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
83195         * m4/select.m4: New file.
83196         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
83197         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
83198         * modules/select (Files): Add m4/select.m4.
83199         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
83200         * modules/nanosleep (Depends-on): Add select.
83201         * modules/poll (Depends-on): Likewise.
83202         * doc/posix-functions/select.texi: Mention the Interix bug.
83203         Reported by Markus Duft <mduft@gentoo.org>.
83205         * lib/select.c: Renamed from lib/winsock-select.c.
83206         * modules/select (Files): Add lib/select.c, remove
83207         lib/winsock-select.c.
83208         (configure.ac): Update.
83210 2009-03-12  Jim Meyering  <meyering@redhat.com>
83212         avoid gcc warnings about unused macro definitions
83213         * lib/readtokens.c (STREQ): Remove unused definition.
83214         * lib/xmalloc.c (SIZE_MAX): Likewise.
83215         * lib/openat-die.c (N_): Likewise.
83216         * lib/mountlist.c (SIZE_MAX): Remove definition.
83217         Instead, include <stdint.h>.
83218         * lib/readutmp.c: Likewise.
83219         * modules/readutmp (Depends-on): Add stdint.
83220         * modules/mountlist (Depends-on): Add stdint.
83221         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
83223 2009-03-10  Bruno Haible  <bruno@clisp.org>
83225         Tests for module 'mbmemcasecoll'.
83226         * modules/mbmemcasecoll-tests: New file.
83227         * tests/test-mbmemcasecoll1.sh: New file.
83228         * tests/test-mbmemcasecoll2.sh: New file.
83229         * tests/test-mbmemcasecoll3.sh: New file.
83230         * tests/test-mbmemcasecoll.c: New file.
83232         New module 'mbmemcasecoll'.
83233         * lib/mbmemcasecoll.h: New file.
83234         * lib/mbmemcasecoll.c: New file.
83235         * modules/mbmemcasecoll: New file.
83237         * tests/test-mbmemcasecmp.h: New file, extracted from
83238         tests/test-mbmemcasecmp.c.
83239         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
83240         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
83241         (main): Update.
83242         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
83244 2009-03-09  Bruno Haible  <bruno@clisp.org>
83246         Tests for module 'mbmemcasecmp'.
83247         * modules/mbmemcasecmp-tests: New file.
83248         * tests/test-mbmemcasecmp1.sh: New file.
83249         * tests/test-mbmemcasecmp2.sh: New file.
83250         * tests/test-mbmemcasecmp3.sh: New file.
83251         * tests/test-mbmemcasecmp.c: New file.
83253         New module 'mbmemcasecmp'.
83254         * lib/mbmemcasecmp.h: New file.
83255         * lib/mbmemcasecmp.c: New file.
83256         * modules/mbmemcasecmp: New file.
83258 2009-03-09  Bruno Haible  <bruno@clisp.org>
83260         Tests for module 'unicase/ulc-casecoll'.
83261         * modules/unicase/ulc-casecoll-tests: New file.
83262         * tests/unicase/test-ulc-casecoll1.sh: New file.
83263         * tests/unicase/test-ulc-casecoll2.sh: New file.
83264         * tests/unicase/test-ulc-casecoll.c: New file.
83266         New module 'unicase/ulc-casecoll'.
83267         * lib/unicase.h (ulc_casecoll): New declaration.
83268         * lib/unicase/ulc-casecoll.c: New file.
83269         * modules/unicase/ulc-casecoll: New file.
83271         New module 'unicase/ulc-casexfrm'.
83272         * lib/unicase.h (ulc_casexfrm): New declaration.
83273         * lib/unicase/ulc-casexfrm.c: New file.
83274         * modules/unicase/ulc-casexfrm: New file.
83276 2009-03-09  Bruno Haible  <bruno@clisp.org>
83278         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
83279         invocations.
83281         * m4/mbscasecmp.m4: Remove file.
83282         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
83283         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
83285         * m4/mbscasestr.m4: Remove file.
83286         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
83287         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
83289         * m4/mbschr.m4: Remove file.
83290         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
83291         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
83293         * m4/mbscspn.m4: Remove file.
83294         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
83295         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
83297         * m4/mbslen.m4: Remove file.
83298         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
83299         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
83301         * m4/mbsncasecmp.m4: Remove file.
83302         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
83303         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
83305         * m4/mbsnlen.m4: Remove file.
83306         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
83307         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
83309         * m4/mbspbrk.m4: Remove file.
83310         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
83311         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
83313         * m4/mbspcasecmp.m4: Remove file.
83314         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
83315         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
83317         * m4/mbsrchr.m4: Remove file.
83318         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
83319         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
83321         * m4/mbssep.m4: Remove file.
83322         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
83323         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
83325         * m4/mbsspn.m4: Remove file.
83326         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
83327         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
83329         * m4/mbsstr.m4: Remove file.
83330         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
83331         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
83333         * m4/mbstok_r.m4: Remove file.
83334         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
83335         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
83337         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
83339         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
83340         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
83342         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
83344 2009-03-08  Bruno Haible  <bruno@clisp.org>
83346         Tests for module 'unicase/ulc-casecmp'.
83347         * modules/unicase/ulc-casecmp-tests: New file.
83348         * tests/unicase/test-ulc-casecmp1.sh: New file.
83349         * tests/unicase/test-ulc-casecmp2.sh: New file.
83350         * tests/unicase/test-ulc-casecmp.c: New file.
83352         New module 'unicase/ulc-casecmp'.
83353         * lib/unicase.h (ulc_casecmp): New declaration.
83354         * lib/unicase/ulc-casecmp.c: New file.
83355         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
83356         'const SRC_UNIT *'.
83357         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
83358         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
83359         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
83360         * modules/unicase/ulc-casecmp: New file.
83362         Tests for module 'unicase/u32-is-cased'.
83363         * modules/unicase/u32-is-cased-tests: New file.
83364         * tests/unicase/test-u32-is-cased.c: New file.
83366         Tests for module 'unicase/u16-is-cased'.
83367         * modules/unicase/u16-is-cased-tests: New file.
83368         * tests/unicase/test-u16-is-cased.c: New file.
83370         Tests for module 'unicase/u8-is-cased'.
83371         * modules/unicase/u8-is-cased-tests: New file.
83372         * tests/unicase/test-u8-is-cased.c: New file.
83373         * tests/unicase/test-is-cased.h: New file.
83375         New module 'unicase/u32-is-cased'.
83376         * lib/unicase/u32-is-cased.c: New file.
83377         * modules/unicase/u32-is-cased: New file.
83379         New module 'unicase/u16-is-cased'.
83380         * lib/unicase/u16-is-cased.c: New file.
83381         * modules/unicase/u16-is-cased: New file.
83383         New module 'unicase/u8-is-cased'.
83384         * lib/unicase/u8-is-cased.c: New file.
83385         * lib/unicase/u-is-cased.h: New file.
83386         * modules/unicase/u8-is-cased: New file.
83388         Tests for module 'unicase/u32-is-casefolded'.
83389         * modules/unicase/u32-is-casefolded-tests: New file.
83390         * tests/unicase/test-u32-is-casefolded.c: New file.
83392         Tests for module 'unicase/u16-is-casefolded'.
83393         * modules/unicase/u16-is-casefolded-tests: New file.
83394         * tests/unicase/test-u16-is-casefolded.c: New file.
83396         Tests for module 'unicase/u8-is-casefolded'.
83397         * modules/unicase/u8-is-casefolded-tests: New file.
83398         * tests/unicase/test-u8-is-casefolded.c: New file.
83399         * tests/unicase/test-is-casefolded.h: New file.
83401         New module 'unicase/u32-is-casefolded'.
83402         * lib/unicase/u32-is-casefolded.c: New file.
83403         * modules/unicase/u32-is-casefolded: New file.
83405         New module 'unicase/u16-is-casefolded'.
83406         * lib/unicase/u16-is-casefolded.c: New file.
83407         * modules/unicase/u16-is-casefolded: New file.
83409         New module 'unicase/u8-is-casefolded'.
83410         * lib/unicase/u8-is-casefolded.c: New file.
83411         * modules/unicase/u8-is-casefolded: New file.
83413         Tests for module 'unicase/u32-is-titlecase'.
83414         * modules/unicase/u32-is-titlecase-tests: New file.
83415         * tests/unicase/test-u32-is-titlecase.c: New file.
83417         Tests for module 'unicase/u16-is-titlecase'.
83418         * modules/unicase/u16-is-titlecase-tests: New file.
83419         * tests/unicase/test-u16-is-titlecase.c: New file.
83421         Tests for module 'unicase/u8-is-titlecase'.
83422         * modules/unicase/u8-is-titlecase-tests: New file.
83423         * tests/unicase/test-u8-is-titlecase.c: New file.
83424         * tests/unicase/test-is-titlecase.h: New file.
83426         New module 'unicase/u32-is-titlecase'.
83427         * lib/unicase/u32-is-titlecase.c: New file.
83428         * modules/unicase/u32-is-titlecase: New file.
83430         New module 'unicase/u16-is-titlecase'.
83431         * lib/unicase/u16-is-titlecase.c: New file.
83432         * modules/unicase/u16-is-titlecase: New file.
83434         New module 'unicase/u8-is-titlecase'.
83435         * lib/unicase/u8-is-titlecase.c: New file.
83436         * modules/unicase/u8-is-titlecase: New file.
83438         Tests for module 'unicase/u32-is-lowercase'.
83439         * modules/unicase/u32-is-lowercase-tests: New file.
83440         * tests/unicase/test-u32-is-lowercase.c: New file.
83442         Tests for module 'unicase/u16-is-lowercase'.
83443         * modules/unicase/u16-is-lowercase-tests: New file.
83444         * tests/unicase/test-u16-is-lowercase.c: New file.
83446         Tests for module 'unicase/u8-is-lowercase'.
83447         * modules/unicase/u8-is-lowercase-tests: New file.
83448         * tests/unicase/test-u8-is-lowercase.c: New file.
83449         * tests/unicase/test-is-lowercase.h: New file.
83451         New module 'unicase/u32-is-lowercase'.
83452         * lib/unicase/u32-is-lowercase.c: New file.
83453         * modules/unicase/u32-is-lowercase: New file.
83455         New module 'unicase/u16-is-lowercase'.
83456         * lib/unicase/u16-is-lowercase.c: New file.
83457         * modules/unicase/u16-is-lowercase: New file.
83459         New module 'unicase/u8-is-lowercase'.
83460         * lib/unicase/u8-is-lowercase.c: New file.
83461         * modules/unicase/u8-is-lowercase: New file.
83463         Tests for module 'unicase/u32-is-uppercase'.
83464         * modules/unicase/u32-is-uppercase-tests: New file.
83465         * tests/unicase/test-u32-is-uppercase.c: New file.
83467         Tests for module 'unicase/u16-is-uppercase'.
83468         * modules/unicase/u16-is-uppercase-tests: New file.
83469         * tests/unicase/test-u16-is-uppercase.c: New file.
83471         Tests for module 'unicase/u8-is-uppercase'.
83472         * modules/unicase/u8-is-uppercase-tests: New file.
83473         * tests/unicase/test-u8-is-uppercase.c: New file.
83474         * tests/unicase/test-is-uppercase.h: New file.
83476         New module 'unicase/u32-is-uppercase'.
83477         * lib/unicase/u32-is-uppercase.c: New file.
83478         * modules/unicase/u32-is-uppercase: New file.
83480         New module 'unicase/u16-is-uppercase'.
83481         * lib/unicase/u16-is-uppercase.c: New file.
83482         * modules/unicase/u16-is-uppercase: New file.
83484         New module 'unicase/u8-is-uppercase'.
83485         * lib/unicase/u8-is-uppercase.c: New file.
83486         * modules/unicase/u8-is-uppercase: New file.
83488         New module 'unicase/u32-is-invariant'.
83489         * lib/unicase/u32-is-invariant.c: New file.
83490         * modules/unicase/u32-is-invariant: New file.
83492         New module 'unicase/u16-is-invariant'.
83493         * lib/unicase/u16-is-invariant.c: New file.
83494         * modules/unicase/u16-is-invariant: New file.
83496         New module 'unicase/u8-is-invariant'.
83497         * lib/unicase/u8-is-invariant.c: New file.
83498         * lib/unicase/invariant.h: New file.
83499         * lib/unicase/u-is-invariant.h: New file.
83500         * modules/unicase/u8-is-invariant: New file.
83502         Tests for module 'unicase/u32-casecoll'.
83503         * modules/unicase/u32-casecoll-tests: New file.
83504         * tests/unicase/test-u32-casecoll.c: New file.
83506         Tests for module 'unicase/u16-casecoll'.
83507         * modules/unicase/u16-casecoll-tests: New file.
83508         * tests/unicase/test-u16-casecoll.c: New file.
83510         Tests for module 'unicase/u8-casecoll'.
83511         * modules/unicase/u8-casecoll-tests: New file.
83512         * tests/unicase/test-u8-casecoll.c: New file.
83514         New module 'unicase/u32-casecoll'.
83515         * lib/unicase/u32-casecoll.c: New file.
83516         * modules/unicase/u32-casecoll: New file.
83518         New module 'unicase/u16-casecoll'.
83519         * lib/unicase/u16-casecoll.c: New file.
83520         * modules/unicase/u16-casecoll: New file.
83522         New module 'unicase/u8-casecoll'.
83523         * lib/unicase/u8-casecoll.c: New file.
83524         * lib/unicase/u-casecoll.h: New file.
83525         * modules/unicase/u8-casecoll: New file.
83527         New module 'unicase/u32-casexfrm'.
83528         * lib/unicase/u32-casexfrm.c: New file.
83529         * modules/unicase/u32-casexfrm: New file.
83531         New module 'unicase/u16-casexfrm'.
83532         * lib/unicase/u16-casexfrm.c: New file.
83533         * modules/unicase/u16-casexfrm: New file.
83535         New module 'unicase/u8-casexfrm'.
83536         * lib/unicase/u8-casexfrm.c: New file.
83537         * lib/unicase/u-casexfrm.h: New file.
83538         * modules/unicase/u8-casexfrm: New file.
83540         Tests for module 'unicase/u32-casecmp'.
83541         * modules/unicase/u32-casecmp-tests: New file.
83542         * tests/unicase/test-u32-casecmp.c: New file.
83544         Tests for module 'unicase/u16-casecmp'.
83545         * modules/unicase/u16-casecmp-tests: New file.
83546         * tests/unicase/test-u16-casecmp.c: New file.
83548         Tests for module 'unicase/u8-casecmp'.
83549         * modules/unicase/u8-casecmp-tests: New file.
83550         * tests/unicase/test-u8-casecmp.c: New file.
83551         * tests/unicase/test-casecmp.h: New file.
83553         New module 'unicase/u32-casecmp'.
83554         * lib/unicase/u32-casecmp.c: New file.
83555         * modules/unicase/u32-casecmp: New file.
83557         New module 'unicase/u16-casecmp'.
83558         * lib/unicase/u16-casecmp.c: New file.
83559         * modules/unicase/u16-casecmp: New file.
83561         New module 'unicase/u8-casecmp'.
83562         * lib/unicase/u8-casecmp.c: New file.
83563         * lib/unicase/u-casecmp.h: New file.
83564         * modules/unicase/u8-casecmp: New file.
83566         Tests for module 'unicase/u32-casefold'.
83567         * modules/unicase/u32-casefold-tests: New file.
83568         * tests/unicase/test-u32-casefold.c: New file.
83570         Tests for module 'unicase/u16-casefold'.
83571         * modules/unicase/u16-casefold-tests: New file.
83572         * tests/unicase/test-u16-casefold.c: New file.
83574         Tests for module 'unicase/u8-casefold'.
83575         * modules/unicase/u8-casefold-tests: New file.
83576         * tests/unicase/test-u8-casefold.c: New file.
83578         New module 'unicase/u32-casefold'.
83579         * lib/unicase/u32-casefold.c: New file.
83580         * modules/unicase/u32-casefold: New file.
83582         New module 'unicase/u16-casefold'.
83583         * lib/unicase/u16-casefold.c: New file.
83584         * modules/unicase/u16-casefold: New file.
83586         New module 'unicase/u8-casefold'.
83587         * lib/unicase/u8-casefold.c: New file.
83588         * lib/unicase/u-casefold.h: New file.
83589         * modules/unicase/u8-casefold: New file.
83591         New module 'unicase/tocasefold'.
83592         * lib/unicase/casefold.h: New file.
83593         * lib/unicase/tocasefold.c: New file.
83594         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
83595         * modules/unicase/tocasefold: New file.
83597         Tests for module 'unicase/u32-totitle'.
83598         * modules/unicase/u32-totitle-tests: New file.
83599         * tests/unicase/test-u32-totitle.c: New file.
83601         Tests for module 'unicase/u16-totitle'.
83602         * modules/unicase/u16-totitle-tests: New file.
83603         * tests/unicase/test-u16-totitle.c: New file.
83605         Tests for module 'unicase/u8-totitle'.
83606         * modules/unicase/u8-totitle-tests: New file.
83607         * tests/unicase/test-u8-totitle.c: New file.
83609         New module 'unicase/u32-totitle'.
83610         * lib/unicase/u32-totitle.c: New file.
83611         * modules/unicase/u32-totitle: New file.
83613         New module 'unicase/u16-totitle'.
83614         * lib/unicase/u16-totitle.c: New file.
83615         * modules/unicase/u16-totitle: New file.
83617         New module 'unicase/u8-totitle'.
83618         * lib/unicase/u8-totitle.c: New file.
83619         * lib/unicase/u-totitle.h: New file.
83620         * modules/unicase/u8-totitle: New file.
83622         Tests for module 'unicase/u32-tolower'.
83623         * modules/unicase/u32-tolower-tests: New file.
83624         * tests/unicase/test-u32-tolower.c: New file.
83626         Tests for module 'unicase/u16-tolower'.
83627         * modules/unicase/u16-tolower-tests: New file.
83628         * tests/unicase/test-u16-tolower.c: New file.
83630         Tests for module 'unicase/u8-tolower'.
83631         * modules/unicase/u8-tolower-tests: New file.
83632         * tests/unicase/test-u8-tolower.c: New file.
83634         New module 'unicase/u32-tolower'.
83635         * lib/unicase/u32-tolower.c: New file.
83636         * modules/unicase/u32-tolower: New file.
83638         New module 'unicase/u16-tolower'.
83639         * lib/unicase/u16-tolower.c: New file.
83640         * modules/unicase/u16-tolower: New file.
83642         New module 'unicase/u8-tolower'.
83643         * lib/unicase/u8-tolower.c: New file.
83644         * modules/unicase/u8-tolower: New file.
83646         Tests for module 'unicase/u32-toupper'.
83647         * modules/unicase/u32-toupper-tests: New file.
83648         * tests/unicase/test-u32-toupper.c: New file.
83650         Tests for module 'unicase/u16-toupper'.
83651         * modules/unicase/u16-toupper-tests: New file.
83652         * tests/unicase/test-u16-toupper.c: New file.
83654         Tests for module 'unicase/u8-toupper'.
83655         * modules/unicase/u8-toupper-tests: New file.
83656         * tests/unicase/test-u8-toupper.c: New file.
83658         New module 'unicase/u32-toupper'.
83659         * lib/unicase/u32-toupper.c: New file.
83660         * modules/unicase/u32-toupper: New file.
83662         New module 'unicase/u16-toupper'.
83663         * lib/unicase/u16-toupper.c: New file.
83664         * modules/unicase/u16-toupper: New file.
83666         New module 'unicase/u8-toupper'.
83667         * lib/unicase/u8-toupper.c: New file.
83668         * modules/unicase/u8-toupper: New file.
83670         New module 'unicase/u32-casemap'.
83671         * lib/unicase/u32-casemap.c: New file.
83672         * modules/unicase/u32-casemap: New file.
83674         New module 'unicase/u16-casemap'.
83675         * lib/unicase/u16-casemap.c: New file.
83676         * modules/unicase/u16-casemap: New file.
83678         New module 'unicase/u8-casemap'.
83679         * lib/unicase/unicasemap.h: New file.
83680         * lib/unicase/u8-casemap.c: New file.
83681         * lib/unicase/u-casemap.h: New file.
83682         * modules/unicase/u8-casemap: New file.
83684         New module 'unicase/special-casing'.
83685         * lib/unicase/special-casing.h: New file.
83686         * lib/unicase/special-casing.c: New file.
83687         * lib/unicase/special-casing-table.gperf: New file, generated by
83688         gen-uni-tables.c.
83689         * modules/unicase/special-casing: New file.
83691         Tests for module 'unicase/locale-language'.
83692         * modules/unicase/locale-language-tests: New file.
83693         * tests/unicase/test-locale-language.sh: New file.
83694         * tests/unicase/test-locale-language.c: New file.
83696         New module 'unicase/locale-language'.
83697         * lib/unicase/locale-language.c: New file.
83698         * lib/unicase/locale-languages.gperf: New file.
83699         * modules/unicase/locale-language: New file.
83701         Generate more tables for case conversion and case folding.
83702         * lib/gen-uni-tables.c (SCC_*): New enum items.
83703         (struct special_casing_rule): New type.
83704         (casing_rules, num_casing_rules, allocated_casing_rules): New
83705         variables.
83706         (add_casing_rule, fill_casing_rules): New functions.
83707         (struct casefold_rule): New type.
83708         (casefolding_rules, num_casefolding_rules,
83709         allocated_casefolding_rules): New variables.
83710         (fill_casefolding_rules): New function.
83711         (unicode_casefold): New variable.
83712         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
83713         sort_casing_rules, output_casing_rules): New functions.
83714         (main): Accept to more arguments: SpecialCasing.txt and
83715         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
83716         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
83717         Output mapping for casefolding.
83719         * lib/unicase.h: Include stdbool.h, uninorm.h.
83720         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
83721         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
83722         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
83723         arguments.
83724         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
83725         resultp arguments.
83726         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
83727         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
83728         resultp arguments.
83729         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
83730         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
83731         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
83732         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
83733         declarations.
83734         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
83736 2009-03-08  Bruno Haible  <bruno@clisp.org>
83738         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
83739         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
83740         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
83741         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
83743 2009-03-07  Bruno Haible  <bruno@clisp.org>
83745         Adjust u*_normcmp, u*_normcoll API.
83746         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
83747         u16_normcoll, u32_normcoll): Change failure conventions.
83748         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
83749         errno and return -1.
83750         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
83752 2009-03-07  Bruno Haible  <bruno@clisp.org>
83754         Tests for module 'uninorm/u32-normcoll'.
83755         * modules/uninorm/u32-normcoll-tests: New file.
83756         * tests/uninorm/test-u32-normcoll.c: New file.
83758         Tests for module 'uninorm/u16-normcoll'.
83759         * modules/uninorm/u16-normcoll-tests: New file.
83760         * tests/uninorm/test-u16-normcoll.c: New file.
83762         Tests for module 'uninorm/u8-normcoll'.
83763         * modules/uninorm/u8-normcoll-tests: New file.
83764         * tests/uninorm/test-u8-normcoll.c: New file.
83766 2009-03-07  Bruno Haible  <bruno@clisp.org>
83768         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
83769         tests/uninorm/test-u32-normcmp.c.
83770         * tests/uninorm/test-u32-normcmp.c: Include it.
83771         (test_nonascii): New function, extracted from main. Add some more
83772         tests.
83773         (main): Invoke test_ascii and test_nonascii.
83774         * modules/uninorm/u32-normcmp-tests (Files): Add
83775         tests/uninorm/test-u32-normcmp.h.
83776         (Depends-on): Remove uninorm/u32-normcmp.
83778         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
83779         tests/uninorm/test-u16-normcmp.c.
83780         * tests/uninorm/test-u16-normcmp.c: Include it.
83781         (test_nonascii): New function, extracted from main. Add some more
83782         tests.
83783         (main): Invoke test_ascii and test_nonascii.
83784         * modules/uninorm/u16-normcmp-tests (Files): Add
83785         tests/uninorm/test-u16-normcmp.h.
83786         (Depends-on): Remove uninorm/u16-normcmp.
83788         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
83789         tests/uninorm/test-u8-normcmp.c.
83790         * tests/uninorm/test-u8-normcmp.c: Include it.
83791         (test_nonascii): New function, extracted from main. Add some more
83792         tests.
83793         (main): Invoke test_ascii and test_nonascii.
83794         * modules/uninorm/u8-normcmp-tests (Files): Add
83795         tests/uninorm/test-u8-normcmp.h.
83796         (Depends-on): Remove uninorm/u8-normcmp.
83798 2009-03-07  Bruno Haible  <bruno@clisp.org>
83800         New module 'uninorm/u32-normcoll'.
83801         * lib/uninorm/u32-normcoll.c: New file.
83802         * modules/uninorm/u32-normcoll: New file.
83804         New module 'uninorm/u16-normcoll'.
83805         * lib/uninorm/u16-normcoll.c: New file.
83806         * modules/uninorm/u16-normcoll: New file.
83808         New module 'uninorm/u8-normcoll'.
83809         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
83810         declarations.
83811         * lib/uninorm/u8-normcoll.c: New file.
83812         * lib/uninorm/u-normcoll.h: New file.
83813         * modules/uninorm/u8-normcoll: New file.
83815         New module 'uninorm/u32-normxfrm'.
83816         * lib/uninorm/u32-normxfrm.c: New file.
83817         * modules/uninorm/u32-normxfrm: New file.
83819         New module 'uninorm/u16-normxfrm'.
83820         * lib/uninorm/u16-normxfrm.c: New file.
83821         * modules/uninorm/u16-normxfrm: New file.
83823         New module 'uninorm/u8-normxfrm'.
83824         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
83825         declarations.
83826         * lib/uninorm/u8-normxfrm.c: New file.
83827         * lib/uninorm/u-normxfrm.h: New file.
83828         * modules/uninorm/u8-normxfrm: New file.
83830 2009-03-07  Bruno Haible  <bruno@clisp.org>
83832         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
83833         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
83834         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
83836 2009-03-07  Bruno Haible  <bruno@clisp.org>
83838         New module 'memxfrm'.
83839         * lib/memxfrm.h: New file.
83840         * lib/memxfrm.c: New file.
83841         * modules/memxfrm: New file.
83843 2009-03-07  Bruno Haible  <bruno@clisp.org>
83845         New module 'memcmp2'.
83846         * lib/memcmp2.h: New file.
83847         * lib/memcmp2.c: New file.
83848         * modules/memcmp2: New file.
83850 2009-03-07  Bruno Haible  <bruno@clisp.org>
83852         Tests for module 'uninorm/decomposing-form'.
83853         * modules/uninorm/decomposing-form-tests: New file.
83854         * tests/uninorm/test-decomposing-form.c: New file.
83856         New module 'uninorm/decomposing-form'.
83857         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
83858         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
83859         Add 'decomposing_variant' field.
83860         * lib/uninorm/decomposing-form.c: New file.
83861         * lib/uninorm/nfc.c (uninorm_nfc): Update.
83862         * lib/uninorm/nfd.c (uninorm_nfd): Update.
83863         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
83864         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
83865         * modules/uninorm/decomposing-form: New file.
83866         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
83867         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
83869 2009-03-07  Bruno Haible  <bruno@clisp.org>
83871         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
83872         strings.
83874 2009-03-06  Bruno Haible  <bruno@clisp.org>
83876         Tests for module 'uninorm/u32-normcmp'.
83877         * tests/uninorm/test-u32-normcmp.c: New file.
83878         * modules/uninorm/u32-normcmp-tests: New file.
83880         Tests for module 'uninorm/u16-normcmp'.
83881         * tests/uninorm/test-u16-normcmp.c: New file.
83882         * modules/uninorm/u16-normcmp-tests: New file.
83884         Tests for module 'uninorm/u8-normcmp'.
83885         * tests/uninorm/test-u8-normcmp.c: New file.
83886         * modules/uninorm/u8-normcmp-tests: New file.
83888         New module 'uninorm/u32-normcmp'.
83889         * lib/uninorm/u32-normcmp.c: New file.
83890         * modules/uninorm/u32-normcmp: New file.
83892         New module 'uninorm/u16-normcmp'.
83893         * lib/uninorm/u16-normcmp.c: New file.
83894         * modules/uninorm/u16-normcmp: New file.
83896         New module 'uninorm/u8-normcmp'.
83897         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
83898         declarations.
83899         * lib/uninorm/u8-normcmp.c: New file.
83900         * lib/uninorm/u-normcmp.h: New file.
83901         * modules/uninorm/u8-normcmp: New file.
83903 2009-03-06  Bruno Haible  <bruno@clisp.org>
83905         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
83906         Reported by Eric Blake.
83908 2009-03-06  Eric Blake  <ebb9@byu.net>
83909             Bruno Haible  <bruno@clisp.org>
83911         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
83912         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
83913         condition.
83914         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
83915         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
83916         condition.
83917         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
83919 2009-03-06  Eric Blake  <ebb9@byu.net>
83921         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
83922         to avoid compiler warnings.
83923         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
83925 2009-03-05  Bruno Haible  <bruno@clisp.org>
83927         * tests/test-ftell.c (main): Disable test beyond end of file on
83928         FreeMiNT.
83929         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
83931 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
83933         * lib/filevercmp.c: Move hidden files up in ordering.
83934         * tests/test-filevercmp.c: Add tests for hidden files.
83936 2009-03-04  Bruno Haible  <bruno@clisp.org>
83938         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
83939         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
83940         AM_CFLAGS.
83941         Reported by Simon Josefsson.
83943 2009-03-03  Bruno Haible  <bruno@clisp.org>
83945         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
83946         Reported by Simon Josefsson.
83948         * doc/ld-version-script.texi: Update node reference.
83950 2009-03-03  Bruno Haible  <bruno@clisp.org>
83952         * modules/visibility (License): Change to 'unlimited'.
83953         Suggested by Simon Josefsson.
83955 2009-03-03  Jim Meyering  <meyering@redhat.com>
83957         unlinkdir: cannot_unlink_dir may modify process state
83958         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
83959         it's neither thread-safe nor appropriate for use in a library.
83961 2009-03-03  Eric Blake  <ebb9@byu.net>
83963         test-closein: silence test under Darwin
83964         * tests/test-closein.sh: Ignore stderr from cat, since we don't
83965         care if it dies from EPIPE or EBADF.
83967 2009-03-03  Bruno Haible  <bruno@clisp.org>
83969         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
83970         earlier.
83971         * doc/visibility.texi: Fix @node and @section.
83973 2009-03-03  Simon Josefsson  <simon@josefsson.org>
83975         * doc/gnulib.texi: Link to sections for ld version script and
83976         visibility.
83977         * doc/visibility.texi: Add @node and @section.
83978         * modules/ld-version-script: New module.
83979         * m4/ld-version-script.m4: New file.
83980         * doc/ld-version-script.texi: New file.
83982 2009-03-02  David Lutterkort  <lutter@redhat.com>
83984         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
83985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83987 2009-03-02  Bruno Haible  <bruno@clisp.org>
83989         * doc/visibility.texi: Mention libtool's -export-symbols option.
83991 2009-03-02  Jim Meyering  <meyering@redhat.com>
83993         announce-gen: new option: --no-print-checksums
83994         * build-aux/announce-gen (usage): Describe it.
83995         (print_checksums): Print a newline here, not in the [*] footnote.
83996         (main): Honor it.
83998 2009-03-01  Bruno Haible  <bruno@clisp.org>
84000         Use socklen_t in the native Windows replacements prototypes.
84001         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
84002         instead of 'int'.
84003         * lib/getsockopt.c (rpl_getsockopt): Likewise.
84004         * lib/setsockopt.c (rpl_setsockopt): Likewise.
84005         * modules/getsockopt (Depends-on): Add socklen.
84006         * modules/setsockopt (Depends-on): Add socklen.
84008 2009-03-01  Bruno Haible  <bruno@clisp.org>
84010         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
84011         least 4.2.
84013 2009-03-01  Eric Blake  <ebb9@byu.net>
84014             Bruno Haible  <bruno@clisp.org>
84016         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
84017         error messages.
84018         * lib/wait-process.c (wait_subprocess): Omit error message about
84019         deadly signal sent to the child of termsigp != NULL.
84021 2009-03-01  Eric Blake  <ebb9@byu.net>
84023         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
84025 2009-03-01  Bruno Haible  <bruno@clisp.org>
84027         Avoid a gcc warning.
84028         * tests/test-sched.c (b): Make global.
84029         Reported by Eric Blake.
84031 2009-01-19  Martin Lambers  <marlam@marlam.de>
84033         Provide POSIX semantics for socket timeout options on W32.
84034         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
84035         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
84036         * modules/setsockopt: Depend on sys_time module for struct timeval.
84037         * modules/getsockopt: Depend on sys_time module for struct timeval.
84039 2009-03-01  Simon Josefsson  <simon@josefsson.org>
84041         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
84042         __USE_GNU, for consistency with netdb.in.h.
84043         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84045 2009-03-01  Bruno Haible  <bruno@clisp.org>
84047         More support for FreeMiNT.
84048         * lib/fseeko.c (rpl_fseeko): Complete last commit.
84049         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84051 2009-03-01  Bruno Haible  <bruno@clisp.org>
84053         More support for FreeMiNT.
84054         * lib/fpurge.c (fpurge): Correct last commit.
84055         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84057 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84059         Fix unportable awk script in vc-list-files.
84060         * build-aux/vc-list-files: In the replacement awk script, use
84061         substr with a second argument of 1, not zero.
84062         Report by Simon Josefsson.
84064 2009-02-28  Bruno Haible  <bruno@clisp.org>
84066         More support for FreeMiNT.
84067         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
84068         to FreeMiNT today.
84069         * lib/fwriting.c (fwriting): Likewise.
84070         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
84072 2009-02-28  Bruno Haible  <bruno@clisp.org>
84074         * tests/test-freadseek.c (main): Disable test beyond end of file on
84075         FreeMiNT.
84076         * tests/test-ftello.c (main): Likewise.
84077         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84079 2009-02-28  Bruno Haible  <bruno@clisp.org>
84081         Add tentative support for FreeMiNT.
84082         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
84083         * lib/fpurge.c (fpurge): Likewise.
84084         * lib/freadable.c (freadable): Likewise.
84085         * lib/freading.c (freading): Likewise.
84086         * lib/freadptr.c (freadptr): Likewise.
84087         * lib/freadseek.c (freadptrinc): Likewise.
84088         * lib/fseeko.c (rpl_fseeko): Likewise.
84089         * lib/fseterr.c (fseterr): Likewise.
84090         * lib/fwritable.c (fwritable): Likewise.
84091         * lib/fwriting.c (fwriting): Likewise.
84092         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
84093         Hourihane.
84094         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84096 2009-02-28  Bruno Haible  <bruno@clisp.org>
84098         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
84099         SIGCHLD.
84100         Reported by Jim Meyering.
84102 2009-02-28  Bruno Haible  <bruno@clisp.org>
84104         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
84105         Mention the results of these tests on various platforms.
84106         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
84107         order.
84108         * doc/posix-functions/printf.texi: Likewise.
84109         * doc/posix-functions/snprintf.texi: Likewise.
84110         * doc/posix-functions/sprintf.texi: Likewise.
84111         * doc/posix-functions/vfprintf.texi: Likewise.
84112         * doc/posix-functions/vprintf.texi: Likewise.
84113         * doc/posix-functions/vsnprintf.texi: Likewise.
84114         * doc/posix-functions/vsprintf.texi: Likewise.
84115         * doc/glibc-functions/obstack_printf.texi: Likewise.
84116         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
84118 2009-02-28  Bruno Haible  <bruno@clisp.org>
84120         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
84121         Reported by Loïc Minier <lool@dooz.org>.
84123 2009-02-27  Bruno Haible  <bruno@clisp.org>
84125         * gnulib-tool (func_import): Make the sed expression used to create the
84126         sed script for updating the .gitignore file POSIX compliant.
84127         Reported by Eric Blake.
84129 2009-02-27  Bruno Haible  <bruno@clisp.org>
84131         * gnulib-tool (sed): Don't alias as "sed --posix".
84132         Reported by Eric Blake.
84134 2009-02-27  Bruno Haible  <bruno@clisp.org>
84136         Avoid test link errors.
84137         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
84138         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
84139         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
84140         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
84141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84143 2009-02-27  Bruno Haible  <bruno@clisp.org>
84145         Avoid spurious "(cached)" in configure output.
84146         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
84147         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
84148         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
84149         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
84150         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
84151         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
84152         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
84153         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
84154         Reported by Eric Blake.
84156 2009-02-27  Eric Blake  <ebb9@byu.net>
84158         printf: fix regression in previous patch
84159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
84161 2009-02-27  Bruno Haible  <bruno@clisp.org>
84163         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
84164         value.
84165         * lib/stdint.in.h: Likewise.
84166         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
84168 2009-02-27  Eric Blake  <ebb9@byu.net>
84170         doc: mention more functions added in cygwin 1.7.0
84171         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
84172         addition.
84173         * doc/posix-functions/open_wmemstream.texi: Likewise.
84174         * doc/posix-functions/wcsnlen.texi: Likewise.
84175         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84176         * doc/posix-functions/wcstod.texi: Likewise.
84177         * doc/posix-functions/wcstof.texi: Likewise.
84178         * doc/posix-functions/wcstoimax.texi: Likewise.
84179         * doc/posix-functions/wcstok.texi: Likewise.
84180         * doc/posix-functions/wcstoumax.texi: Likewise.
84182         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
84183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
84184         * doc/posix-functions/fprintf.texi: Update.
84185         * doc/posix-functions/printf.texi: Update.
84186         * doc/posix-functions/snprintf.texi: Update.
84187         * doc/posix-functions/sprintf.texi: Update.
84188         * doc/posix-functions/vfprintf.texi: Update.
84189         * doc/posix-functions/vprintf.texi: Update.
84190         * doc/posix-functions/vsnprintf.texi: Update.
84191         * doc/posix-functions/vsprintf.texi: Update.
84192         * doc/glibc-functions/obstack_printf.texi: Update.
84193         * doc/glibc-functions/obstack_vprintf.texi: Update.
84195 2009-02-26  Eric Blake  <ebb9@byu.net>
84197         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
84198         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
84199         compilation bug by using runtime conversion.
84200         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
84201         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
84202         * modules/ceill-tests (Files): Use nan.h.
84203         * modules/floorl-tests (Files): Likewise.
84204         * modules/frexpl-tests (Files): Likewise.
84205         * modules/isnanl-tests (Files): Likewise.
84206         * modules/ldexpl-tests (Files): Likewise.
84207         * modules/roundl-tests (Files): Likewise.
84208         * modules/truncl-tests (Files): Likewise.
84209         * tests/test-ceill.c (main): Use a working NaN.
84210         * tests/test-floorl.c (main): Likewise.
84211         * tests/test-frexpl.c (main): Likewise.
84212         * tests/test-isnan.c (test_long_double): Likewise.
84213         * tests/test-isnanl.h (main): Likewise.
84214         * tests/test-ldexpl.h (main): Likewise.
84215         * tests/test-roundl.h (main): Likewise.
84216         * tests/test-truncl.h (main): Likewise.
84217         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
84219 2009-02-26  Eric Blake  <ebb9@byu.net>
84220             Bruno Haible  <bruno@clisp.org>
84222         Work around a *printf bug with %ls on Solaris.
84223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
84224         precision is specified, sprintf stops converting the wide string
84225         argument when the number of bytes that have been produced by this
84226         conversion equals or exceeds the precision.
84227         * doc/posix-functions/fprintf.texi: Update.
84228         * doc/posix-functions/printf.texi: Update.
84229         * doc/posix-functions/snprintf.texi: Update.
84230         * doc/posix-functions/sprintf.texi: Update.
84231         * doc/posix-functions/vfprintf.texi: Update.
84232         * doc/posix-functions/vprintf.texi: Update.
84233         * doc/posix-functions/vsnprintf.texi: Update.
84234         * doc/posix-functions/vsprintf.texi: Update.
84235         * doc/glibc-functions/obstack_printf.texi: Update.
84236         * doc/glibc-functions/obstack_vprintf.texi: Update.
84238 2009-02-26  Eric Blake  <ebb9@byu.net>
84240         stdlib: favor compiler check of random.h
84241         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
84242         to avoid an ObjC random.h installed by Swarm.
84244 2009-02-26  Bruno Haible  <bruno@clisp.org>
84246         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
84247         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
84248         Reported by Gary V. Vaughan <gary@gnu.org>.
84250 2009-02-26  Bruno Haible  <bruno@clisp.org>
84252         Fix *printf behaviour regarding the %ls directive.
84253         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
84254         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
84255         NEED_PRINTF_DIRECTIVE_LS.
84256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
84257         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
84258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84259         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
84260         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
84261         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
84262         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
84263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84264         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84267         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
84268         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84269         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84270         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84271         * doc/posix-functions/fprintf.texi: Update.
84272         * doc/posix-functions/printf.texi: Update.
84273         * doc/posix-functions/snprintf.texi: Update.
84274         * doc/posix-functions/sprintf.texi: Update.
84275         * doc/posix-functions/vfprintf.texi: Update.
84276         * doc/posix-functions/vprintf.texi: Update.
84277         * doc/posix-functions/vsnprintf.texi: Update.
84278         * doc/posix-functions/vsprintf.texi: Update.
84279         * doc/glibc-functions/obstack_printf.texi: Update.
84280         * doc/glibc-functions/obstack_vprintf.texi: Update.
84281         Reported by Eric Blake.
84283 2009-02-25  Bruno Haible  <bruno@clisp.org>
84285         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
84286         with known value.
84287         Reported by Gary V. Vaughan <gary@gnu.org>.
84289 2009-02-25  Bruno Haible  <bruno@clisp.org>
84291         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
84292         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
84293         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
84294         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
84295         Reported by Gary V. Vaughan <gary@gnu.org>.
84297 2009-02-25  Bruno Haible  <bruno@clisp.org>
84299         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
84300         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
84301         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
84302         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
84303         Reported by Gary V. Vaughan <gary@gnu.org>.
84305 2009-02-25  Eric Blake  <ebb9@byu.net>
84307         tests: skip fseek/ftell tests if ungetc is broken
84308         * m4/ungetc.m4: New file.
84309         * modules/fseek-tests: Split test, so ungetc dependency is
84310         separate from rest of test.
84311         * modules/fseeko-tests: Likewise.
84312         * modules/ftell-tests: Likewise.
84313         * modules/ftello-tests: Likewise.
84314         * tests/test-fseek.c (main): Isolate ungetc dependency.
84315         * tests/test-fseeko.c (main): Likewise.
84316         * tests/test-ftell.c (main): Likewise.
84317         * tests/test-ftello.c (main): Likewise.
84318         * tests/test-fseek2.sh: New file.
84319         * tests/test-fseeko2.sh: Likewise.
84320         * tests/test-ftell2.sh: Likewise.
84321         * tests/test-ftello2.sh: Likewise.
84323 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
84325         test-getaddrinfo: fix usage of skip return code 77
84326         * tests/test-gettaddrinfo.c: Return skip code 77 only
84327         for first occurrence of skip (4x77 is not 77)
84329 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
84331         strtod: avoid C99 decl-after-statement
84332         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
84334 2009-02-24  Eric Blake  <ebb9@byu.net>
84336         strtod: detect HP-UX 11.31 bug
84337         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
84338         Reported by Gary V. Vaughan.
84340 2009-02-23  Bruno Haible  <bruno@clisp.org>
84342         Fix invalid read past end of memory block.
84343         * lib/vasnprintf.c (DCHAR_SET): Define.
84344         (local_wcslen): Define only when needed.
84345         (local_strnlen, local_wcsnlen): New functions.
84346         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
84347         directives that involve a conversion ourselves.
84348         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
84349         wcsnlen, mbrtowc, wcrtomb.
84350         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
84351         * tests/test-vasprintf-posix.c (test_function): Likewise.
84352         * tests/test-snprintf-posix.h (test_function): Likewise.
84353         * tests/test-sprintf-posix.h (test_function): Likewise.
84354         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84356 2009-02-22  Bruno Haible  <bruno@clisp.org>
84358         Implement new clarified decomposition of Hangul syllables.
84359         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
84360         of type LTV, return only a pairwise decomposition.
84361         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
84362         Likewise.
84363         * tests/uninorm/test-decomposition.c (main): Updated expected result.
84364         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
84365         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
84367 2009-02-22  Bruno Haible  <bruno@clisp.org>
84369         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
84370         zero-length results and shrink excess allocated memory.
84371         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
84372         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
84373         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
84374         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
84375         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
84376         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
84377         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
84378         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
84379         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
84380         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
84381         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
84382         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
84384 2009-02-21  Bruno Haible  <bruno@clisp.org>
84386         * doc/gnulib.texi: Include safe-alloc.texi earlier.
84387         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
84388         spaces after a period. Put a space between a macro name and its
84389         argument list. Trivial rewordings.
84390         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
84391         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
84392         (main): Return 0 explicitly.
84394 2009-02-21  Bruno Haible  <bruno@clisp.org>
84396         Tests for module 'uninorm/filter'.
84397         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
84398         * modules/uninorm/filter-tests: New file.
84400         New module 'uninorm/filter'.
84401         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
84402         uninorm_filter_flush, uninorm_filter_free): New declarations.
84403         * lib/uninorm/uninorm-filter.c: New file.
84404         * modules/uninorm/filter: New file.
84406 2009-02-21  Bruno Haible  <bruno@clisp.org>
84408         Tests for module 'uninorm/nfkc'.
84409         * tests/uninorm/test-nfkc.c: New file.
84410         * tests/uninorm/test-u8-nfkc.c: New file.
84411         * tests/uninorm/test-u16-nfkc.c: New file.
84412         * tests/uninorm/test-u32-nfkc.c: New file.
84413         * tests/uninorm/test-u32-nfkc-big.sh: New file.
84414         * tests/uninorm/test-u32-nfkc-big.c: New file.
84415         * modules/uninorm/nfkc-tests: New file.
84417         New module 'uninorm/nfkc'.
84418         * lib/uninorm/nfkc.c: New file.
84419         * modules/uninorm/nfkc: New file.
84421         Tests for module 'uninorm/nfkd'.
84422         * tests/uninorm/test-nfkd.c: New file.
84423         * tests/uninorm/test-u8-nfkd.c: New file.
84424         * tests/uninorm/test-u16-nfkd.c: New file.
84425         * tests/uninorm/test-u32-nfkd.c: New file.
84426         * tests/uninorm/test-u32-nfkd-big.sh: New file.
84427         * tests/uninorm/test-u32-nfkd-big.c: New file.
84428         * modules/uninorm/nfkd-tests: New file.
84430         New module 'uninorm/nfkd'.
84431         * lib/uninorm/nfkd.c: New file.
84432         * modules/uninorm/nfkd: New file.
84434         Tests for module 'uninorm/nfc'.
84435         * tests/uninorm/test-nfc.c: New file.
84436         * tests/uninorm/test-u8-nfc.c: New file.
84437         * tests/uninorm/test-u16-nfc.c: New file.
84438         * tests/uninorm/test-u32-nfc.c: New file.
84439         * tests/uninorm/test-u32-nfc-big.sh: New file.
84440         * tests/uninorm/test-u32-nfc-big.c: New file.
84441         * modules/uninorm/nfc-tests: New file.
84443         New module 'uninorm/nfc'.
84444         * lib/uninorm/nfc.c: New file.
84445         * modules/uninorm/nfc: New file.
84447         Tests for module 'uninorm/nfd'.
84448         * tests/uninorm/test-nfd.c: New file.
84449         * tests/uninorm/test-u8-nfd.c: New file.
84450         * tests/uninorm/test-u16-nfd.c: New file.
84451         * tests/uninorm/test-u32-nfd.c: New file.
84452         * tests/uninorm/test-u32-nfd-big.sh: New file.
84453         * tests/uninorm/test-u32-nfd-big.c: New file.
84454         * tests/uninorm/test-u32-normalize-big.h: New file.
84455         * tests/uninorm/test-u32-normalize-big.c: New file.
84456         * tests/uninorm/NormalizationTest.txt: New file, created from
84457         Unicode 5.1.0 NormalizationTest.txt.
84458         * modules/uninorm/nfd-tests: New file.
84460         New module 'uninorm/nfd'.
84461         * lib/uninorm/nfd.c: New file.
84462         * modules/uninorm/nfd: New file.
84464         New module 'uninorm/u32-normalize'.
84465         * lib/uninorm/u32-normalize.c: New file.
84466         * modules/uninorm/u32-normalize: New file.
84468         New module 'uninorm/u16-normalize'.
84469         * lib/uninorm/u16-normalize.c: New file.
84470         * modules/uninorm/u16-normalize: New file.
84472         New module 'uninorm/u8-normalize'.
84473         * lib/uninorm/u8-normalize.c: New file.
84474         * lib/uninorm/normalize-internal.h: New file.
84475         * lib/uninorm/u-normalize-internal.h: New file.
84476         * modules/uninorm/u8-normalize: New file.
84478         New module 'uninorm/decompose-internal'.
84479         * lib/uninorm/decompose-internal.c: New file.
84480         * modules/uninorm/decompose-internal: New file.
84482         Tests for module 'uninorm/composition'.
84483         * tests/uninorm/test-composition.c: New file.
84484         * modules/uninorm/composition-tests: New file.
84486         New module 'uninorm/composition'.
84487         * lib/uninorm/composition.c: New file.
84488         * lib/uninorm/composition-table.gperf: New file, generated by
84489         gen-uni-tables.
84490         * modules/uninorm/composition: New file.
84492         Tests for module 'uninorm/compat-decomposition'.
84493         * tests/uninorm/test-compat-decomposition.c: New file.
84494         * modules/uninorm/compat-decomposition-tests: New file.
84496         New module 'uninorm/compat-decomposition'.
84497         * lib/uninorm/decompose-internal.h: New file.
84498         * lib/uninorm/compat-decomposition.c: New file.
84499         * modules/uninorm/compat-decomposition: New file.
84501         Tests for module 'uninorm/canonical-decomposition'.
84502         * tests/uninorm/test-canonical-decomposition.c: New file.
84503         * modules/uninorm/canonical-decomposition-tests: New file.
84505         New module 'uninorm/canonical-decomposition'.
84506         * lib/uninorm/canonical-decomposition.c: New file.
84507         * modules/uninorm/canonical-decomposition: New file.
84509         Tests for module 'uninorm/decomposition'.
84510         * tests/uninorm/test-decomposition.c: New file.
84511         * modules/uninorm/decomposition-tests: New file.
84513         New module 'uninorm/decomposition'.
84514         * lib/uninorm/decomposition.c: New file.
84515         * modules/uninorm/decomposition: New file.
84517         New module 'uninorm/decomposition-table'.
84518         * lib/uninorm/decomposition-table.h: New file.
84519         * lib/uninorm/decomposition-table.c: New file.
84520         * lib/uninorm/decomposition-table1.h: New file, generated by
84521         gen-uni-tables.
84522         * lib/uninorm/decomposition-table2.h: New file, generated by
84523         gen-uni-tables.
84524         * modules/uninorm/decomposition-table: New file.
84526         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
84527         (UC_DECOMP_*): New enumeration items.
84528         (get_decomposition): New function.
84529         (struct decomp_table): New type.
84530         (output_decomposition, output_decomposition_tables): New functions.
84531         (unicode_composition_exclusions): New variable.
84532         (fill_composition_exclusions, debug_output_composition_tables): New
84533         functions.
84534         (main): Accept one more argument. Invoke fill_composition_exclusions.
84535         Output decomposition and composition tables.
84537         New module 'uninorm/base'.
84538         * lib/uninorm.h: New file.
84539         * lib/unictype.h: Update comment.
84540         * modules/uninorm/base: New file.
84542 2009-02-21  David Lutterkort  <lutter@redhat.com>
84544         Tests for module 'safe-alloc'.
84545         * tests/test-safe-alloc.c: New file.
84546         * modules/safe-alloc-tests: New file.
84548         New module 'safe-alloc'.
84549         * lib/safe-alloc.h: New file.
84550         * lib/safe-alloc.c: New file.
84551         * m4/safe-alloc.m4: New file.
84552         * modules/safe-alloc: New file.
84553         * doc/safe-alloc.texi: New file.
84554         * doc/gnulib.texi: Include it.
84555         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
84556         safe-alloc.
84558 2009-02-18  Bruno Haible  <bruno@clisp.org>
84560         Fix link error on non-glibc systems.
84561         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
84562         variable.
84563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84565 2009-02-18  Jim Meyering  <meyering@redhat.com>
84567         fts: avoid used-uninitialized error due to recent change
84568         * lib/fts.c (fts_read): Guard uses of the new member,
84569         parent->fts_n_dirs_remaining, since it's not relevant for
84570         the parent of a directory specified on the command-line.
84572 2009-02-17  James Youngman  <jay@gnu.org>
84573             Bruno Haible  <bruno@clisp.org>
84575         * m4/include_next.m4: Reformulate comment.
84577 2009-02-16  Jim Meyering  <meyering@redhat.com>
84579         fts: add #if guards so that the fts_lgpl module still builds
84580         * lib/fts.c: Guard just-added hash-table-using parts with
84581         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
84582         Reported by Simon Josefsson.
84584 2009-02-15  Bruno Haible  <bruno@clisp.org>
84586         * modules/array-mergesort-tests: New file.
84587         * tests/test-array-mergesort.c: New file.
84589         New module 'array-mergesort'.
84590         * modules/array-mergesort: New file.
84591         * lib/array-mergesort.h: New file.
84593 2009-02-15  Bruno Haible  <bruno@clisp.org>
84595         Fix 2009-02-07 commit.
84596         * lib/gen-uni-tables.c (output_predicate, output_category,
84597         output_combclass, output_bidi_category, output_decimal_digit,
84598         output_digit, output_numeric, output_mirror, output_scripts,
84599         output_ident_category, output_simple_mapping): Fix format directives.
84600         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
84602 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
84604         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
84605         fixes are available from IBM.
84607 2009-02-13  Jim Meyering  <meyering@redhat.com>
84609         fts: arrange not to stat non-directories in more cases
84610         This makes GNU find (when it doesn't need to stat each file)
84611         *much* more efficient at traversing reiserfs file systems.
84612         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
84613         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
84614         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
84615         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
84616         (leaf_optimization_applies): New function.
84617         (LCO_hash, LCO_compare): New helper functions.
84618         (link_count_optimize_ok): New function.
84619         (fts_stat): Initialize new member (if dir).
84620         (fts_read): Decrement parent's fts_n_dirs_remaining count if
84621         we've just stat'ed a directory.  Skip the stat call when possible.
84622         ---
84623         Note this AFS-related exchange:
84624         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
84625         and note find's pioctl call in find/fstype.c.
84626         But that is necessary only if you want to enable the
84627         optimization for AFS, and for now, I don't.
84629         fts: move a function definition "up" (no semantic change)
84630         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
84631         "up" to precede upcoming use of a related function.
84633 2009-02-11  Jim Meyering  <meyering@redhat.com>
84635         fts: correct internal computation of nlinks (optimization-related)
84636         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
84637         whether the current entry is a directory, so don't test it.
84639 2009-02-10  Bruno Haible  <bruno@clisp.org>
84641         Tests for module 'uniwbrk/ulc-wordbreaks'.
84642         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
84643         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
84644         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
84646         Tests for module 'uniwbrk/u32-wordbreaks'.
84647         * modules/uniwbrk/u32-wordbreaks-tests: New file.
84648         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
84650         Tests for module 'uniwbrk/u16-wordbreaks'.
84651         * modules/uniwbrk/u16-wordbreaks-tests: New file.
84652         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
84654         Tests for module 'uniwbrk/u8-wordbreaks'.
84655         * modules/uniwbrk/u8-wordbreaks-tests: New file.
84656         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
84658 2009-02-10  Bruno Haible  <bruno@clisp.org>
84660         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
84661         property.
84662         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
84663         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
84664         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
84666 2009-02-10  Simon Josefsson  <simon@josefsson.org>
84668         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
84669         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
84671 2009-02-10  Bruno Haible  <bruno@clisp.org>
84673         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
84674         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
84675         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
84676         * lib/unilbrk/u8-possible-linebreaks.c: Update.
84677         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
84678         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
84680 2009-02-09  Simon Josefsson  <simon@josefsson.org>
84682         * lib/sockets.h (gl_fd_to_handle): New function.
84684         * tests/test-sockets.c: Call gl_fd_to_handle.
84686 2009-02-09  Bruno Haible  <bruno@clisp.org>
84688         * doc/havelib.texi: Document the conventions on bi-arch systems.
84690 2009-02-08  Bruno Haible  <bruno@clisp.org>
84692         Document the AC_LIB_LINKFLAGS macro.
84693         * doc/havelib.texi: New file, mostly written on 2005-05-24.
84694         * doc/gnulib.texi: Include it.
84696 2009-02-08  Bruno Haible  <bruno@clisp.org>
84698         Fix wrong order of sections, compared to TOC.
84699         * doc/gnulib.texi: Include relocatable-maint.texi after the
84700         "Regular expressions" node, not before.
84702 2009-02-08  Bruno Haible  <bruno@clisp.org>
84704         Tests for module 'unicase/totitle'.
84705         * modules/unicase/totitle-tests: New file.
84707         Tests for module 'unicase/tolower'.
84708         * modules/unicase/tolower-tests: New file.
84710         Tests for module 'unicase/toupper'.
84711         * modules/unicase/toupper-tests: New file.
84712         * tests/unicase/test-mapping-part1.h: New file.
84713         * tests/unicase/test-mapping-part2.h: New file.
84715         New module 'unicase/totitle'.
84716         * modules/unicase/totitle: New file.
84717         * lib/unicase/totitle.c: New file.
84719         New module 'unicase/tolower'.
84720         * modules/unicase/tolower: New file.
84721         * lib/unicase/tolower.c: New file.
84723         New module 'unicase/toupper'.
84724         * modules/unicase/toupper: New file.
84725         * lib/unicase/toupper.c: New file.
84726         * lib/unicase/simple-mapping.h: New file.
84728         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
84729         (mapping_table): New structure.
84730         (output_simple_mapping): New function.
84731         (main): Invoke output_simple_mapping_test and output_simple_mapping.
84732         * modules/gen-uni-tables (Description): Update.
84733         * lib/unicase/toupper.h: New file, automatically generated by
84734         gen-uni-tables.
84735         * lib/unicase/tolower.h: New file, automatically generated by
84736         gen-uni-tables.
84737         * lib/unicase/totitle.h: New file, automatically generated by
84738         gen-uni-tables.
84739         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
84740         gen-uni-tables.
84741         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
84742         gen-uni-tables.
84743         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
84744         gen-uni-tables.
84746         New module 'unicase/base'.
84747         * modules/unicase/base: New file.
84748         * lib/unicase.h: New file.
84750 2009-02-08  Bruno Haible  <bruno@clisp.org>
84752         New module 'uniwbrk/ulc-wordbreaks'.
84753         * modules/uniwbrk/ulc-wordbreaks: New file.
84754         * lib/uniwbrk/ulc-wordbreaks.c: New file.
84756         New module 'uniwbrk/u32-wordbreaks'.
84757         * modules/uniwbrk/u32-wordbreaks: New file.
84758         * lib/uniwbrk/u32-wordbreaks.c: New file.
84760         New module 'uniwbrk/u16-wordbreaks'.
84761         * modules/uniwbrk/u16-wordbreaks: New file.
84762         * lib/uniwbrk/u16-wordbreaks.c: New file.
84764         New module 'uniwbrk/u8-wordbreaks'.
84765         * modules/uniwbrk/u8-wordbreaks: New file.
84766         * lib/uniwbrk/u8-wordbreaks.c: New file.
84767         * lib/uniwbrk/u-wordbreaks.h: New file.
84769         New module 'uniwbrk/table'.
84770         * modules/uniwbrk/table: New file.
84771         * lib/uniwbrk/wbrktable.h: New file.
84772         * lib/uniwbrk/wbrktable.c: New file.
84774         New module 'uniwbrk/wordbreak-property'.
84775         * modules/uniwbrk/wordbreak-property: New file.
84776         * lib/uniwbrk/wordbreak-property.c: New file.
84778         * lib/gen-uni-tables.c (WBP_*): New enum items.
84779         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
84780         (unicode_org_wbp): New variable.
84781         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
84782         New functions.
84783         (wbp_table): New structure.
84784         (output_wbp, output_wbrk_tables): New functions.
84785         (main): Accept additional argument. Invoke fill_org_wbp,
84786         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
84787         output_wbrk_tables.
84788         * modules/gen-uni-tables (Description): Update.
84789         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
84790         gen-uni-tables.
84792         New module 'uniwbrk/base'.
84793         * modules/uniwbrk/base: New file.
84794         * lib/uniwbrk.h: New file.
84796 2009-02-08  Bruno Haible  <bruno@clisp.org>
84798         Update to Unicode 5.1.0.
84799         * lib/gen-uni-tables.c (is_property_alphabetic): Include
84800         U+2185..U+2188.
84801         (is_property_default_ignorable_code_point): Don't include characters
84802         of category Cc or Cs and not-a-characters.
84803         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
84804         U+0D79, U+109E, U+109F, U+A60C.
84805         * lib/unictype/bidi_of.h: Regenerated.
84806         * lib/unictype/blocks.h: Regenerated.
84807         * lib/unictype/categ_C.h: Regenerated.
84808         * lib/unictype/categ_Cf.h: Regenerated.
84809         * lib/unictype/categ_Cn.h: Regenerated.
84810         * lib/unictype/categ_L.h: Regenerated.
84811         * lib/unictype/categ_Ll.h: Regenerated.
84812         * lib/unictype/categ_Lm.h: Regenerated.
84813         * lib/unictype/categ_Lo.h: Regenerated.
84814         * lib/unictype/categ_Lu.h: Regenerated.
84815         * lib/unictype/categ_M.h: Regenerated.
84816         * lib/unictype/categ_Mc.h: Regenerated.
84817         * lib/unictype/categ_Me.h: Regenerated.
84818         * lib/unictype/categ_Mn.h: Regenerated.
84819         * lib/unictype/categ_N.h: Regenerated.
84820         * lib/unictype/categ_Nd.h: Regenerated.
84821         * lib/unictype/categ_Nl.h: Regenerated.
84822         * lib/unictype/categ_No.h: Regenerated.
84823         * lib/unictype/categ_P.h: Regenerated.
84824         * lib/unictype/categ_Pd.h: Regenerated.
84825         * lib/unictype/categ_Pe.h: Regenerated.
84826         * lib/unictype/categ_Pf.h: Regenerated.
84827         * lib/unictype/categ_Pi.h: Regenerated.
84828         * lib/unictype/categ_Po.h: Regenerated.
84829         * lib/unictype/categ_Ps.h: Regenerated.
84830         * lib/unictype/categ_S.h: Regenerated.
84831         * lib/unictype/categ_Sk.h: Regenerated.
84832         * lib/unictype/categ_Sm.h: Regenerated.
84833         * lib/unictype/categ_So.h: Regenerated.
84834         * lib/unictype/categ_of.h: Regenerated.
84835         * lib/unictype/combining.h: Regenerated.
84836         * lib/unictype/ctype_alnum.h: Regenerated.
84837         * lib/unictype/ctype_alpha.h: Regenerated.
84838         * lib/unictype/ctype_graph.h: Regenerated.
84839         * lib/unictype/ctype_lower.h: Regenerated.
84840         * lib/unictype/ctype_print.h: Regenerated.
84841         * lib/unictype/ctype_punct.h: Regenerated.
84842         * lib/unictype/ctype_upper.h: Regenerated.
84843         * lib/unictype/decdigit.h: Regenerated.
84844         * lib/unictype/digit.h: Regenerated.
84845         * lib/unictype/mirror.h: Regenerated.
84846         * lib/unictype/numeric.h: Regenerated.
84847         * lib/unictype/pr_alphabetic.h: Regenerated.
84848         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
84849         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
84850         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
84851         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
84852         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
84853         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
84854         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
84855         * lib/unictype/pr_combining.h: Regenerated.
84856         * lib/unictype/pr_dash.h: Regenerated.
84857         * lib/unictype/pr_decimal_digit.h: Regenerated.
84858         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
84859         * lib/unictype/pr_deprecated.h: Regenerated.
84860         * lib/unictype/pr_diacritic.h: Regenerated.
84861         * lib/unictype/pr_extender.h: Regenerated.
84862         * lib/unictype/pr_format_control.h: Regenerated.
84863         * lib/unictype/pr_grapheme_base.h: Regenerated.
84864         * lib/unictype/pr_grapheme_extend.h: Regenerated.
84865         * lib/unictype/pr_grapheme_link.h: Regenerated.
84866         * lib/unictype/pr_id_continue.h: Regenerated.
84867         * lib/unictype/pr_id_start.h: Regenerated.
84868         * lib/unictype/pr_ideographic.h: Regenerated.
84869         * lib/unictype/pr_ignorable_control.h: Regenerated.
84870         * lib/unictype/pr_lowercase.h: Regenerated.
84871         * lib/unictype/pr_math.h: Regenerated.
84872         * lib/unictype/pr_numeric.h: Regenerated.
84873         * lib/unictype/pr_other_alphabetic.h: Regenerated.
84874         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
84875         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
84876         * lib/unictype/pr_other_id_continue.h: Regenerated.
84877         * lib/unictype/pr_other_lowercase.h: Regenerated.
84878         * lib/unictype/pr_other_math.h: Regenerated.
84879         * lib/unictype/pr_punctuation.h: Regenerated.
84880         * lib/unictype/pr_sentence_terminal.h: Regenerated.
84881         * lib/unictype/pr_soft_dotted.h: Regenerated.
84882         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
84883         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
84884         * lib/unictype/pr_unified_ideograph.h: Regenerated.
84885         * lib/unictype/pr_uppercase.h: Regenerated.
84886         * lib/unictype/pr_xid_continue.h: Regenerated.
84887         * lib/unictype/pr_xid_start.h: Regenerated.
84888         * lib/unictype/pr_zero_width.h: Regenerated.
84889         * lib/unictype/scripts.h: Regenerated.
84890         * lib/unictype/scripts_byname.gperf: Regenerated.
84891         * lib/unictype/sy_java_ident.h: Regenerated.
84892         * lib/unilbrk/lbrkprop1.h: Regenerated.
84893         * lib/unilbrk/lbrkprop2.h: Regenerated.
84894         * tests/unictype/test-categ_C.c: Regenerated.
84895         * tests/unictype/test-categ_Cf.c: Regenerated.
84896         * tests/unictype/test-categ_Cn.c: Regenerated.
84897         * tests/unictype/test-categ_L.c: Regenerated.
84898         * tests/unictype/test-categ_Ll.c: Regenerated.
84899         * tests/unictype/test-categ_Lm.c: Regenerated.
84900         * tests/unictype/test-categ_Lo.c: Regenerated.
84901         * tests/unictype/test-categ_Lu.c: Regenerated.
84902         * tests/unictype/test-categ_M.c: Regenerated.
84903         * tests/unictype/test-categ_Mc.c: Regenerated.
84904         * tests/unictype/test-categ_Me.c: Regenerated.
84905         * tests/unictype/test-categ_Mn.c: Regenerated.
84906         * tests/unictype/test-categ_N.c: Regenerated.
84907         * tests/unictype/test-categ_Nd.c: Regenerated.
84908         * tests/unictype/test-categ_Nl.c: Regenerated.
84909         * tests/unictype/test-categ_No.c: Regenerated.
84910         * tests/unictype/test-categ_P.c: Regenerated.
84911         * tests/unictype/test-categ_Pd.c: Regenerated.
84912         * tests/unictype/test-categ_Pe.c: Regenerated.
84913         * tests/unictype/test-categ_Pf.c: Regenerated.
84914         * tests/unictype/test-categ_Pi.c: Regenerated.
84915         * tests/unictype/test-categ_Po.c: Regenerated.
84916         * tests/unictype/test-categ_Ps.c: Regenerated.
84917         * tests/unictype/test-categ_S.c: Regenerated.
84918         * tests/unictype/test-categ_Sk.c: Regenerated.
84919         * tests/unictype/test-categ_Sm.c: Regenerated.
84920         * tests/unictype/test-categ_So.c: Regenerated.
84921         * tests/unictype/test-ctype_alnum.c: Regenerated.
84922         * tests/unictype/test-ctype_alpha.c: Regenerated.
84923         * tests/unictype/test-ctype_graph.c: Regenerated.
84924         * tests/unictype/test-ctype_lower.c: Regenerated.
84925         * tests/unictype/test-ctype_print.c: Regenerated.
84926         * tests/unictype/test-ctype_punct.c: Regenerated.
84927         * tests/unictype/test-ctype_upper.c: Regenerated.
84928         * tests/unictype/test-decdigit.h: Regenerated.
84929         * tests/unictype/test-digit.h: Regenerated.
84930         * tests/unictype/test-numeric.h: Regenerated.
84931         * tests/unictype/test-pr_alphabetic.c: Regenerated.
84932         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
84933         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
84934         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
84935         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
84936         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
84937         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
84938         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
84939         * tests/unictype/test-pr_combining.c: Regenerated.
84940         * tests/unictype/test-pr_dash.c: Regenerated.
84941         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
84942         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
84943         * tests/unictype/test-pr_deprecated.c: Regenerated.
84944         * tests/unictype/test-pr_diacritic.c: Regenerated.
84945         * tests/unictype/test-pr_extender.c: Regenerated.
84946         * tests/unictype/test-pr_format_control.c: Regenerated.
84947         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
84948         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
84949         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
84950         * tests/unictype/test-pr_id_continue.c: Regenerated.
84951         * tests/unictype/test-pr_id_start.c: Regenerated.
84952         * tests/unictype/test-pr_ideographic.c: Regenerated.
84953         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
84954         * tests/unictype/test-pr_lowercase.c: Regenerated.
84955         * tests/unictype/test-pr_math.c: Regenerated.
84956         * tests/unictype/test-pr_numeric.c: Regenerated.
84957         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
84958         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
84959         Regenerated.
84960         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
84961         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
84962         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
84963         * tests/unictype/test-pr_other_math.c: Regenerated.
84964         * tests/unictype/test-pr_punctuation.c: Regenerated.
84965         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
84966         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
84967         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
84968         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
84969         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
84970         * tests/unictype/test-pr_uppercase.c: Regenerated.
84971         * tests/unictype/test-pr_xid_continue.c: Regenerated.
84972         * tests/unictype/test-pr_xid_start.c: Regenerated.
84973         * tests/unictype/test-pr_zero_width.c: Regenerated.
84975         Update to Unicode 5.1.0.
84976         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
84977         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
84978         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
84979         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
84980         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
84981         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
84982         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
84983         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
84984         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
84985         (nonspacing_table_ind): Update.
84986         * tests/uniwidth/test-uc_width2.sh: Update expected result.
84988         Update to Unicode 5.1.0.
84989         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
84990         code transform.
84991         * lib/uniname/uniname.c (unicode_character_name,
84992         unicode_name_character): Add the range 0x1Fxxx to the code transform.
84993         * lib/uniname/uninames.h: Regenerated.
84994         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
84996 2009-02-07  Bruno Haible  <bruno@clisp.org>
84998         Merge gen-ctype and gen-lbrk into a single program.
84999         * lib/gen-uni-tables.c: New file, incorporating
85000         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
85001         Add directory prefixes to the names of the generated files.
85002         * lib/unictype/gen-ctype.c: Remove file.
85003         * lib/unilbrk/gen-lbrk.c: Remove file.
85004         * modules/gen-uni-tables: New file.
85005         * modules/unictype/gen-ctype: Remove file.
85006         * modules/unilbrk/gen-lbrk: Remove file.
85008 2009-02-07  Bruno Haible  <bruno@clisp.org>
85010         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
85012         New module 'unistr/u32-strcoll'.
85013         * modules/unistr/u32-strcoll: New file.
85014         * lib/unistr/u32-strcoll.c: New file.
85016         New module 'unistr/u16-strcoll'.
85017         * modules/unistr/u16-strcoll: New file.
85018         * lib/unistr/u16-strcoll.c: New file.
85020         New module 'unistr/u8-strcoll'.
85021         * modules/unistr/u8-strcoll: New file.
85022         * lib/unistr/u8-strcoll.c: New file.
85023         * lib/unistr/u-strcoll.h: New file.
85025 2009-02-07  Bruno Haible  <bruno@clisp.org>
85027         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
85028         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85029         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85030         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
85031         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
85032         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
85034 2009-02-07  Bruno Haible  <bruno@clisp.org>
85036         Make 64-bit clean.
85037         * lib/unictype/gen-ctype.c (output_predicate, output_category,
85038         output_combclass, output_bidi_category, output_decimal_digit,
85039         output_digit, output_numeric, output_mirror, output_scripts,
85040         output_ident_category): Use proper width specifier in format strings.
85042 2009-02-07  Bruno Haible  <bruno@clisp.org>
85044         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
85045         failure behaviour.
85047 2009-02-07  Jim Meyering  <meyering@redhat.com>
85049         regex: avoid compilation failure with upcoming gcc-4.4
85050         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
85051         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
85052         "... error: integer overflow in preprocessor expression".
85054 2009-02-05  Ben Pfaff  <blp@gnu.org>
85056         Fix link errors on Windows when close module is used.
85057         * modules/close: Add $(LIB_CLOSE) to Link section.
85058         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
85059         $(LIB_CLOSE) on Windows.
85061 2009-02-05  Jim Meyering  <meyering@redhat.com>
85063         still avoid unused-parameter warnings, but do it cleanly
85064         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
85065         (get_fs_usage): Cast to void instead.
85066         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
85067         (dev_from_mount_options, read_file_system_list): Cast to void.
85068         Prompted by Bruno Haible.
85070 2009-02-04  Jim Meyering  <meyering@redhat.com>
85072         fsusage.c: correct copyright year
85073         * lib/fsusage.c: Reflect year in which the change is pushed into
85075         avoid misc. warnings
85076         * lib/fsusage.c (UNUSED_PARAM): Define.
85077         (get_fs_usage): Mark parameter "disk" as unused.
85078         * lib/getugroups.c (getgrent): Use "void" in prototype.
85079         * lib/mountlist.c: Mark unused parameters.
85080         (read_file_system_list): Declare a local with "const".
85081         * lib/nanosleep.c (getnow): Declare static.
85082         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
85084         dirfd: set errno upon failure
85085         * lib/dirfd.c: Include <errno.h>.
85086         Set errno to ENOTSUP when returning -1.
85087         * modules/dirfd (Depends-on): Add errno.
85088         Suggested by John Kodis <kodis@comcast.net>.
85090 2009-02-01  Bruno Haible  <bruno@clisp.org>
85092         Don't assume sizeof (long) >= sizeof (void *).
85093         * lib/memcmp.c: Include stdint.h.
85094         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
85095         srcp2 to 'const byte *'.
85096         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
85097         types to uintptr_t.
85098         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
85099         * modules/memcmp (Depends-on): Add stdint.
85100         Reported by Ozkan Sezer <sezeroz@gmail.com>.
85102 2009-01-30  Eric Blake  <ebb9@byu.net>
85104         fix more require-before-expand issues
85105         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
85106         expand, AC_PROG_AWK.
85107         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
85109 2009-01-28  Eric Blake  <ebb9@byu.net>
85111         version-etc: use consistent URL formatting
85112         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
85113         Improve formatting.  Use fputs for string without %.
85115 2009-01-28  Jim Meyering  <meyering@redhat.com>
85117         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
85118         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
85119         "underquoted definition of NAME" from autoconf-2.59.
85121 2009-01-28  Bruno Haible  <bruno@clisp.org>
85123         * doc/gnulib.texi: Add "Obsolete modules" to index.
85125 2009-01-28  Jim Meyering  <meyering@redhat.com>
85127         useless-if-before-free: recognize more variants
85128         * build-aux/useless-if-before-free: Also recognize e.g.,
85129         if (NULL != p) free (p);
85131 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
85133         test-getaddrinfo: skip (don't fail) this test when there's no network
85134         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
85135         on the presumption that it means you lack network access.
85137 2009-01-26  Jim Meyering  <meyering@redhat.com>
85139         fflush: avoid warnings on modern systems
85140         * lib/fflush.c (rpl_fflush): Move declarations of locals,
85141         pos and result, into scopes where they're used.
85143 2009-01-26  Eric Blake  <ebb9@byu.net>
85145         Silence warning reintroduced by recent extensions patch.
85146         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
85147         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
85148         autoconf.
85150         Backport improved autoconf semantics of AC_DEFUN_ONCE.
85151         * m4/00gnulib.m4: New file.
85152         * gnulib-tool (func_get_filelist): Always use it.
85153         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
85154         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
85156 2009-01-25  Bruno Haible  <bruno@clisp.org>
85158         Make test-quotearg work on MacOS X and AIX.
85159         * tests/test-quotearg.sh: New file.
85160         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
85161         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
85162         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
85163         include <libintl.h>.
85164         (fake_locale): Remove variable.
85165         (gettext, dgettext, dcgettext): Remove functions.
85166         (main): Instead of setting a fake locale, set a real locale. Call
85167         textdomain and bindtextdomain.
85168         * modules/quotearg-tests (Files): Add the new files.
85169         (Depends-on): Add gettext, setenv, unsetenv.
85170         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85171         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
85172         Augment TESTS_ENVIRONMENT.
85174 2009-01-25  Bruno Haible  <bruno@clisp.org>
85176         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
85177         fr_FR.ISO8859-1 locale on MacOS X.
85178         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
85179         ja_JP.eucJP locale on MacOS X.
85180         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
85181         zh_CN.GB18030 locale on MacOS X.
85183 2009-01-25  Bruno Haible  <bruno@clisp.org>
85185         Avoid link errors on MacOS X 10.3.
85186         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
85187         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
85189 2009-01-25  Bruno Haible  <bruno@clisp.org>
85191         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85192         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
85193         * modules/pipe (Files): Remove m4/posix_spawn.m4.
85194         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85195         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
85196         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85197         posix_spawnattr_init, posix_spawnattr_setsigmask,
85198         posix_spawnattr_setflags, posix_spawnattr_destroy.
85200         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85201         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
85202         * modules/execute (Files): Remove m4/posix_spawn.m4.
85203         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85204         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85205         posix_spawnattr_init, posix_spawnattr_setsigmask,
85206         posix_spawnattr_setflags, posix_spawnattr_destroy.
85208 2009-01-25  Bruno Haible  <bruno@clisp.org>
85210         * lib/glthread/threadlib.c: Include <stdlib.h>.
85212 2009-01-25  Bruno Haible  <bruno@clisp.org>
85214         * lib/glthread/threadlib.c (dummy): New declaration.
85216 2009-01-25  Bruno Haible  <bruno@clisp.org>
85218         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
85219         multibyte characters also for the GB18030 encoding. Don't crash when
85220         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
85222 2009-01-25  Bruno Haible  <bruno@clisp.org>
85224         Avoid redefining 'struct random_data' on OSF/1 5.1.
85225         * lib/stdlib.in.h: Include <random.h> if it exists.
85226         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
85227         HAVE_RANDOM_H. Include <random.h> when testing whether
85228         'struct random_data' exists.
85229         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
85231 2009-01-25  Bruno Haible  <bruno@clisp.org>
85233         Don't install charset.alias on MacOS X >= 10.3.
85234         * lib/localcharset.c (DARWIN7): New macro.
85235         (get_charset_aliases): Hardcode the result for Darwin7.
85236         * modules/localcharset (install-exec-local): Don't install
85237         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
85239 2009-01-25  Bruno Haible  <bruno@clisp.org>
85241         Don't install charset.alias on mingw and Cygwin.
85242         * modules/localcharset (install-exec-local): Don't install
85243         charset.alias on mingw and Cygwin, if the file does not yet exist.
85244         The result for these platforms is hardcoded in localcharset.c.
85246 2009-01-25  Bruno Haible  <bruno@clisp.org>
85248         Make it possible again to use AC_GNU_SOURCE together with gnulib.
85249         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
85250         before requiring AC_USE_SYSTEM_EXTENSIONS.
85252 2009-01-25  Jim Meyering  <meyering@redhat.com>
85254         c-strtod: avoid warnings
85255         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
85256         "assignment discards qualifiers from pointer target type" warnings.
85258 2009-01-24  Bruno Haible  <bruno@clisp.org>
85260         Add support for non-UTF-8 locales on MacOS X.
85261         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
85262         canonical encodings. For Darwin 7 and newer, don't map traditional
85263         encodings to UTF-8.
85264         Reported by Vincent Lefevre <vincent@vinc17.org>
85265         at <http://savannah.gnu.org/bugs/?25235>.
85267 2009-01-24  Bruno Haible  <bruno@clisp.org>
85269         * doc/gnulib.texi (Obsolete modules): New section.
85270         Reported by Mike Frysinger <vapier@gentoo.org>.
85272 2009-01-24  Bruno Haible  <bruno@clisp.org>
85274         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
85275         (%.dvi): New rule.
85277 2009-01-24  Bruno Haible  <bruno@clisp.org>
85279         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
85280         Reported by Eric Blake.
85282 2009-01-24  Bruno Haible  <bruno@clisp.org>
85284         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
85285         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
85286         Reported by Gary V. Vaughan <gary@gnu.org>.
85288 2009-01-24  Bruno Haible  <bruno@clisp.org>
85290         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
85292 2009-01-23  Bruno Haible  <bruno@clisp.org>
85294         Make c-strtod, c-strtold usable in libraries.
85295         * lib/c-strtod.c: Include string.h instead of xalloc.h.
85296         (C_STRTOD): Call strdup instead of xstrdup.
85297         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
85298         * modules/c-strtold (Depends-on): Likewise.
85299         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
85300         * NEWS: Mention the change.
85301         Reported by Michael Gold <mgold@ncf.ca>.
85303 2009-01-23  Jim Meyering  <meyering@redhat.com>
85305         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
85306         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
85307         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
85309 2009-01-23  Simon Josefsson  <simon@josefsson.org>
85311         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
85312         GNU CoreUtils.
85313         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
85314         * modules/version-etc (Description): Update.
85316 2009-01-22  Bruno Haible  <bruno@clisp.org>
85318         Cache the C locale object.
85319         * lib/c-strtod.c (c_locale_cache): New variable.
85320         (c_locale): New function.
85321         (C_STRTOD): Use it, and don't call freelocale.
85322         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
85323         Suggested by Paolo Bonzini.
85325 2009-01-21  Bruno Haible  <bruno@clisp.org>
85327         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
85328         conditions other than overflow.
85330 2009-01-21  Bruno Haible  <bruno@clisp.org>
85332         * lib/c-strtod.c: Include errno.h.
85333         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
85334         value from STRTOD_L and STRTOD.
85336 2009-01-21  Bruno Haible  <bruno@clisp.org>
85337         and Jim Meyering  <meyering@redhat.com>
85339         nanosleep: skip configure test (fail it) for apple universal builds
85340         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
85341         universal builds, assume that nanosleep does not work.
85342         * modules/nanosleep (Depends-on): Add multiarch.
85344         mktime: skip configure test (fail it) for apple universal builds
85345         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
85346         universal builds, assume that mktime does not work.
85347         * modules/mktime (Depends-on): Add multiarch.
85349 2009-01-21  Eric Blake  <ebb9@byu.net>
85351         multiarch: avoid expand-before-require warning
85352         * modules/multiarch (configure.ac): Require, rather than expand,
85353         gl_MULTIARCH.
85354         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
85355         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
85356         enforce that all clients require it.  Partial reversion of
85357         2008-12-29 patch.
85359         error: avoid expand-before-require warning
85360         * modules/errno (configure.ac): Require, rather than expand,
85361         gl_HEADER_ERRNO_H.
85362         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
85363         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
85364         enforce that all clients require it.
85366         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
85367         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
85368         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
85369         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
85371 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
85373         Revert:
85374         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85376         regex: do not depend on obsolete modules.
85377         * modules/regex: Remove memcmp and memmove.
85379 2009-01-20  Bruno Haible  <bruno@clisp.org>
85381         Make the 'link' module link on Windows NT 4.
85382         * lib/link.c (_WIN32_WINNT): Don't define.
85383         (CreateHardLinkFuncType): New type.
85384         (CreateHardLinkFunc, initialized): New variables.
85385         (initialize): New function.
85386         (link): Invoke CreateHardLink indirectly through the function pointer.
85388 2009-01-20  Bruno Haible  <bruno@clisp.org>
85390         Fix compilation failure on mingw.
85391         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
85393 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
85395         * doc/c-strtod.texi: Mention a couple of restrictions.
85397 2009-01-20  Jim Meyering  <meyering@redhat.com>
85399         gettimeofday: move more declarations out of functions
85400         * lib/gettimeofday.c: Move extern declarations of tzset and
85401         gmtime out of containing functions.  Prompted by Bruno Haible.
85403 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85405         regex: do not depend on obsolete modules.
85406         * modules/regex: Remove memcmp and memmove.
85408 2009-01-19  Bruno Haible  <bruno@clisp.org>
85410         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85411         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
85412         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85413         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
85414         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
85416 2009-01-19  Bruno Haible  <bruno@clisp.org>
85418         * tests/test-link.c: Include <errno.h>.
85419         (main): Exit with code 77 when a hard link cannot be created due to
85420         the file system.
85421         * tests/test-link.sh: Skip test when a hard link cannot be created due
85422         to the file system.
85423         Suggested by Eric Blake.
85425 2009-01-19  Martin Lambers  <marlam@marlam.de>
85427         * modules/link-tests: New file.
85428         * tests/test-link.sh: New file.
85429         * tests/test-link.c: New file.
85431 2009-01-19  Eric Blake  <ebb9@byu.net>
85433         doc: mention another function added in cygwin 1.7.0
85434         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
85435         Another new function in cygwin 1.7.
85437 2009-01-19  Bruno Haible  <bruno@clisp.org>
85439         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85440         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
85441         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
85442         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85443         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
85444         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
85445         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
85446         * m4/md4.m4 (gl_MD4): Likewise.
85447         * m4/md5.m4 (gl_MD5): Likewise.
85448         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
85449         * m4/sha1.m4 (gl_SHA1): Likewise.
85450         * m4/sha256.m4 (gl_SHA256): Likewise.
85451         * m4/sha512.m4 (gl_SHA512): Likewise.
85453 2009-01-19  Bruno Haible  <bruno@clisp.org>
85455         * modules/uniname/uniname-tests (Depends-on): Add progname.
85456         * tests/uniname/test-uninames.c: Include progname.h.
85457         (main): Call set_program_name.
85459         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
85460         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
85461         (main): Call set_program_name.
85463         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
85464         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
85465         (main): Call set_program_name.
85467         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
85468         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
85469         (main): Call set_program_name.
85471         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
85472         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
85473         (main): Call set_program_name.
85475         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
85476         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
85477         (main): Call set_program_name.
85479         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
85480         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
85481         (main): Call set_program_name.
85483         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
85484         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
85485         (main): Call set_program_name.
85487         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
85488         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
85489         (main): Call set_program_name.
85491 2009-01-19  Eric Blake  <ebb9@byu.net>
85493         test-unistd: test previous patch
85494         * tests/test-unistd.c: Test *_FILENO macros.
85496         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
85497         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85498         Guarantee a definition.
85499         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
85500         * modules/unistd-safer (Depends-on): Add dependency on unistd.
85501         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
85502         * lib/dup-safer.c (STDERR_FILENO): Likewise.
85503         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85504         Likewise.
85505         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
85506         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
85507         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85508         Likewise.
85509         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
85510         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
85511         (STDERR_FILENO): Likewise.
85512         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
85513         (STDERR_FILENO): Likewise.
85514         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
85515         (STDERR_FILENO): Likewise.
85516         Reported by Elbert Pol.
85518 2009-01-19  Eric Blake  <ebb9@byu.net>
85520         doc: mention more functions added in cygwin 1.7.0
85521         * doc/posix-functions/abort.texi (abort): Update wording related
85522         to cygwin.
85523         * doc/posix-functions/daylight.texi (daylight): Likewise.
85524         * doc/posix-functions/optarg.texi (optarg): Likewise.
85525         * doc/posix-functions/optarg.texi (opterr): Likewise.
85526         * doc/posix-functions/optarg.texi (optind): Likewise.
85527         * doc/posix-functions/optarg.texi (optopt): Likewise.
85528         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
85529         worked in 1.5.x, and was withdrawn in 1.7.
85530         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
85531         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
85532         cygwin versions.
85533         * doc/posix-functions/perror.texi (perror): Likewise.
85534         * doc/posix-functions/printf.texi (printf): Likewise.
85535         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
85536         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
85537         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
85538         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
85539         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
85540         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
85541         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
85542         Likewise.
85543         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
85544         Likewise.
85545         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
85546         this function.
85547         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
85548         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
85549         Likewise.
85550         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
85551         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
85552         * doc/posix-functions/confstr.texi (confstr): Likewise.
85553         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
85554         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
85555         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
85556         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
85557         * doc/posix-functions/fputws.texi (fputws): Likewise.
85558         * doc/posix-functions/fwide.texi (fwide): Likewise.
85559         * doc/posix-functions/getwc.texi (getwc): Likewise.
85560         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
85561         * doc/posix-functions/putwc.texi (putwc): Likewise.
85562         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
85563         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
85564         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
85565         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
85566         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
85567         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
85568         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
85569         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
85570         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
85571         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
85572         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
85574 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
85576         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
85577         * lib/ioctl.c: Include <sys/ioctl.h>.
85579 2009-01-19  Simon Josefsson  <simon@josefsson.org>
85581         * modules/getdate-tests (Depends-on): Add progname.
85582         * tests/test-getdate.c: Use progname module, to avoid link errors
85583         on non-glibc systems.
85585 2009-01-18  Simon Josefsson  <simon@josefsson.org>
85587         * modules/filenamecat-tests (Depends-on): Add progname.
85588         * modules/fstrcmp-tests (Depends-on): Likewise.
85590         * tests/test-filenamecat.c: Use progname module, to avoid link
85591         errors on non-glibc systems.
85592         * tests/test-fstrcmp.c: Likewise.
85594 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
85596         gettimeofday: avoid warning: nested extern declaration of 'localtime'
85597         * lib/gettimeofday.c: Move extern declaration out of function.
85599 2009-01-18  Bruno Haible  <bruno@clisp.org>
85601         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
85602         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
85603         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
85605 2009-01-18  Bruno Haible  <bruno@clisp.org>
85607         * lib/strftime.c (MEMPCPY): Remove unused macro.
85608         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
85610 2009-01-18  Martin Lambers  <marlam@marlam.de>
85612         New module 'link'.
85613         * lib/unistd.in.h (link): New declaration.
85614         * lib/link.c: New file.
85615         * m4/link.m4: New file.
85616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
85617         HAVE_LINK.
85618         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
85619         * modules/link: New file.
85620         * doc/posix-functions/link.texi: Mention the new module.
85622 2009-01-18  Bruno Haible  <bruno@clisp.org>
85624         * tests/test-avltree_list.c (main): Call set_program_name.
85625         * tests/test-avltree_oset.c (main): Likewise.
85626         * tests/test-obstack-printf.c: Include progname.h.
85627         (main): Call set_program_name.
85628         * tests/test-quotearg.c: Include progname.h.
85629         (main): Call set_program_name.
85630         * tests/test-xmemdup0.c: Include progname.h.
85631         (main): Call set_program_name.
85633 2009-01-18  Bruno Haible  <bruno@clisp.org>
85635         New module 'alphasort'.
85636         * lib/dirent.in.h (alphasort): New declaration.
85637         * lib/alphasort.c: New file, from glibc with modifications.
85638         * m4/alphasort.m4: New file.
85639         * modules/alphasort: New file.
85640         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
85641         HAVE_ALPHASORT.
85642         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
85643         HAVE_ALPHASORT.
85644         * doc/posix-functions/alphasort.texi: Mention the new module and the
85645         portability problems.
85647 2009-01-18  Bruno Haible  <bruno@clisp.org>
85649         New module 'scandir'.
85650         * lib/dirent.in.h (scandir): New declaration.
85651         * lib/scandir.c: New file, from glibc with modifications.
85652         * m4/scandir.m4: New file.
85653         * modules/scandir: New file.
85654         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
85655         HAVE_SCANDIR.
85656         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
85657         HAVE_SCANDIR.
85658         * doc/posix-functions/scandir.texi: Mention the new module and the
85659         portability problems.
85661 2009-01-17  Bruno Haible  <bruno@clisp.org>
85663         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
85664         Update documentation.
85665         (func_remove_suffix): Escape all dots in the suffix. Update
85666         documentation.
85667         (func_filter_filelist): Update documentation.
85668         Reported by Ralf Wildenhues.
85670 2009-01-17  Bruno Haible  <bruno@clisp.org>
85672         * modules/dprintf-posix-tests: New file.
85673         * tests/test-dprintf-posix.sh: New file.
85674         * tests/test-dprintf-posix.c: New file.
85676         New modules 'dprintf', 'dprintf-posix'.
85677         * lib/stdio.in.h (dprintf): New declaration.
85678         * lib/dprintf.c: New file.
85679         * m4/dprintf.m4: New file.
85680         * m4/dprintf-posix.m4: New file.
85681         * modules/dprintf: New file.
85682         * modules/dprintf-posix: New file.
85683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
85684         HAVE_DPRINTF, REPLACE_DPRINTF.
85685         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
85686         HAVE_DPRINTF, REPLACE_DPRINTF.
85687         * doc/posix-functions/dprintf.texi: Mention the new modules.
85689 2009-01-17  Bruno Haible  <bruno@clisp.org>
85691         * modules/vdprintf-posix-tests: New file.
85692         * tests/test-vdprintf-posix.sh: New file.
85693         * tests/test-vdprintf-posix.c: New file.
85695         New modules 'vdprintf', 'vdprintf-posix'.
85696         * lib/stdio.in.h (vdprintf): New declaration.
85697         * lib/vdprintf.c: New file.
85698         * m4/vdprintf.m4: New file.
85699         * m4/vdprintf-posix.m4: New file.
85700         * modules/vdprintf: New file.
85701         * modules/vdprintf-posix: New file.
85702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
85703         HAVE_VDPRINTF, REPLACE_VDPRINTF.
85704         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
85705         HAVE_VDPRINTF, REPLACE_VDPRINTF.
85706         * doc/posix-functions/vdprintf.texi: Mention the new modules.
85708 2009-01-17  Bruno Haible  <bruno@clisp.org>
85710         Fix replacement of fopen on mingw.
85711         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
85712         mingw.
85714 2009-01-17  Bruno Haible  <bruno@clisp.org>
85716         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
85717         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
85719 2009-01-17  Bruno Haible  <bruno@clisp.org>
85721         Avoid test-fflush2.sh failure on mingw.
85722         * tests/test-fflush2.c: Include binary-io.h.
85723         (main): Put standard input into binary mode.
85724         * modules/fflush-tests (Depends-on): Add binary-io.
85726 2009-01-17  Bruno Haible  <bruno@clisp.org>
85728         * lib/wchar.in.h: In another particular situation, include only the
85729         system's <wchar.h> file.
85730         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
85731         Reported by Albert Chin-A-Young <china@thewrittenword.com>
85732         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
85734 2009-01-17  Bruno Haible  <bruno@clisp.org>
85736         Support for stripping executables in --enable-relocatable.
85737         * build-aux/install-reloc: Expect one more argument, or an environment
85738         variable RELOC_STRIP_PROG. If set, strip the destination program and
85739         its wrapper.
85740         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
85741         RELOC_STRIP_PROG.
85742         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
85743         to set RELOCATABLE_STRIP.
85744         * NEWS: Mention the new Makefile requirement.
85746 2009-01-17  Bruno Haible  <bruno@clisp.org>
85748         * build-aux/install-reloc: Remove debugging information left over by
85749         C compiler on MacOS X.
85751 2009-01-17  Bruno Haible  <bruno@clisp.org>
85753         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
85754         * lib/progreloc.c (find_executable): Fix type of pointer passed to
85755         _NSGetExecutablePath.
85757 2009-01-16  Jim Meyering  <meyering@redhat.com>
85759         strerror: avoid warnings about discarding "const"
85760         * lib/strerror.c (rpl_strerror): Instead of returning a const
85761         string from each and every "case", use a variable, and add a single
85762         cast after the switch.
85764 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
85766         * lib/arpa_inet.in.h: Add extern "C" block for C++.
85768 2009-01-16  Bruno Haible  <bruno@clisp.org>
85770         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
85771         array initializer syntax that also works in C++ mode.
85772         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85774 2009-01-16  Jim Meyering  <meyering@redhat.com>
85776         poll: suppress a warning
85777         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
85778         to ignore "...unsigned expression < 0 is always false" warnings.
85780 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
85782         poll: remove declarations of unused variables
85783         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
85784         sockbuf and optlen.
85786 2009-01-15  Bruno Haible  <bruno@clisp.org>
85788         Make fflush-after-ungetc POSIX compliant on BSD systems.
85789         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
85790         (clear_ungetc_buffer): Implement also for other systems.
85791         (rpl_fflush): On glibc systems, invoke
85792         clear_ungetc_buffer_preserving_position. Otherwise, invoke
85793         clear_ungetc_buffer after fetching the stream's position, not before.
85795 2009-01-15  Bruno Haible  <bruno@clisp.org>
85797         Make fflush-after-ungetc POSIX compliant on glibc systems.
85798         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
85799         after ungetc.
85800         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
85801         (rpl_fflush): On glibc systems, simply call the system's fflush
85802         function after clearing the ungetc buffer.
85803         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
85804         Instead, lseek only to the end of file, then use the system's fseeko
85805         for the rest. On glibc systems, reset the EOF indicator bit.
85807 2009-01-15  Jim Meyering  <meyering@redhat.com>
85809         openmp.m4: revert quote-adding change, for portability to older autoconf
85810         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
85811         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
85812         Simon Josefsson noticed the problem when using autoconf-2.61.
85814 2009-01-15  Bruno Haible  <bruno@clisp.org>
85816         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
85817         * tests/test-fflush2.c (ASSERT): Always fail.
85818         (main): Add two tests for fflush() after ungetc(), taking into account
85819         the Austin Group's clarification.
85820         Suggested by Eric Blake.
85822 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
85824         mktime.m4: remove K&R-style function prototypes
85825         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
85826         for the Sun C++ compiler.
85828 2009-01-14  Bruno Haible  <bruno@clisp.org>
85830         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
85831         while including <wchar.h>.
85832         * lib/wchar.in.h: In two particular situations on HP-UX, include only
85833         the system's <wchar.h> file.
85834         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85836 2009-01-14  Bruno Haible  <bruno@clisp.org>
85838         * m4/csharp.m4: Don't mention gettext on the serial number line.
85839         * m4/csharpexec.m4: Likewise.
85840         * m4/eaccess.m4: Likewise.
85841         * m4/javaexec.m4: Likewise.
85842         * m4/sig_atomic_t.m4: Likewise.
85843         * m4/tmpdir.m4: Likewise.
85844         * m4/intldir.m4: Bump gettext version.
85845         * m4/lib-ld.m4: Likewise.
85847 2009-01-14  Bruno Haible  <bruno@clisp.org>
85849         * lib/progname.c (set_program_name): Add more comments.
85850         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
85852 2009-01-14  Simon Josefsson  <simon@josefsson.org>
85854         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
85855         were sys/stat.h does not define it.
85857 2009-01-14  Jim Meyering  <meyering@redhat.com>
85859         many *.m4 files: improve m4 quoting
85860         99% of this change was performed by running the following commands:
85861         git ls-files | grep '\.m4$' | xargs perl -pi \
85862           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
85863           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
85864           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
85865           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
85866         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
85867         The remainder were to add Copyright dates, increment serial numbers,
85868         undo some changes in comments, exclude m4/intl.m4, and add quotes
85869         around the "1" in ",1" where the unusual spacing prohibited the
85870         above regexps from doing the job.  For more details, see
85871         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
85872         * m4/acl.m4: Modified.
85873         * m4/afs.m4: Likewise.
85874         * m4/alloca.m4: Likewise.
85875         * m4/argp.m4: Likewise.
85876         * m4/argz.m4: Likewise.
85877         * m4/atexit.m4: Likewise.
85878         * m4/bison-i18n.m4: Likewise.
85879         * m4/bison.m4: Likewise.
85880         * m4/byteswap.m4: Likewise.
85881         * m4/c-stack.m4: Likewise.
85882         * m4/c-strtod.m4: Likewise.
85883         * m4/calloc.m4: Likewise.
85884         * m4/canonicalize-lgpl.m4: Likewise.
85885         * m4/chown.m4: Likewise.
85886         * m4/clock_time.m4: Likewise.
85887         * m4/codeset.m4: Likewise.
85888         * m4/copy-file.m4: Likewise.
85889         * m4/csharp.m4: Likewise.
85890         * m4/csharpcomp.m4: Likewise.
85891         * m4/csharpexec.m4: Likewise.
85892         * m4/d-ino.m4: Likewise.
85893         * m4/d-type.m4: Likewise.
85894         * m4/dirfd.m4: Likewise.
85895         * m4/double-slash-root.m4: Likewise.
85896         * m4/eaccess.m4: Likewise.
85897         * m4/eealloc.m4: Likewise.
85898         * m4/environ.m4: Likewise.
85899         * m4/errno_h.m4: Likewise.
85900         * m4/euidaccess.m4: Likewise.
85901         * m4/execute.m4: Likewise.
85902         * m4/fatal-signal.m4: Likewise.
85903         * m4/fchdir.m4: Likewise.
85904         * m4/fcntl_h.m4: Likewise.
85905         * m4/fileblocks.m4: Likewise.
85906         * m4/filenamecat.m4: Likewise.
85907         * m4/findprog.m4: Likewise.
85908         * m4/flexmember.m4: Likewise.
85909         * m4/fnmatch.m4: Likewise.
85910         * m4/fopen.m4: Likewise.
85911         * m4/fpending.m4: Likewise.
85912         * m4/fprintf-posix.m4: Likewise.
85913         * m4/free.m4: Likewise.
85914         * m4/frexp.m4: Likewise.
85915         * m4/frexpl.m4: Likewise.
85916         * m4/fsusage.m4: Likewise.
85917         * m4/ftruncate.m4: Likewise.
85918         * m4/gc-camellia.m4: Likewise.
85919         * m4/gc-random.m4: Likewise.
85920         * m4/gc.m4: Likewise.
85921         * m4/getaddrinfo.m4: Likewise.
85922         * m4/getcwd-abort-bug.m4: Likewise.
85923         * m4/getcwd-path-max.m4: Likewise.
85924         * m4/getdate.m4: Likewise.
85925         * m4/getdomainname.m4: Likewise.
85926         * m4/getgroups.m4: Likewise.
85927         * m4/gethostname.m4: Likewise.
85928         * m4/gethrxtime.m4: Likewise.
85929         * m4/getline.m4: Likewise.
85930         * m4/getloadavg.m4: Likewise.
85931         * m4/getndelim2.m4: Likewise.
85932         * m4/getpass.m4: Likewise.
85933         * m4/gettext.m4: Likewise.
85934         * m4/gettime.m4: Likewise.
85935         * m4/gettimeofday.m4: Likewise.
85936         * m4/gnulib-common.m4: Likewise.
85937         * m4/group-member.m4: Likewise.
85938         * m4/host-os.m4: Likewise.
85939         * m4/iconv.m4: Likewise.
85940         * m4/iconv_open.m4: Likewise.
85941         * m4/inet_ntop.m4: Likewise.
85942         * m4/inet_pton.m4: Likewise.
85943         * m4/inline.m4: Likewise.
85944         * m4/intldir.m4: Likewise.
85945         * m4/intlmacosx.m4: Likewise.
85946         * m4/intmax.m4: Likewise.
85947         * m4/intmax_t.m4: Likewise.
85948         * m4/inttypes.m4: Likewise.
85949         * m4/inttypes_h.m4: Likewise.
85950         * m4/inttypes-pri.m4: Likewise.
85951         * m4/isapipe.m4: Likewise.
85952         * m4/isnand.m4: Likewise.
85953         * m4/isnanf.m4: Likewise.
85954         * m4/isnanl.m4: Likewise.
85955         * m4/javacomp.m4: Likewise.
85956         * m4/javaexec.m4: Likewise.
85957         * m4/jm-winsz1.m4: Likewise.
85958         * m4/jm-winsz2.m4: Likewise.
85959         * m4/lchown.m4: Likewise.
85960         * m4/lcmessage.m4: Likewise.
85961         * m4/ldexpl.m4: Likewise.
85962         * m4/lib-ld.m4: Likewise.
85963         * m4/lib-link.m4: Likewise.
85964         * m4/libsigsegv.m4: Likewise.
85965         * m4/link-follow.m4: Likewise.
85966         * m4/localcharset.m4: Likewise.
85967         * m4/locale-fr.m4: Likewise.
85968         * m4/locale-ja.m4: Likewise.
85969         * m4/locale-tr.m4: Likewise.
85970         * m4/locale-zh.m4: Likewise.
85971         * m4/lock.m4: Likewise.
85972         * m4/longlong.m4: Likewise.
85973         * m4/ls-mntd-fs.m4: Likewise.
85974         * m4/lstat.m4: Likewise.
85975         * m4/malloc.m4: Likewise.
85976         * m4/mathl.m4: Likewise.
85977         * m4/mbrtowc.m4: Likewise.
85978         * m4/mbstate_t.m4: Likewise.
85979         * m4/mbswidth.m4: Likewise.
85980         * m4/memchr.m4: Likewise.
85981         * m4/memcmp.m4: Likewise.
85982         * m4/memcpy.m4: Likewise.
85983         * m4/memmem.m4: Likewise.
85984         * m4/memmove.m4: Likewise.
85985         * m4/mempcpy.m4: Likewise.
85986         * m4/memrchr.m4: Likewise.
85987         * m4/memset.m4: Likewise.
85988         * m4/minmax.m4: Likewise.
85989         * m4/mkdir-slash.m4: Likewise.
85990         * m4/mkdtemp.m4: Likewise.
85991         * m4/mktime.m4: Likewise.
85992         * m4/mmap-anon.m4: Likewise.
85993         * m4/mountlist.m4: Likewise.
85994         * m4/nanosleep.m4: Likewise.
85995         * m4/nls.m4: Likewise.
85996         * m4/nocrash.m4: Likewise.
85997         * m4/open.m4: Likewise.
85998         * m4/openat.m4: Likewise.
85999         * m4/openmp.m4: Likewise.
86000         * m4/pathmax.m4: Likewise.
86001         * m4/perl.m4: Likewise.
86002         * m4/physmem.m4: Likewise.
86003         * m4/pipe.m4: Likewise.
86004         * m4/po.m4: Likewise.
86005         * m4/poll.m4: Likewise.
86006         * m4/posixtm.m4: Likewise.
86007         * m4/posixver.m4: Likewise.
86008         * m4/printf-frexp.m4: Likewise.
86009         * m4/printf-frexpl.m4: Likewise.
86010         * m4/printf-posix.m4: Likewise.
86011         * m4/printf-posix-rpl.m4: Likewise.
86012         * m4/printf.m4: Likewise.
86013         * m4/progtest.m4: Likewise.
86014         * m4/putenv.m4: Likewise.
86015         * m4/readline.m4: Likewise.
86016         * m4/readlink.m4: Likewise.
86017         * m4/readutmp.m4: Likewise.
86018         * m4/realloc.m4: Likewise.
86019         * m4/regex.m4: Likewise.
86020         * m4/relocatable.m4: Likewise.
86021         * m4/relocatable-lib.m4: Likewise.
86022         * m4/rename-dest-slash.m4: Likewise.
86023         * m4/rename.m4: Likewise.
86024         * m4/rmdir-errno.m4: Likewise.
86025         * m4/rmdir.m4: Likewise.
86026         * m4/roundf.m4: Likewise.
86027         * m4/roundl.m4: Likewise.
86028         * m4/rpmatch.m4: Likewise.
86029         * m4/save-cwd.m4: Likewise.
86030         * m4/selinux-selinux-h.m4: Likewise.
86031         * m4/setenv.m4: Likewise.
86032         * m4/settime.m4: Likewise.
86033         * m4/sig2str.m4: Likewise.
86034         * m4/sig_atomic_t.m4: Likewise.
86035         * m4/signalblocking.m4: Likewise.
86036         * m4/signbit.m4: Likewise.
86037         * m4/sigpipe.m4: Likewise.
86038         * m4/sockets.m4: Likewise.
86039         * m4/sockpfaf.m4: Likewise.
86040         * m4/st_dm_mode.m4: Likewise.
86041         * m4/stat-time.m4: Likewise.
86042         * m4/stdbool.m4: Likewise.
86043         * m4/stdint.m4: Likewise.
86044         * m4/stdint_h.m4: Likewise.
86045         * m4/stpcpy.m4: Likewise.
86046         * m4/stpncpy.m4: Likewise.
86047         * m4/strcase.m4: Likewise.
86048         * m4/strchrnul.m4: Likewise.
86049         * m4/strcspn.m4: Likewise.
86050         * m4/strdup.m4: Likewise.
86051         * m4/strftime.m4: Likewise.
86052         * m4/strndup.m4: Likewise.
86053         * m4/strnlen.m4: Likewise.
86054         * m4/strpbrk.m4: Likewise.
86055         * m4/strptime.m4: Likewise.
86056         * m4/strsep.m4: Likewise.
86057         * m4/strtod.m4: Likewise.
86058         * m4/strtoimax.m4: Likewise.
86059         * m4/strtok_r.m4: Likewise.
86060         * m4/strtol.m4: Likewise.
86061         * m4/strtoll.m4: Likewise.
86062         * m4/strtoul.m4: Likewise.
86063         * m4/strtoull.m4: Likewise.
86064         * m4/strtoumax.m4: Likewise.
86065         * m4/strverscmp.m4: Likewise.
86066         * m4/threadlib.m4: Likewise.
86067         * m4/timegm.m4: Likewise.
86068         * m4/tm_gmtoff.m4: Likewise.
86069         * m4/tmpdir.m4: Likewise.
86070         * m4/tmpfile.m4: Likewise.
86071         * m4/tzset.m4: Likewise.
86072         * m4/uintmax_t.m4: Likewise.
86073         * m4/unlinkdir.m4: Likewise.
86074         * m4/unlocked-io.m4: Likewise.
86075         * m4/uptime.m4: Likewise.
86076         * m4/userspec.m4: Likewise.
86077         * m4/utimbuf.m4: Likewise.
86078         * m4/utime.m4: Likewise.
86079         * m4/utimes-null.m4: Likewise.
86080         * m4/utimes.m4: Likewise.
86081         * m4/vararrays.m4: Likewise.
86082         * m4/vasnprintf.m4: Likewise.
86083         * m4/vfprintf-posix.m4: Likewise.
86084         * m4/vprintf-posix.m4: Likewise.
86085         * m4/wait-process.m4: Likewise.
86086         * m4/wchar_t.m4: Likewise.
86087         * m4/wint_t.m4: Likewise.
86088         * m4/write-any-file.m4: Likewise.
86089         * m4/yield.m4: Likewise.
86091 2009-01-13  Bruno Haible  <bruno@clisp.org>
86093         Avoid test-copy-file.sh failures when ACL support insufficient.
86094         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
86095         TESTS_ENVIRONMENT.
86096         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
86097         Reported by Jim Meyering.
86099 2009-01-13  Bruno Haible  <bruno@clisp.org>
86101         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
86102         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
86103         * modules/unistdio/u8-printf-parse (Files): Likewise.
86104         * modules/unistdio/u32-printf-parse (Files): Likewise.
86105         * modules/unistdio/ulc-printf-parse (Files): Likewise.
86107 2009-01-13  Simon Josefsson  <simon@josefsson.org>
86109         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
86110         and m4/inttypes_h.m4 too.
86112 2009-01-12  Eric Blake  <ebb9@byu.net>
86114         tests: IRIX 6.2 cc can't compile -0.0 into .data
86115         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
86116         rather than at compile-time.
86117         * tests/test-floorl.c (minus_zero): Likewise.
86118         * tests/test-frexpl.c (minus_zero): Likewise.
86119         * tests/test-isnan.c (minus_zerol): Likewise.
86120         * tests/test-isnanl.h (minus_zero): Likewise.
86121         * tests/test-ldexpl.c (minus_zero): Likewise.
86122         * tests/test-roundl.c (minus_zero): Likewise.
86123         * tests/test-signbit.c (minus_zerol): Likewise.
86124         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86125         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86126         * tests/test-truncl.c (minus_zero): Likewise.
86127         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86128         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86129         Reported by Tom G. Christensen and Nelson H. F. Beebe.
86131 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86133         regex: fix glibc bug 9697
86134         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
86135         handling.
86137 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86139         regex: fix glibc bug 697
86140         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
86141         being NULL also if there are no backreferences.
86143 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86145         regex: merge glibc changes
86146         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
86147         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
86148         re_string_skip_chars, re_string_reconstruct): Likewise.
86149         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
86151 2009-01-07  Jim Meyering  <meyering@redhat.com>
86153         poll: filter through cppi
86154         * lib/poll.c: Indent cpp directives to reflect nesting.
86156 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
86158         poll: don't return uninitialized
86159         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
86161 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
86163         avoid compile failure on AIX 6.1
86164         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
86165         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
86167 2009-01-04  Jim Meyering  <meyering@redhat.com>
86169         remove duplicate inclusion of <stdio.h>
86170         * tests/test-fprintf-posix.c: Likewise.
86171         * tests/test-printf-posix.c: Likewise.
86172         * tests/test-snprintf-posix.c: Likewise.
86173         * tests/test-sprintf-posix.c: Likewise.
86174         * tests/test-vasprintf-posix.c: Likewise.
86175         * tests/test-vfprintf-posix.c: Likewise.
86176         * tests/test-vprintf-posix.c: Likewise.
86177         * tests/test-vsnprintf-posix.c: Likewise.
86178         * tests/test-vsprintf-posix.c: Likewise.
86180 2009-01-03  Jim Meyering  <meyering@redhat.com>
86182         gnulib-tool: fix sed-based filtering
86183         * gnulib-tool (func_filter_filelist): Remove extra backslash
86184         in sed_fff_filter definition.
86186 2009-01-02  Jim Meyering  <meyering@redhat.com>
86188         strftime: avoid compilation failure on Solaris 2.6
86189         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
86190         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
86191         Don't #define mbrlen or mbsinit, since now they're guaranteed to
86192         be available.  Reported by Tom G. Christensen.  Details in
86193         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
86195 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86196             Bruno Haible  <bruno@clisp.org>
86198         Speed up gnulib-tool by doing more string processing through shell
86199         built-ins.
86200         * gnulib-tool (fast_func_append): New variable.
86201         (func_remove_prefix, func_remove_suffix): New functions.
86202         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
86203         (func_filter_filelist): New function.
86204         (func_get_dependencies): Use func_remove_suffix instead of sed.
86205         (func_get_automake_snippet): Use func_filter_filelist instead of a
86206         subshell and sed invocation.
86208 2009-01-01  Bruno Haible  <bruno@clisp.org>
86210         Fix a security bug.
86211         * gnulib-tool (func_import, import, update): Don't allow the characters
86212         '"', '$', '`', '\' in macro arguments that become part of commands that
86213         are evaluated.
86215 2009-01-01  Bruno Haible  <bruno@clisp.org>
86217         * gnulib-tool (func_reset_sigpipe): Add more comments.
86219 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86221         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
86222         func_emit_tests_Makefile_am, func_import): Abort loops early if we
86223         already know the answer.
86225 2009-01-01  Jim Meyering  <meyering@redhat.com>
86227         * lib/version-etc.c (version_etc_va): Update copyright year.
86229 2008-12-30  Bruno Haible  <bruno@clisp.org>
86231         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
86232         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
86233         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
86235 2008-12-29  Eric Blake  <ebb9@byu.net>
86237         multiarch: avoid autoconf AC_REQUIRE bug
86238         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
86239         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
86240         2.63 and older.
86241         Reported by Bruno Haible, and analyzed in
86242         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
86244 2008-12-29  Bruno Haible  <bruno@clisp.org>
86246         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
86247         files in subdirectories correctly.
86248         Reported by Ralf Wildenhues.
86250 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86252         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
86253         rather than 'join FILE -', for Solaris join.
86255 2008-12-29  Bruno Haible  <bruno@clisp.org>
86257         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
86258         quoting.
86259         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86260         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
86261         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
86262         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
86263         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
86264         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
86265         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
86266         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
86267         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
86268         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
86269         * m4/nls.m4 (AM_NLS): Likewise.
86270         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
86271         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
86272         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86273         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
86274         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
86275         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
86276         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
86277         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
86278         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
86279         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
86280         * m4/xsize.m4 (gl_XSIZE): Likewise.
86281         Suggested by Jim Meyering.
86283 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86285         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
86286         * lib/parse-duration.c: use a switch instead of cascading if's.
86288 2008-12-29  Eric Blake  <ebb9@byu.net>
86290         wchar.h: supply WEOF on Irix 5.3
86291         * lib/wchar.in.h (wint_t): Also supply WEOF.
86292         * lib/wctype.in.h (wint_t): Likewise.
86293         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
86294         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
86295         Reported by Tom G. Christensen.
86297 2008-12-26  Bruno Haible  <bruno@clisp.org>
86299         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
86300         i486, i586, i686.
86302 2008-12-26  Bruno Haible  <bruno@clisp.org>
86304         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
86306 2008-12-26  Bruno Haible  <bruno@clisp.org>
86308         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
86309         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
86310         not __STDC_CONSTANT_MACROS.
86311         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86313 2008-12-25  Bruno Haible  <bruno@clisp.org>
86315         Add support for universal builds to vasnprintf.
86316         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
86317         universal builds, guess no.
86318         * modules/vasnprintf-posix (Depends-on): Add multiarch.
86319         * modules/vasprintf-posix (Depends-on): Likewise.
86320         * modules/fprintf-posix (Depends-on): Likewise.
86321         * modules/vfprintf-posix (Depends-on): Likewise.
86322         * modules/snprintf-posix (Depends-on): Likewise.
86323         * modules/vsnprintf-posix (Depends-on): Likewise.
86324         * modules/sprintf-posix (Depends-on): Likewise.
86325         * modules/vsprintf-posix (Depends-on): Likewise.
86326         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86327         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86328         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86329         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86330         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86331         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86332         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86334         Add support for universal builds to <inttypes.h>.
86335         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
86336         _SCNu64_PREFIX): In Apple
86337         universal builds, define directly, using _LP64.
86338         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
86339         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
86340         * modules/inttypes (Depends-on): Add multiarch.
86341         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
86343         Add support for universal builds to <stdint.h>.
86344         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
86345         universal builds, define directly, using _LP64.
86346         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
86347         Apple universal builds, don't test for the size and suffix of ptrdiff_t
86348         and size_t.
86349         * modules/stdint (Depends-on): Add multiarch.
86350         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
86352         New module 'multiarch'.
86353         * modules/multiarch: New file.
86354         * m4/multiarch.m4: New file.
86356 2008-12-25  Bruno Haible  <bruno@clisp.org>
86358         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
86360 2008-12-25  Bruno Haible  <bruno@clisp.org>
86362         * modules/btowc (License): Relicense under LGPLv2+.
86363         * modules/mbsinit (License): Likewise.
86364         * modules/mbrtowc (License): Likewise.
86365         * modules/wcrtomb (License): Likewise.
86366         * modules/streq (License): Likewise.
86367         Reported by David Lutterkort <lutter@redhat.com>.
86369 2008-12-23  Bruno Haible  <bruno@clisp.org>
86371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
86373 2008-12-23  Bruno Haible  <bruno@clisp.org>
86375         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
86376         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
86377         GETADDRINFO_LIB, not in LIBS.
86378         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
86379         * modules/canon-host (Link): Likewise.
86380         * NEWS: Mention the change.
86381         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
86382         GETADDRINFO_LIB.
86384 2008-12-22  Bruno Haible  <bruno@clisp.org>
86386         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
86387         * doc/posix-functions/iswalpha_l.texi: Likewise.
86388         * doc/posix-functions/iswblank_l.texi: Likewise.
86389         * doc/posix-functions/iswcntrl_l.texi: Likewise.
86390         * doc/posix-functions/iswctype_l.texi: Likewise.
86391         * doc/posix-functions/iswdigit_l.texi: Likewise.
86392         * doc/posix-functions/iswgraph_l.texi: Likewise.
86393         * doc/posix-functions/iswlower_l.texi: Likewise.
86394         * doc/posix-functions/iswprint_l.texi: Likewise.
86395         * doc/posix-functions/iswpunct_l.texi: Likewise.
86396         * doc/posix-functions/iswspace_l.texi: Likewise.
86397         * doc/posix-functions/iswupper_l.texi: Likewise.
86398         * doc/posix-functions/iswxdigit_l.texi: Likewise.
86399         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
86400         * doc/posix-functions/open_wmemstream.texi: Likewise.
86401         * doc/posix-functions/swscanf.texi: Likewise.
86402         * doc/posix-functions/towctrans_l.texi: Likewise.
86403         * doc/posix-functions/towlower.texi: Likewise.
86404         * doc/posix-functions/towlower_l.texi: Likewise.
86405         * doc/posix-functions/towupper.texi: Likewise.
86406         * doc/posix-functions/towupper_l.texi: Likewise.
86407         * doc/posix-functions/vfwprintf.texi: Likewise.
86408         * doc/posix-functions/vfwscanf.texi: Likewise.
86409         * doc/posix-functions/vswscanf.texi: Likewise.
86410         * doc/posix-functions/vwprintf.texi: Likewise.
86411         * doc/posix-functions/vwscanf.texi: Likewise.
86412         * doc/posix-functions/wcpcpy.texi: Likewise.
86413         * doc/posix-functions/wcpncpy.texi: Likewise.
86414         * doc/posix-functions/wcscasecmp.texi: Likewise.
86415         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
86416         * doc/posix-functions/wcscoll_l.texi: Likewise.
86417         * doc/posix-functions/wcsdup.texi: Likewise.
86418         * doc/posix-functions/wcsncasecmp.texi: Likewise.
86419         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
86420         * doc/posix-functions/wcsnlen.texi: Likewise.
86421         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86422         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
86423         * doc/posix-functions/wctrans_l.texi: Likewise.
86424         * doc/posix-functions/wctype_l.texi: Likewise.
86425         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
86426         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
86427         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
86428         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
86429         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
86430         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
86431         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
86432         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
86433         * doc/glibc-functions/wcschrnul.texi: Likewise.
86434         * doc/glibc-functions/wcsftime_l.texi: Likewise.
86435         * doc/glibc-functions/wcstod_l.texi: Likewise.
86436         * doc/glibc-functions/wcstof_l.texi: Likewise.
86437         * doc/glibc-functions/wcstol_l.texi: Likewise.
86438         * doc/glibc-functions/wcstold_l.texi: Likewise.
86439         * doc/glibc-functions/wcstoll_l.texi: Likewise.
86440         * doc/glibc-functions/wcstoq.texi: Likewise.
86441         * doc/glibc-functions/wcstoul_l.texi: Likewise.
86442         * doc/glibc-functions/wcstoull_l.texi: Likewise.
86443         * doc/glibc-functions/wcstouq.texi: Likewise.
86444         * doc/glibc-functions/wmempcpy.texi: Likewise.
86446 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
86447             Eric Blake  <ebb9@byu.net>
86448             Paolo Bonzini  <bonzini@gnu.org>
86449             Bruno Haible  <bruno@clisp.org>
86451         Make c-stack work on Haiku.
86452         * lib/c-stack.c (SA_ONSTACK): Define fallback.
86453         (c_stack_action): Use SA_ONSTACK flag.
86455 2008-12-22  Bruno Haible  <bruno@clisp.org>
86457         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
86459 2008-12-22  Bruno Haible  <bruno@clisp.org>
86461         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
86462         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
86463         being overridden.
86464         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
86465         New macros.
86466         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
86467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
86468         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
86469         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
86471 2008-12-22  Bruno Haible  <bruno@clisp.org>
86473         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
86474         from test code.
86476 2008-12-22  Eric Blake  <ebb9@byu.net>
86478         Avoid gcc warnings on cygwin.
86479         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
86480         Avoid unused variable.
86481         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
86482         Likewise.
86484 2008-12-22  Bruno Haible  <bruno@clisp.org>
86486         Remove HAVE_MBRTOWC conditionals.
86487         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
86488         (mbscasecmp): Assume mbrtowc function.
86489         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
86490         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
86491         * lib/mbschr.c: Include mbuiter.h unconditionally.
86492         (mbschr): Assume mbrtowc function.
86493         * lib/mbscspn.c: Include mbuiter.h unconditionally.
86494         (mbscspn): Assume mbrtowc function.
86495         * lib/mbslen.c: Include mbuiter.h unconditionally.
86496         (mbslen): Assume mbrtowc function.
86497         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
86498         (mbsncasecmp): Assume mbrtowc function.
86499         * lib/mbsnlen.c: Include mbiter.h unconditionally.
86500         (mbsnlen): Assume mbrtowc function.
86501         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
86502         (mbspbrk): Assume mbrtowc function.
86503         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
86504         (mbspcasecmp): Assume mbrtowc function.
86505         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
86506         (mbsrchr): Assume mbrtowc function.
86507         * lib/mbssep.c: Include mbuiter.h unconditionally.
86508         (mbssep): Assume mbrtowc function.
86509         * lib/mbsspn.c: Include mbuiter.h unconditionally.
86510         (mbsspn): Assume mbrtowc function.
86511         * lib/mbsstr.c: Include mbuiter.h unconditionally.
86512         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
86513         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
86514         (mbstok_r): Assume mbrtowc function.
86515         * lib/propername.c: Include mbuiter.h unconditionally.
86516         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
86517         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
86518         (trim2): Assume mbrtowc function.
86519         * lib/mbswidth.c (mbsinit): Remove fallback definition.
86520         (mbsnwidth): Assume mbrtowc function.
86521         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
86522         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
86523         fallback definitions.
86524         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
86526 2008-12-22  Bruno Haible  <bruno@clisp.org>
86528         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
86530 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
86532         * modules/regex: Request emulations for the mb*/wc* functions we need.
86533         * m4/regex.m4: Don't look for those functions here.
86534         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
86536 2008-12-22  Bruno Haible  <bruno@clisp.org>
86538         * modules/fnmatch (Depends-on): Remove duplicated dependency.
86540 2008-12-21  Bruno Haible  <bruno@clisp.org>
86542         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
86543         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
86544         (Include): Remove conditionalization.
86545         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
86546         (Include): Remove conditionalization.
86547         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
86548         (Include): Remove conditionalization.
86549         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
86550         * m4/mbfile.m4 (gl_MBFILE): Likewise.
86551         * NEWS: Mention the change.
86552         Reported by Alan Hourihane <alanh@fairlite.co.uk>
86553         via Sergey Poznyakoff <gray@gnu.org.ua>.
86555 2008-12-21  Bruno Haible  <bruno@clisp.org>
86557         * MODULES.html.sh (Extended multibyte and wide character utilities
86558         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
86559         wcrtomb, wcsrtombs.
86560         (Support for systems lacking POSIX:2008): Add accept, bind, close,
86561         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
86562         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
86563         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
86565 2008-12-21  Bruno Haible  <bruno@clisp.org>
86567         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
86569 2008-12-21  Bruno Haible  <bruno@clisp.org>
86571         * modules/wcsnrtombs-tests: New file.
86572         * tests/test-wcsnrtombs1.sh: New file.
86573         * tests/test-wcsnrtombs2.sh: New file.
86574         * tests/test-wcsnrtombs3.sh: New file.
86575         * tests/test-wcsnrtombs4.sh: New file.
86576         * tests/test-wcsnrtombs.c: New file.
86578         New module 'wcsnrtombs'.
86579         * lib/wchar.in.h (wcsnrtombs): New declaration.
86580         * lib/wcsnrtombs.c: New file.
86581         * lib/wcsrtombs-state.c: New file.
86582         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
86583         (internal_state): Remove variable.
86584         * m4/wcsnrtombs.m4: New file.
86585         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
86586         compilation units.
86587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
86588         HAVE_WCSNRTOMBS.
86589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
86590         HAVE_WCSNRTOMBS.
86591         * modules/wcsnrtombs: New file.
86592         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
86593         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
86595 2008-12-21  Bruno Haible  <bruno@clisp.org>
86597         * modules/wcsrtombs-tests: New file.
86598         * tests/test-wcsrtombs1.sh: New file.
86599         * tests/test-wcsrtombs2.sh: New file.
86600         * tests/test-wcsrtombs3.sh: New file.
86601         * tests/test-wcsrtombs4.sh: New file.
86602         * tests/test-wcsrtombs.c: New file.
86604         New module 'wcsrtombs'.
86605         * lib/wchar.in.h (wcsrtombs): New declaration.
86606         * lib/wcsrtombs.c: New file.
86607         * m4/wcsrtombs.m4: New file.
86608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
86609         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
86610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
86611         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
86612         * modules/wcsrtombs: New file.
86613         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
86614         bugs.
86616 2008-12-21  Bruno Haible  <bruno@clisp.org>
86618         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
86619         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
86620         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
86621         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
86622         if not correct.
86623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
86624         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
86625         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
86626         m4/locale-zh.m4, m4/codeset.m4.
86627         * doc/posix-functions/wcrtomb.texi: Document the bug.
86629 2008-12-21  Bruno Haible  <bruno@clisp.org>
86631         Work around a btowc() bug on IRIX 6.5.
86632         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
86633         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
86634         REPLACE_WTOBC if not.
86635         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
86636         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
86637         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
86639 2008-12-21  Bruno Haible  <bruno@clisp.org>
86641         * modules/wcrtomb-tests: New file.
86642         * tests/test-wcrtomb.sh: New file.
86643         * tests/test-wcrtomb.c: New file.
86645         New module 'wcrtomb'.
86646         * lib/wchar.in.h (wcrtomb): New declaration.
86647         * lib/wcrtomb.c: New file.
86648         * m4/wcrtomb.m4: New file.
86649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
86650         HAVE_WCRTOMB.
86651         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
86652         HAVE_WCRTOMB.
86653         * modules/wcrtomb: New file.
86654         * doc/posix-functions/wcrtomb.texi: Mention the new module.
86656 2008-12-21  Bruno Haible  <bruno@clisp.org>
86658         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
86659         * modules/mbsrtowcs (Files): Likewise.
86660         * modules/wctob (Files): Likewise.
86661         * modules/c-strcase-tests (Files): Likewise.
86662         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
86663         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
86664         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
86665         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
86666         * modules/vasnprintf-posix-tests (Files): Likewise.
86668 2008-12-21  William Pursell  <bill.pursell@gmail.com>
86670         gitlog-to-changelog: pass all command-line arguments to git-log
86671         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
86672         it is sometimes convenient to filter the commits in various ways.
86673         gitlog-to-changelog only allows --since to specify a start date,
86674         but git-log itself supports many other filtering mechanisms.
86675         At the moment, I want to filter by branch name.  Rather than
86676         adding a --branch option to gitlog-to-changelog, it seems more
86677         flexible to simply pass all options directly to git-log and let
86678         git do the work.  Notice that this effectively makes --since a
86679         redundant option for gitlog-to-changelog, but removing it would
86680         require current usage to change since calls would then require
86681         an additional '--'.
86683 2008-12-21  Bruno Haible  <bruno@clisp.org>
86685         * modules/mbsnrtowcs-tests: New file.
86686         * tests/test-mbsnrtowcs1.sh: New file.
86687         * tests/test-mbsnrtowcs2.sh: New file.
86688         * tests/test-mbsnrtowcs3.sh: New file.
86689         * tests/test-mbsnrtowcs4.sh: New file.
86690         * tests/test-mbsnrtowcs.c: New file.
86692         New module 'mbsnrtowcs'.
86693         * lib/wchar.in.h (mbsnrtowcs): New declaration.
86694         * lib/mbsnrtowcs.c: New file.
86695         * lib/mbsrtowcs-state.c: New file.
86696         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
86697         (internal_state): Remove variable.
86698         * m4/mbsnrtowcs.m4: New file.
86699         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
86700         compilation units.
86701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
86702         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
86703         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
86704         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
86705         * modules/mbsnrtowcs: New file.
86706         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
86707         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
86708         portability problem.
86710 2008-12-21  Bruno Haible  <bruno@clisp.org>
86712         Work around mbsrtowcs bug.
86713         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
86714         (gl_FUNC_MBSRTOWCS): Invoke it.
86715         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
86716         m4/locale-zh.m4.
86717         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
86719 2008-12-21  Bruno Haible  <bruno@clisp.org>
86721         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
86723 2008-12-21  Bruno Haible  <bruno@clisp.org>
86725         Update doc for AIX.
86726         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
86727         16-bit wchar_t type.
86728         * doc/posix-functions/btowc.texi: Likewise.
86729         * doc/posix-functions/fgetwc.texi: Likewise.
86730         * doc/posix-functions/fgetws.texi: Likewise.
86731         * doc/posix-functions/fputwc.texi: Likewise.
86732         * doc/posix-functions/fputws.texi: Likewise.
86733         * doc/posix-functions/fwide.texi: Likewise.
86734         * doc/posix-functions/fwprintf.texi: Likewise.
86735         * doc/posix-functions/fwscanf.texi: Likewise.
86736         * doc/posix-functions/getwchar.texi: Likewise.
86737         * doc/posix-functions/getwc.texi: Likewise.
86738         * doc/posix-functions/iswalnum.texi: Likewise.
86739         * doc/posix-functions/iswalpha.texi: Likewise.
86740         * doc/posix-functions/iswblank.texi: Likewise.
86741         * doc/posix-functions/iswcntrl.texi: Likewise.
86742         * doc/posix-functions/iswctype.texi: Likewise.
86743         * doc/posix-functions/iswdigit.texi: Likewise.
86744         * doc/posix-functions/iswgraph.texi: Likewise.
86745         * doc/posix-functions/iswlower.texi: Likewise.
86746         * doc/posix-functions/iswprint.texi: Likewise.
86747         * doc/posix-functions/iswpunct.texi: Likewise.
86748         * doc/posix-functions/iswspace.texi: Likewise.
86749         * doc/posix-functions/iswupper.texi: Likewise.
86750         * doc/posix-functions/iswxdigit.texi: Likewise.
86751         * doc/posix-functions/mbrtowc.texi: Likewise.
86752         * doc/posix-functions/mbsrtowcs.texi: Likewise.
86753         * doc/posix-functions/mbstowcs.texi: Likewise.
86754         * doc/posix-functions/mbtowc.texi: Likewise.
86755         * doc/posix-functions/putwchar.texi: Likewise.
86756         * doc/posix-functions/putwc.texi: Likewise.
86757         * doc/posix-functions/swprintf.texi: Likewise.
86758         * doc/posix-functions/tolower.texi: Likewise.
86759         * doc/posix-functions/toupper.texi: Likewise.
86760         * doc/posix-functions/towctrans.texi: Likewise.
86761         * doc/posix-functions/ungetwc.texi: Likewise.
86762         * doc/posix-functions/vswprintf.texi: Likewise.
86763         * doc/posix-functions/wcrtomb.texi: Likewise.
86764         * doc/posix-functions/wcscat.texi: Likewise.
86765         * doc/posix-functions/wcschr.texi: Likewise.
86766         * doc/posix-functions/wcscmp.texi: Likewise.
86767         * doc/posix-functions/wcscoll.texi: Likewise.
86768         * doc/posix-functions/wcscpy.texi: Likewise.
86769         * doc/posix-functions/wcscspn.texi: Likewise.
86770         * doc/posix-functions/wcsftime.texi: Likewise.
86771         * doc/posix-functions/wcslen.texi: Likewise.
86772         * doc/posix-functions/wcsncat.texi: Likewise.
86773         * doc/posix-functions/wcsncmp.texi: Likewise.
86774         * doc/posix-functions/wcsncpy.texi: Likewise.
86775         * doc/posix-functions/wcspbrk.texi: Likewise.
86776         * doc/posix-functions/wcsrchr.texi: Likewise.
86777         * doc/posix-functions/wcsrtombs.texi: Likewise.
86778         * doc/posix-functions/wcsspn.texi: Likewise.
86779         * doc/posix-functions/wcsstr.texi: Likewise.
86780         * doc/posix-functions/wcstod.texi: Likewise.
86781         * doc/posix-functions/wcstof.texi: Likewise.
86782         * doc/posix-functions/wcstoimax.texi: Likewise.
86783         * doc/posix-functions/wcstok.texi: Likewise.
86784         * doc/posix-functions/wcstold.texi: Likewise.
86785         * doc/posix-functions/wcstoll.texi: Likewise.
86786         * doc/posix-functions/wcstol.texi: Likewise.
86787         * doc/posix-functions/wcstombs.texi: Likewise.
86788         * doc/posix-functions/wcstoull.texi: Likewise.
86789         * doc/posix-functions/wcstoul.texi: Likewise.
86790         * doc/posix-functions/wcstoumax.texi: Likewise.
86791         * doc/posix-functions/wcswidth.texi: Likewise.
86792         * doc/posix-functions/wcsxfrm.texi: Likewise.
86793         * doc/posix-functions/wctob.texi: Likewise.
86794         * doc/posix-functions/wctomb.texi: Likewise.
86795         * doc/posix-functions/wctrans.texi: Likewise.
86796         * doc/posix-functions/wctype.texi: Likewise.
86797         * doc/posix-functions/wcwidth.texi: Likewise.
86798         * doc/posix-functions/wmemchr.texi: Likewise.
86799         * doc/posix-functions/wmemcmp.texi: Likewise.
86800         * doc/posix-functions/wmemcpy.texi: Likewise.
86801         * doc/posix-functions/wmemmove.texi: Likewise.
86802         * doc/posix-functions/wmemset.texi: Likewise.
86803         * doc/posix-functions/wprintf.texi: Likewise.
86804         * doc/posix-functions/wscanf.texi: Likewise.
86806 2008-12-21  Bruno Haible  <bruno@clisp.org>
86808         Update doc for HP-UX 11.11.
86809         * doc/posix-functions/btowc.texi: Clarify that the function is missing
86810         in HP-UX version 11.00, not in all versions of HP-UX 11.
86811         * doc/posix-functions/fwide.texi: Likewise.
86812         * doc/posix-functions/fwprintf.texi: Likewise.
86813         * doc/posix-functions/fwscanf.texi: Likewise.
86814         * doc/posix-functions/inet_ntop.texi: Likewise.
86815         * doc/posix-functions/inet_pton.texi: Likewise.
86816         * doc/posix-functions/mbrlen.texi: Likewise.
86817         * doc/posix-functions/mbrtowc.texi: Likewise.
86818         * doc/posix-functions/mbsinit.texi: Likewise.
86819         * doc/posix-functions/mbsrtowcs.texi: Likewise.
86820         * doc/posix-functions/swprintf.texi: Likewise.
86821         * doc/posix-functions/swscanf.texi: Likewise.
86822         * doc/posix-functions/towctrans.texi: Likewise.
86823         * doc/posix-functions/vfwprintf.texi: Likewise.
86824         * doc/posix-functions/vswprintf.texi: Likewise.
86825         * doc/posix-functions/vwprintf.texi: Likewise.
86826         * doc/posix-functions/wcrtomb.texi: Likewise.
86827         * doc/posix-functions/wcsrtombs.texi: Likewise.
86828         * doc/posix-functions/wcsstr.texi: Likewise.
86829         * doc/posix-functions/wctob.texi: Likewise.
86830         * doc/posix-functions/wctrans.texi: Likewise.
86831         * doc/posix-functions/wmemchr.texi: Likewise.
86832         * doc/posix-functions/wmemcmp.texi: Likewise.
86833         * doc/posix-functions/wmemcpy.texi: Likewise.
86834         * doc/posix-functions/wmemmove.texi: Likewise.
86835         * doc/posix-functions/wmemset.texi: Likewise.
86836         * doc/posix-functions/wprintf.texi: Likewise.
86837         * doc/posix-functions/wscanf.texi: Likewise.
86839 2008-12-21  Bruno Haible  <bruno@clisp.org>
86841         Work around a portability problem.
86842         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
86843         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
86845 2008-12-20  Bruno Haible  <bruno@clisp.org>
86847         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
86848         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
86849         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
86850         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
86851         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
86853         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
86854         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
86855         set.
86856         (GNULIB_defined_mbstate_t): New macro.
86857         (mbsinit): Redefine if REPLACE_MBSINIT is set.
86858         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
86859         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
86860         reuses the system's mbrtowc function but works around the bugs.
86861         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
86862         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
86863         macros.
86864         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
86865         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
86866         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
86867         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
86868         REPLACE_MBSINIT if mbsinit needs to be overridden.
86869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
86870         REPLACE_MBSINIT, REPLACE_MBRTOWC.
86871         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
86872         REPLACE_MBSINIT, REPLACE_MBRTOWC.
86873         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
86874         m4/locale-zh.m4.
86875         (Depends): Add mbsinit.
86876         * modules/mbsinit (Depends): Add mbrtowc.
86877         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
86879 2008-12-20  Bruno Haible  <bruno@clisp.org>
86881         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
86882         so that there are no conversion errors on AIX.
86883         * tests/test-mbsrtowcs.c (main): LIkewise.
86885 2008-12-20  Bruno Haible  <bruno@clisp.org>
86887         Work around wctob bug on Solaris <= 9.
86888         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
86889         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
86890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
86891         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
86892         * modules/wctob (Files): Add m4/locale-fr.m4.
86893         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
86895 2008-12-20  Bruno Haible  <bruno@clisp.org>
86897         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
86898         /dev/null.
86899         * tests/test-select-in.sh: Likewise.
86900         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86902 2008-12-20  Bruno Haible  <bruno@clisp.org>
86904         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
86905         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
86906         Cygwin 1.5.x.
86908 2008-12-20  Bruno Haible  <bruno@clisp.org>
86910         Ensure mbstate_t is defined on HP-UX 11.11.
86911         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
86912         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
86913         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
86914         AC_USE_SYSTEM_EXTENSIONS.
86915         * modules/fnmatch (Depends-on): Add extensions.
86916         * modules/mbrlen (Depends-on): Likewise.
86917         * modules/mbrtowc (Depends-on): Likewise.
86918         * modules/mbsinit (Depends-on): Likewise.
86919         * modules/mbsrtowcs (Depends-on): Likewise.
86920         * modules/mbswidth (Depends-on): Likewise.
86921         * modules/quotearg (Depends-on): Likewise.
86922         * modules/strftime (Depends-on): Likewise.
86924 2008-12-20  Bruno Haible  <bruno@clisp.org>
86926         Ensure wctob is declared on IRIX 6.5.
86927         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
86928         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
86929         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
86930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
86931         of HAVE_WCTOB.
86932         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
86933         HAVE_WCTOB.
86934         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
86936 2008-12-19  Bruno Haible  <bruno@clisp.org>
86938         * modules/mbsrtowcs-tests: New file.
86939         * tests/test-mbsrtowcs1.sh: New file.
86940         * tests/test-mbsrtowcs2.sh: New file.
86941         * tests/test-mbsrtowcs3.sh: New file.
86942         * tests/test-mbsrtowcs4.sh: New file.
86943         * tests/test-mbsrtowcs.c: New file.
86945         New module 'mbsrtowcs'.
86946         * lib/wchar.in.h (mbsrtowcs): New declaration.
86947         * lib/mbsrtowcs.c: New file.
86948         * m4/mbsrtowcs.m4: New file.
86949         * modules/mbsrtowcs: New file.
86950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
86951         HAVE_MBSRTOWCS.
86952         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
86953         HAVE_MBSRTOWCS.
86954         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
86956 2008-12-19  Bruno Haible  <bruno@clisp.org>
86958         New module 'mbrlen'.
86959         * lib/wchar.in.h (mbrlen): New declaration.
86960         * lib/mbrlen.c: New file.
86961         * m4/mbrlen.m4: New file.
86962         * modules/mbrlen: New file.
86963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
86964         HAVE_MBRLEN.
86965         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
86966         HAVE_MBRLEN.
86967         * doc/posix-functions/mbrlen.texi: Document the new module.
86969 2008-12-19  Bruno Haible  <bruno@clisp.org>
86971         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
86972         * modules/mbrtowc (Depends-on): Add verify.
86973         Suggested by Paul Eggert.
86975 2008-12-18  Bruno Haible  <bruno@clisp.org>
86977         * modules/mbsinit-tests: New file.
86978         * tests/test-mbsinit.sh: New file.
86979         * tests/test-mbsinit.c: New file.
86981 2008-12-18  Bruno Haible  <bruno@clisp.org>
86983         * modules/mbrtowc-tests: New file.
86984         * tests/test-mbrtowc1.sh: New file.
86985         * tests/test-mbrtowc2.sh: New file.
86986         * tests/test-mbrtowc3.sh: New file.
86987         * tests/test-mbrtowc4.sh: New file.
86988         * tests/test-mbrtowc.c: New file.
86990         New module 'mbrtowc'.
86991         * lib/wchar.in.h (mbstate_t): Override when the system does not have
86992         mbsinit and mbrtowc.
86993         (mbrtowc): New declaration.
86994         * lib/mbrtowc.c: New file.
86995         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
86996         * modules/mbrtowc: New file.
86997         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
86998         HAVE_MBRTOWC.
86999         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
87000         HAVE_MBRTOWC.
87001         * doc/posix-functions/mbrtowc.texi: Document the new module.
87003 2008-12-18  Bruno Haible  <bruno@clisp.org>
87005         New module 'wctob'.
87006         * lib/wchar.in.h (wctob): New declaration.
87007         * lib/wctob.c: New file.
87008         * m4/wctob.m4: New file.
87009         * modules/wctob: New file.
87010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
87011         HAVE_WCTOB.
87012         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
87013         * doc/posix-functions/wctob.texi: Document the new module.
87015 2008-12-18  Bruno Haible  <bruno@clisp.org>
87017         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
87018         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
87020 2008-12-18  Simon Josefsson  <simon@josefsson.org>
87022         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
87023         G. Christensen" <tgc@jupiterrise.com>.
87025         * lib/flock.c: Need to include errno.h.  Reported by "Tom
87026         G. Christensen" <tgc@jupiterrise.com>.
87028         * lib/flock.c: Need to include string.h.  Reported by "Tom
87029         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
87030         <ebb9@byu.net>.
87032 2008-12-18  Bruno Haible  <bruno@clisp.org>
87034         * m4/locale-ja.m4: New file, from GNU gettext.
87036 2008-12-17  Bruno Haible  <bruno@clisp.org>
87038         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
87039         Suggested by Eric Blake.
87041 2008-12-17  Bruno Haible  <bruno@clisp.org>
87043         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
87045 2008-12-17  Bruno Haible  <bruno@clisp.org>
87047         * lib/mbsinit.c: Include verify.h. Verify an assumption.
87048         * modules/mbsinit (Depends-on): Add verify.
87049         Suggested by Paul Eggert.
87051 2008-12-17  Bruno Haible  <bruno@clisp.org>
87053         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
87054         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
87055         gl_FUNC_MBRTOWC.
87056         * m4/mbiter.m4 (gl_MBITER): LIkewise.
87057         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
87058         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
87059         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
87060         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
87061         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
87062         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
87063         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
87064         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
87065         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
87066         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
87067         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
87068         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
87069         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
87070         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
87071         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87072         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
87073         * modules/trim (configure.ac): Likewise.
87075 2008-12-17  Bruno Haible  <bruno@clisp.org>
87077         * modules/btowc-tests: New file.
87078         * tests/test-btowc1.sh: New file.
87079         * tests/test-btowc2.sh: New file.
87080         * tests/test-btowc.c: New file.
87082         New module 'btowc'.
87083         * lib/wchar.in.h (btowc): New declaration.
87084         * lib/btowc.c: New file.
87085         * m4/btowc.m4: New file.
87086         * modules/btowc: New file.
87087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
87088         HAVE_BTOWC.
87089         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
87090         * doc/posix-functions/btowc.texi: Document the new module.
87092 2008-12-17  Bruno Haible  <bruno@clisp.org>
87094         New module 'mbsinit'.
87095         * lib/wchar.in.h (mbsinit): New declaration.
87096         * lib/mbsinit.c: New file.
87097         * m4/mbsinit.m4: New file.
87098         * modules/mbsinit: New file.
87099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
87100         HAVE_MBSINIT.
87101         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
87102         HAVE_MBSINIT.
87103         * doc/posix-functions/mbsinit.texi: Document the new module.
87105 2008-12-16  Bruno Haible  <bruno@clisp.org>
87107         * lib/unistd.in.h: Add comment.
87108         * tests/test-environ.c: Don't include <stdlib.h>.
87110 2008-12-16  Bruno Haible  <bruno@clisp.org>
87112         * lib/parse-duration.h (parse_duration): Document return value
87113         convention.
87114         * lib/parse-duration.c: Include specification header first. Add
87115         comments.
87116         (_): Remove macro.
87117         (parse_year_month_day, parse_hour_minute_second): Move side effects
87118         outside of strchr call.
87119         (parse_non_iso8601): Move side effects outside of isspace call.
87120         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
87121         call.
87123 2008-12-16  Bruno Haible  <bruno@clisp.org>
87125         * tests/test-parse-duration.sh: Produce no output when the test
87126         succeeds.
87128 2008-12-16  Bruno Haible  <bruno@clisp.org>
87130         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
87131         expressions.
87133 2008-12-15  Bruno Haible  <bruno@clisp.org>
87135         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
87136         * doc/glibc-functions/flistxattr.texi: Likewise.
87137         * doc/glibc-functions/fopencookie.texi: Likewise.
87138         * doc/glibc-functions/fremovexattr.texi: Likewise.
87139         * doc/glibc-functions/fsetxattr.texi: Likewise.
87140         * doc/glibc-functions/getxattr.texi: Likewise.
87141         * doc/glibc-functions/lgetxattr.texi: Likewise.
87142         * doc/glibc-functions/listxattr.texi: Likewise.
87143         * doc/glibc-functions/llistxattr.texi: Likewise.
87144         * doc/glibc-functions/lremovexattr.texi: Likewise.
87145         * doc/glibc-functions/lsetxattr.texi: Likewise.
87146         * doc/glibc-functions/removexattr.texi: Likewise.
87147         * doc/glibc-functions/setxattr.texi: Likewise.
87148         * doc/posix-functions/open_memstream.texi: Likewise.
87150 2008-12-15  Eric Blake  <ebb9@byu.net>
87152         Update doc for cygwin 1.7.
87153         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
87154         functions.
87155         * doc/posix-functions/fchmodat.texi: Likewise.
87156         * doc/posix-functions/fchownat.texi: Likewise.
87157         * doc/posix-functions/fdopendir.texi: Likewise.
87158         * doc/posix-functions/fmemopen.texi: Likewise.
87159         * doc/posix-functions/freeaddrinfo.texi: Likewise.
87160         * doc/posix-functions/fstatat.texi: Likewise.
87161         * doc/posix-functions/futimens.texi: Likewise.
87162         * doc/posix-functions/gai_strerror.texi: Likewise.
87163         * doc/posix-functions/getaddrinfo.texi: Likewise.
87164         * doc/posix-functions/getnameinfo.texi: Likewise.
87165         * doc/posix-functions/if_freenameindex.texi: Likewise.
87166         * doc/posix-functions/if_indextoname.texi: Likewise.
87167         * doc/posix-functions/if_nameindex.texi: Likewise.
87168         * doc/posix-functions/if_nametoindex.texi: Likewise.
87169         * doc/posix-functions/insque.texi: Likewise.
87170         * doc/posix-functions/linkat.texi: Likewise.
87171         * doc/posix-functions/llrint.texi: Likewise.
87172         * doc/posix-functions/llrintf.texi: Likewise.
87173         * doc/posix-functions/llrintl.texi: Likewise.
87174         * doc/posix-functions/lockf.texi: Likewise.
87175         * doc/posix-functions/lrintl.texi: Likewise.
87176         * doc/posix-functions/mkdirat.texi: Likewise.
87177         * doc/posix-functions/mkfifoat.texi: Likewise.
87178         * doc/posix-functions/mknodat.texi: Likewise.
87179         * doc/posix-functions/mq_close.texi: Likewise.
87180         * doc/posix-functions/mq_getattr.texi: Likewise.
87181         * doc/posix-functions/mq_notify.texi: Likewise.
87182         * doc/posix-functions/mq_open.texi: Likewise.
87183         * doc/posix-functions/mq_receive.texi: Likewise.
87184         * doc/posix-functions/mq_send.texi: Likewise.
87185         * doc/posix-functions/mq_setattr.texi: Likewise.
87186         * doc/posix-functions/mq_timedreceive.texi: Likewise.
87187         * doc/posix-functions/mq_timedsend.texi: Likewise.
87188         * doc/posix-functions/mq_unlink.texi: Likewise.
87189         * doc/posix-functions/open_memstream.texi: Likewise.
87190         * doc/posix-functions/openat.texi: Likewise.
87191         * doc/posix-functions/posix_fadvise.texi: Likewise.
87192         * doc/posix-functions/posix_fallocate.texi: Likewise.
87193         * doc/posix-functions/posix_madvise.texi: Likewise.
87194         * doc/posix-functions/posix_memalign.texi: Likewise.
87195         * doc/posix-functions/posix_openpt.texi: Likewise.
87196         * doc/posix-functions/readlinkat.texi: Likewise.
87197         * doc/posix-functions/remque.texi: Likewise.
87198         * doc/posix-functions/renameat.texi: Likewise.
87199         * doc/posix-functions/rintl.texi: Likewise.
87200         * doc/posix-functions/sem_unlink.texi: Likewise.
87201         * doc/posix-functions/shm_open.texi: Likewise.
87202         * doc/posix-functions/shm_unlink.texi: Likewise.
87203         * doc/posix-functions/signgam.texi: Likewise.
87204         * doc/posix-functions/sigset.texi: Likewise.
87205         * doc/posix-functions/stpcpy.texi: Likewise.
87206         * doc/posix-functions/stpncpy.texi: Likewise.
87207         * doc/posix-functions/strerror.texi: Likewise.
87208         * doc/posix-functions/strtod.texi: Likewise.
87209         * doc/posix-functions/symlinkat.texi: Likewise.
87210         * doc/posix-functions/unlinkat.texi: Likewise.
87211         * doc/posix-functions/utimensat.texi: Likewise.
87212         * doc/glibc-functions/bindresvport.texi: Likewise.
87213         * doc/glibc-functions/dn_expand.texi: Likewise.
87214         * doc/glibc-functions/exp10.texi: Likewise.
87215         * doc/glibc-functions/exp10f.texi: Likewise.
87216         * doc/glibc-functions/fgetxattr.texi: Likewise.
87217         * doc/glibc-functions/flistxattr.texi: Likewise.
87218         * doc/glibc-functions/fopencookie.texi: Likewise.
87219         * doc/glibc-functions/freeifaddrs.texi: Likewise.
87220         * doc/glibc-functions/fremovexattr.texi: Likewise.
87221         * doc/glibc-functions/fsetxattr.texi: Likewise.
87222         * doc/glibc-functions/getifaddrs.texi: Likewise.
87223         * doc/glibc-functions/getxattr.texi: Likewise.
87224         * doc/glibc-functions/lgetxattr.texi: Likewise.
87225         * doc/glibc-functions/listxattr.texi: Likewise.
87226         * doc/glibc-functions/llistxattr.texi: Likewise.
87227         * doc/glibc-functions/lremovexattr.texi: Likewise.
87228         * doc/glibc-functions/lsetxattr.texi: Likewise.
87229         * doc/glibc-functions/pow10.texi: Likewise.
87230         * doc/glibc-functions/pow10f.texi: Likewise.
87231         * doc/glibc-functions/rcmd_af.texi: Likewise.
87232         * doc/glibc-functions/removexattr.texi: Likewise.
87233         * doc/glibc-functions/res_init.texi: Likewise.
87234         * doc/glibc-functions/res_mkquery.texi: Likewise.
87235         * doc/glibc-functions/res_query.texi: Likewise.
87236         * doc/glibc-functions/res_querydomain.texi: Likewise.
87237         * doc/glibc-functions/res_send.texi: Likewise.
87238         * doc/glibc-functions/rresvport_af.texi: Likewise.
87239         * doc/glibc-functions/setxattr.texi: Likewise.
87240         * doc/glibc-functions/strcasestr.texi: Likewise.
87242 2008-12-15  Bruno Haible  <bruno@clisp.org>
87244         Fix compilation error on OSF/1 4.0.
87245         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
87246         <sys/time.h>, simply delegate to the system header.
87247         Reported by Daniel Richard G. <oss@teragram.com>.
87249 2008-12-15  Bruno Haible  <bruno@clisp.org>
87251         * doc/posix-functions/openat.texi: Mention the 'openat' module.
87252         * doc/posix-functions/fchmodat.texi: Likewise.
87253         * doc/posix-functions/fchownat.texi: Likewise.
87254         * doc/posix-functions/fdopendir.texi: Likewise.
87255         * doc/posix-functions/fstatat.texi: Likewise.
87256         * doc/posix-functions/mkdirat.texi: Likewise.
87257         * doc/posix-functions/unlinkat.texi: Likewise.
87259 2008-12-14  Bruno Haible  <bruno@clisp.org>
87261         Update doc for POSIX:2008.
87262         * doc/posix-functions/faccessat.texi: New file.
87263         * doc/posix-functions/fchmodat.texi: New file.
87264         * doc/posix-functions/fchownat.texi: New file.
87265         * doc/posix-functions/fdopendir.texi: New file.
87266         * doc/posix-functions/fstatat.texi: New file.
87267         * doc/posix-functions/futimens.texi: New file.
87268         * doc/posix-functions/linkat.texi: New file.
87269         * doc/posix-functions/mkdirat.texi: New file.
87270         * doc/posix-functions/mkfifoat.texi: New file.
87271         * doc/posix-functions/mknodat.texi: New file.
87272         * doc/posix-functions/open_wmemstream.texi: New file.
87273         * doc/posix-functions/openat.texi: New file.
87274         * doc/posix-functions/psiginfo.texi: New file.
87275         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
87276         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
87277         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
87278         * doc/posix-functions/readlinkat.texi: New file.
87279         * doc/posix-functions/renameat.texi: New file.
87280         * doc/posix-functions/strerror_l.texi: New file.
87281         * doc/posix-functions/symlinkat.texi: New file.
87282         * doc/posix-functions/unlinkat.texi: New file.
87283         * doc/posix-functions/utimensat.texi: New file.
87284         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87286 2008-12-14  Bruno Haible  <bruno@clisp.org>
87288         Update doc for POSIX:2008.
87289         * doc/posix-functions/alphasort.texi: Renamed from
87290         doc/glibc-functions/alphasort.texi.
87291         * doc/posix-functions/dirfd.texi: Renamed from
87292         doc/glibc-functions/dirfd.texi.
87293         * doc/posix-functions/dprintf.texi: Renamed from
87294         doc/glibc-functions/dprintf.texi.
87295         * doc/posix-functions/duplocale.texi: Renamed from
87296         doc/glibc-functions/duplocale.texi.
87297         * doc/posix-functions/fexecve.texi: Renamed from
87298         doc/glibc-functions/fexecve.texi.
87299         * doc/posix-functions/fmemopen.texi: Renamed from
87300         doc/glibc-functions/fmemopen.texi.
87301         * doc/posix-functions/freelocale.texi: Renamed from
87302         doc/glibc-functions/freelocale.texi.
87303         * doc/posix-functions/getdate_err.texi: Renamed from
87304         doc/glibc-functions/getdate_err.texi.
87305         * doc/posix-functions/isalnum_l.texi: Renamed from
87306         doc/glibc-functions/isalnum_l.texi.
87307         * doc/posix-functions/isalpha_l.texi: Renamed from
87308         doc/glibc-functions/isalpha_l.texi.
87309         * doc/posix-functions/isblank_l.texi: Renamed from
87310         doc/glibc-functions/isblank_l.texi.
87311         * doc/posix-functions/iscntrl_l.texi: Renamed from
87312         doc/glibc-functions/iscntrl_l.texi.
87313         * doc/posix-functions/isdigit_l.texi: Renamed from
87314         doc/glibc-functions/isdigit_l.texi.
87315         * doc/posix-functions/isgraph_l.texi: Renamed from
87316         doc/glibc-functions/isgraph_l.texi.
87317         * doc/posix-functions/islower_l.texi: Renamed from
87318         doc/glibc-functions/islower_l.texi.
87319         * doc/posix-functions/isprint_l.texi: Renamed from
87320         doc/glibc-functions/isprint_l.texi.
87321         * doc/posix-functions/ispunct_l.texi: Renamed from
87322         doc/glibc-functions/ispunct_l.texi.
87323         * doc/posix-functions/isspace_l.texi: Renamed from
87324         doc/glibc-functions/isspace_l.texi.
87325         * doc/posix-functions/isupper_l.texi: Renamed from
87326         doc/glibc-functions/isupper_l.texi.
87327         * doc/posix-functions/iswalnum_l.texi: Renamed from
87328         doc/glibc-functions/iswalnum_l.texi.
87329         * doc/posix-functions/iswalpha_l.texi: Renamed from
87330         doc/glibc-functions/iswalpha_l.texi.
87331         * doc/posix-functions/iswblank_l.texi: Renamed from
87332         doc/glibc-functions/iswblank_l.texi.
87333         * doc/posix-functions/iswcntrl_l.texi: Renamed from
87334         doc/glibc-functions/iswcntrl_l.texi.
87335         * doc/posix-functions/iswctype_l.texi: Renamed from
87336         doc/glibc-functions/iswctype_l.texi.
87337         * doc/posix-functions/iswdigit_l.texi: Renamed from
87338         doc/glibc-functions/iswdigit_l.texi.
87339         * doc/posix-functions/iswgraph_l.texi: Renamed from
87340         doc/glibc-functions/iswgraph_l.texi.
87341         * doc/posix-functions/iswlower_l.texi: Renamed from
87342         doc/glibc-functions/iswlower_l.texi.
87343         * doc/posix-functions/iswprint_l.texi: Renamed from
87344         doc/glibc-functions/iswprint_l.texi.
87345         * doc/posix-functions/iswpunct_l.texi: Renamed from
87346         doc/glibc-functions/iswpunct_l.texi.
87347         * doc/posix-functions/iswspace_l.texi: Renamed from
87348         doc/glibc-functions/iswspace_l.texi.
87349         * doc/posix-functions/iswupper_l.texi: Renamed from
87350         doc/glibc-functions/iswupper_l.texi.
87351         * doc/posix-functions/iswxdigit_l.texi: Renamed from
87352         doc/glibc-functions/iswxdigit_l.texi.
87353         * doc/posix-functions/isxdigit_l.texi: Renamed from
87354         doc/glibc-functions/isxdigit_l.texi.
87355         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
87356         doc/glibc-functions/mbsnrtowcs.texi.
87357         * doc/posix-functions/mkdtemp.texi: Renamed from
87358         doc/glibc-functions/mkdtemp.texi.
87359         * doc/posix-functions/newlocale.texi: Renamed from
87360         doc/glibc-functions/newlocale.texi.
87361         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
87362         doc/glibc-functions/nl_langinfo_l.texi.
87363         * doc/posix-functions/open_memstream.texi: Renamed from
87364         doc/glibc-functions/open_memstream.texi.
87365         * doc/posix-functions/opterr.texi: Renamed from
87366         doc/glibc-functions/opterr.texi.
87367         * doc/posix-functions/optind.texi: Renamed from
87368         doc/glibc-functions/optind.texi.
87369         * doc/posix-functions/optopt.texi: Renamed from
87370         doc/glibc-functions/optopt.texi.
87371         * doc/posix-functions/psignal.texi: Renamed from
87372         doc/glibc-functions/psignal.texi.
87373         * doc/posix-functions/scandir.texi: Renamed from
87374         doc/glibc-functions/scandir.texi.
87375         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
87376         doc/glibc-functions/sched_get_priority_min.texi.
87377         * doc/posix-functions/signgam.texi: Renamed from
87378         doc/glibc-functions/signgam.texi.
87379         * doc/posix-functions/stpcpy.texi: Renamed from
87380         doc/glibc-functions/stpcpy.texi.
87381         * doc/posix-functions/stpncpy.texi: Renamed from
87382         doc/glibc-functions/stpncpy.texi.
87383         * doc/posix-functions/strcasecmp_l.texi: Renamed from
87384         doc/glibc-functions/strcasecmp_l.texi.
87385         * doc/posix-functions/strcoll_l.texi: Renamed from
87386         doc/glibc-functions/strcoll_l.texi.
87387         * doc/posix-functions/strfmon_l.texi: Renamed from
87388         doc/glibc-functions/strfmon_l.texi.
87389         * doc/posix-functions/strftime_l.texi: Renamed from
87390         doc/glibc-functions/strftime_l.texi.
87391         * doc/posix-functions/strncasecmp_l.texi: Renamed from
87392         doc/glibc-functions/strncasecmp_l.texi.
87393         * doc/posix-functions/strndup.texi: Renamed from
87394         doc/glibc-functions/strndup.texi.
87395         * doc/posix-functions/strnlen.texi: Renamed from
87396         doc/glibc-functions/strnlen.texi.
87397         * doc/posix-functions/strsignal.texi: Renamed from
87398         doc/glibc-functions/strsignal.texi.
87399         * doc/posix-functions/strxfrm_l.texi: Renamed from
87400         doc/glibc-functions/strxfrm_l.texi.
87401         * doc/posix-functions/timer_gettime.texi: Renamed from
87402         doc/glibc-functions/timer_gettime.texi.
87403         * doc/posix-functions/tolower_l.texi: Renamed from
87404         doc/glibc-functions/tolower_l.texi.
87405         * doc/posix-functions/toupper_l.texi: Renamed from
87406         doc/glibc-functions/toupper_l.texi.
87407         * doc/posix-functions/towctrans_l.texi: Renamed from
87408         doc/glibc-functions/towctrans_l.texi.
87409         * doc/posix-functions/towlower_l.texi: Renamed from
87410         doc/glibc-functions/towlower_l.texi.
87411         * doc/posix-functions/towupper_l.texi: Renamed from
87412         doc/glibc-functions/towupper_l.texi.
87413         * doc/posix-functions/uselocale.texi: Renamed from
87414         doc/glibc-functions/uselocale.texi.
87415         * doc/posix-functions/vdprintf.texi: Renamed from
87416         doc/glibc-functions/vdprintf.texi.
87417         * doc/posix-functions/wcpcpy.texi:
87418         Renamed from doc/glibc-functions/wcpcpy.texi.
87419         * doc/posix-functions/wcpncpy.texi: Renamed from
87420         doc/glibc-functions/wcpncpy.texi.
87421         * doc/posix-functions/wcscasecmp.texi: Renamed from
87422         doc/glibc-functions/wcscasecmp.texi.
87423         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
87424         doc/glibc-functions/wcscasecmp_l.texi.
87425         * doc/posix-functions/wcscoll_l.texi: Renamed from
87426         doc/glibc-functions/wcscoll_l.texi.
87427         * doc/posix-functions/wcsdup.texi: Renamed from
87428         doc/glibc-functions/wcsdup.texi.
87429         * doc/posix-functions/wcsncasecmp.texi: Renamed from
87430         doc/glibc-functions/wcsncasecmp.texi.
87431         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
87432         doc/glibc-functions/wcsncasecmp_l.texi.
87433         * doc/posix-functions/wcsnlen.texi: Renamed from
87434         doc/glibc-functions/wcsnlen.texi.
87435         * doc/posix-functions/wcsnrtombs.texi: Renamed from
87436         doc/glibc-functions/wcsnrtombs.texi.
87437         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
87438         doc/glibc-functions/wcsxfrm_l.texi.
87439         * doc/posix-functions/wctrans_l.texi: Renamed from
87440         doc/glibc-functions/wctrans_l.texi.
87441         * doc/posix-functions/wctype_l.texi: Renamed from
87442         doc/glibc-functions/wctype_l.texi.
87443         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87444         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
87445         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
87446         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
87447         these subsections.
87448         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
87449         Remove sections.
87451 2008-12-14  Bruno Haible  <bruno@clisp.org>
87453         Update doc for POSIX:2008.
87454         * doc/posix-functions/*.texi: Update URL of POSIX specification.
87456 2008-12-14  Bruno Haible  <bruno@clisp.org>
87458         Update doc for POSIX:2008.
87459         * doc/pastposix-functions/bcmp.texi: Renamed from
87460         doc/posix-functions/bcmp.texi.
87461         * doc/pastposix-functions/bcopy.texi: Renamed from
87462         doc/posix-functions/bcopy.texi.
87463         * doc/pastposix-functions/bsd_signal.texi: Renamed from
87464         doc/posix-functions/bsd_signal.texi.
87465         * doc/pastposix-functions/bzero.texi: Renamed from
87466         doc/posix-functions/bzero.texi.
87467         * doc/pastposix-functions/ecvt.texi: Renamed from
87468         doc/posix-functions/ecvt.texi.
87469         * doc/pastposix-functions/fcvt.texi: Renamed from
87470         doc/posix-functions/fcvt.texi.
87471         * doc/pastposix-functions/ftime.texi: Renamed from
87472         doc/posix-functions/ftime.texi.
87473         * doc/pastposix-functions/gcvt.texi: Renamed from
87474         doc/posix-functions/gcvt.texi.
87475         * doc/pastposix-functions/getcontext.texi: Renamed from
87476         doc/posix-functions/getcontext.texi.
87477         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
87478         doc/posix-functions/gethostbyaddr.texi.
87479         * doc/pastposix-functions/gethostbyname.texi: Renamed from
87480         doc/posix-functions/gethostbyname.texi.
87481         * doc/pastposix-functions/getwd.texi: Renamed from
87482         doc/posix-functions/getwd.texi.
87483         * doc/pastposix-functions/h_errno.texi: Renamed from
87484         doc/posix-functions/h_errno.texi.
87485         * doc/pastposix-functions/index.texi: Renamed from
87486         doc/posix-functions/index.texi.
87487         * doc/pastposix-functions/makecontext.texi: Renamed from
87488         doc/posix-functions/makecontext.texi.
87489         * doc/pastposix-functions/mktemp.texi: Renamed from
87490         doc/posix-functions/mktemp.texi.
87491         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
87492         doc/posix-functions/pthread_attr_getstackaddr.texi.
87493         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
87494         doc/posix-functions/pthread_attr_setstackaddr.texi.
87495         * doc/pastposix-functions/rindex.texi: Renamed from
87496         doc/posix-functions/rindex.texi.
87497         * doc/pastposix-functions/scalb.texi: Renamed from
87498         doc/posix-functions/scalb.texi.
87499         * doc/pastposix-functions/setcontext.texi: Renamed from
87500         doc/posix-functions/setcontext.texi.
87501         * doc/pastposix-functions/swapcontext.texi: Renamed from
87502         doc/posix-functions/swapcontext.texi.
87503         * doc/pastposix-functions/ualarm.texi: Renamed from
87504         doc/posix-functions/ualarm.texi.
87505         * doc/pastposix-functions/usleep.texi: Renamed from
87506         doc/posix-functions/usleep.texi.
87507         * doc/pastposix-functions/vfork.texi: Renamed from
87508         doc/posix-functions/vfork.texi.
87509         * doc/pastposix-functions/wcswcs.texi: Renamed from
87510         doc/posix-functions/wcswcs.texi.
87511         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
87512         (Function Substitutes): Update.
87514 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87516         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
87517         m4/strerror.m4.
87519 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87520             Bruno Haible  <bruno@clisp.org>
87522         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
87524 2008-12-13  Bruno Haible  <bruno@clisp.org>
87526         * modules/strtoull (Depends-on): Remove unistd.
87528 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87530         * modules/strtoull (Depends-on): Add stdlib.
87532 2008-12-11  Simon Josefsson  <simon@josefsson.org>
87534         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
87536 2008-12-10  Jim Meyering  <meyering@redhat.com>
87538         gl_ASSERT: don't say assertions are disabled when they're not
87539         * m4/assert.m4 (gl_ASSERT): Do not make configure report
87540         "checking whether to enable assertions... no", when they are in
87541         fact enabled.  This is solely a bug in the output of configure.
87542         In spite of saying "no", NDEBUG was not defined in that case.
87543         Also, as noted by Eric Blake, leave assertions enabled upon
87544         --enable-assert=INVALID.
87546 2008-12-10  Bruno Haible  <bruno@clisp.org>
87548         Change MODULES.html to refer to POSIX:2008 where possible.
87549         * MODULES.html.sh (POSIX2008_URL): New variable.
87550         (posix_headers): Remove sys/timeb, ucontext.
87551         (posix2001_headers): New variable.
87552         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
87553         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
87554         index, makecontext, mktemp, pthread_attr_getstackaddr,
87555         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
87556         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
87557         (posix2001_functions): New variable.
87558         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
87559         otherwise.
87561 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87563         add missing include to parse-duration.c
87564         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
87565         * modules/parse-duration (Depends-on): Add xalloc.
87567         fix sed script reading maint.mk
87568         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
87569         (syntax-check-rules): Use it.
87571 2008-12-09  Bruno Haible  <bruno@clisp.org>
87573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
87574         MacOS X 10.4/PowerPC.
87575         Reported by Simon Josefsson.
87577 2008-12-08  Jim Meyering  <meyering@redhat.com>
87579         work around mingw's lack of some S_IF definitions
87580         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
87581         Reported by Simon Josefsson.
87583 2008-12-08  Bruno Haible  <bruno@clisp.org>
87585         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
87586         applied to variables. Needed on MacOS X 10.4/PowerPC.
87587         Reported by Simon Josefsson.
87589 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
87590         and Eric Blake  <ebb9@byu.net>
87592         assert: honor --enable-assert
87593         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
87594         order to honor --enable-assert, rather than treating it as a
87595         synonym for --disable-assert.
87597 2008-12-08  Jim Meyering  <meyering@redhat.com>
87599         * lib/posixtm.c: Remove now-useless declaration of mktime.
87601         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
87603 2008-12-07  Bruno Haible  <bruno@clisp.org>
87605         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
87606         test_once): Mark functions as static.
87607         * tests/test-tls.c (test_tls): Likewise.
87609 2008-12-07  Bruno Haible  <bruno@clisp.org>
87611         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
87612         iconv_register_autodetect.
87614 2008-12-07  Jim Meyering  <meyering@redhat.com>
87616         posixtm.c: avoid a warning
87617         * lib/posixtm.c (posixtime): Don't initialize tm0.
87618         It's no longer needed to placate gcc4's -Wuninitialized,
87619         and the attempt to placate would elicit a new warning.
87621         unicodeio.c: mark unused parameters
87622         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
87623         (fallback_failure_callback): Likewise.
87625 2008-12-07  Bruno Haible  <bruno@clisp.org>
87627         * gnulib-tool (func_create_testdir): When building the tests
87628         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
87629         Reported by Simon Josefsson.
87631 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87633         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
87635 2008-12-06  Bruno Haible  <bruno@clisp.org>
87637         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
87638         Suggested by Eric Blake.
87640 2008-12-06  Bruno Haible  <bruno@clisp.org>
87642         Fix a c-stack test failure on MacOS X.
87643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
87644         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
87645         handler for SIGBUS as well.
87646         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
87647         install a signal handler for SIGBUS as well.
87648         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
87650 2008-12-06  Bruno Haible  <bruno@clisp.org>
87652         Advocacy documentation.
87653         * doc/gnulib-intro.texi (Benefits): New section.
87654         * doc/gnulib.texi: Update.
87656 2008-12-06  Bruno Haible  <bruno@clisp.org>
87658         Document the 'manywarnings' module.
87659         * doc/manywarnings.texi: New file.
87660         * doc/gnulib.texi: Include it.
87662 2008-12-05  Eric Blake  <ebb9@byu.net>
87664         tests: silence some gcc warnings
87665         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
87666         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
87667         type mismatches.
87669 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87670             Bruno Haible  <bruno@clisp.org>
87672         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
87674 2008-11-29  Jim Meyering  <meyering@redhat.com>
87676         unicodeio.c: mark unused parameters
87677         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
87678         (fallback_failure_callback): Likewise.
87680         fts: fix a thinko
87681         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
87682         (set_stat_type): Return S_IF*-valued "type" directly.
87683         Prompted by James Youngman's spotting a related bug.
87684         Confirmed by further testing through find.
87686         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
87687         * lib/fts.c (D_TYPE): Define.
87688         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
87689         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
87690         (s_ifmt_shift_bits): New function.
87691         (set_stat_type): New function.
87692         (fts_build): When not calling fts_stat, call set_stat_type
87693         to propagate dirent.d_type info to fts_read caller.
87694         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
87695         fts_statp->st_mode type information may be valid.
87697 2008-11-28  Simon Josefsson  <simon@josefsson.org>
87699         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
87700         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
87701         <sds@gnu.org>.
87703 2008-11-20  Bruno Haible  <bruno@clisp.org>
87705         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
87706         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
87707         INCLUDE_NEXT.
87708         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
87709         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
87710         * modules/math (Makefile.am): Substitute
87711         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
87712         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87714 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
87715             Bruno Haible  <bruno@clisp.org>
87717         * lib/stdint.in.h: Define all type macros so that their expansion is
87718         a single typedef'ed token. Fixes a compilation failure in Boost which
87719         does "using ::int8_t;".
87721 2008-11-18  Simon Josefsson  <simon@josefsson.org>
87723         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
87724         gl_MANYWARN_ALL_GCC.
87725         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
87726         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
87727         * modules/manywarnings: New file.
87728         * MODULES.html.sh: Mention manywarnings module.
87730 2008-11-18  Bruno Haible  <bruno@clisp.org>
87732         * doc/gnulib-tool.texi (Unit tests): New section.
87734 2008-11-18  Simon Josefsson  <simon@josefsson.org>
87736         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
87737         paths like 'lib/po/foo.po'.
87739 2008-11-17  Simon Josefsson  <simon@josefsson.org>
87741         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
87742         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
87744 2008-11-17  Simon Josefsson  <simon@josefsson.org>
87746         * m4/warnings.m4: Use CPPFLAGS to really check whether the
87747         parameter works.
87749 2008-11-17  Simon Josefsson  <simon@josefsson.org>
87751         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
87753 2008-11-17  Bruce Korb  <bkorb@gnu.org>
87755         * modules/parse-duration-tests: New file.
87756         * tests/test-parse-duration.sh: New file.
87757         * tests/test-parse-duration.c: New file.
87759         New module 'parse-duration'.
87760         * lib/parse-duration.h: New file.
87761         * lib/parse-duration.c: New file.
87762         * modules/parse-duration: New file.
87764 2008-11-17  Bruno Haible  <bruno@clisp.org>
87766         * tests/test-select-out.sh: Comment out the first pipe test.
87767         Reported by Simon Josefsson.
87769 2008-11-17  Bruno Haible  <bruno@clisp.org>
87771         * modules/getaddrinfo (Depends-on): Add servent, hostent.
87772         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
87773         gl_HOSTENT.
87775 2008-11-17  Bruno Haible  <bruno@clisp.org>
87777         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
87778         -lnetwork and -lnet. Needed for Haiku and BeOS.
87780 2008-11-16  Bruno Haible  <bruno@clisp.org>
87782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
87784 2008-11-16  Bruno Haible  <bruno@clisp.org>
87786         Avoid test failure on Haiku.
87787         * tests/test-fsync.c: Include <errno.h>.
87788         (main): Don't require that fsync (0) fails.
87790 2008-11-15  Bruno Haible  <bruno@clisp.org>
87792         New module 'hostent'.
87793         * modules/hostent: New file.
87794         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
87796 2008-11-15  Bruno Haible  <bruno@clisp.org>
87798         New module 'servent'.
87799         * modules/servent: New file.
87800         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
87802 2008-11-15  Bruno Haible  <bruno@clisp.org>
87804         Avoid generating same test program with two different rules.
87805         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
87806         test-frexp to test-frexp-nolibm.
87807         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
87808         test-frexpl to test-frexpl-nolibm.
87810 2008-11-15  Bruno Haible  <bruno@clisp.org>
87812         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
87813         $(FREXPL_LIBM).
87815 2008-11-15  Bruno Haible  <bruno@clisp.org>
87817         * lib/netdb.in.h: Activate the definitions also when the system's
87818         <netdb.h> has 'struct addrinfo'.
87819         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
87820         EAI_OVERFLOW or AI_NUMERICSERV.
87821         * doc/posix-headers/netdb.texi: Document the problem.
87823 2008-11-15  Bruno Haible  <bruno@clisp.org>
87825         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
87827         Make the 'sched' module work on platforms where <sched.h> exists but
87828         is incomplete (such as Haiku).
87829         * lib/sched.in.h; Include the system's <sched.h> if it exists.
87830         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
87831         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
87832         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
87833         HAVE_STRUCT_SCHED_PARAM.
87834         * modules/sched (Depends-on): Add include_next.
87835         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
87836         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
87837         * doc/posix-headers/sched.texi: Document the issue.
87839 2008-11-13  Jim Meyering  <meyering@redhat.com>
87841         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
87842         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
87843         test would fail due to the difference in the Report bugs to ...
87844         line.  The expected address is empty, "<>", while the actual
87845         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
87847 2008-11-12  Bruno Haible  <bruno@clisp.org>
87849         lstat: don't compile lstat.c on systems lacking lstat
87850         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
87851         which don't have lstat; this is handled by lib/sys_stat.in.h already.
87852         Reported by Daniel P. Berrange via Jim Meyering.
87854 2008-11-12  Jim Meyering  <meyering@redhat.com>
87856         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
87858 2008-11-12  Simon Josefsson  <simon@josefsson.org>
87860         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
87861         instead.
87863 2008-11-12  Bruno Haible  <bruno@clisp.org>
87865         * lib/unicodeio.c: Include unistr.h.
87866         (utf8_wctomb): Remove function.
87867         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
87869 2008-11-12  Simon Josefsson  <simon@josefsson.org>
87871         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
87872         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
87873         <bruno@clisp.org>.
87874         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
87876 2008-11-12  Simon Josefsson  <simon@josefsson.org>
87878         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
87879         * doc/gnulib.texi: Add section for warnings.
87881 2008-11-11  Bruno Haible  <bruno@clisp.org>
87883         * lib/sockets.h: Add a comment.
87885 2008-11-11  Karl Berry  <karl@gnu.org>
87887         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
87889 2008-11-11  Eric Blake  <ebb9@byu.net>
87891         fdl.texi: avoid git symlinks
87892         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
87894 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
87896         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
87898 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
87900         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
87901         (gl_WARN_ADD): Substitute $2 if literal.
87903 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
87905         * m4/warning.m4: Remove.
87907 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
87909         * m4/warnings.m4: Almost complete rewrite. :-)
87911 2008-11-10  Simon Josefsson  <simon@josefsson.org>
87913         * modules/warnings: New module.
87914         * m4/warnings.m4: New file.
87915         * MODULES.html.sh: Mention warnings module.
87916         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
87917         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
87919 2008-11-10  Eric Blake  <ebb9@byu.net>
87921         fdl.texi: make a symlink to the latest version
87922         * doc/standards.texi: Revert today's earlier change.
87923         * doc/fdl-1.2.texi: Rename from old fdl.texi...
87924         * doc/fdl.texi: ...and replace this with a symlink to the newer
87925         fdl-1.3.texi.
87927 2008-11-10  Bruno Haible  <bruno@clisp.org>
87929         * tests/test-select-fd.c (main): Accept the result file name as fourth
87930         argument.
87931         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
87932         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
87934 2008-11-10  Bruno Haible  <bruno@clisp.org>
87936         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
87937         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
87938         as autoconf-substituted macros.
87939         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
87940         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
87941         gl_NETDB_H_DEFAULTS. Set these variables.
87942         * modules/netdb (Makefile.am): Substitute these variables.
87944 2008-11-10  Eric Blake  <ebb9@byu.net>
87946         standards.texi: include correct file for FDL 1.3
87947         * doc/standards.texi (GNU Free Documentation License): Change
87948         include file to pull in FDL 1.3, not 1.2.
87950         fdl.texi: revert accidental change to license
87951         * doc/fdl.texi: This is FDL 1.2, not 1.3.
87953 2008-11-10  Bruno Haible  <bruno@clisp.org>
87955         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
87956         cross-compiling guesses also when the native compile gives no result.
87958 2008-11-10  Bruno Haible  <bruno@clisp.org>
87960         * lib/spawni.c (__spawni): Force variable into the stack.
87962 2008-11-10  Bruno Haible  <bruno@clisp.org>
87964         Add support for Haiku.
87965         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
87966         glibc and BeOS, but also on Haiku.
87967         * lib/fpurge.c (fpurge): Likewise.
87968         * lib/freadable.c (freadable): Likewise.
87969         * lib/freadahead.c (freadahead): Likewise.
87970         * lib/freading.c (freading): Likewise.
87971         * lib/freadptr.c (freadptr): Likewise.
87972         * lib/freadseek.c (freadptrinc): Likewise.
87973         * lib/fseeko.c (rpl_fseeko): Likewise.
87974         * lib/fseterr.c (fseterr): Likewise.
87975         * lib/fwritable.c (fwritable): Likewise.
87976         * lib/fwriting.c (fwriting): Likewise.
87977         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
87979 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
87981         * lib/config.charset: Treat Haiku like BeOS.
87983 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
87985         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
87986         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
87988 2008-11-08  Bruno Haible  <bruno@clisp.org>
87990         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
87991         AC_CACHE_CHECK.
87993 2008-11-08  Bruno Haible  <bruno@clisp.org>
87995         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
87997 2008-11-08  Bruno Haible  <bruno@clisp.org>
87999         * tests/test-select-fd.c: New file.
88000         * tests/test-select-in.sh: New file.
88001         * tests/test-select-out.sh: New file.
88002         * tests/test-select-stdin.c: New file.
88003         * modules/select-tests (Files): Add the new files.
88004         (Depends-on): Add gettimeofday.
88005         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
88006         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
88007         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
88009 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
88010             Bruno Haible  <bruno@clisp.org>
88012         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
88014 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
88016         * build-aux/pmccabe2html: Added support for C++ source files.
88018 2008-11-05  Ben Pfaff  <blp@gnu.org>
88020         Fix lib/close.c build on Windows.
88021         * modules/close (Files): Add lib/w32sock.h.
88023 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
88025         Accept Bison's NEWS format.
88026         * build-aux/announce-gen (print_news_deltas): Tweak
88027         $re_prefix.
88029 2008-11-04  Bruno Haible  <bruno@clisp.org>
88031         * modules/random_r (Maintainer): Add glibc.
88033 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88035         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
88036         by karl@freefriends.org (Karl Berry).
88037         * doc/alloca.texi: Likewise.
88038         * doc/c-ctype.texi: Likewise.
88039         * doc/c-strcase.texi: Likewise.
88040         * doc/c-strcaseeq.texi: Likewise.
88041         * doc/c-strcasestr.texi: Likewise.
88042         * doc/c-strstr.texi: Likewise.
88043         * doc/c-strtod.texi: Likewise.
88044         * doc/c-strtold.texi: Likewise.
88045         * doc/ctime.texi: Likewise.
88046         * doc/error.texi: Likewise.
88047         * doc/fdl.texi: Likewise.
88048         * doc/gcd.texi: Likewise.
88049         * doc/getdate.texi: Likewise.
88050         * doc/gnulib-intro.texi: Likewise.
88051         * doc/gnulib-tool.texi: Likewise.
88052         * doc/gnulib.texi: Likewise.
88053         * doc/inet_ntoa.texi: Likewise.
88054         * doc/maintain.texi: Likewise.
88055         * doc/make-stds.texi: Likewise.
88056         * doc/quote.texi: Likewise.
88057         * doc/regexprops-generic.texi: Likewise.
88058         * doc/standards.texi: Likewise.
88059         * doc/verify.texi: Likewise.
88060         * doc/visibility.texi: Likewise.
88061         * doc/gnulib.texi (GNU Free Documentation License): Include
88062         fdl-1.3.texi instead of fdl.texi.
88064 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88066         * doc/fdl-1.3.texi: New file, from
88067         <http://www.gnu.org/licenses/fdl-1.3.texi>.
88068         * modules/fdl-1.3: Add.
88069         * MODULES.html.sh: Add fdl-1.3.
88071 2008-11-03  Bruno Haible  <bruno@clisp.org>
88073         Make determination of absolute name of header file work with AIX xlc.
88074         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
88075         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
88076         preprocessing.
88077         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88078         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
88080 2008-11-03  Simon Josefsson  <simon@josefsson.org>
88082         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
88083         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
88084         <ludo@gnu.org>.
88086 2008-11-02  Bruno Haible  <bruno@clisp.org>
88088         Mark 'strpbrk' obsolete.
88089         * modules/strpbrk (Status, Notice): New sections.
88090         * modules/strtok_r (Depends-on): Add strpbrk.
88092 2008-11-02  Bruno Haible  <bruno@clisp.org>
88094         Mark 'strdup' obsolete.
88095         * modules/strdup (Status, Notice): New sections.
88096         * modules/findprog (Depends-on): Add strdup.
88097         * modules/getaddrinfo (Depends-on): Likewise.
88098         * modules/localename (Depends-on): Likewise.
88099         * modules/relocatable-lib (Depends-on): Likewise.
88100         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
88101         * modules/relocatable-prog (Depends-on): Likewise.
88102         * modules/trim (Depends-on): Likewise.
88103         * modules/unictype/gen-ctype (Depends-on): Likewise.
88104         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88106 2008-11-02  Bruno Haible  <bruno@clisp.org>
88108         Mark 'strcspn' obsolete.
88109         * modules/strcspn (Status, Notice): New sections.
88111 2008-11-02  Bruno Haible  <bruno@clisp.org>
88113         Mark 'rmdir' obsolete.
88114         * modules/rmdir (Status, Notice): New sections.
88115         * modules/clean-temp (Depends-on): Add rmdir.
88116         * modules/openat (Depends-on): Likewise.
88118 2008-11-02  Bruno Haible  <bruno@clisp.org>
88120         Mark 'raise' obsolete.
88121         * modules/raise (Status, Notice): New sections.
88122         (Include): Specify <signal.h>.
88123         * modules/stdio (Depends-on): Add raise.
88124         * modules/write (Depends-on): Likewise.
88126 2008-11-02  Bruno Haible  <bruno@clisp.org>
88128         Mark 'memset' obsolete.
88129         * modules/memset (Status, Notice): New sections.
88131 2008-11-02  Bruno Haible  <bruno@clisp.org>
88133         Mark 'memmove' obsolete.
88134         * modules/memmove (Status, Notice): New sections.
88135         * modules/argp (Depends-on): Add memmove.
88136         * modules/argz (Depends-on): Likewise.
88137         * modules/canonicalize (Depends-on): Likewise.
88138         * modules/canonicalize-lgpl (Depends-on): Likewise.
88139         * modules/fts (Depends-on): Likewise.
88140         * modules/getcwd (Depends-on): Likewise.
88141         * modules/human (Depends-on): Likewise.
88142         * modules/regex (Depends-on): Likewise.
88143         * modules/striconveh (Depends-on): Likewise.
88144         * modules/trim (Depends-on): Likewise.
88145         * modules/unistr/u8-move (Depends-on): Likewise.
88146         * modules/unistr/u16-move (Depends-on): Likewise.
88147         * modules/unistr/u32-move (Depends-on): Likewise.
88149 2008-11-02  Bruno Haible  <bruno@clisp.org>
88151         Mark 'memcpy' obsolete.
88152         * modules/memcpy (Status, Notice): New sections.
88154 2008-11-02  Bruno Haible  <bruno@clisp.org>
88156         Mark 'memcmp' obsolete.
88157         * modules/memcmp (Status, Notice): New sections.
88158         * modules/argmatch (Depends-on): Add memchr.
88159         * modules/backupfile (Depends-on): Likewise.
88160         * modules/c-strcasestr (Depends-on): Likewise.
88161         * modules/crypto/des (Depends-on): Likewise.
88162         * modules/csharpcomp (Depends-on): Likewise.
88163         * modules/fnmatch (Depends-on): Likewise.
88164         * modules/git-merge-changelog (Depends-on): Likewise.
88165         * modules/isnand (Depends-on): Likewise.
88166         * modules/isnand-nolibm (Depends-on): Likewise.
88167         * modules/isnanf (Depends-on): Likewise.
88168         * modules/isnanf-nolibm (Depends-on): Likewise.
88169         * modules/isnanl (Depends-on): Likewise.
88170         * modules/isnanl-nolibm (Depends-on): Likewise.
88171         * modules/mbchar (Depends-on): Likewise.
88172         * modules/memcoll (Depends-on): Likewise.
88173         * modules/quotearg (Depends-on): Likewise.
88174         * modules/regex (Depends-on): Likewise.
88175         * modules/relocatable-prog (Depends-on): Likewise.
88176         * modules/same (Depends-on): Likewise.
88177         * modules/signbit (Depends-on): Likewise.
88178         * modules/strcasestr-simple (Depends-on): Likewise.
88179         * modules/unictype/gen-ctype (Depends-on): Likewise.
88180         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88181         * modules/uniname/uniname (Depends-on): Likewise.
88182         * modules/unistr/u8-cmp (Depends-on): Likewise.
88184 2008-11-02  Bruno Haible  <bruno@clisp.org>
88186         Mark 'memchr' obsolete.
88187         * modules/memchr (Status, Notice): New sections.
88188         * modules/argp (Depends-on): Add memchr.
88189         * modules/base64 (Depends-on): Likewise.
88190         * modules/c-strcasestr (Depends-on): Likewise.
88191         * modules/chdir-long (Depends-on): Likewise.
88192         * modules/fnmatch (Depends-on): Likewise.
88193         * modules/getsubopt (Depends-on): Likewise.
88194         * modules/git-merge-changelog (Depends-on): Likewise.
88195         * modules/glob (Depends-on): Likewise.
88196         * modules/strcasestr-simple (Depends-on): Likewise.
88197         * modules/strnlen (Depends-on): Likewise.
88199 2008-11-02  Bruno Haible  <bruno@clisp.org>
88201         Mark 'atexit' obsolete.
88202         * modules/atexit (Status, Notice): New sections.
88203         * modules/chdir-long (Depends-on): Add atexit.
88204         * modules/wait-process (Depends-on): Likewise.
88206 2008-11-02  Bruno Haible  <bruno@clisp.org>
88208         * gnulib-tool: New option --with-obsolete.
88209         (func_usage): Document it.
88210         (func_modules_transitive_closure): Drop obsolete dependencies if
88211         incobsolete is not true.
88212         (func_import): Read and save the incobsolete variable to the cache.
88214 2008-11-02  Bruno Haible  <bruno@clisp.org>
88216         * modules/TEMPLATE-EXTENDED: New field 'Status'.
88217         * gnulib-tool: New option --extract-status.
88218         (func_usage): Document it.
88219         (sed_extract_prog): Recognize it.
88220         (func_get_status): New function.
88222 2008-10-30  Simon Josefsson  <simon@josefsson.org>
88224         * modules/sockets (License): Change from LGPL to LGPLv2+.
88226 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88228         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
88230 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88232         * MODULES.html.sh (Support for systems lacking POSIX:2001):
88233         Mention times and sys_times.
88234         * modules/sys_times, modules/sys_times-tests: New modules.
88235         * modules/times, modules/times-tests: Likewise
88236         * m4/sys_times_h.m4: New file.
88237         * lib/sys_times.in.h: Likewise
88238         * lib/times.c: Likewise.
88239         * tests/test-sys_times.c: Likewise.
88240         * tests/test-times.c: Likewise.
88241         * doc/posix-headers/sys_times.texi: Update.
88242         * doc/posix-functions/times.texi: Update.
88244 2008-10-28  Jim Meyering  <meyering@redhat.com>
88246         * modules/tempname (Depends-on): Add lstat.
88248         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
88250 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88252         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
88253         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
88254         using idiom used elsewhere in gnulib.
88256 2008-10-27  Jim Meyering  <meyering@redhat.com>
88258         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
88260 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88262         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
88263         TESTS_ENVIRONMENT, for shell scripts that needs to call built
88264         programs.
88265         * tests/test-argp-2.sh: Use $EXEEXT when needed.
88267 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88269         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
88271 2008-10-27  Bruno Haible  <bruno@clisp.org>
88273         * tests/test-lstat.c: Include <stdio.h>.
88275 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88277         * modules/lstat-tests: New module.
88278         * tests/test-lstat.c: New file.
88280 2008-10-26  Jim Meyering  <meyering@redhat.com>
88282         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
88284 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88285             Bruno Haible  <bruno@clisp.org>
88287         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
88288         * modules/configmake (Include): Add a note that the include must come
88289         after all system headers.
88290         * lib/javaversion.c: Include configmake.h after all other includes.
88292 2008-10-26  Bruno Haible  <bruno@clisp.org>
88294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
88295         HAVE_STRUCT_RANDOM_DATA to 1.
88296         (gl_STDLIB_H): Simplify.
88298 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88300         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
88301         substitute HAVE_STRUCT_RANDOM_DATA.
88302         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
88303         random_data.
88304         * modules/stdlib (Makefile.am): Substitute
88305         HAVE_STRUCT_RANDOM_DATA.
88307 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88309         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
88310         * doc/gnulib-intro.texi (Copyright): Likewise.
88312 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88314         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
88315         findings.
88317 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
88318             Bruno Haible  <bruno@clisp.org>
88320         * lib/unistd.in.h: Include <winsock2.h>.
88321         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
88322         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
88323         Provide dummy declarations.
88324         (gethostname): Override.
88325         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
88326         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
88327         gl_PREREQ_SYS_H_WINSOCK2.
88328         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
88329         * doc/posix-functions/gethostname.texi: More details.
88331 2008-10-25  Bruno Haible  <bruno@clisp.org>
88333         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
88334         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
88335         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
88337         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
88338         here ...
88339         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
88340         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
88341         gl_UNISTD_H_DEFAULTS.
88343 2008-10-25  Eric Blake  <ebb9@byu.net>
88345         signbit: avoid spurious compiler failure
88346         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
88347         declarations inside function.
88349 2008-10-24  Simon Josefsson  <simon@josefsson.org>
88350             Bruno Haible  <bruno@clisp.org>
88352         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
88353         * modules/random_r (Depends-on): Add stdint.
88355 2008-10-24  Bruno Haible  <bruno@clisp.org>
88357         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
88358         Eggert.
88359         * modules/strerror (License): Likewise.
88361 2008-10-24  Jim Meyering  <meyering@redhat.com>
88363         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
88364         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
88366 2008-10-24  Eric Blake  <ebb9@byu.net>
88368         getgroups: fix compilation when getgroups is available
88369         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
88370         but with <config.h> override of getgroups disabled.
88372 2008-10-24  Simon Josefsson  <simon@josefsson.org>
88374         * doc/gnulib.texi (Header files): Add note about C++ problems.
88375         Explained by Bruno Haible <bruno@clisp.org>.
88377 2008-10-23  Bruno Haible  <bruno@clisp.org>
88379         Define a dummy SA_NODEFER macro on Interix.
88380         * lib/signal.in.h (SA_NODEFER): Define fallback.
88381         Reported by Aleksey Cheusov <cheusov@tut.by> via
88382         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
88384 2008-10-23  Bruno Haible  <bruno@clisp.org>
88386         * modules/freadahead (License): Change to LGPLv2+.
88387         Suggested by Simon Josefsson.
88389 2008-10-23  Jim Meyering  <meyering@redhat.com>
88391         random_r: new module
88392         * modules/random_r: New file.
88393         * m4/random_r.m4: New file.
88394         * lib/random_r.c: New file, from glibc.
88395         * modules/random_r-tests: New file.
88396         * tests/test-random_r.c: New file.
88397         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
88398          Declare.
88399         (RAND_MAX): Define.
88400         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
88401         * modules/stdlib: Substitute them, too.
88402         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
88403         * doc/glibc-functions/initstate_r.texi: Mention the new module.
88404         * doc/glibc-functions/random_r.texi: Likewise.
88405         * doc/glibc-functions/setstate_r.texi: Likewise.
88406         * doc/glibc-functions/srandom_r.texi: Likewise.
88407         * config/srclist.txt: Mention it.
88409 2008-10-23  David Lutterkort  <lutter@redhat.com>
88411         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
88412         link requirement
88414 2008-10-23  Jim Meyering  <meyering@redhat.com>
88416         selinux-h: mark parameters of stub functions as intentionally unused
88417         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
88418         * lib/se-context.in.h: Likewise.
88420 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88422         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
88424 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88426         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
88428 2008-10-22  Eric Blake  <ebb9@byu.net>
88430         glthread/thread: avoid compiler warning
88431         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
88432         Add unreachable abort to silence compiler.
88434 2008-10-22  Eric Blake  <ebb9@byu.net>
88436         netdb: also supply struct addrinfo for cygwin 1.5.x
88437         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
88438         older cygwin.
88439         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
88440         cygwin.
88441         * doc/posix-headers/netdb.texi (netdb.h): Document this.
88443 2008-10-22  Bruno Haible  <bruno@clisp.org>
88445         * users.txt: Update entry about pspp.
88447 2008-10-21  Bruno Haible  <bruno@clisp.org>
88449         Simplification.
88450         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
88451         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
88453         Simplification.
88454         * lib/ioctl.c (ioctl): Don't undefine.
88455         * lib/socket.c (socket): Don't undefine.
88457         Remove unused module indicator macros.
88458         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
88459         GNULIB_$1 as a C macro.
88461         * doc/posix-functions/close.texi: Undo last change.
88462         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
88463         Windows platforms.
88465 2008-10-21  Bruno Haible  <bruno@clisp.org>
88467         Add gethostname() declaration to <unistd.h>.
88468         * lib/unistd.in.h (gethostname): New declaration.
88469         * lib/gethostname.c: Include <unistd.h>.
88470         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
88471         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
88472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
88473         and HAVE_GETHOSTNAME.
88474         * modules/gethostname (Depends-on): Add unistd.
88475         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88476         (Include): Specify <unistd.h>.
88477         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
88478         HAVE_GETHOSTNAME.
88479         * tests/test-gethostname.c: Include <unistd.h> first.
88481 2008-10-21  Bruno Haible  <bruno@clisp.org>
88483         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
88484         * modules/select-tests (Depends-on): Likewise.
88485         Reported by Simon Josefsson.
88487 2008-10-21  Simon Josefsson  <simon@josefsson.org>
88489         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
88490         * lib/accept.c: New file, based on winsock.c.
88491         * lib/bind.c: New file, based on winsock.c.
88492         * lib/connect.c: New file, based on winsock.c.
88493         * lib/getpeername.c: New file, based on winsock.c.
88494         * lib/getsockname.c: New file, based on winsock.c.
88495         * lib/getsockopt.c: New file, based on winsock.c.
88496         * lib/ioctl.c: New file, based on winsock.c.
88497         * lib/listen.c: New file, based on winsock.c.
88498         * lib/recv.c: New file, based on winsock.c.
88499         * lib/recvfrom.c: New file, based on winsock.c.
88500         * lib/send.c: New file, based on winsock.c.
88501         * lib/sendto.c: New file, based on winsock.c.
88502         * lib/setsockopt.c: New file, based on winsock.c.
88503         * lib/shutdown.c: New file, based on winsock.c.
88504         * lib/socket.c: New file, based on winsock.c.
88505         * lib/w32sock.h: New file, based on winsock.c.
88506         * lib/winsock.c: Remove file.
88507         * modules/accept: Likewise.
88508         * modules/bind: Likewise.
88509         * modules/connect: Likewise.
88510         * modules/getpeername: Likewise.
88511         * modules/getsockname: Likewise.
88512         * modules/getsockopt: Likewise.
88513         * modules/ioctl: Likewise.
88514         * modules/listen: Likewise.
88515         * modules/recv: Likewise.
88516         * modules/recvfrom: Likewise.
88517         * modules/send: Likewise.
88518         * modules/sendto: Likewise.
88519         * modules/setsockopt: Likewise.
88520         * modules/shutdown: Likewise.
88521         * modules/socket: Use socket.c instead of winsock.c.
88522         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
88523         * doc/posix-functions/accept.texi: Doc fix.
88524         * doc/posix-functions/bind.texi: Doc fix.
88525         * doc/posix-functions/close.texi: Doc fix.
88526         * doc/posix-functions/connect.texi: Doc fix.
88527         * doc/posix-functions/getpeername.texi: Doc fix.
88528         * doc/posix-functions/getsockname.texi: Doc fix.
88529         * doc/posix-functions/getsockopt.texi: Doc fix.
88530         * doc/posix-functions/ioctl.texi: Doc fix.
88531         * doc/posix-functions/listen.texi: Doc fix.
88532         * doc/posix-functions/recv.texi: Doc fix.
88533         * doc/posix-functions/recvfrom.texi: Doc fix.
88534         * doc/posix-functions/send.texi: Doc fix.
88535         * doc/posix-functions/sendto.texi: Doc fix.
88536         * doc/posix-functions/setsockopt.texi: Doc fix.
88537         * doc/posix-functions/shutdown.texi: Doc fix.
88538         * doc/posix-functions/socket.texi: Doc fix.
88540 2008-10-20  Bruno Haible  <bruno@clisp.org>
88542         Take into account the role of SIGABRT_COMPAT on Windows 2008.
88543         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
88544         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
88545         as an alias for SIGABRT.
88546         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
88547         (sigaction): Map it to SIGABRT.
88548         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
88550 2008-10-20  Bruno Haible  <bruno@clisp.org>
88552         * lib/fts.c: Don't include lstat.h.
88553         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
88555         Move the lstat() declaration to <sys/stat.h>.
88556         * lib/lstat.h: Remove file.
88557         * lib/sys_stat.in.h: Add special invocation convention.
88558         (lstat): New declaration.
88559         * lib/lstat.c (orig_lstat): New function.
88560         (rpl_lstat): Use orig_lstat instead of lstat.
88561         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
88562         AC_C_INLINE. Set REPLACE_LSTAT.
88563         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
88564         and REPLACE_LSTAT.
88565         * modules/lstat (Files): Remove lib/lstat.h.
88566         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
88567         (Include): Specify <sys/stat.h> instead of lstat.h.
88568         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
88569         REPLACE_LSTAT.
88570         * NEWS: Mention the change.
88572 2008-10-20  Bruno Haible  <bruno@clisp.org>
88574         * modules/posix_spawn-tests: New file.
88575         * tests/test-posix_spawn3.c: New file.
88577 2008-10-20  Bruno Haible  <bruno@clisp.org>
88579         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
88580         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
88581         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
88582         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
88583         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
88585 2008-10-20  Bruno Haible  <bruno@clisp.org>
88587         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
88588         of posix_spawn on AIX 5.3.
88590 2008-10-20  Bruno Haible  <bruno@clisp.org>
88592         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
88594 2008-10-20  Bruno Haible  <bruno@clisp.org>
88596         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
88597         of AC_LANG_PROGRAM.
88599 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88601         * lib/netdb.in.h: Don't define GNU specific constants until they
88602         are supported or needed.  Reported by Bruno Haible
88603         <bruno@clisp.org>.
88605 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88607         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
88609 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88611         * lib/getaddrinfo.h: Remove file.
88612         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
88613         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
88614         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
88615         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
88616         * modules/netdb: Substitute GNULIB_GETADDRINFO.
88617         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
88618         * tests/test-getaddrinfo.c: Likewise.
88619         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
88620         * NEWS: Mention change.
88622 2008-10-19  Bruno Haible  <bruno@clisp.org>
88624         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
88626 2008-10-19  Bruno Haible  <bruno@clisp.org>
88628         * lib/wait-process.c: Include simply <sys/wait.h>.
88629         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
88630         WIFSTOPPED): Remove fallback definitions.
88631         * modules/wait-process (Depends-on): Add sys_wait.
88633         New module 'sys_wait'.
88634         * modules/sys_wait: New file.
88635         * lib/sys_wait.in.h: New file, partially copied from
88636         lib/wait-process.c.
88637         * m4/sys_wait_h.m4: New file.
88638         * doc/posix-headers/sys_wait.texi: Mention the new module.
88640 2008-10-19  Bruno Haible  <bruno@clisp.org>
88642         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
88644 2008-10-19  Bruno Haible  <bruno@clisp.org>
88646         Assume that waitpid() fills an 'int' status, not a 'union wait'.
88647         * lib/wait-process.c (WAIT_T): Remove type.
88648         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
88649         (wait_subprocess): Update.
88651 2008-10-19  Bruno Haible  <bruno@clisp.org>
88653         New module 'atoll'.
88654         * modules/atoll: New file.
88655         * lib/stdlib.in.h (atoll): New declaration.
88656         * lib/atoll.c: New file, from glibc with modifications.
88657         * m4/atoll.m4: New file.
88658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
88659         HAVE_ATOLL.
88660         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
88661         * doc/posix-functions/atoll.texi: Mention the new module.
88663 2008-10-19  Bruno Haible  <bruno@clisp.org>
88665         Add strtoull() declaration to <stdlib.h>.
88666         * lib/stdlib.in.h (strtoull): New declaration.
88667         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
88668         Set HAVE_STRTOULL.
88669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
88670         HAVE_STRTOULL.
88671         * modules/strtoull (Depends-on): Add stdlib.
88672         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88673         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
88674         HAVE_STRTOULL.
88676 2008-10-19  Bruno Haible  <bruno@clisp.org>
88678         Add strtoll() declaration to <stdlib.h>.
88679         * lib/stdlib.in.h (strtoll): New declaration.
88680         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
88681         Set HAVE_STRTOLL.
88682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
88683         HAVE_STRTOLL.
88684         * modules/strtoll (Depends-on): Add stdlib.
88685         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88686         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
88688 2008-10-19  Bruno Haible  <bruno@clisp.org>
88690         * modules/bcopy (Depends-on): Add strings.
88691         (Include): Specify <strings.h>.
88693 2008-10-19  Bruno Haible  <bruno@clisp.org>
88695         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
88697 2008-10-19  Bruno Haible  <bruno@clisp.org>
88699         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
88700         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
88701         mingw.
88703 2008-10-19  Bruno Haible  <bruno@clisp.org>
88705         * lib/atanl.c: Don't include isnanl.h.
88706         * lib/cosl.c: Likewise.
88707         * lib/ldexpl.c: Likewise.
88708         * lib/logl.c: Likewise.
88709         * lib/sinl.c: Likewise.
88710         * lib/sqrtl.c: Likewise.
88711         * lib/tanl.c: Likewise.
88713         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
88714         * lib/isnanf.h: Remove file.
88715         * lib/isnand.h: Remove file.
88716         * lib/isnanl.h: Remove file.
88717         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
88718         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
88719         macros.
88720         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
88721         HAVE_ISNANF, don't define it as a C macro.
88722         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
88723         HAVE_ISNAND, don't define it as a C macro.
88724         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
88725         HAVE_ISNANL, don't define it as a C macro.
88726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
88727         HAVE_ISNAN[FDL].
88728         * modules/isnanf (Files): Remove lib/isnanf.h.
88729         (Depends-on): Add math.
88730         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
88731         (Include): Specify <math.h> instead of isnanf.h.
88732         * modules/isnand (Files): Remove lib/isnand.h.
88733         (Depends-on): Add math.
88734         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
88735         (Include): Specify <math.h> instead of isnand.h.
88736         * modules/isnanl (Files): Remove lib/isnanl.h.
88737         (Depends-on): Add math.
88738         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
88739         (Include): Specify <math.h> instead of isnanl.h.
88740         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
88741         HAVE_ISNAN[FDL].
88742         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
88743         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
88744         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
88745         * NEWS: Mention the change.
88747 2008-10-18  Bruno Haible  <bruno@clisp.org>
88749         Add getusershell(), setusershell(), endusershell() declarations to
88750         <unistd.h>.
88751         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
88752         declarations.
88753         * lib/getusershell.c: Include unistd.h.
88754         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
88755         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
88756         HAVE_GETUSERSHELL.
88757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
88758         and HAVE_GETUSERSHELL.
88759         * modules/getusershell (Depends-on): Add unistd, extensions.
88760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88761         (Include): Specify <unistd.h>.
88762         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
88763         HAVE_GETUSERSHELL.
88765 2008-10-18  Bruno Haible  <bruno@clisp.org>
88767         Add a getloadavg() declaration to <stdlib.h>.
88768         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
88769         getloadavg declaration.
88770         (getloadavg): New declaration.
88771         * lib/getloadavg.c: Include <stdlib.h> first.
88772         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
88773         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
88774         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
88775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
88776         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
88777         * modules/getloadavg (Depends-on): Add stdlib, extensions.
88778         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88779         (Include): Specify <stdlib.h>.
88780         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
88781         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
88783 2008-10-18  Bruno Haible  <bruno@clisp.org>
88785         * lib/dirchownmod.c: Don't include lchmod.h.
88787         Move the lchmod() declaration to <sys/stat.h>.
88788         * lib/lchmod.h: Remove file.
88789         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
88790         (lchmod): New declaration, moved here from lib/lchown.h.
88791         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
88792         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
88793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
88794         and HAVE_LCHMOD.
88795         * modules/lchmod (Files): Remove lib/lchmod.h.
88796         (Depends-on): Add sys_stat, extensions.
88797         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
88798         (Include): Specify <sys/stat.h> instead of lchmod.h.
88799         * modules/sys_stat (Depends-on): Add link-warning.
88800         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
88801         definition of GL_LINK_WARNING.
88802         * NEWS: Mention the change.
88804 2008-10-18  Bruno Haible  <bruno@clisp.org>
88806         * lib/fchdir.c: Don't include dirfd.h.
88807         * lib/fts.c: Likewise.
88808         * lib/getcwd.c: Likewise.
88809         * lib/glob.c: Likewise.
88811         Move the dirfd() declaration to <dirent.h>.
88812         * lib/dirfd.h: Remove file.
88813         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
88814         (dirfd): New declaration.
88815         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
88816         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
88817         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
88818         HAVE_DECL_DIRFD.
88819         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
88820         HAVE_DECL_DIRFD.
88821         * modules/dirfd (Files): Remove lib/dirfd.h.
88822         (Depends-on): Add dirent, extensions.
88823         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
88824         (Include): Specify <dirent.h> instead of dirfd.h.
88825         * modules/dirent (Depends-on): Add link-warning.
88826         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
88827         definition of GL_LINK_WARNING.
88828         * NEWS: Mention the change.
88830 2008-10-18  Bruno Haible  <bruno@clisp.org>
88832         Move the euidaccess() declaration to <unistd.h>.
88833         * lib/euidaccess.h: Remove file.
88834         * lib/unistd.in.h (euidaccess): New declaration.
88835         * lib/euidaccess.c: Don't include euidaccess.h.
88836         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
88837         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
88838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
88839         and HAVE_EUIDACCESS.
88840         * modules/euidaccess (Files): Remove lib/euidaccess.h.
88841         (Depends-on): Add unistd.
88842         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88843         (Include): Specify <unistd.h> instead of euidaccess.h.
88844         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
88845         HAVE_EUIDACCESS.
88846         * NEWS: Mention the change.
88848 2008-10-18  Bruno Haible  <bruno@clisp.org>
88850         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
88852         Move the getdomainname() declaration to <unistd.h>.
88853         * lib/getdomainname.h: Remove file.
88854         * lib/unistd.in.h (getdomainname): New declaration.
88855         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
88856         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
88857         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
88858         HAVE_GETDOMAINNAME.
88859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88860         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
88861         * modules/getdomainname (Files): Remove lib/getdomainname.h.
88862         (Depends-on): Add unistd, extensions.
88863         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88864         (Includes): Specify <unistd.h> instead of getdomainname.h.
88865         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
88866         HAVE_GETDOMAINNAME.
88867         * NEWS: Mention the change.
88869 2008-10-18  Bruno Haible  <bruno@clisp.org>
88871         * modules/dirent: New file.
88872         * m4/dirent_h.m4: New file.
88873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
88874         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
88875         * modules/fchdir (Files): Remove lib/dirent.in.h.
88876         (Depends-on): Add dirent.
88877         (Makefile.am): Move rules to modules/dirent.
88878         * doc/posix-headers/dirent.texi: Mention the new module.
88880 2008-10-18  Bruno Haible  <bruno@clisp.org>
88882         Avoid -Wunused-parameter warnings in public gnulib header files.
88883         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
88884         macro.
88885         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
88887 2008-10-18  Bruno Haible  <bruno@clisp.org>
88889         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
88890         * doc/glibc-functions/error.texi: Mention the module 'error'.
88891         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
88892         * doc/glibc-functions/getdomainname.texi: Mention the module
88893         'getdomainname'.
88894         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
88895         * doc/glibc-functions/getpagesize.texi: Mention the module
88896         'getpagesize'.
88897         * doc/glibc-functions/getusershell.texi: Mention the module
88898         'getusershell'.
88899         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
88900         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
88901         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
88902         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
88903         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
88904         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
88905         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
88906         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
88907         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
88908         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
88909         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
88910         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
88911         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
88912         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
88914 2008-10-17  Bruno Haible  <bruno@clisp.org>
88916         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
88917         HP-UX and IRIX, use -0.0L.
88918         * tests/test-ceill.c (minus_zero): Likewise.
88919         * tests/test-floorl.c (minus_zero): Likewise.
88920         * tests/test-frexpl.c (minus_zero): Likewise.
88921         * tests/test-isnan.c (minus_zerol): Likewise.
88922         * tests/test-isnanl.h (minus_zero): Likewise.
88923         * tests/test-ldexpl.c (minus_zero): Likewise.
88924         * tests/test-roundl.c (minus_zero): Likewise.
88925         * tests/test-signbit.c (minus_zerol): Likewise.
88926         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
88927         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
88928         * tests/test-truncl.c (minus_zero): Likewise.
88929         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
88930         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
88931         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
88932         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
88934 2008-10-17  Bruno Haible  <bruno@clisp.org>
88936         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
88937         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
88938         that it gets activated only for gcc >= 3.0.
88939         * lib/dirent.in.h: Likewise.
88940         * lib/errno.in.h: Likewise.
88941         * lib/fcntl.in.h: Likewise.
88942         * lib/float.in.h: Likewise.
88943         * lib/iconv.in.h: Likewise.
88944         * lib/inttypes.in.h: Likewise.
88945         * lib/locale.in.h: Likewise.
88946         * lib/math.in.h: Likewise.
88947         * lib/netdb.in.h: Likewise.
88948         * lib/netinet_in.in.h: Likewise.
88949         * lib/search.in.h: Likewise.
88950         * lib/signal.in.h: Likewise.
88951         * lib/spawn.in.h: Likewise.
88952         * lib/stdarg.in.h: Likewise.
88953         * lib/stdint.in.h: Likewise.
88954         * lib/stdio.in.h: Likewise.
88955         * lib/stdlib.in.h: Likewise.
88956         * lib/string.in.h: Likewise.
88957         * lib/strings.in.h: Likewise.
88958         * lib/sys_file.in.h: Likewise.
88959         * lib/sys_ioctl.in.h: Likewise.
88960         * lib/sys_select.in.h: Likewise.
88961         * lib/sys_socket.in.h: Likewise.
88962         * lib/sys_stat.in.h: Likewise.
88963         * lib/sys_time.in.h: Likewise.
88964         * lib/sysexits.in.h: Likewise.
88965         * lib/time.in.h: Likewise.
88966         * lib/unistd.in.h: Likewise.
88967         * lib/wchar.in.h: Likewise.
88968         * lib/wctype.in.h: Likewise.
88969         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88971 2008-10-17  Jim Meyering  <meyering@redhat.com>
88973         ignore-value: don't depend on inline module
88974         * modules/ignore-value (Depends-on): Remove 'inline'.
88975         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
88976         Suggestion from Bruno Haible.
88978 2008-10-17  Bruno Haible  <bruno@clisp.org>
88980         New implementation of condition variables for Win32.
88981         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
88982         (gl_linked_waitqueue_t): New type.
88983         (gl_cond_t): Use it.
88984         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
88985         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
88986         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
88987         (glthread_cond_init_func, glthread_cond_wait_func,
88988         glthread_cond_timedwait_func, glthread_cond_signal_func,
88989         glthread_cond_broadcast_func, glthread_cond_destroy_func):
88990         Reimplemented on the basis of gl_linked_waitqueue_t.
88991         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
88992         gl_waitqueue_t.
88993         (gl_rwlock_t): Update.
88994         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
88996 2008-10-17  Simon Josefsson  <simon@josefsson.org>
88998         * modules/recvfrom (Depends-on): Add dependency on getpeername.
88999         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89001 2008-10-17  Jim Meyering  <meyering@redhat.com>
89003         ignore-value: new module
89004         * modules/ignore-value: New file.
89005         * lib/ignore-value.h: New file.
89006         * MODULES.html.sh (Compiler warning management): New section,
89007         just for this module.  More to come.
89009 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89011         open-safer.c: avoid 'signed and unsigned in conditional...' warning
89012         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
89013         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
89015 2008-10-16  Jim Meyering  <meyering@redhat.com>
89017         openat-die.c: avoid 'no previous prototype' warning
89018         * lib/openat-die.c: Include "openat.h".
89019         Reported by Reuben Thomas <rrt@sc3d.org>.
89021 2008-10-16  Simon Josefsson  <simon@josefsson.org>
89023         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
89024         * lib/netdb.in.h: Fix typo.
89025         Reported by Bruno Haible  <bruno@clisp.org>
89027         * lib/netdb.in.h: Include sys/socket.h for platforms without
89028         netdb.h, to get structures like hostent on MinGW.
89029         * modules/netdb (Depends-on): Add sys_socket.
89031 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89033         * modules/netdb, modules/netdb-tests: New file.
89034         * m4/netdb_h.m4: New file.
89035         * lib/netdb.in.h: Add, currently just an empty file pending
89036         definitions.
89037         * tests/test-netdb.c: New file.
89038         * doc/posix-headers/netdb.texi: Mention that we replace it if
89039         needed.
89040         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89041         netdb.
89043 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89045         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
89046         with code.
89048 2008-10-13  Bruno Haible  <bruno@clisp.org>
89050         * lib/glthread/cond.c (glthread_cond_wait_func,
89051         glthread_cond_timedwait_func): Add a comment.
89053 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89055         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
89056         * tests/test-select.c: Likewise,
89058 2008-10-13  Bruno Haible  <bruno@clisp.org>
89060         * lib/glthread/cond.c (glthread_cond_wait_func,
89061         glthread_cond_timedwait_func): Fix variable name.
89062         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89064 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
89066         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
89067         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
89068         struct sockaddr.sa_len.
89069         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
89071 2008-10-13  Simon Josefsson  <simon@josefsson.org>
89073         * build-aux/pmccabe2html: Add css and css_url parameters.
89075 2008-10-12  Bruno Haible  <bruno@clisp.org>
89077         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
89078         calling aclx_get.
89079         Reported by Rainer Tammer <tammer@tammer.net>.
89081 2008-10-12  Bruno Haible  <bruno@clisp.org>
89083         Use msvcrt aware primitives for creation/termination of Win32 threads.
89084         * lib/glthread/thread.c: Include <process.h>.
89085         (glthread_create_func): Use _beginthreadex instead of CreateThread.
89086         (wrapper_func): Update signature.
89087         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
89089 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89090             Bruno Haible  <bruno@clisp.org>
89092         Provide a Win32 implementation of the 'cond' module.
89093         * lib/glthread/cond.h [USE_WIN32]: New implementation.
89094         * lib/glthread/cond.c (glthread_cond_init_func,
89095         glthread_cond_wait_func, glthread_cond_timedwait_func,
89096         glthread_cond_signal_func, glthread_cond_broadcast_func,
89097         glthread_cond_destroy_func) [USE_WIN32]: New functions.
89098         * modules/cond (Dependencies): Add gettimeofday.
89100 2008-10-11  Bruno Haible  <bruno@clisp.org>
89102         Make sleep work on older versions of mingw.
89103         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
89104         only whether it exists.
89105         * doc/posix-functions/sleep.texi: Mention the problem with older
89106         versions of mingw.
89108 2008-10-11  Bruno Haible  <bruno@clisp.org>
89110         New module 'shutdown'.
89111         * modules/shutdown: New file.
89112         * lib/sys_socket.in.h (shutdown): New declaration.
89113         * lib/winsock.c (shutdown): New function.
89114         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
89115         GNULIB_SHUTDOWN.
89116         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
89117         * doc/posix-functions/shutdown.texi: Document the new module.
89119 2008-10-11  Jim Meyering  <meyering@redhat.com>
89121         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
89123 2008-10-11  Bruno Haible  <bruno@clisp.org>
89125         New module 'fclose'.
89126         * modules/fclose: New file.
89127         * lib/stdio.in.h (fclose): New declaration.
89128         * lib/fclose.c: New file.
89129         * m4/fclose.m4: New file.
89130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
89131         REPLACE_FCLOSE.
89132         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
89133         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
89134         REPLACE_FCLOSE.
89135         * modules/close (Depends-on): fclose.
89136         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
89138 2008-10-11  Bruno Haible  <bruno@clisp.org>
89140         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
89141         set errno and don't call _close.
89143 2008-10-10  Bruno Haible  <bruno@clisp.org>
89145         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
89146         ACL, not afterwards. Fixes test failure on Cygwin.
89148 2008-10-09  Ben Pfaff  <blp@gnu.org>
89150         * build-aux/announce-gen: Fix gnulib version related part of usage
89151         message.  Die with a useful error message if no tarballs are
89152         found.
89154 2008-10-10  Jim Meyering  <meyering@redhat.com>
89156         bootstrap: use git's --depth=N option only if it's supported
89157         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
89158         recognize the --depth option.  Reported by Pádraig Brady.
89160 2008-10-09  Bruno Haible  <bruno@clisp.org>
89162         New module 'ioctl'.
89163         * modules/ioctl: New file.
89164         * lib/sys_socket.in.h (ioctl): Remove declaration.
89165         * lib/winsock.c: Include <sys/ioctl.h>.
89166         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
89167         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89168         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
89169         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
89170         * doc/posix-functions/ioctl.texi: Mention the new module.
89172 2008-10-09  Bruno Haible  <bruno@clisp.org>
89174         New module 'sys_ioctl'.
89175         * lib/sys_ioctl.in.h: New file.
89176         * m4/sys_ioctl_h.m4: New file.
89177         * modules/sys_ioctl: New file.
89178         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
89180 2008-10-09  Bruno Haible  <bruno@clisp.org>
89182         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
89183         * lib/winsock.c: Include <stdarg.h>.
89184         (rpl_ioctl): Change to second argument 'int' and then varargs.
89186 2008-10-09  Bruno Haible  <bruno@clisp.org>
89188         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
89189         when the sys_socket module is present and the system has <winsock2.h>.
89191 2008-10-09  Bruno Haible  <bruno@clisp.org>
89193         * doc/posix-functions/close.texi: Mention module 'close' instead of
89194         module 'sys_socket'.
89196 2008-10-09  Bruno Haible  <bruno@clisp.org>
89198         * doc/glibc-headers/sys_ioctl.texi: New file.
89199         * doc/gnulib.texi: Include it.
89201 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89202             Bruno Haible  <bruno@clisp.org>
89204         Combine the two replacements of 'close'.
89205         * lib/sys_socket.in.h (close): Define to a reminder to include
89206         <unistd.h>.
89207         (_gl_close_fd_maybe_socket): New declaration.
89208         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
89209         * lib/winsock.c (close): Remove undefinition.
89210         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
89211         needed for the gnulib module 'close'.
89212         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
89213         define to an error symbol or to a warning, if suitable.
89214         * lib/close.c: Include <sys/socket.h>.
89215         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
89216         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
89217         UNISTD_H_HAVE_WINSOCK2_H.
89218         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
89219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89220         UNISTD_H_HAVE_WINSOCK2_H.
89221         * modules/sys_socket (Files): Add m4/unistd_h.m4.
89222         (configure.ac): Set a module indicator.
89223         (Makefile.am): Substitute GNULIB_CLOSE.
89224         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
89225         * modules/poll-tests (Depends-on): Add close.
89226         * modules/select-tests (Depends-on): Likewise.
89228 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89229             Bruno Haible  <bruno@clisp.org>
89231         New module 'close'.
89232         * modules/close: New file.
89233         * lib/unistd.in.h (close): Move declaration out of the
89234         FCHDIR_REPLACEMENT scope.
89235         (_gl_unregister_fd): New declaration.
89236         * lib/close.c: New file.
89237         * lib/fchdir.c (rpl_close): Remove function.
89238         * m4/close.m4: New file.
89239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89240         close.
89241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
89242         REPLACE_CLOSE.
89243         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
89244         REPLACE_CLOSE.
89245         * modules/fchdir (Depends-on): Add close.
89247 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89248             Bruno Haible  <bruno@clisp.org>
89250         * lib/fcntl.in.h (open): Simplify conditionals.
89251         (_gl_register_fd): New declaration.
89252         * lib/fchdir.c (rpl_open): Remove function.
89253         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
89254         also.
89255         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
89256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89257         open.
89259 2008-10-09  Jim Meyering  <meyering@redhat.com>
89261         GNUmakefile: use the more name-space-friendly "_version"
89262         * top/GNUmakefile (_dummy): Update.
89263         (_version): Rename from "version".
89265 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89266             Bruno Haible  <bruno@clisp.org>
89268         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
89269         rpl_close.
89270         (_gl_register_fd): New function, extracted from rpl_open.
89271         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
89272         (rpl_open, rpl_opendir): Use _gl_register_fd.
89274 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89276         Fix organization of 'open' replacement.
89277         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
89278         (gl_FUNC_OPEN): Use it.
89279         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
89281 2008-10-08  Bruno Haible  <bruno@clisp.org>
89283         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
89285 2008-10-08  Simon Josefsson  <simon@josefsson.org>
89287         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
89288         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
89289         listen).
89291 2008-10-08  Eric Blake  <ebb9@byu.net>
89293         GNUmakefile: add 'make version' target
89294         * top/GNUmakefile (_curr-ver): Split version update rules...
89295         (version): ...into a target.
89297 2008-10-07  Bruno Haible  <bruno@clisp.org>
89299         Use a more portable replacement expression for -0.0L.
89300         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
89301         instead of -0.0L. Fix m4 quotation.
89303         * tests/test-signbit.c: Include <float.h>.
89304         (minus_zero): New variable.
89305         (test_signbitl): Use minus_zero instead of -zero.
89306         * modules/signbit-tests (Depends-on): Add float.
89308         * tests/test-ceill.c: Include <float.h>.
89309         (zero): Remove variable.
89310         (minus_zero): New variable.
89311         (main): Use minus_zero instead of -zero.
89312         * modules/ceill-tests (Depends-on): Add float.
89314         * tests/test-floorl.c: Include <float.h>.
89315         (zero): Remove variable.
89316         (minus_zero): New variable.
89317         (main): Use minus_zero instead of -zero.
89318         * modules/floorl-tests (Depends-on): Add float.
89320         * tests/test-roundl.c: Include <float.h>.
89321         (zero): Remove variable.
89322         (minus_zero): New variable.
89323         (main): Use minus_zero instead of -zero.
89324         * modules/roundl-tests (Depends-on): Add float.
89326         * tests/test-truncl.c: Include <float.h>.
89327         (zero): Remove variable.
89328         (minus_zero): New variable.
89329         (main): Use minus_zero instead of -zero.
89330         * modules/truncl-tests (Depends-on): Add float.
89332         * tests/test-frexpl.c (zero): Remove variable.
89333         (minus_zero): New variable.
89334         (main): Use minus_zero instead of -zero.
89335         * modules/frexpl-tests (Depends-on): Add float.
89337         * tests/test-isnan.c (zerol): Remove variable.
89338         (minus_zerol): New variable.
89339         (test_long_double): Use minus_zerol instead of -zerol.
89340         * modules/isnan-tests (Depends-on): Add float.
89342         * tests/test-isnanl.h (zero): Remove variable.
89343         (minus_zero): New variable.
89344         (main): Use minus_zero instead of -zero.
89345         * modules/isnanl-nolibm-tests (Depends-on): Add float.
89346         * modules/isnanl-tests (Depends-on): Add float.
89348         * tests/test-ldexpl.c (zero): Remove variable.
89349         (minus_zero): New variable.
89350         (main): Use minus_zero instead of -zero.
89351         * modules/ldexpl-tests (Depends-on): Add float.
89353         * tests/test-snprintf-posix.h (zerol): Remove variable.
89354         (minus_zerol): New variable.
89355         (test_function): Use minus_zerol instead of -zerol.
89356         * modules/snprintf-posix-tests (Depends-on): Add float.
89357         * modules/vsnprintf-posix-tests (Depends-on): Add float.
89359         * tests/test-sprintf-posix.h (zerol): Remove variable.
89360         (minus_zerol): New variable.
89361         (test_function): Use minus_zerol instead of -zerol.
89362         * modules/sprintf-posix-tests (Depends-on): Add float.
89363         * modules/vsprintf-posix-tests (Depends-on): Add float.
89365         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
89366         (minus_zerol): New variable.
89367         (test_function): Use minus_zerol instead of -zerol.
89368         * modules/vasnprintf-posix-tests (Depends-on): Add float.
89370         * tests/test-vasprintf-posix.c (zerol): Remove variable.
89371         (minus_zerol): New variable.
89372         (test_function): Use minus_zerol instead of -zerol.
89373         * modules/vasprintf-posix-tests (Depends-on): Add float.
89375 2008-10-07  Simon Josefsson  <simon@josefsson.org>
89377         * MODULES.html.sh (Support for building documentation): Mention
89378         pmccabe2html.  Sort entries.
89380         Add pmccabe2html module, from gnupdf.
89381         * build-aux/pmccabe.css: New file.
89382         * build-aux/pmccabe2html: New file.
89383         * m4/pmccabe2html.m4: New file.
89384         * modules/pmccabe2html: New file.
89386 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
89388         flock: new module
89389         * MODULES.html.sh: Add to list of modules.
89390         * lib/flock.c: flock implementation for Windows and Unix systems
89391         which have fcntl.
89392         * doc/glibc-functions/flock.texi: Update documentation.
89393         * lib/sys_file.in.h: <sys/file.h> header file.
89394         * m4/flock.m4: M4 macros.
89395         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
89396         * modules/flock: flock module.
89397         * modules/flock-tests: flock tests module.
89398         * modules/sys_file: sys/file.h module.
89399         * tests/test-flock.c: test suite for flock.
89401 2008-10-06  Jim Meyering  <meyering@redhat.com>
89403         bootstrap: check for LT_INIT more portably still ;-)
89404         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
89405         Spotted by Bruno Haible.
89407 2008-10-06  Eric Blake  <ebb9@byu.net>
89409         test-signbit: avoid tripping Irix cc bug on -0.0L
89410         * tests/test-signbit.c (minus_zerol): Delete, and replace with
89411         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
89412         entire testsuite consistent and avoids an Irix 6.2 bug.
89414 2008-10-05  Bruno Haible  <bruno@clisp.org>
89415             Jim Meyering  <jim@meyering.net>
89417         Add an option for ignoring EPIPE during close_stdout.
89418         * lib/closeout.h: Include <stdbool.h>.
89419         (close_stdout_set_ignore_EPIPE): New declaration.
89420         * lib/closeout.c: Include <stdbool.h>.
89421         (ignore_EPIPE): New variable.
89422         (close_stdout_set_ignore_EPIPE): New function.
89423         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
89424         * lib/close-stream.c (close_stream): Mention the possible EPIPE
89425         failure.
89426         * modules/closeout (Depends-on): Add stdbool.
89428 2008-10-05  Bruno Haible  <bruno@clisp.org>
89430         * modules/accept: New file.
89431         * modules/bind: New file.
89432         * modules/connect: New file.
89433         * modules/getpeername: New file.
89434         * modules/getsockname: New file.
89435         * modules/getsockopt: New file.
89436         * modules/listen: New file.
89437         * modules/recv: New file.
89438         * modules/recvfrom: New file.
89439         * modules/send: New file.
89440         * modules/sendto: New file.
89441         * modules/setsockopt: New file.
89442         * modules/socket: New file.
89443         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
89444         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
89445         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
89446         the particular module is requested. Add a link warning when the
89447         particular module is not requested.
89448         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
89449         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
89450         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
89451         the particular module is requested.
89452         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
89453         gl_SYS_SOCKET_H_DEFAULTS): New macros.
89454         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
89455         * modules/sys_socket (Depends-on): Add link-warning.
89456         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
89457         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
89458         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
89459         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
89460         GL_LINK_WARNING.
89461         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
89462         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
89463         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
89464         * doc/posix-functions/getpeername.texi: Mention the new module
89465         'getpeername'.
89466         * doc/posix-functions/getsockname.texi: Mention the new module
89467         'getsockname'.
89468         * doc/posix-functions/getsockopt.texi: Mention the new module
89469         'getsockopt'.
89470         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
89471         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
89472         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
89473         * doc/posix-functions/send.texi: Mention the new module 'send'.
89474         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
89475         * doc/posix-functions/setsockopt.texi: Mention the new module
89476         'setsockopt'.
89477         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
89478         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
89479         listen, connect, accept.
89480         * modules/select-tests (Depends-on): Likewise.
89482 2008-10-05  Bruno Haible  <bruno@clisp.org>
89484         * lib/winsock.c (strerror): Remove unused #undef.
89485         (rpl_close): Remove unused local variable.
89487         * modules/sys_socket (Depends-on); Add errno.
89489 2008-10-05  Bruno Haible  <bruno@clisp.org>
89491         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
89492         (select): Add a link warning when the 'select' module is not used.
89493         * modules/sys_select (Depends-on): Add link-warning.
89494         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
89495         Suggested by Paolo Bonzini.
89497 2008-10-05  Jim Meyering  <meyering@redhat.com>
89499         bootstrap: check for LT_INIT more portably
89500         * build-aux/bootstrap: Avoid using grep -E, since it's not
89501         portable enough.  Suggestion from Bruno Haible.
89503 2008-10-05  Bruno Haible  <bruno@clisp.org>
89505         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
89506         as being fixed by gnulib.
89508 2008-10-05  Bruno Haible  <bruno@clisp.org>
89510         * modules/select-tests: New file, mostly copied from
89511         modules/sys_select-tests.
89512         * tests/test-select.c: New file, mostly copied from
89513         tests/test-sys_select.c.
89514         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
89515         * modules/sys_select-tests (Depends-on): Remove all dependencies.
89516         (Makefile.am): Remove test_sys_select_LDADD.
89518         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
89519         to an undefined symbol, for an error message.
89520         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
89521         (gl_SYS_SELECT_H_DEFAULTS): New macro.
89522         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
89523         winsock-select.c here.
89524         * modules/sys_select (Files): Remove lib/winsock-select.c.
89525         (Depends-on): Remove alloca.
89526         (Makefile.am): Substitute GNULIB_SELECT.
89527         * modules/select: New file.
89528         * doc/posix-functions/select.texi: Update.
89530 2008-10-05  Bruno Haible  <bruno@clisp.org>
89532         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
89533         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
89534         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
89535         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
89536         getdtablesize.
89537         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
89538         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
89540 2008-10-05  Bruno Haible  <bruno@clisp.org>
89542         * modules/getdtablesize-tests: New file.
89543         * tests/test-getdtablesize.c: New file.
89545         New module 'getdtablesize'.
89546         * lib/unistd.in.h (getdtablesize): New declaration.
89547         * lib/getdtablesize.c: New file.
89548         * m4/getdtablesize.m4: New file.
89549         * modules/getdtablesize: New file.
89550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89551         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
89552         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
89553         HAVE_GETDTABLESIZE.
89554         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
89556 2008-10-05  Bruno Haible  <bruno@clisp.org>
89558         * modules/sched (Makefile.am): Fix typo.
89559         Reported by Simon Josefsson.
89561 2008-10-05  Jim Meyering  <meyering@redhat.com>
89563         bootstrap: check for LT_INIT, too
89564         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
89565         are deprecated.  Suggestion from Ralf Wildenhues.
89567 2008-10-05  Bruno Haible  <bruno@clisp.org>
89569         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
89570         overriding them by ours.
89571         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
89573 2008-10-05  Jim Meyering  <meyering@redhat.com>
89575         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
89576         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
89577         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
89579 2008-10-04  Bruno Haible  <bruno@clisp.org>
89581         * modules/dup2 (License): Change to LGPLv2+.
89582         * modules/sleep (License): Likewise.
89583         * modules/perror (License): Likewise.
89584         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
89585         Blake.
89586         * modules/signal (License): Likewise.
89587         * modules/sigprocmask (License): Likewise.
89588         * modules/raise (License): Change to LGPLv2+, with approval by Jim
89589         Meyering.
89591 2008-10-04  Bruno Haible  <bruno@clisp.org>
89593         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
89594         Reported by Rainer Tammer <tammer@tammer.net>.
89596 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
89597             Bruno Haible  <bruno@clisp.org>
89599         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
89600         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
89601         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
89603 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
89605         filevercmp: new module
89606         * lib/filevercmp.h: New function filevercmp comparing version strings.
89607         * lib/filevercmp.c: Implementation of filevercmp function.
89608         * modules/filevercmp: Module metadata.
89609         * tests/test-filevercmp.c: Unit test for new module.
89610         * modules/filevercmp-tests: Unit test metadata.
89611         * MODULES.html.sh: Add filevercmp module.
89613 2008-10-03  Bruno Haible  <bruno@clisp.org>
89615         * lib/c-ctype.h: Add comment.
89616         Reported by Jim Meyering.
89618 2008-10-02  Bruno Haible  <bruno@clisp.org>
89620         * modules/posix_spawn-internal (Depends-on): Add 'open'.
89622 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
89624         * build-aux/bootstrap: Allow renaming bootstrap, and change the
89625         name of bootstrap.conf accordingly.
89627 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
89629         * build-aux/bootstrap: Install git-merge-changelog configuration
89630         items into .gitconfig if needed.
89632 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
89634         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
89635         git repository, and initialize/update it accordingly.
89637 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
89639         * modules/fsync-tests: New file.
89640         * tests/test-fsync.c: New file.
89642         New module 'fsync'.
89643         * lib/fsync.c: New file.
89644         * m4/fsync.m4: New file.
89645         * modules/fsync: New file.
89646         * lib/unistd.in.h (fsync): New declaration.
89647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
89648         GNULIB_FSYNC and HAVE_FSYNC.
89649         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
89650         * MODULES.html.sh (posix_functions): Add fsync.
89651         * doc/posix-functions/fsync.texi: Mention the new module.
89653 2008-10-02  Jim Meyering  <meyering@redhat.com>
89655         fts.c: sync with similar code from coreutils' remove.c
89656         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
89657         Guard also with "#if defined __linux__", since for now at least,
89658         this code is Linux-kernel-specific.
89660 2008-10-02  Jim Meyering  <meyering@redhat.com>
89662         fts: bug fixes
89663         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
89664         Include <sys/vfs.h>, not <sys/statfs.h>.
89666         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
89667         Include <sys/vfs.h>, not <sys/statfs.h>.
89669 2008-10-01  Bruno Haible  <bruno@clisp.org>
89671         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
89672         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
89673         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
89674         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
89675         * doc/posix-functions/posix_spawnp.texi: Likewise.
89676         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
89677         whether posix_spawn actually works.
89678         * m4/pipe.m4 (gl_PIPE): Likewise.
89679         * modules/execute (Files): Add m4/posix_spawn.m4.
89680         * modules/pipe (Files): Add m4/posix_spawn.m4.
89681         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
89683 2008-10-01  Jim Meyering  <meyering@redhat.com>
89685         remove trailing spaces
89686         * NEWS: Likewise.
89687         * lib/poll.c (poll): Likewise.
89688         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
89689         * lib/winsock.c (rpl_close): Likewise.
89690         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
89691         * modules/yield: Likewise.
89692         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
89693         * tests/test-sys_select.c (connect_to_socket): Likewise.
89695         fts.c: adjust a new interface to be more generally useful
89696         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
89697         (fts_build): Adjust caller.
89699 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89701         * modules/cond-tests: New file.
89702         * tests/test-cond.c: New file.
89704 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89705             Bruno Haible  <bruno@clisp.org>
89707         * modules/cond (Dependencies): Add errno, time.
89708         * lib/glthread/cond.h: Include <time.h>.
89709         (gl_cond_define, gl_cond_define_initialized): Use the same definition
89710         across platforms.
89712 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89713             Bruno Haible  <bruno@clisp.org>
89715         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
89717 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89718             Bruno Haible  <bruno@clisp.org>
89720         * modules/tls-tests (Depends-on): Add thread, yield.
89721         (configure.ac): Remove all checks.
89722         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
89723         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
89724         gl_thread_self): Remove definitions. Include glthread/thread.h and
89725         glthread/yield.h instead.
89726         (test_tls): Pass an additional NULL argument to gl_thread_join.
89728 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89729             Bruno Haible  <bruno@clisp.org>
89731         * modules/lock-tests (Depends-on): Add thread, yield.
89732         (configure.ac): Remove all checks.
89733         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
89734         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
89735         gl_thread_self): Remove definitions. Include glthread/thread.h and
89736         glthread/yield.h instead.
89737         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
89738         additional NULL argument to gl_thread_join.
89740 2008-09-30  Bruno Haible  <bruno@clisp.org>
89742         Fix the Win32 implementation of the 'thread' module.
89743         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
89744         pointer type.
89745         (gl_thread_self): Invoke gl_thread_self_func.
89746         (gl_thread_self_func): New declaration.
89747         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
89748         (do_init_self_key, init_self_key): New functions.
89749         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
89750         Remove some fields.
89751         (running_threads, running_lock): Remove variables.
89752         (get_current_thread_handle): New function.
89753         (gl_thread_self_func, wrapper_func, glthread_create_func,
89754         glthread_join_func, gl_thread_exit_func): Largely rewritten and
89755         simplified.
89757 2008-09-30  Bruno Haible  <bruno@clisp.org>
89759         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
89760         files.
89762 2008-09-30  Jim Meyering  <meyering@redhat.com>
89764         fts.m4: correct the test for statfs.f_type
89765         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
89766         when checking for statfs.f_type.
89768 2008-09-15  Simon Josefsson  <simon@josefsson.org>
89770         tests: avoid some compiler warnings
89771         * tests/test-memchr.c (main): Pass NULL indirectly.
89772         * tests/test-getdate.c (main): Remove unused variable 'ret'.
89774 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
89776         getdate.y: disallow countable dayshifts like "4 yesterday ago"
89777         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
89778         exactly specified dayshifts.
89779         (dayshift): New rule.
89780         (rel): Add dayshift.
89781         (relative_time_table) [tomorrow, yesterday, today, now]:
89782         Use tDAY_SHIFT in place of tDAY_UNIT.
89783         * tests/test-getdate.c: Add tests for now-disallowed countable
89784         dayshifts, e.g., "4 yesterday ago".
89786 2008-09-29  Bruno Haible  <bruno@clisp.org>
89788         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
89789         * tests/test-posix_spawn1.in.sh: Renamed from
89790         tests/test-posix_spawn.in.sh.
89791         * tests/test-posix_spawn2.c: New file.
89792         * tests/test-posix_spawn2.in.sh: New file.
89793         * modules/posix_spawnp-tests (Files): Update.
89794         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
89796 2008-09-29  Bruno Haible  <bruno@clisp.org>
89798         Propagate effects of putenv/setenv/unsetenv to child processes.
89799         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
89800         * lib/pipe.c (create_pipe): Likewise.
89802 2008-09-29  Bruno Haible  <bruno@clisp.org>
89804         Enable use of shell scripts as executables in mingw.
89805         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
89806         run the program as a shell script.
89807         * lib/pipe.c (create_pipe): Likewise.
89808         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
89809         resulting array.
89811 2008-09-29  Eric Blake  <ebb9@byu.net>
89813         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
89815 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
89817         * doc/posix-functions/accept.texi: Update mingw problems.
89818         * doc/posix-functions/bind.texi: Update mingw problems.
89819         * doc/posix-functions/close.texi: Update mingw problems.
89820         * doc/posix-functions/connect.texi: Update mingw problems.
89821         * doc/posix-functions/getpeername.texi: Update mingw problems.
89822         * doc/posix-functions/getsockname.texi: Update mingw problems.
89823         * doc/posix-functions/getsockopt.texi: Update mingw problems.
89824         * doc/posix-functions/ioctl.texi: Update mingw problems.
89825         * doc/posix-functions/listen.texi: Update mingw problems.
89826         * doc/posix-functions/recv.texi: Update mingw problems.
89827         * doc/posix-functions/recvfrom.texi: Update mingw problems.
89828         * doc/posix-functions/select.texi: Update mingw problems.
89829         * doc/posix-functions/send.texi: Update mingw problems.
89830         * doc/posix-functions/sendto.texi: Update mingw problems.
89831         * doc/posix-functions/setsockopt.texi: Update mingw problems.
89832         * doc/posix-functions/socket.texi: Update mingw problems.
89834 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
89835             Bruno Haible  <bruno@clisp.org>
89837         * lib/sys_select.in.h: Include sys/time.h.
89838         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
89839         * modules/sys_select: Depend on sys_time.
89840         * tests/test-sys_select.c: Test that sys/select.h defines struct
89841         timeval fully.
89843 2008-09-29  Bruno Haible  <bruno@clisp.org>
89845         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
89846         * lib/sys_select.in.h: Likewise.
89848 2008-09-29  Bruno Haible  <bruno@clisp.org>
89850         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
89852 2008-09-29  Bruno Haible  <bruno@clisp.org>
89854         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
89855         Set LIBSOCKET instead of augmenting LIBS.
89856         * modules/sockets (Link): New section.
89857         * modules/sockets-tests (test_sockets_LDADD): New variable.
89858         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
89859         * modules/poll-tests (test_poll_LDADD): New variable.
89860         * NEWS: Document the change.
89862 2008-09-29  Bruno Haible  <bruno@clisp.org>
89864         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
89865         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
89866         ARPA_INET_H directly.
89867         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
89869 2008-09-28  Bruno Haible  <bruno@clisp.org>
89871         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
89872         from gl_HEADER_SYS_SOCKET.
89873         (gl_HEADER_SYS_SOCKET): Invoke it.
89874         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
89876 2008-09-28  Bruno Haible  <bruno@clisp.org>
89878         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
89879         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
89880         Needed on OSF/1 4.0.
89882 2008-09-28  Bruno Haible  <bruno@clisp.org>
89884         Override open more carefully.
89885         * lib/open.c (orig_open): New function.
89886         (rpl_open): Use orig_open instead of open.
89887         * lib/fcntl.in.h: Add special invocation convention.
89888         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
89889         (gl_FUNC_OPEN): Invoke it.
89891         Override freopen more carefully.
89892         * lib/freopen.c (orig_freopen): New function.
89893         (rpl_freopen): Use orig_freopen instead of freopen.
89894         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
89895         (gl_FUNC_FREOPEN): Invoke it.
89897         Override fopen more carefully.
89898         * lib/fopen.c (orig_fopen): New function.
89899         (rpl_fopen): Use orig_fopen instead of fopen.
89900         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
89901         (gl_FUNC_FOPEN): Invoke it.
89902         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
89904 2008-09-28  Bruno Haible  <bruno@clisp.org>
89906         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
89907         SIGPIPE.
89909 2008-09-28  Bruno Haible  <bruno@clisp.org>
89911         * tests/test-sigaction.c (handler, main): Disable the check whether
89912         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
89913         glibc systems with LinuxThreads.
89915 2008-09-28  Bruno Haible  <bruno@clisp.org>
89917         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
89919         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
89920         with AIX xlc.
89921         * lib/fcntl.in.h (open): Likewise.
89922         Reported by Rainer Tammer <tammer@tammer.net>.
89924 2008-09-28  Bruno Haible  <bruno@clisp.org>
89926         * modules/posix_spawnp-tests: New file.
89927         * tests/test-posix_spawn.c: New file.
89928         * tests/test-posix_spawn.in.sh: New file.
89930         New module 'posix_spawnp'.
89931         * modules/posix_spawnp: New file.
89932         * lib/spawnp.c: New file, from GNU libc with modifications.
89933         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
89935         New module 'posix_spawn'.
89936         * modules/posix_spawn: New file.
89937         * lib/spawn.c: New file, from GNU libc with modifications.
89938         * doc/posix-functions/posix_spawn.texi: Mention the new module.
89940         New module 'posix_spawnattr_destroy'.
89941         * modules/posix_spawnattr_destroy: New file.
89942         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
89943         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
89944         module.
89946         New module 'posix_spawnattr_setsigmask'.
89947         * modules/posix_spawnattr_setsigmask: New file.
89948         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
89949         modifications.
89950         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
89951         new module.
89953         New module 'posix_spawnattr_getsigmask'.
89954         * modules/posix_spawnattr_getsigmask: New file.
89955         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
89956         modifications.
89957         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
89958         new module.
89960         New module 'posix_spawnattr_setsigdefault'.
89961         * modules/posix_spawnattr_setsigdefault: New file.
89962         * lib/spawnattr_setdefault.c: New file, from GNU libc with
89963         modifications.
89964         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
89965         new module.
89967         New module 'posix_spawnattr_getsigdefault'.
89968         * modules/posix_spawnattr_getsigdefault: New file.
89969         * lib/spawnattr_getdefault.c: New file, from GNU libc with
89970         modifications.
89971         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
89972         new module.
89974         New module 'posix_spawnattr_setschedpolicy'.
89975         * modules/posix_spawnattr_setschedpolicy: New file.
89976         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
89977         modifications.
89978         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
89979         new module.
89981         New module 'posix_spawnattr_getschedpolicy'.
89982         * modules/posix_spawnattr_getschedpolicy: New file.
89983         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
89984         modifications.
89985         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
89986         new module.
89988         New module 'posix_spawnattr_setschedparam'.
89989         * modules/posix_spawnattr_setschedparam: New file.
89990         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
89991         modifications.
89992         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
89993         new module.
89995         New module 'posix_spawnattr_getschedparam'.
89996         * modules/posix_spawnattr_getschedparam: New file.
89997         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
89998         modifications.
89999         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
90000         new module.
90002         New module 'posix_spawnattr_setpgroup'.
90003         * modules/posix_spawnattr_setpgroup: New file.
90004         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
90005         modifications.
90006         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
90007         module.
90009         New module 'posix_spawnattr_getpgroup'.
90010         * modules/posix_spawnattr_getpgroup: New file.
90011         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
90012         modifications.
90013         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
90014         module.
90016         New module 'posix_spawnattr_setflags'.
90017         * modules/posix_spawnattr_setflags: New file.
90018         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
90019         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
90020         module.
90022         New module 'posix_spawnattr_getflags'.
90023         * modules/posix_spawnattr_getflags: New file.
90024         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
90025         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
90026         module.
90028         New module 'posix_spawnattr_init'.
90029         * modules/posix_spawnattr_init: New file.
90030         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
90031         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
90032         module.
90034         New module 'posix_spawn_file_actions_destroy'.
90035         * modules/posix_spawn_file_actions_destroy: New file.
90036         * lib/spawn_faction_destroy.c: New file, from GNU libc with
90037         modifications.
90038         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
90039         the new module.
90041         New module 'posix_spawn_file_actions_addopen'.
90042         * modules/posix_spawn_file_actions_addopen: New file.
90043         * lib/spawn_faction_addopen.c: New file, from GNU libc with
90044         modifications.
90045         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
90046         the new module.
90048         New module 'posix_spawn_file_actions_adddup2'.
90049         * modules/posix_spawn_file_actions_adddup2: New file.
90050         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
90051         modifications.
90052         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
90053         the new module.
90055         New module 'posix_spawn_file_actions_addclose'.
90056         * modules/posix_spawn_file_actions_addclose: New file.
90057         * lib/spawn_faction_addclose.c: New file, from GNU libc with
90058         modifications.
90059         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
90060         the new module.
90062         New module 'posix_spawn_file_actions_init'.
90063         * modules/posix_spawn_file_actions_init: New file.
90064         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
90065         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
90066         new module.
90068         New module 'posix_spawn-internal'.
90069         * modules/posix_spawn-internal: New file.
90070         * lib/spawn_int.h: New file, from GNU libc with modifications.
90071         * lib/spawni.c: New file, from GNU libc with modifications.
90072         * m4/posix_spawn.m4: New file.
90074         New module 'spawn'.
90075         * modules/spawn: New file.
90076         * lib/spawn.in.h: New file, from GNU libc with modifications.
90077         * m4/spawn_h.m4: New file.
90078         * doc/posix-headers/spawn.texi: Mention the new module.
90080 2008-09-28  Bruno Haible  <bruno@clisp.org>
90082         * modules/sched-tests: New file.
90083         * tests/test-sched.c: New file.
90085         New module 'sched'.
90086         * modules/sched: New file.
90087         * lib/sched.in.h: New file.
90088         * m4/sched_h.m4: New file.
90089         * doc/posix-headers/sched.texi: Mention the new module.
90091 2008-09-27  Eric Blake  <ebb9@byu.net>
90093         Fix previous patch, and tweak references to $0.
90094         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
90095         (func_version, func_gnulib_dir): Don't call this program
90096         gnulib-tool.
90097         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
90098         with using $0 in function.
90099         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
90100         (func_fatal_error): Reuse the name the user invoked us with.
90102 2008-09-27  Bruno Haible  <bruno@clisp.org>
90104         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
90105         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
90106         (gl_ICONV_H): Not here.
90107         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
90108         instead of assigning ICONV_H directly.
90110         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
90111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
90112         WCHAR_H directly.
90114 2008-09-27  Bruno Haible  <bruno@clisp.org>
90116         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
90117         * modules/arpa_inet (Depends-on): Add link-warning.
90118         (Makefile.am): Insert the definition of GL_LINK-WARNING.
90119         * modules/unistd (Makefile.am): Likewise.
90121 2008-09-26  Bruno Haible  <bruno@clisp.org>
90123         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
90124         variables.
90125         (func_version): Essentially copied from gnulib-tool.
90126         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
90127         func_readlink): Copied from gnulib-tool.
90129 2008-09-26  Bruno Haible  <bruno@clisp.org>
90131         * gnulib-tool (func_version): Change directory to $gnulib_dir before
90132         invoking git-version-gen.
90134 2008-09-26  Bruno Haible  <bruno@clisp.org>
90136         * posix-modules: Update to directory names changed on 2008-01-19.
90137         Remove commas in output before splitting into words. No more need to
90138         avoid 'ftruncate' since 2007-02-19.
90140 2008-09-26  Bruno Haible  <bruno@clisp.org>
90142         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
90144 2008-09-26  Bruno Haible  <bruno@clisp.org>
90146         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
90147         * modules/fwriteerror (Depends-on): Add errno.
90149 2008-09-26  Bruno Haible  <bruno@clisp.org>
90151         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
90152         * tests/test-vc-list-files-cvs.sh: Likewise.
90154 2008-09-26  Bruno Haible  <bruno@clisp.org>
90156         * doc/posix-headers/sys_resource.texi: Reorder items.
90158 2008-09-26  Jim Meyering  <meyering@redhat.com>
90160         fts: tweak inode comparison function
90161         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
90162         inode numbers, as documented.
90164         fts: sort dirent entries on inode number before traversing
90165         This avoids a quadratic, seek-related performance penalty when
90166         operating on a directory containing many entries (measurable at 10k;
90167         3.5 hours at 2 million entries with a cold cache) on certain types
90168         of file systems, including ext3 and ext4, but not tmpfs.
90169         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
90170         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
90171         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
90172         (fs_handles_readdir_ordered_dirents_efficiently): New function.
90173         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
90174         (fts_build): Set the stat.st_ino member from D_INO.
90175         If it is likely to be useful, sort dirent entries on inode number.
90177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
90178         and the struct statfs.f_type member.
90179         * modules/fts (Depends-on): Add d-ino.
90181 2008-09-26  Bruno Haible  <bruno@clisp.org>
90183         * modules/sigpipe-die (Depends-on): Add sigpipe.
90185         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
90186         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
90187         and GNULIB_STDIO_H_SIGPIPE are set.
90188         * lib/stdio-write.c: New file.
90189         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
90190         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90191         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90192         REPLACE_STDIO_WRITE_FUNCS.
90193         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
90194         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90195         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90196         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90197         * modules/stdio (Files): Add lib/stdio-write.c.
90198         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
90199         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90200         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90201         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90202         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
90203         REPLACE_FPRINTF_POSIX.
90204         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
90205         REPLACE_PRINTF_POSIX.
90206         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
90207         REPLACE_VFPRINTF_POSIX.
90208         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
90209         REPLACE_VPRINTF_POSIX.
90210         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
90211         SIGPIPE issue.
90212         * doc/posix-functions/fputc.texi: Likewise.
90213         * doc/posix-functions/fputs.texi: Likewise.
90214         * doc/posix-functions/fwrite.texi: Likewise.
90215         * doc/posix-functions/printf.texi: Likewise.
90216         * doc/posix-functions/putc.texi: Likewise.
90217         * doc/posix-functions/putchar.texi: Likewise.
90218         * doc/posix-functions/puts.texi: Likewise.
90219         * doc/posix-functions/vfprintf.texi: Likewise.
90220         * doc/posix-functions/vprintf.texi: Likewise.
90222         * modules/safe-write (Depends-on): Add write.
90224         * modules/sigpipe-tests: New file.
90225         * tests/test-sigpipe.c: New file.
90226         * tests/test-sigpipe.sh: New file.
90228         * modules/write: New file.
90229         * lib/unistd.in.h: Include <sys/types.h>.
90230         (write): New declaration.
90231         * lib/write.c: New file.
90232         * m4/write.m4: New file.
90233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90234         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
90235         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
90236         GNULIB_WRITE, REPLACE_WRITE.
90237         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
90238         and the SIGPIPE issue.
90240         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
90241         (raise): New declaration.
90242         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
90243         (ext_signal): New function.
90244         (rpl_raise): New function.
90245         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
90246         GNULIB_SIGNAL_H_SIGPIPE.
90247         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
90248         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
90250         * modules/sigpipe: New file.
90251         * m4/sigpipe.m4: New file.
90253 2008-09-25  Derek Price  <derek@ximbiot.com>
90254             Bruno Haible  <bruno@clisp.org>
90256         * gnulib-tool (func_import): Report all license incompatibilities, not
90257         just the first one.
90259 2008-09-25  Bruno Haible  <bruno@clisp.org>
90261         * gnulib-tool (func_import): When computing the edits, consider not
90262         only the Makefile.ams that exist but also those that will be generated.
90264 2008-09-25  Simon Josefsson  <simon@josefsson.org>
90266         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
90267         fixes gnulib-tool --test warning about duplicate dependency.
90269 2008-09-25  Bruno Haible  <bruno@clisp.org>
90271         * gnulib-tool: Don't ask the user to perform edits in the generated
90272         Makefile.ams.
90273         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
90274         apply to the Makefile.am being generated.
90275         (func_emit_tests_Makefile_am): Execute edits that apply to the
90276         Makefile.am being generated.
90277         (func_import): Setup list of Makefile.am edits before emitting the
90278         Makefile.ams, not at the end.
90279         (func_create_testdir): Update.
90280         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90282 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90284         * gnulib-tool (func_import): Store the --tests-base option in the
90285         comment in gnulib-cache.m4.
90287 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
90289         * NEWS: Document increased portability that sys_select now provides.
90291         * lib/sys_select.in.h: Install select wrapper.
90292         * lib/sys_socket.in.h: Use more descriptive name when there is no
90293         select wrapper.
90294         * lib/winsock-select.c: New.
90295         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
90296         Require gl_HEADER_SYS_SOCKET.
90297         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
90298         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
90299         * tests/test-sys_select.c: Add functional tests.
90301 2008-09-24  Eric Blake  <ebb9@byu.net>
90303         open, fopen: close fd leak in last patch
90304         * lib/open.c (rpl_open): Close fd before returning error.
90305         * lib/fopen.c (rpl_fopen): Close fd before returning error.
90306         * doc/posix-functions/open.texi (open): Document that Irix also
90307         has the bug.
90308         * doc/posix-functions/fopen.texi (fopen): Likewise.
90309         Reported by Paolo Bonzini.
90311 2008-09-24  Bruno Haible  <bruno@clisp.org>
90313         Ensure that a filename ending in a slash cannot be used to access a
90314         non-directory.
90315         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
90316         to check whether it's really a directory.
90317         * lib/fopen.c: Include fcntl.h, unistd.h.
90318         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
90319         and fdopen().
90320         * modules/fopen (Depends-on): Add unistd.
90321         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
90322         * tests/test-fopen.c (main): Likewise.
90323         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
90324         * doc/posix-functions/fopen.texi: Likewise.
90325         Reported by Eric Blake.
90327 2008-09-23  Eric Blake  <ebb9@byu.net>
90329         c-stack: avoid compiler optimizations when provoking overflow
90330         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
90331         recursion harder to optimize, to ensure a stack overflow occurs.
90332         * tests/test-c-stack.c (recurse): Likewise.
90333         Borrowed from libsigsegv.
90335         c-stack: work around Irix sigaltstack bug
90336         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
90337         whether sigaltstack uses wrong end of stack_t (copied in part from
90338         libsigsegv).
90339         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
90340         Irix bug, without requiring an over-allocation.
90341         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
90342         bug.
90344         fopen: document mingw bug on directories
90345         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
90346         not allowing a stream visiting a directory, even though reading
90347         from such a stream is not portable.
90349 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90351         * lib/poll.c: Rewrite.
90352         * modules/poll: Depend on alloca.
90354 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90356         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
90357         instead define prototypes for a full set of wrappers.  Ensure
90358         that Cygwin does not use the compatibility code, which is only
90359         for MinGW.
90360         * lib/winsock.c: New.
90361         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
90362         * modules/sys_socket: Add lib/winsock.c.
90364         * modules/poll-tests: Add errno and perror.
90365         * tests/test-poll.c: Use ioctl, not ioctlsocket.
90367 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90369         * tests/test-poll.c: Downgrade minimum needed Winsock version.
90371 2008-09-23  Bruno Haible  <bruno@clisp.org>
90373         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
90374         * doc/glibc-functions/*: Likewise.
90376 2008-09-23  Simon Josefsson  <simon@josefsson.org>
90378         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
90379         success.
90381 2008-09-22  Eric Blake  <ebb9@byu.net>
90382             Bruno Haible  <bruno@clisp.org>
90384         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
90385         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
90386         supply %A but mishandle pseudo-NaN.
90387         Reported by Simon Josefsson.
90389 2008-09-21  Bruno Haible  <bruno@clisp.org>
90391         * tests/test-lock.c (main): Tweak skip message.
90392         * tests/test-tls.c (main): Likewise.
90394 2008-09-21  Bruno Haible  <bruno@clisp.org>
90396         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
90397         whether 'struct sigaction' has sa_sigaction here...
90398         (gl_PREREQ_SIG_HANDLER_H): ... not here.
90399         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
90401 2008-09-21  Bruno Haible  <bruno@clisp.org>
90403         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
90404         section.
90405         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
90406         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
90407         the new section.
90408         (Support for obsolete systems lacking POSIX:2001): New section.
90409         (String handling <string.h>): Move strdup to the new section.
90410         Suggested by Simon Josefsson and Paolo Bonzini.
90412 2008-09-21  Bruno Haible  <bruno@clisp.org>
90414         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
90415         exponents in %e and %g results on 'long double'. Needed for mingw's
90416         improved *printf functions.
90417         * tests/test-vasprintf-posix.c (test_function): Likewise.
90418         * tests/test-snprintf-posix.h (test_function): Likewise.
90419         * tests/test-sprintf-posix.h (test_function): Likewise.
90420         Reported by Eric Blake.
90422 2008-09-21  Bruno Haible  <bruno@clisp.org>
90424         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
90425         * tests/test-sprintf-posix.h (test_function): Likewise.
90427 2008-09-21  Bruno Haible  <bruno@clisp.org>
90429         * modules/getpass (Depends-on): Add strdup-posix.
90431         New module 'strdup-posix'.
90432         * modules/strdup-posix: New file.
90433         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
90434         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
90435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90436         REPLACE_STRDUP.
90437         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
90438         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
90439         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90440         strdup-posix.
90442         * modules/strdup (Depends-on): Remove malloc-posix.
90444 2008-09-20  Bruno Haible  <bruno@clisp.org>
90446         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
90447         Wildenhues.
90449 2008-09-20  Bruno Haible  <bruno@clisp.org>
90451         Ensure that wint_t gets defined on IRIX 5.3.
90452         * lib/wchar.in.h (wint_t): Define if not defined by the system.
90453         * lib/wctype.in.h (wint_t): Likewise.
90454         (__wctype_wint_t): Remove type.
90455         (isw*): Use wint_t instead of __wctype_wint_t.
90456         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
90457         * modules/wchar (Files): Add m4/wint_t.m4.
90458         (Makefile.am): Substitute HAVE_WINT_T.
90459         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
90460         * tests/test-wctype.c: Check that wint_t is defined.
90461         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
90462         * doc/posix-headers/wctype.texi: Likewise.
90463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
90465 2008-09-18  Bruno Haible  <bruno@clisp.org>
90467         * gnulib-tool (func_exit): Update comment.
90469 2008-09-18  Simon Josefsson  <simon@josefsson.org>
90471         * modules/getaddrinfo (Depends-on): Remove strdup, this module
90472         assumes strdup exists and does not depend on strdup to return
90473         ENOMEM on out of memory conditions.
90475 2008-09-18  Bruno Haible  <bruno@clisp.org>
90477         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
90478         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
90479         digits for the exponent.
90481 2008-09-18  Jim Meyering  <meyering@redhat.com>
90482             Bruno Haible  <bruno@clisp.org>
90484         * lib/vasnprintf.c (decimal_point_char): Define also if
90485         NEED_PRINTF_INFINITE_LONG_DOUBLE.
90487 2008-09-16  Bruno Haible  <bruno@clisp.org>
90488         and Eric Blake  <ebb9@byu.net>
90490         vasnprintf: support Irix 5.3
90491         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
90492         that mishandle long double infinity.
90493         Reported by Tom G. Christensen.
90495 2008-09-16  Bruno Haible  <bruno@clisp.org>
90497         * doc/glibc-functions/scandir.texi: Mention the function is missing on
90498         Solaris 9.
90499         * doc/glibc-functions/alphasort.texi: Likewise.
90500         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
90502 2008-09-16  Jim Meyering  <meyering@redhat.com>
90504         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
90505         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
90506         a umask modification leak out of a subshell.  Otherwise, the
90507         opensolaris /bin/sh would be accepted and thus cause unwarranted
90508         failures in the coreutils test suite.
90510 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
90512         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
90513         to succeed.
90515 2008-09-16  Jim Meyering  <meyering@redhat.com>
90517         avoid spurious test failure when library is built without ACL support
90518         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
90519         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
90520         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
90521         * tests/test-copy-acl.sh: Likewise.
90523 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90525         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
90526         based on character occurrence counts.
90528 2008-09-15  Eric Blake  <ebb9@byu.net>
90530         tests: avoid some compiler warnings
90531         * tests/test-memchr.c (main): Pass NULL indirectly.
90532         * tests/test-closein.c (main): Avoid unused variable.
90534 2008-09-15  Bruno Haible  <bruno@clisp.org>
90536         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
90537         are missing on OpenBSD 4.0 individually.
90538         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90540 2008-09-15  Bruno Haible  <bruno@clisp.org>
90542         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
90543         * doc/posix-functions/strerror.texi: Mention also Cygwin.
90544         * doc/posix-functions/perror.texi: Likewise.
90545         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
90546         is missing.
90547         Reported by Eric Blake.
90549         * lib/errno.in.h: Use replacement values >= 2000.
90550         Reported by Eric Blake.
90552 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90554         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
90555         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
90556         limit.
90557         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
90558         compareseq was aborted.
90560 2008-09-14  Bruno Haible  <bruno@clisp.org>
90562         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
90563         yvec_edit_count.
90564         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
90565         (fstrcmp_bounded): Simplify result computation accordingly.
90567 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90569         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
90570         (fstrcmp): Define in terms of fstrcmp_bounded.
90571         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
90572         lower_bound argument.
90573         Return quickly if the result is certainly < lower_bound.
90574         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
90576 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90578         * lib/diffseq.h (EARLY_ABORT): New macro.
90579         (compareseq): Change return type to bool. Return true when EARLY_ABORT
90580         evaluates to true.
90582 2008-09-14  Bruno Haible  <bruno@clisp.org>
90584         * modules/perror-tests: New file.
90585         * tests/test-perror.sh: New file.
90586         * tests/test-perror.c: New file.
90588         New module 'perror'.
90589         * lib/stdio.in.h (perror): New declaration.
90590         * lib/perror.c: New file.
90591         * m4/perror.m4: New file.
90592         * modules/perror: New file.
90593         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
90594         * doc/posix-functions/perror.texi: Mention the perror module.
90595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
90596         REPLACE_PERROR.
90597         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
90598         REPLACE_PERROR.
90600 2008-09-14  Bruno Haible  <bruno@clisp.org>
90602         * modules/stdio (Makefile.am): Reorder to match the order in
90603         lib/stdio.in.h.
90604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90606 2008-09-13  Bruno Haible  <bruno@clisp.org>
90608         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
90610 2008-09-13  Bruno Haible  <bruno@clisp.org>
90612         Extend strerror to cover the added errno values.
90613         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
90614         (rpl_strerror): Provide error messages for the added errno values and
90615         for the WSA* values.
90616         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
90617         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
90618         strerror.
90619         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
90620         * modules/strerror (Depends-on): Add errno.
90621         * doc/posix-functions/strerror.texi: Document the change.
90622         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
90623         and EOVERFLOW.
90625 2008-09-13  Bruno Haible  <bruno@clisp.org>
90627         * modules/EOVERFLOW: Remove file.
90628         * m4/eoverflow.m4: Remove file.
90629         * modules/EOVERFLOW-tests: Remove file.
90630         * tests/test-EOVERFLOW.c: Remove file.
90631         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
90632         * modules/ftell (Depends-on): Likewise.
90633         * modules/getdelim (Depends-on): Likewise.
90634         * modules/getugroups (Depends-on): Likewise.
90635         * modules/poll (Depends-on): Likewise.
90636         * modules/snprintf (Depends-on): Likewise.
90637         * modules/sprintf-posix (Depends-on): Likewise.
90638         * modules/vasnprintf (Depends-on): Likewise.
90639         * modules/vasprintf (Depends-on): Likewise.
90640         * modules/vfprintf-posix (Depends-on): Likewise.
90641         * modules/vsnprintf (Depends-on): Likewise.
90642         * modules/vsprintf-posix (Depends-on): Likewise.
90643         * modules/xvasprintf (Depends-on): Likewise.
90644         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
90645         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
90646         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
90647         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
90648         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
90649         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
90650         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
90651         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
90652         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
90653         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
90654         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
90655         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
90656         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
90657         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
90658         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
90659         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
90660         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
90661         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
90662         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
90663         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
90664         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
90665         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
90666         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
90667         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
90668         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
90669         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
90670         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
90671         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
90672         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
90673         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
90674         * MODULES.html.sh: Remove EOVERFLOW.
90675         * NEWS: Mention the change.
90677 2008-09-13  Bruno Haible  <bruno@clisp.org>
90679         * modules/errno-tests: New file.
90680         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
90682         * lib/errno.in.h: New file.
90683         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
90684         * modules/errno: New file.
90685         * doc/posix-headers/errno.texi: Update documentation.
90686         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
90688 2008-09-13  Bruno Haible  <bruno@clisp.org>
90690         * tests/test-poll.c: Use #if for native Windows, rather than testing
90691         __MSVCRT__.
90693 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90694             Bruno Haible  <bruno@clisp.org>
90696         * lib/glob.c: Don't include <pwd.h> on native Windows.
90697         (WINDOWS32): New macro.
90698         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
90700 2008-09-13  Bruno Haible  <bruno@clisp.org>
90702         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
90703         (ETIMEDOUT): Remove macro.
90704         (glthread_cond_timedwait_multithreaded): New declaration.
90705         (glthread_cond_timedwait): Use it.
90706         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
90707         (glthread_cond_timedwait_multithreaded): New function.
90709 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
90711         * modules/poll-tests: Do not check for io.h.
90712         * tests/test-poll.c: Check for __MSVCRT__ instead.
90714 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
90716         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
90717         * modules/poll-tests: Add inet_pton, stdbool, sockets.
90718         * tests/test-poll.c: Use them.  Use _pipe on Windows.
90720 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
90722         * modules/poll-tests: New.
90723         * tests/test-poll.c: New.
90725 2008-09-12  Eric Blake  <ebb9@byu.net>
90727         frexp: test for NetBSD failure on -0.0
90728         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
90729         not all, bugs from NetBSD 3.0 have been fixed.
90730         * doc/posix-functions/frexp.texi (frexp): Document bug.
90731         Reported by Thomas Klausner.
90733         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
90734         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
90735         literal -0.0.
90736         Reported by Jonathan C. Patschke <jp@centtech.com>.
90738 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90740         * lib/glthread/cond.h: Use dummy implementation also if
90741         USE_WIN32_THREADS.
90743 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90745         * modules/fnmatch-posix (License): Change to LGPLv2+.
90746         * modules/fnmatch-gnu (License): Likewise.
90748 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90750         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
90752 2008-09-11  Jim Meyering  <meyering@redhat.com>
90754         * users.txt: Add gtk-vnc.
90756 2008-09-08  Simon Josefsson  <simon@josefsson.org>
90758         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
90759         rotate amounts.
90761         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
90762         required for 16-bit and 8-bit rotates.
90763         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
90764         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
90765         UINT8_MAX instead of hard-coded constants.
90766         Suggested by Paul Eggert.
90768 2008-09-07  Bruno Haible  <bruno@clisp.org>
90770         * tests/test-striconveh.c (main): Check behaviour when converting from
90771         UTF-7.
90773         Make striconveh work better with stateful encodings.
90774         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
90775         that iconv does not increment the inptr when returning -1/EINVAL.
90777 2008-09-07  Bruno Haible  <bruno@clisp.org>
90779         * build-aux/config.rpath: Update according to libtool-2.2.6.
90780         * build-aux/config.libpath: Likewise.
90782 2008-09-06  Bruno Haible  <bruno@clisp.org>
90784         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
90785         * lib/freadptr.c (freadptr): Likewise.
90786         * lib/freadseek.c (freadptrinc): Likewise.
90787         Reported by Simon Josefsson.
90789 2008-09-06  Bruno Haible  <bruno@clisp.org>
90791         * modules/freadptr (License): Change to LGPLv2+.
90792         * modules/freadseek (License): Likewise.
90793         Suggested by Eric Blake.
90795         * modules/memchr2 (License): Change to LGPLv2+.
90796         Approved by Eric Blake.
90798 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90799             Bruno Haible  <bruno@clisp.org>
90801         Make gnulib-tool work with native 'sed' on AIX.
90802         * gnulib-tool (sed_noop): New variable.
90803         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
90804         func_add_or_update, func_create_testdir): Use it to initialize sed
90805         script variables.
90806         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90808 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
90809             Bruno Haible  <bruno@clisp.org>
90811         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
90812         also works after #include directives.
90814 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
90816         getdate.y: reject an out-of-range timezone value
90817         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
90818         the range [-24...+24].  When specified with only one or two digits,
90819         * tests/test-getdate.c: Tests for the fix.
90820         * doc/getdate.texi: Document this change.
90822 2008-09-03  Bruno Haible  <bruno@clisp.org>
90824         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
90826 2008-09-02  Simon Josefsson  <simon@josefsson.org>
90828         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
90829         <bruce.korb@gmail.com> with ideas from Ben Pfaff
90830         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
90831         Blake <ebb9@byu.net>.
90833         * tests/test-bitrotate.c: Add more test vectors.
90835 2008-09-02  Eric Blake  <ebb9@byu.net>
90837         vasnprintf-posix: handle large precision via %.*d
90838         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
90839         when handling it ourselves.
90840         * tests/test-vasnprintf-posix.c (test_function): Add test.
90841         * tests/test-snprintf-posix.h (test_function): Likewise.
90842         * tests/test-sprintf-posix.h (test_function): Likewise.
90843         * tests/test-vasprintf-posix.c (test_function): Likewise.
90844         Reported by Alain Guibert.
90846 2008-09-01  Eric Blake  <ebb9@byu.net>
90848         c-stack: make configure-time check more robust
90849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
90850         successful sigaction call.
90851         Reported by Tom G. Christensen.
90853 2008-09-01  Bruno Haible  <bruno@clisp.org>
90855         New module 'findprog-lgpl'.
90856         * modules/findprog-lgpl: New file.
90857         * lib/findprog-lgpl.c: New file.
90858         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
90859         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
90860         to decide whether to use strdup or xstrdup, concatenated_filename or
90861         xconcatenated_filename.
90863 2008-09-01  Bruno Haible  <bruno@clisp.org>
90865         Split module 'concat-filename' into 'concat-filename' (LGPL) and
90866         'xconcat-filename' (GPL).
90867         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
90868         (License): Change to LGPLv2+.
90869         * modules/xconcat-filename: New file.
90870         * lib/concat-filename.h (concatenated_filename): Change specification.
90871         (xconcatenated_filename): New declaration.
90872         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
90873         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
90874         memory situations.
90875         * lib/xconcat-filename.c: New file.
90876         * NEWS: Mention the change.
90877         * lib/findprog.c: Include concat-filename.h, not filename.h.
90878         (find_in_path): Use xconcatenated_filename instead of
90879         concatenated_filename.
90880         * lib/javacomp.c: Include concat-filename.h, not filename.h.
90881         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
90882         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
90883         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
90884         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
90885         instead of concatenated_filename.
90886         * lib/javaexec.c: Include concat-filename.h, not filename.h.
90887         (execute_java_class): Use xconcatenated_filename instead of
90888         concatenated_filename.
90889         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
90890         * modules/javacomp (Depends-on): Likewise.
90891         * modules/javaexec (Depends-on): Likewise.
90893 2008-09-01  Bruno Haible  <bruno@clisp.org>
90895         Split module 'filename' into 'filename' and 'concat-filename'.
90896         * modules/filename: Keep only lib/filename.h.
90897         (License): Change to LGPLv2+.
90898         * modules/concat-filename: New file, extracted from modules/filename.
90899         * lib/filename.h (concatenated_filename): Remove declaration.
90900         * lib/concat-filename.h: New file, extracted from lib/filename.h.
90901         * lib/concat-filename.c: Include concat-filename.h.
90902         * NEWS: Mention the change.
90904 2008-09-01  Simon Josefsson  <simon@josefsson.org>
90906         * lib/bitrotate.h (rotl8, rotr8): Add.
90908         * modules/bitrotate (configure.ac): Need
90909         AC_REQUIRE([AC_C_INLINE]).
90910         (Description): Mention stdint.h.  Reported by Bruno Haible
90911         <bruno@clisp.org>.
90913         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
90914         Paolo Bonzini <bonzini@gnu.org>.
90916 2008-08-31  Bruno Haible  <bruno@clisp.org>
90918         Assume Solaris specific bi-arch conventions on Solaris systems.
90919         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
90920         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
90921         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
90922         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
90923         like acl_libdirstem.
90924         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
90925         acl_libdirstem.
90926         * NEWS: Mention the change.
90927         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
90929 2008-08-31  Jim Meyering  <meyering@redhat.com>
90931         * lib/strftime.h: Add comments describing the two added arguments.
90933         remove duplicate #include directives
90934         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
90935         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
90937 2008-08-31  Bruno Haible  <bruno@clisp.org>
90939         New module 'sigpipe-die'.
90940         * modules/sigpipe-die: New file.
90941         * lib/sigpipe-die.h: New file.
90942         * lib/sigpipe-die.c: New file.
90943         * MODULES.html.sh (Signal handling): Add sigpipe-die.
90945 2008-08-31  Bruno Haible  <bruno@clisp.org>
90947         Don't override previously installed signal handlers.
90948         * lib/fatal-signal.c (saved_sigactions): New variable.
90949         (uninstall_handlers): Reset the signal to the saved handler, not
90950         to SIG_DFL (except when ignored).
90951         (install_handlers): Save the previous handlers.
90953 2008-08-30  Bruno Haible  <bruno@clisp.org>
90955         * gnulib-tool (func_reset_sigpipe): New function.
90956         (func_get_automake_snippet, func_modules_transitive_closure,
90957         func_import): Invoke it before a join command that reads from stdin,
90958         to avoid "echo: write error: Broken pipe" error messages on stderr.
90959         Reported by Sam Steingold <sds@gnu.org>.
90961 2008-08-30  Bruno Haible  <bruno@clisp.org>
90963         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
90964         Code copied from m4/open.m4.
90965         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
90966         access and the filename ends in a slash. Code copied from lib/open.c.
90967         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
90968         * tests/test-fopen.c (main): Check against bug with trailing slash.
90970 2008-08-29  Bruno Haible  <bruno@clisp.org>
90972         Avoid some "gcc -pedantic" warnings.
90973         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
90974         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
90975         * lib/dirent.in.h: Likewise.
90976         * lib/fcntl.in.h: Likewise.
90977         * lib/float.in.h: Likewise.
90978         * lib/iconv.in.h: Likewise.
90979         * lib/inttypes.in.h: Likewise.
90980         * lib/locale.in.h: Likewise.
90981         * lib/math.in.h: Likewise.
90982         * lib/netinet_in.in.h: Likewise.
90983         * lib/search.in.h: Likewise.
90984         * lib/signal.in.h: Likewise.
90985         * lib/stdarg.in.h: Likewise.
90986         * lib/stdint.in.h: Likewise.
90987         * lib/stdio.in.h: Likewise.
90988         * lib/stdlib.in.h: Likewise.
90989         * lib/string.in.h: Likewise.
90990         * lib/strings.in.h: Likewise.
90991         * lib/sys_select.in.h: Likewise.
90992         * lib/sys_socket.in.h: Likewise.
90993         * lib/sys_stat.in.h: Likewise.
90994         * lib/sys_time.in.h: Likewise.
90995         * lib/sysexits.in.h: Likewise.
90996         * lib/time.in.h: Likewise.
90997         * lib/unistd.in.h: Likewise.
90998         * lib/wchar.in.h: Likewise.
90999         * lib/wctype.in.h: Likewise.
91000         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
91001         * modules/fchdir (Makefile.am): Likewise.
91002         * modules/fcntl (Makefile.am): Likewise.
91003         * modules/float (Makefile.am): Likewise.
91004         * modules/iconv_open (Makefile.am): Likewise.
91005         * modules/inttypes (Makefile.am): Likewise.
91006         * modules/locale (Makefile.am): Likewise.
91007         * modules/math (Makefile.am): Likewise.
91008         * modules/netinet_in (Makefile.am): Likewise.
91009         * modules/search (Makefile.am): Likewise.
91010         * modules/signal (Makefile.am): Likewise.
91011         * modules/stdarg (Makefile.am): Likewise.
91012         * modules/stdint (Makefile.am): Likewise.
91013         * modules/stdio (Makefile.am): Likewise.
91014         * modules/stdlib (Makefile.am): Likewise.
91015         * modules/string (Makefile.am): Likewise.
91016         * modules/strings (Makefile.am): Likewise.
91017         * modules/sys_select (Makefile.am): Likewise.
91018         * modules/sys_socket (Makefile.am): Likewise.
91019         * modules/sys_stat (Makefile.am): Likewise.
91020         * modules/sys_time (Makefile.am): Likewise.
91021         * modules/sysexits (Makefile.am): Likewise.
91022         * modules/time (Makefile.am): Likewise.
91023         * modules/unistd (Makefile.am): Likewise.
91024         * modules/wchar (Makefile.am): Likewise.
91025         * modules/wctype (Makefile.am): Likewise.
91026         Reported by Reuben Thomas <rrt@sc3d.org>.
91028 2008-08-29  Bruno Haible  <bruno@clisp.org>
91030         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
91031         any more.
91033 2008-08-29  Simon Josefsson  <simon@josefsson.org>
91035         * MODULES.html.sh (Misc): Add bitrotate.
91037         * modules/bitrotate: New file.
91039         * lib/bitrotate.h: New file.
91041         * modules/bitrotate-tests: New file.
91043         * tests/test-bitrotate.c: New file.
91045         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
91046         on the bitrotate module.
91048         * lib/arctwo.c: Use new bitrotate module.
91050 2008-08-29  Jim Meyering  <meyering@redhat.com>
91052         bootstrap: merge changes from coreutils
91053         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
91054         of copied files.  Remove a kludge, now that this is fixed.
91055         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
91056         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
91057         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
91059 2008-08-29  Bruno Haible  <bruno@clisp.org>
91061         * MODULES.html.sh: Remove --cvs-urls option.
91063 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
91065         maint.mk: adjust to file name change
91066         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
91068 2008-08-28  Jim Meyering  <meyering@redhat.com>
91070         * modules/getndelim2 (License): Relicense to LGPLv2+.
91071         Approved by Richard Stallman for the version of 1995, and by
91072         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
91074 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
91076         * lib/getdelim.c (flockfile, funlockfile): Make all of them
91077         dummy if one is not available.  Do not touch them if
91078         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
91079         (getc_maybe_unlocked): New.
91080         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
91082 2008-08-26  Eric Blake  <ebb9@byu.net>
91084         doc/INSTALL: resync from autoconf
91085         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
91086         (INSTALL_PRELUDE): Delete; this is done more efficiently by
91087         moving...
91088         * install.texi [!autoconf]: ...here.  Resync from autoconf.
91089         * INSTALL: Regenerate.
91090         * INSTALL.ISO: New file.
91091         * INSTALL.UTF-8: Likewise.
91093 2008-08-26  Jim Meyering  <meyering@redhat.com>
91095         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
91096         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
91097         these definitions conditional, so that they may be overridden, too.
91099 2008-08-26  Bruno Haible  <bruno@clisp.org>
91101         Generate INSTALL file variants with prettier quotes.
91102         * doc/Makefile (INSTALL_PRELUDE): New macro.
91103         (INSTALL): Use it.
91104         (INSTALL.ISO, INSTALL.UTF-8): New rules.
91106 2008-08-26  Bruno Haible  <bruno@clisp.org>
91108         Run makeinfo in an English locale.
91109         * doc/Makefile (MAKEINFO): New variable.
91111 2008-08-26  Bruno Haible  <bruno@clisp.org>
91113         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
91114         Suggested by Eric Blake.
91116 2008-08-25  Bruno Haible  <bruno@clisp.org>
91118         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
91120 2008-08-25  Eric Blake  <ebb9@byu.net>
91122         c-stack: test that stack overflow can be caught
91123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
91124         that platform allows handling stack overflow; at least OS/2 EMX
91125         has sigaltstack, but crashes before transferring control to
91126         handler on stack overflow.
91127         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
91128         check for HAVE_STACK_OVERFLOW_HANDLING.
91129         Reported by Elbert Pol.
91131 2008-08-25  Bruno Haible  <bruno@clisp.org>
91133         * doc/posix-functions/strftime.texi: Fix description of strftime
91134         module.
91136 2008-08-24  Bruno Haible  <bruno@clisp.org>
91138         * tests/uniwidth/test-uc_width2.c: New file.
91139         * tests/uniwidth/test-uc_width2.sh: New file.
91140         * modules/uniwidth/width-tests (Files): Add the new files.
91141         (TESTS): Add uniwidth/test-uc_width2.sh.
91142         (TESTS_ENVIRONMENT): New variable.
91143         (check_PROGRAMS): Add test-uc_width2.
91144         (test_uc_width2_SOURCES): New variable.
91146         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
91147         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
91148         not 0x00AB.
91149         Reported by Alexander V. Lukyanov <lav@netis.ru>.
91151 2008-08-22  Eric Blake  <ebb9@byu.net>
91153         test-lock, test-tls: mention why a test is skipped
91154         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
91155         skipped.
91156         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
91158         count-one-bits: relax license
91159         * modules/count-one-bits (License): Relicense to LGPLv2+.
91160         Suggested by Ludovic Courtès, approved by Ben Pfaff.
91162 2008-08-22  Andreas Schwab  <schwab@suse.de>
91164         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
91165         Remove spurious space in assignment.
91167 2008-08-21  Simon Josefsson  <simon@josefsson.org>
91169         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
91170         Paul Eggert <eggert@CS.UCLA.EDU>.
91172 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
91174         * modules/gettext: Add m4/threadlib.m4.
91176 2008-08-19  Eric Blake  <ebb9@byu.net>
91178         test-c-stack: fix compilation failure on FreeBSD 5.0
91179         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
91180         headers before <sys/resource.h>.
91181         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
91182         the bug.
91183         Reported by Nelson H. F. Beebe.
91185         strverscmp: migrate from "strverscmp.h" to <string.h>
91186         * modules/string (Makefile.am): Add new hooks.
91187         * modules/strverscmp (Files): Remove strverscmp.h.
91188         (Depends-on): Add string.
91189         (configure.ac): Add indicator.
91190         (Include): Mention new header.
91191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
91192         defaults.
91193         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
91194         results.
91195         * lib/strverscmp.h: Delete.
91196         * lib/string.in.h (strverscmp): Provide declaration, when needed.
91197         * tests/test-strverscmp.c (includes): Adjust client.
91198         * lib/check-version.c (includes): Likewise.
91199         * NEWS: Document the change.
91201         strverscmp: add unit test
91202         * modules/strverscmp-tests: New file.
91203         * tests/test-strverscmp.c: Likewise.
91205 2008-08-19  Simon Josefsson  <simon@josefsson.org>
91207         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
91208         regarding Windows crypto stuff, from Mono.
91210 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
91212         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
91213         if present, for intel RND.  Return error on failures.
91215 2008-08-18  Ben Pfaff  <blp@gnu.org>
91217         gitlog-to-changelog: give better diagnostic for failed pipe-open
91218         * build-aux/gitlog-to-changelog: Improve error message: suggest
91219         that the version of Git may be too old.
91221 2008-08-18  Simon Josefsson  <simon@josefsson.org>
91223         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
91224         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
91226 2008-08-18  Bruno Haible  <bruno@clisp.org>
91228         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
91229         pthread_in_use().
91231 2008-08-18  Bruno Haible  <bruno@clisp.org>
91233         * lib/glthread/threadlib.c: Include <pthread.h>.
91235 2008-08-18  Bruno Haible  <bruno@clisp.org>
91237         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
91238         glthread_recursive_lock_* macros.
91239         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
91240         Fix syntax error.
91242 2008-08-18  Bruno Haible  <bruno@clisp.org>
91244         * lib/glthread/thread.c: Avoid forcing a context switch right after
91245         thread creation.
91247 2008-08-17  Bruno Haible  <bruno@clisp.org>
91249         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
91250         * lib/glthread/thread.h: Provide Win32 specific implementation.
91251         * modules/thread (Files): Add lib/glthread/thread.c.
91252         (Depends-on): Add lock.
91253         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
91255 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91257         New module 'yield'.
91258         * modules/yield: New file.
91259         * lib/glthread/yield.h: New file.
91260         * m4/yield.m4: New file.
91261         * MODULES.html.sh (Multithreading): Add yield.
91263 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91265         New module 'thread'.
91266         * modules/thread: New file.
91267         * lib/glthread/thread.h: New file.
91268         * m4/thread.m4: New file.
91269         * MODULES.html.sh (Multithreading): Add thread.
91271 2008-08-17  Bruno Haible  <bruno@clisp.org>
91273         * lib/glthread/lock.h: Include <stdlib.h> always.
91274         * lib/glthread/tls.h: Likewise.
91275         * lib/glthread/cond.h: Likewise.
91277 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91279         New module 'cond'.
91280         * modules/cond: New file.
91281         * lib/glthread/cond.h: New file.
91282         * lib/glthread/cond.c: New file.
91283         * m4/cond.m4: New file.
91284         * MODULES.html.sh (Multithreading): Add cond.
91286 2008-08-16  Eric Blake  <ebb9@byu.net>
91288         c-stack: fix regression on Irix 5.3 from 2008-06-21
91289         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
91290         sa_sigaction...
91291         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
91292         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
91293         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
91294         * modules/signal (Makefile.am): Use the value.
91295         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
91296         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
91297         * doc/posix-headers/signal.texi (signal.h): Document this
91298         portability issue.
91299         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
91300         Reported by Tom G. Christensen.
91302 2008-08-17  Bruno Haible  <bruno@clisp.org>
91304         New module 'threadlib'.
91305         * modules/threadlib: New file.
91306         * lib/glthread/threadlib.c: New file, extracted from
91307         lib/glthread/lock.c.
91308         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
91309         functions.
91310         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
91311         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
91312         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
91313         macros.
91314         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
91315         (gl_DISABLE_THREADS): Remove macro.
91316         * modules/lock (Files): Remove build-aux/config.rpath.
91317         (Depends-on): Remove havelib. Add threadlib.
91318         (configure.ac-early): Remove section.
91319         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
91320         * modules/tls (Depends-on): Remove lock. Add threadlib.
91321         (Link): New section, copied from threadlib.
91322         * MODULES.html.sh (Multithreading): Add threadlib.
91324 2008-08-14  Bruno Haible  <bruno@clisp.org>
91326         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
91327         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
91328         glthread_rwlock_unlock, glthread_rwlock_destroy,
91329         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
91330         glthread_recursive_lock_destroy): Define as macros always.
91331         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
91332         glthread_lock_lock.
91333         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
91334         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
91335         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
91336         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
91337         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
91338         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
91339         (glthread_recursive_lock_lock_func): Renamed from
91340         glthread_recursive_lock_lock.
91341         (glthread_recursive_lock_unlock_func): Renamed from
91342         glthread_recursive_lock_unlock.
91343         (glthread_recursive_lock_destroy_func): Renamed from
91344         glthread_recursive_lock_destroy.
91346 2008-08-14  Bruno Haible  <bruno@clisp.org>
91348         * lib/glthread/lock.h: Renamed from lib/lock.h.
91349         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
91350         * lib/glthread/tls.h: Renamed from lib/tls.h.
91351         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
91352         * lib/fstrcmp.c: Update includes.
91353         * lib/strsignal.c: Update includes.
91354         * modules/lock (Files, Makefile.am): Update.
91355         (Include): Change to "glthread/lock.h".
91356         * modules/tls (Files, Makefile.am): Update.
91357         (Include): Change to "glthread/tls.h".
91358         * tests/test-lock.c: Update includes.
91359         * tests/test-tls.c: Update includes.
91360         * NEWS: Mention the renamed header files.
91362 2008-08-11  Jim Meyering  <meyering@redhat.com>
91364         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
91366 2008-08-11  Eric Blake  <ebb9@byu.net>
91368         test-c-stack: avoid C99-ism
91369         * tests/test-c-stack.c (main): Fix whitespace, move declaration
91370         before statement.
91371         Reported by Alain Guibert.
91373 2008-08-10  Jim Meyering  <meyering@redhat.com>
91375         ensure that return value of uinttostr et al are not ignored
91376         * lib/inttostr.h (__GNUC_PREREQ): Define.
91377         (__attribute_warn_unused_result__): Define.
91378         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
91380 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
91382         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
91383         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
91385 2008-08-07  Jim Meyering  <meyering@redhat.com>
91387         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
91389         * modules/mkstemp (License): Relicense under LGPLv2+.
91390         * modules/tempname (License): Likewise.
91392 2008-08-06  Bruno Haible  <bruno@clisp.org>
91394         * lib/poll.c (poll): Further micro-optimization.
91396 2008-08-06  Jim Meyering  <meyering@redhat.com>
91398         inet_pton.c: use locale-independent tolower
91399         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
91400         (inet_pton6): Use c_tolower rather than tolower.
91401         * modules/inet_pton (Depends-on): Add c-ctype.
91403 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
91405         * lib/poll.c (poll): Avoid division when timeout is 0, cache
91406         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
91408 2008-08-06  Jim Meyering  <meyering@redhat.com>
91410         * modules/inet_pton (License): Relicense under LGPLv2+.
91412 2008-08-03  Bruno Haible  <bruno@clisp.org>
91414         Additional non-aborting API for lock and tls.
91415         * lib/lock.h: Include <errno.h>.
91416         (glthread_lock_init): New macro/function.
91417         (gl_lock_init): Define as wrapper around glthread_lock_init.
91418         (glthread_lock_lock): New macro/function.
91419         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
91420         (glthread_lock_unlock): New macro/function.
91421         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
91422         (glthread_lock_destroy): New macro/function.
91423         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
91424         (glthread_rwlock_init): New macro/function.
91425         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
91426         (glthread_rwlock_rdlock): New macro/function.
91427         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
91428         (glthread_rwlock_wrlock): New macro/function.
91429         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
91430         (glthread_rwlock_unlock): New macro/function.
91431         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
91432         (glthread_rwlock_destroy): New macro/function.
91433         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
91434         (glthread_recursive_lock_init): New macro/function.
91435         (gl_recursive_lock_init): Define as wrapper around
91436         glthread_recursive_lock_init.
91437         (glthread_recursive_lock_lock): New macro/function.
91438         (gl_recursive_lock_lock): Define as wrapper around
91439         glthread_recursive_lock_lock.
91440         (glthread_recursive_lock_unlock): New macro/function.
91441         (gl_recursive_lock_unlock): Define as wrapper around
91442         glthread_recursive_lock_unlock.
91443         (glthread_recursive_lock_destroy): New macro/function.
91444         (gl_recursive_lock_destroy): Define as wrapper around
91445         glthread_recursive_lock_destroy.
91446         (glthread_once): New macro/function.
91447         (gl_once): Define as wrapper around glthread_once.
91448         Update function declarations.
91449         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
91450         glthread_rwlock_init. Return error code.
91451         (glthread_rwlock_rdlock_multithreaded): Renamed from
91452         glthread_rwlock_rdlock. Return error code.
91453         (glthread_rwlock_wrlock_multithreaded): Renamed from
91454         glthread_rwlock_wrlock. Return error code.
91455         (glthread_rwlock_unlock_multithreaded): Renamed from
91456         glthread_rwlock_unlock. Return error code.
91457         (glthread_rwlock_destroy_multithreaded): Renamed from
91458         glthread_rwlock_destroy. Return error code.
91459         (glthread_recursive_lock_init_multithreaded): Renamed from
91460         glthread_recursive_lock_init. Return error code.
91461         (glthread_recursive_lock_lock_multithreaded): Renamed from
91462         glthread_recursive_lock_lock. Return error code.
91463         (glthread_recursive_lock_unlock_multithreaded): Renamed from
91464         glthread_recursive_lock_unlock. Return error code.
91465         (glthread_recursive_lock_destroy_multithreaded): Renamed from
91466         glthread_recursive_lock_destroy. Return error code.
91467         (glthread_once_call): Make static.
91468         (glthread_once_multithreaded): Renamed from glthread_once.
91469         * lib/tls.h: Include <errno.h>.
91470         (glthread_tls_key_init): New macro/function.
91471         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
91472         (glthread_tls_set): New macro/function.
91473         (gl_tls_set): Define as wrapper around glthread_tls_set.
91474         (glthread_tls_key_destroy): New macro/function.
91475         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
91476         Update function declarations.
91477         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
91478         glthread_tls_get.
91479         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91481 2008-08-04  Eric Blake  <ebb9@byu.net>
91483         gnumakefile: use space, not TAB, outside of targets
91484         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
91486 2008-08-02  Jim Meyering  <meyering@redhat.com>
91488         getdate.y: avoid locale-dependent date parsing failure
91489         In Turkish locales, getdate would fail to recognize keywords
91490         containing a lowercase "i".  The solution is not to rely on
91491         locale-sensitive case-conversion.
91492         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
91493         (lookup_word): Use c_toupper in place of toupper.
91494         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
91495         Reported by Vefa Bicakci <bicave@superonline.com> in
91496         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
91497         * modules/getdate (Depends-on): Add c-ctype.
91499 2008-08-02  Bruno Haible  <bruno@clisp.org>
91501         * gnulib-tool (func_import): When updating or creating a .gitignore
91502         file, prepend each added line with a slash, and ignore leading slashes
91503         from the existing lines.
91504         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
91506 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91508         Portability fix for GNU make 3.79.1.
91509         * top/GNUmakefile: Avoid 'else COND', which older GNU make
91510         versions do not understand.
91512 2008-08-01  Bruno Haible  <bruno@clisp.org>
91514         Work around bug of HP-UX 10.20 cc with -0.0 literal.
91515         * tests/test-isnanf.h (zero): New variable.
91516         (main): Avoid literal -0.0f.
91517         * tests/test-isnand.h (zero): New variable.
91518         (main): Avoid literal -0.0.
91519         * tests/test-isnanl.h (zero): New variable.
91520         (main): Avoid literal -0.0L.
91521         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
91522         (test_float, test_double, test_long_double): Avoid literals -0.0f,
91523         -0.0, -0.0L.
91524         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
91525         (test_signbitd): Avoid literal -0.0.
91526         (test_signbitl): Avoid literal -0.0L.
91527         * tests/test-ceilf1.c (zero): New variable.
91528         (main): Avoid literal -0.0f.
91529         * tests/test-ceill.c (zero): New variable.
91530         (main): Avoid literal -0.0L.
91531         * tests/test-floorf1.c (zero): New variable.
91532         (main): Avoid literal -0.0f.
91533         * tests/test-floorl.c (zero): New variable.
91534         (main): Avoid literal -0.0L.
91535         * tests/test-roundf1.c (zero): New variable.
91536         (main): Avoid literal -0.0f.
91537         * tests/test-round1.c (zero): New variable.
91538         (main): Avoid literal -0.0.
91539         * tests/test-roundl.c (zero): New variable.
91540         (main): Avoid literal -0.0L.
91541         * tests/test-truncf1.c (zero): New variable.
91542         (main): Avoid literal -0.0f.
91543         * tests/test-trunc1.c (zero): New variable.
91544         (main): Avoid literal -0.0.
91545         * tests/test-truncl.c (zero): New variable.
91546         (main): Avoid literal -0.0L.
91547         * tests/test-frexp.c (zero): New variable.
91548         (main): Avoid literal -0.0.
91549         * tests/test-frexpl.c (zero): New variable.
91550         (main): Avoid literal -0.0L.
91551         * tests/test-ldexpl.c (zero): New variable.
91552         (main): Avoid literal -0.0L.
91553         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
91554         (zerod, zerol): New variables.
91555         (test_function): Avoid literals -0.0, -0.0L.
91556         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
91557         (zerod, zerol): New variables.
91558         (test_function): Avoid literals -0.0, -0.0L.
91559         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
91560         (zerod, zerol): New variables.
91561         (test_function): Avoid literals -0.0, -0.0L.
91562         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
91563         (zerod, zerol): New variables.
91564         (test_function): Avoid literals -0.0, -0.0L.
91565         * tests/test-strtod.c (zero): New variable.
91566         (main): Avoid literal -0.0.
91567         Reported by Jonathan C. Patschke <jp@centtech.com>.
91569 2008-07-31  Jim Meyering  <meyering@redhat.com>
91571         sha256.h: correct definition of SHA224_DIGEST_SIZE
91572         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
91573         Reported by Paulie Pena IV <paulie4@gmail.com>.
91574         Define as 224 / 8, rather than as a literal.
91575         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
91576         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
91577         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
91579 2008-07-31  Bruno Haible  <bruno@clisp.org>
91581         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
91582         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
91583         Reported by Jonathan Patschke <jp@centtech.com>.
91585 2008-07-31  Bruno Haible  <bruno@clisp.org>
91587         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
91588         Reported by Paolo Bonzini <bonzini@gnu.org>.
91590 2008-07-30  Eric Blake  <ebb9@byu.net>
91592         test-strtod: allow compilation without -lm
91593         * tests/test-strtod.c (main): Avoid link dependence on fabs.
91594         Reported by Dennis Clarke <blastwave@gmail.com>.
91596 2008-07-28  Jim Meyering  <meyering@redhat.com>
91598         bootstrap: work also when there are no .po files in po/
91599         * build-aux/bootstrap (update_po_files): Complete the change
91600         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
91602 2008-07-27  Jim Meyering  <meyering@redhat.com>
91604         * users.txt: Add zile.
91606 2008-07-26  Ben Pfaff  <blp@gnu.org>
91608         Add missing dependencies on new m4/exponent[fdl].m4 files.
91609         * modules/isnanf-nolibm: Add m4/exponentf.m4.
91610         * modules/isnand-nolibm: Add m4/exponentd.m4.
91611         * modules/isnanl-nolibm: Add m4/exponentl.m4.
91612         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
91613         m4/isnan[fdl].m4, because the macros actually used moved.
91614         Reported by Jim Meyering.
91616 2008-07-14  Ben Pfaff  <blp@gnu.org>
91618         Add isinf module.
91619         * lib/isinf.c: New file.
91620         * lib/math.in.h: Define isinf macro if we have decided to replace
91621         it.
91622         * m4/isinf.m4: New file.
91623         * m4/math_h.m4: Initialize and substitute variables for isinf
91624         module.
91625         * modules/isinf: New file.
91626         * modules/isinf-tests: New file.
91627         * modules/math: Add substitutions for new module.
91628         * tests/test-isinf.c: New file.
91629         * doc/posix-functions/isinf.texi: Mention new module.
91630         * MODULES.html.sh: Mention new module.
91632 2008-07-14  Ben Pfaff  <blp@gnu.org>
91634         Factor out some macros for use by additional modules.
91635         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
91636         exponentf.m4.
91637         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
91638         exponentd.m4.
91639         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
91640         file exponentl.m4.
91641         * m4/exponentf.m4: New file.
91642         * m4/exponentd.m4: New file.
91643         * m4/exponentl.m4: New file.
91644         * modules/isnanf: Use new file m4/exponentf.m4.
91645         * modules/isnand: Use new file m4/exponentd.m4.
91646         * modules/isnanl: Use new file m4/exponentl.m4.
91648 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
91650         mktime.c: normalize tp->tm_isdst value to -1/0/1.
91651         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
91652         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
91653         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
91655         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
91656         readlink on platforms without PATH_MAX.
91658 2008-07-21  Eric Blake  <ebb9@byu.net>
91660         Warn, not fail, on stale version.
91661         * top/GNUmakefile (_curr-ver): Tone down previous patch.
91663         Don't allow installation with stale devel version number.
91664         * top/GNUmakefile (_is-install-target): New macro.
91665         (_curr-ver): Forbid installation with stale version number.
91667 2008-07-20  Bruno Haible  <bruno@clisp.org>
91669         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
91670         TESTS_ENVIRONMENT.
91671         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
91673 2008-07-20  Bruno Haible  <bruno@clisp.org>
91675         * lib/c-stack.h (c_stack_action): Add documentation.
91676         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
91678 2008-07-20  Bruno Haible  <bruno@clisp.org>
91680         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
91681         * modules/readlink (License): Likewise.
91683 2008-07-17  Eric Blake  <ebb9@byu.net>
91685         * modules/c-stack (Link): Fix typo.
91687         Make c-stack use libsigsegv, when available.
91688         * modules/c-stack (Depends-on): Add libsigsegv.
91689         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
91690         needed.
91691         * lib/c-stack.c (SIGSTKSZ): Define fallback.
91692         (segv_handler, overflow_handler, c_stack_action)
91693         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
91694         implementation when libsigsegv is available, but only when using
91695         the library is necessary.
91696         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
91697         comment, explaining why XSI check fails on Linux.
91698         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
91699         * tests/test-c-stack2.sh: Tweak skip message.
91700         * NEWS: Document new link-time requirements.
91702 2008-07-16  Eric Blake  <ebb9@byu.net>
91704         c-stack: Expose false positives when not using libsigsegv.
91705         * modules/c-stack-tests (Files): Expand test.
91706         * tests/test-c-stack.c (main): Add means to conditionally trigger
91707         non-overflow SIGSEGV.
91708         * tests/test-c-stack2.sh: New file.
91710 2008-07-14  Bruno Haible  <bruno@clisp.org>
91712         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
91713         Reported by Eric Blake.
91715 2008-07-14  Sam Steingold  <sds@gnu.org>
91716             Bruno Haible  <bruno@clisp.org>
91718         New module libsigsegv.
91719         * modules/libsigsegv: New file.
91720         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
91721         modifications.
91722         * MODULES.html.sh (Signal handling): New section.
91724 2008-07-14  Bruno Haible  <bruno@clisp.org>
91726         * modules/unictype/ctype-* (Description): Add the word "function".
91727         Improves the resulting doc in MODULES.html.
91729 2008-07-12  Ben Pfaff  <blp@gnu.org>
91731         Add longlong module.
91732         * modules/longlong: New file.
91734 2008-07-12  Bruno Haible  <bruno@clisp.org>
91736         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
91737         to empty.
91739 2008-07-10  Ben Pfaff  <blp@gnu.org>
91741         Add isnan module.
91742         * doc/posix-functions/isnan.texi: Mention new module.
91743         * lib/math.in.h: Define isnan macro if we have decided to replace
91744         it.
91745         * m4/isnan.m4: New file.
91746         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
91747         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
91748         also.
91749         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
91750         redundancy.
91751         * m4/math_h.m4: Initialize and substitute variables for isnan
91752         module.
91753         * modules/isnan: New file.
91754         * modules/isnan-tests: New file.
91755         * modules/math: Add substitutions for new module.
91756         * tests/test-isnan.c: New file.
91757         * MODULES.html.sh: Mention new module.
91759 2008-07-10  Ben Pfaff  <blp@gnu.org>
91761         Add isnanf module.
91762         * lib/isnanf.m4: New file.
91763         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
91764         (gl_HAVE_ISNANF_IN_LIBM): New macro.
91765         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
91766         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
91767         * modules/isnanf: New file.
91768         * modules/isnanf-tests: New file.
91769         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
91770         files.
91771         * tests/test-isnanf-nolibm.c: factored most of its contents into
91772         new file tests/test-isnanf.h.
91773         * tests/test-isnanf.h: New file.
91774         * tests/test-isnanf.c: New file.
91775         * MODULES.html.sh: Mention new module.
91776         * doc/glibc-functions/isnanf.texi: Mention new module.
91778 2008-07-10  Ben Pfaff  <blp@gnu.org>
91780         Add isnand module.
91781         * lib/isnand.h: New file.
91782         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
91783         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
91784         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
91785         functionality also.
91786         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
91787         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
91788         (gl_HAVE_ISNAND_IN_LIBM): New macro.
91789         * modules/isnand: New file.
91790         * modules/isnand-tests: New file.
91791         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
91792         files.
91793         * tests/test-isnand-nolibm.c: factored most of its contents into
91794         new file tests/test-isnand.h.
91795         * tests/test-isnand.h: New file.
91796         * tests/test-isnand.c: New file.
91797         * MODULES.html.sh: Mention new module.
91799 2008-07-10  Ben Pfaff  <blp@gnu.org>
91801         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
91802         * lib/isnand.h: Rename lib/isnand-nolibm.h.
91803         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
91804         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
91805         * modules/isnanf-nolibm: Update references to renamed files.
91806         * modules/isnand-nolibm: Likewise.
91807         * modules/isnanf-nolibm-tests: Likewise.
91808         * modules/isnand-nolibm-tests: Likewise.
91809         * lib/frexp.c: Likewise.
91810         * lib/isfinite.c: Likewise.
91811         * lib/signbitd.c: Likewise.
91812         * lib/signbitf.c: Likewise.
91813         * lib/vasnprintf.c: Likewise.
91814         * tests/test-ceilf1.c: Likewise.
91815         * tests/test-ceilf2.c: Likewise.
91816         * tests/test-floorf1.c: Likewise.
91817         * tests/test-floorf2.c: Likewise.
91818         * tests/test-frexp.c: Likewise.
91819         * tests/test-round1.c: Likewise.
91820         * tests/test-round2.c: Likewise.
91821         * tests/test-roundf1.c: Likewise.
91822         * tests/test-strtod.c: Likewise.
91823         * tests/test-trunc1.c: Likewise.
91824         * tests/test-trunc2.c: Likewise.
91825         * tests/test-truncf1.c: Likewise.
91826         * tests/test-truncf2.c: Likewise.
91827         * NEWS: Mention the renamed header files.
91829 2008-07-11  Jim Meyering  <meyering@redhat.com>
91831         vc-list-files: make the last-resort awk code more portable
91832         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
91833         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
91834         does not support it.
91836 2008-07-10  Eric Blake  <ebb9@byu.net>
91838         Work with tar's bootstrap.
91839         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
91840         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
91841         an m4 comment.
91843 2008-07-09  Jim Meyering  <meyering@redhat.com>
91845         posix-shell.m4: fix typo that made this test malfunction
91846         * m4/posix-shell.m4: Remove capitalization in variable name.
91848 2008-07-08  Bruno Haible  <bruno@clisp.org>
91850         * m4/onceonly.m4: Update comments.
91851         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91853 2008-07-04  Jim Meyering  <meyering@redhat.com>
91855         * users.txt: Add vc-dwim.
91856         (bison, coreutils): Use the gitweb URL.
91858 2008-07-03  Jim Meyering  <meyering@redhat.com>
91860         * users.txt: Add libffcall.  From Sam Steingold.
91862 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
91864         getdate.y: do not ignore TZ with relative day, month or year offset
91865         * lib/getdate.y (get_date): Move the tz-handling block to follow the
91866         relative-date-handling, since otherwise, the latter would clobber the
91867         sole output (an updated Start value) of the tz-handling block.
91868         * tests/test-getdate.c: Tests for the fix
91870 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91872         Recognize 'foo_LIBRARIES += libgnu.a'.
91873         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
91874         makefile snippet has already specified an installation location,
91875         also using '+='.
91877 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
91879         getdate.y: factor out common actions
91880         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
91881         Use them in place of open-coded actions.
91883 2008-07-01  Simon Josefsson  <simon@josefsson.org>
91885         Add self-test for getdate module.
91886         * modules/getdate-tests: New file.
91887         * tests/test-getdate.c: New file.
91889 2008-06-29  Bruno Haible  <bruno@clisp.org>
91891         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
91892         .gitignore.
91893         Reported by Sylvain Beucler <beuc@beuc.net>.
91895 2008-06-29  Bruno Haible  <bruno@clisp.org>
91897         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
91898         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
91900 2008-06-29  Bruno Haible  <bruno@clisp.org>
91902         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
91903         EXTRA_DIST.
91904         Reported by Sylvain Beucler <beuc@beuc.net>.
91906 2008-06-26  Jim Meyering  <meyering@redhat.com>
91908         make several modules depend on the "open" module
91909         This provides slightly increased consistency when opening-for-write
91910         the name of a non-directory spelled with a trailing slash.
91911         * modules/chdir-safer: Likewise.
91912         * modules/chown: Likewise.
91913         * modules/clean-temp: Likewise.
91914         * modules/copy-file: Likewise.
91915         * modules/fchdir: Likewise.
91916         * modules/fcntl-safer: Likewise.
91917         * modules/pipe: Likewise.
91918         * modules/utime: Likewise.
91919         Prompted by Eric Blake and Bruno Haible.
91921 2008-06-24  Andreas Schwab  <schwab@suse.de>
91923         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
91924         literals can be used as initializers for global variables.
91926 2008-06-23  Eric Blake  <ebb9@byu.net>
91928         Make gnulib-cache.m4 easier to diff.
91929         * gnulib-tool (func_import): Allow newlines when reading cached
91930         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
91932 2008-06-23  Bruno Haible  <bruno@clisp.org>
91934         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
91935         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
91936         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
91937         m4/signalblocking.m4.
91938         (gl_PREREQ_SIGACTION): Don't invoke it.
91939         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
91940         gl_PREREQ_SIG_HANDLER_H.
91941         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
91942         Don't check for sigaction here.
91944 2008-06-23  Bruno Haible  <bruno@clisp.org>
91946         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
91947         (install_handlers): Don't set the SA_RESETHAND flag.
91949 2008-06-23  Bruno Haible  <bruno@clisp.org>
91951         * m4/sigaction.m4: Comment fixes.
91952         * lib/signal.in.h: Likewise.
91954 2008-06-23  Eric Blake  <ebb9@byu.net>
91956         Fix typo.
91957         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
91959         Avoid SA_ namespace.
91960         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
91961         Reported by Ralf Wildenhues.
91963         Avoid test failure due to SA_RESTORER.
91964         * tests/test-sigaction.c (SA_MASK): New macro.
91965         (main): Avoid failing due to extension flags being set.
91966         Reported by Jim Meyering.
91968         Revert use of sig-handler.h in sigprocmask.c.
91969         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
91970         it requires the existence of struct sigaction.
91971         * lib/sigprocmask.c (handler_t): Restore typedef.
91972         (rpl_signal, old_handlers): Use local type.
91974 2008-06-22  Bruno Haible  <bruno@clisp.org>
91976         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
91977         conditionally.
91978         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91980 2008-06-22  Bruno Haible  <bruno@clisp.org>
91982         * doc/posix-functions/siginterrupt.texi: Move note.
91984         * lib/signal.in.h (SA_RESTART): New macro.
91985         * lib/sigaction.c: Update comment.
91987         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
91989         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
91990         (gl_PREREQ_SIGPROCMASK): Invoke it.
91991         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
91993         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
91995         * lib/sigprocmask.c: Update a comment.
91997 2008-06-21  Eric Blake  <ebb9@byu.net>
91999         Use sigaction module rather than signal().
92000         * modules/c-stack (Depends-on): Add sigaction.
92001         * modules/fatal-signal (Depends-on): Likewise.
92002         * modules/nanosleep (Depends-on): Likewise.
92003         * modules/sigprocmask (Files): Add sig-handler.h.
92004         * modules/sigaction (Files): Likewise.
92005         * lib/sig-handler.h (get_handler): New file, suggested by Paul
92006         Eggert.
92007         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
92008         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
92009         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
92010         (init_fatal_signals): Likewise.
92011         * lib/nanosleep.c (rpl_nanosleep): Likewise.
92012         (siginterrupt): Delete fallback.
92013         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
92014         instead.
92015         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
92016         siginterrupt.
92018         New module sigaction, for mingw.
92019         * modules/sigaction: New module...
92020         * modules/sigaction-tests: ...and its test.
92021         * m4/sigaction.m4: New file.
92022         * lib/sigaction.c: Likewise.
92023         * tests/test-sigaction.c: Likewise.
92024         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
92025         * modules/signal (Makefile.am): Likewise.
92026         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
92027         needed.
92028         * doc/posix-headers/signal.texi (signal.h): Mention provided
92029         types.
92030         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
92031         that sigaction is preferable.
92032         * doc/posix-functions/sigaction.texi (sigaction): Mention new
92033         module.
92034         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92035         sigaction.
92037         Improve robustness of sigprocmask by overriding signal.
92038         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
92039         is in use.
92040         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
92041         (SIGKILL, SIGSTOP): Provide fallbacks.
92042         (rpl_signal): Implement.
92043         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
92044         signal can be called inside handlers.
92046         Fix nanosleep module on mingw.
92047         * modules/nanosleep (Depends-on): Add sys_select.
92048         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
92050         Fix licensing of sigprocmask.
92051         * modules/raise (License): Relicense as LGPL.
92053 2008-06-21  Bruno Haible  <bruno@clisp.org>
92055         * lib/propername.c (proper_name_utf8): Don't use the transliterated
92056         result if it contains question marks.
92057         Reported by Michael Geng <linux@michaelgeng.de>.
92059 2008-06-19  Bruno Haible  <bruno@clisp.org>
92061         Fix CVS-ism.
92062         * doc/gnulib.texi: Include updated-stamp.texi.
92063         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
92064         (updated-stamp.texi): New rule.
92065         (gnulib.info): Depend on it.
92066         * doc/.gitignore: Add updated-stamp.texi.
92067         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
92069 2008-06-19  Bruno Haible  <bruno@clisp.org>
92071         * doc/Makefile (gnulib.info): Update and simplify dependencies.
92072         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92074 2008-06-19  Eric Blake  <ebb9@byu.net>
92076         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
92077         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
92078         Reported by Stepan Kasal.
92080 2008-06-18  Bruno Haible  <bruno@clisp.org>
92082         * lib/fatal-signal.c (init_fatal_signals): Add comment.
92083         Reported by Eric Blake.
92085 2008-06-18  Eric Blake  <ebb9@byu.net>
92087         Work around cygwin 1.5.25 strsignal bug.
92088         * tests/test-strsignal.c: Allow for const char *.
92089         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
92091 2008-06-18  Simon Josefsson  <simon@josefsson.org>
92093         * users.txt: Update URL to article and add author/date
92094         information.
92096 2008-06-17  Bruno Haible  <bruno@clisp.org>
92098         New macro gl_DISABLE_THREADS.
92099         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
92100         if the user did not pass --enable-threads or --disable-threads option.
92101         (gl_DISABLE_THREADS): New macro.
92102         Reported by Eric Blake <ebb9@byu.net>.
92104 2008-06-17  Bruno Haible  <bruno@clisp.org>
92106         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
92107         when the macro ignores it.
92108         Based on a patch by Eric Blake <ebb9@byu.net>.
92110 2008-06-17  Bruno Haible  <bruno@clisp.org>
92112         * modules/tls (License): Change to LGPLv2+.
92113         Reported by Eric Blake.
92115 2008-06-17  Eric Blake  <ebb9@byu.net>
92117         Simplify c-stack prerequisites.
92118         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
92119         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
92120         no longer requires <ucontext.h> to exist.  Optimize setrlimit
92121         check.
92122         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
92123         <sys/resource.h>.
92125         Move c-stack test into testsuite.
92126         * modules/c-stack-tests: New file.
92127         * lib/c-stack.c [DEBUG]: Move test program...
92128         * tests/test-c-stack.c: ...into this new file.  Skip rather than
92129         fail test if sigaltstack is lacking.
92130         * tests/test-c-stack.sh: New driver file.
92132 2008-06-16  Eric Blake  <ebb9@byu.net>
92134         Use raise module consistently.
92135         * modules/fatal-signal (Depends-on): Add raise.
92136         * modules/sigprocmask (Depends-on): Likewise.
92137         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
92138         * lib/sigprocmask.c (sigprocmask): Likewise.
92139         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92140         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
92142         Fix compliance bug in sigpending.
92143         * lib/sigprocmask.c (sigpending): Return pending array via
92144         parameter, not return value.
92146 2008-06-14  Eric Blake  <ebb9@byu.net>
92148         Improve obstack-printf test code.
92149         * tests/test-obstack-printf.c (test_function): Fix comment, and
92150         simplify usage of obstack_* in macros.  Add a test for coverage.
92151         Reported by Bruno Haible.
92153 2008-06-14  Bruno Haible  <bruno@clisp.org>
92155         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
92156         array size as a constant, not as a const variable.
92157         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
92158         AC_USE_SYSTEM_EXTENSIONS.
92159         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
92160         Test whether the obstack_printf function actually exists.
92161         * modules/obstack-printf (Depends-on): Add extensions.
92162         (Include): Remove obstack.h.
92163         * modules/obstack-printf-posix (Depends-on): Add extensions.
92164         (Include): Remove obstack.h.
92166 2008-06-13  Eric Blake  <ebb9@byu.net>
92168         Add obstack-printf and obstack-printf-posix modules.
92169         * modules/obstack-printf: New file.
92170         * modules/obstack-printf-posix: Likewise.
92171         * MODULES.html.sh (Misc): Mention them.
92172         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
92173         Likewise.
92174         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
92175         Likewise.
92176         * modules/stdio (Makefile.am): Accomodate new modules.
92177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92178         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
92179         Declare.
92180         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
92181         functions.
92182         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
92183         (gl_REPLACE_OBSTACK_PRINTF): New macros
92184         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
92185         * tests/test-obstack-printf.c: New file.
92186         * modules/obstack-printf-tests: Likewise.
92187         * modules/obstack-printf-posix-tests: Likewise.
92189 2008-06-11  Bruno Haible  <bruno@clisp.org>
92191         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
92192         * lib/open.c: Include errno.h.
92193         (open): Fail when attempting to write to a file that has a trailing
92194         slash.
92195         * tests/test-open.c (main): Test against trailing slash bug.
92196         * doc/posix-functions/open.texi: Mention the trailing slash bug.
92198 2008-06-10  Bruno Haible  <bruno@clisp.org>
92200         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
92201         for $? to work inside the trap command, with various /bin/sh-s.
92202         * tests/test-vc-list-files-cvs.sh: Likewise.
92204 2008-06-10  Bruno Haible  <bruno@clisp.org>
92206         * lib/acl-internal.h: Don't include gettext.h here.
92207         * lib/set-mode-acl.c: Include gettext.h here.
92208         * lib/copy-acl.c: Likewise.
92210 2008-06-10  Bruno Haible  <bruno@clisp.org>
92212         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
92213         * lib/wait-process.c (wait_subprocess): Likewise.
92214         * lib/execute.h (execute): Add termsigp argument.
92215         * lib/execute.c (execute): Likewise.
92216         * lib/csharpcomp.c (compile_csharp_using_pnet,
92217         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
92218         * lib/csharpexec.c (execute_csharp_using_pnet,
92219         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
92220         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
92221         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
92222         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
92223         is_jikes_present): Update.
92224         * lib/javaexec.c (execute_java_class): Update.
92225         * lib/javaversion.c (execute_and_read_line): Update.
92226         * NEWS: Document the changes.
92227         Reported by Eric Blake.
92229 2008-06-10  Eric Blake  <ebb9@byu.net>
92231         Add missing include.
92232         * tests/test-strstr.c (includes): Add <signal.h>.
92233         * tests/test-strcasestr.c (includes): Likewise.
92234         * tests/test-memmem.c (includes): Likewise.
92236 2008-06-10  Bruno Haible  <bruno@clisp.org>
92238         * lib/wait-process.c (wait_subprocess): Add an assertion.
92240 2008-06-10  Bruno Haible  <bruno@clisp.org>
92242         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
92244 2008-06-10  Bruno Haible  <bruno@clisp.org>
92246         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
92247         using alarm().
92248         * tests/test-strcasestr.c (main): Likewise.
92249         * tests/test-strstr.c (main): Likewise.
92251 2008-06-09  Bruno Haible  <bruno@clisp.org>
92253         Work around the Solaris 10 ACE ACLs ABI change.
92254         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
92255         declare if ACL_NO_TRIVIAL is present.
92256         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
92257         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
92258         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
92259         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
92260         define if ACL_NO_TRIVIAL is present.
92261         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
92262         and use the current ABI.
92263         (file_has_acl): Use same #if condition as elsewhere.
92264         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
92265         in use, and use the current ABI.
92266         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
92267         Reported by Jim Meyering.
92269 2008-06-09  Eric Blake  <ebb9@byu.net>
92271         Work around environments that (stupidly) ignore SIGALRM.
92272         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
92273         before using alarm().
92274         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92275         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92276         Reported by Ian Beckwith <ianb@erislabs.net>.
92278         Produce autobuild blurb earlier in log.
92279         * modules/autobuild (configure.ac-early): Move AB_INIT here.
92281 2008-06-09  Jim Meyering  <meyering@redhat.com>
92282         and Ondřej Vašík  <ovasik@redhat.com>
92284         utimens.c: correct kernel bug work-around
92285         Ondřej Vašík found that the invalid return value of 280 indicates
92286         failure, not success, and the kernel bug we're trying to work
92287         around affects not just the utimensat call, but also the fallback
92288         futimens call.
92289         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
92290         not success.
92291         [HAVE_FUTIMENS]: Use the same work-around, here.
92293 2008-06-09  Jim Meyering  <meyering@redhat.com>
92295         add more guards around definition of ACE_-related code
92296         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
92297         ALLOW and ACE_OWNER are also defined.
92299 2008-06-08  Bruno Haible  <bruno@clisp.org>
92301         * lib/acl-internal.h: Add me as co-author.
92302         * lib/file-has-acl.c: Likewise.
92303         * lib/set-mode-acl.c: Likewise.
92304         * lib/copy-acl.c: Likewise.
92306 2008-06-08  Bruno Haible  <bruno@clisp.org>
92308         Add support for AIX ACLs.
92309         * lib/acl-internal.h (acl_nontrivial): New declaration.
92310         * lib/file-has-acl.c (acl_nontrivial): New function.
92311         (file_has_acl): Add implementation using AIX 4 ACL API.
92312         * lib/set-mode-acl.c (qset_acl): Likewise.
92313         * lib/copy-acl.c (qcopy_acl): Likewise.
92315 2008-06-08  Bruno Haible  <bruno@clisp.org>
92317         Add support for HP-UX ACLs.
92318         * lib/acl-internal.h (acl_nontrivial): New declaration.
92319         * lib/file-has-acl.c (acl_nontrivial): New function.
92320         (file_has_acl): Add implementation using HP-UX 11 ACL API.
92321         * lib/set-mode-acl.c (qset_acl): Likewise.
92322         * lib/copy-acl.c (qcopy_acl): Likewise.
92324 2008-06-08  Bruno Haible  <bruno@clisp.org>
92326         Add support for Cygwin ACLs.
92327         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
92328         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
92329         the chmod_or_fchmod call.
92330         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
92332 2008-06-08  Bruno Haible  <bruno@clisp.org>
92334         Fix bug with setuid modes in Solaris 10+ code.
92335         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
92336         succeeded, when the mode contains some special bits.
92338 2008-06-08  Bruno Haible  <bruno@clisp.org>
92340         Add support for Solaris 7..10 ACLs.
92341         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
92342         declarations.
92343         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
92344         functions.
92345         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
92346         * lib/set-mode-acl.c (qset_acl): Likewise.
92347         * lib/copy-acl.c (qcopy_acl): Likewise.
92349 2008-06-08  Bruno Haible  <bruno@clisp.org>
92351         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
92352         declaration.
92353         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
92354         (acl_access_nontrivial): Remove MacOS X case.
92355         (file_has_acl): Use acl_extended_nontrivial.
92356         * lib/copy-acl.c (qcopy_acl): Likewise.
92358 2008-06-08  Bruno Haible  <bruno@clisp.org>
92360         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
92362 2008-06-08  Jim Meyering  <meyering@redhat.com>
92364         * modules/acl (Maintainer): Add Bruno Haible.
92366 2008-06-07  Bruno Haible  <bruno@clisp.org>
92368         Improve support for Tru64 ACLs.
92369         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
92370         ACL on OSF/1.
92372 2008-06-07  Bruno Haible  <bruno@clisp.org>
92374         Add support for MacOS X ACLs.
92375         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
92376         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
92377         * lib/set-mode-acl.c (qset_acl): Likewise.
92378         * lib/copy-acl.c (qcopy_acl): Likewise.
92380 2008-06-07  Bruno Haible  <bruno@clisp.org>
92382         Fix memory leak introduced on 2008-05-22.
92383         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
92384         use.
92386 2008-06-07  Bruno Haible  <bruno@clisp.org>
92388         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
92389         to construct an empty ACL.
92391 2008-06-07  Bruno Haible  <bruno@clisp.org>
92393         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
92394         precisely.
92395         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
92397 2008-06-07  Bruno Haible  <bruno@clisp.org>
92399         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
92400         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
92402 2008-06-07  Bruno Haible  <bruno@clisp.org>
92404         * doc/posix-functions/_setjmp.texi: Explain the use of this function
92405         regardless of POSIX.
92406         * doc/posix-functions/_longjmp.texi: Likewise.
92407         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
92408         SystemV platform in this case.
92410 2008-06-06  Eric Blake  <ebb9@byu.net>
92412         Document abort() bugs.
92413         * doc/posix-functions/abort.texi (abort): Mention anomalies.
92415         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
92416         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
92417         sigsetjmp.
92418         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
92419         siglongjmp, but only as a macro.
92420         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
92421         is obsolete.
92422         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
92424         Tweak documentation to cover cygwin argz bugs.
92425         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
92426         argz bug fix; no code change needed since no cygwin releases
92427         occurred between the last fix and the bug being tested.
92428         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
92429         module and recently fixed cygwin bugs.
92430         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
92431         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
92432         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
92433         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
92434         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
92435         Likewise.
92436         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
92437         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
92438         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
92439         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
92440         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
92441         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
92442         Likewise.
92444         Avoid gcc warning on cygwin.
92445         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
92446         !ACL_NO_TRIVIAL]: Avoid unused variable.
92448 2008-06-05  Eric Blake  <ebb9@byu.net>
92450         Be tolerant of UNKNOWN version in gnulib-tool test dir.
92451         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
92452         git-version-gen fails to come up with a version.
92453         Reported by Simon Josefsson.
92455 2008-06-05  Jim Meyering  <meyering@redhat.com>
92456             Paul Eggert  <eggert@cs.ucla.edu>
92458         utimens.c: work around a probable Linux kernel bug
92459         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
92460         appears to be a kernel bug that causes utimensat to return 280
92461         instead of 0, indicating success.
92463 2008-06-04  Bruno Haible  <bruno@clisp.org>
92465         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
92466         2008-06-01 commit.
92468 2008-06-04  Bruno Haible  <bruno@clisp.org>
92470         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
92471         * lib/file-has-acl.c (acl_access_nontrivial): New function.
92472         (file_has_acl): Use it. Save errno afterwards.
92473         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
92475 2008-06-03  Bruno Haible  <bruno@clisp.org>
92477         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
92478         draft code. Simplify #ifs.
92479         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
92480         Put Solaris code after POSIX-draft code. Fix comments regarding
92481         Solaris 10, HP-UX. Mention Cygwin.
92482         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
92484 2008-06-03  Eric Blake  <ebb9@byu.net>
92486         Provide fallback for older kernels.
92487         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
92488         Provide runtime fallback if kernel lacks support.
92489         Reported by Mike Frysinger.
92491 2008-06-02  Bruno Haible  <bruno@clisp.org>
92493         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
92494         it exists.
92496 2008-06-02  Bruno Haible  <bruno@clisp.org>
92498         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
92499         * lib/copy-acl.c (qcopy_acl): Update comment.
92501 2008-06-02  Bruno Haible  <bruno@clisp.org>
92503         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
92504         like ACL APIs.
92506 2008-06-02  Bruno Haible  <bruno@clisp.org>
92508         * tests/test-file-has-acl.sh: Use different code for Cygwin.
92509         * tests/test-set-mode-acl.sh: Likewise.
92510         * tests/test-copy-acl.sh: Likewise.
92511         * tests/test-copy-file.sh: Likewise.
92513 2008-06-02  Bruno Haible  <bruno@clisp.org>
92515         * tests/test-file-has-acl.sh: Remove unused code.
92517 2008-06-01  Bruno Haible  <bruno@clisp.org>
92519         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
92520         (copy_acl): Just a wrapper around qcopy_acl that emits the error
92521         messages.
92522         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
92524 2008-06-01  Bruno Haible  <bruno@clisp.org>
92526         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
92527         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
92528         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
92529         APIs.
92530         * modules/acl-tests (configure.ac): Remove tests now contained in
92531         m4/acl.m4.
92533 2008-06-02  Jim Meyering  <meyering@redhat.com>
92535         announce-gen: use a better key-server host name
92536         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
92537         it may be more consistently reliable.  Suggested by Werner Koch
92538         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
92540 2008-06-01  Bruno Haible  <bruno@clisp.org>
92542         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
92543         Reported by Voroskoi Andras <voroskoi@gmail.com>.
92545 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
92547         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
92549 2008-06-01  Bruno Haible  <bruno@clisp.org>
92551         New ACL tests.
92552         * tests/test-file-has-acl.sh: New file.
92553         * tests/test-file-has-acl.c: New file.
92554         * tests/test-set-mode-acl.sh: New file.
92555         * tests/test-set-mode-acl.c: New file.
92556         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
92557         * tests/test-copy-acl.c: New file.
92558         * modules/acl-tests: New file, based on modules/copy-file-tests.
92559         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
92560         (Depends-on): Add acl-tests.
92561         (configure.ac): Remove checks.
92562         (Makefile.am): Don't create test-sameacls program here any more.
92564 2008-06-01  Bruno Haible  <bruno@clisp.org>
92566         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
92567         * tests/test-sameacls.c: Include progname.h.
92568         (main): Invoke set_program_name. Portability fixes for MacOS X,
92569         Solaris, HP-UX.
92571 2008-06-01  Bruno Haible  <bruno@clisp.org>
92573         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
92574         function.
92575         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
92577 2008-06-01  Bruno Haible  <bruno@clisp.org>
92579         * modules/rpmatch (Depends-on): Add strdup.
92581 2008-06-01  Bruno Haible  <bruno@clisp.org>
92583         * lib/pipe.c: Include unistd-safer.h.
92584         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
92585         * modules/pipe (Depends-on): Add unistd-safer.
92587 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92589         * modules/autobuild (configure.ac): Call AB_INIT.
92591 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92593         * tests/test-getaddrinfo.c: Don't print debug messages by default.
92594         Suggested by Bruno Haible <bruno@clisp.org>.
92596 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92598         * tests/test-base64.c: Cast size_t to unsigned long when invoking
92599         printf.  Use %lu instead of %d.  Reported by Bruno Haible
92600         <bruno@clisp.org>.
92602 2008-05-29  Eric Blake  <ebb9@byu.net>
92604         Prefer new POSIX 200x interfaces over futimesat.
92605         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
92606         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
92607         when available.
92608         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
92610 2008-05-28  Bruno Haible  <bruno@clisp.org>
92612         * modules/stpcpy (License): Change to LGPLv2+.
92613         Requested by David Lutterkort <dlutter@redhat.com>.
92615 2008-05-27  Bruno Haible  <bruno@clisp.org>
92617         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
92618         current mingw.
92619         Reported by Jose E. Marchesi <jemarch@gnu.org>.
92621 2008-05-27  Bruno Haible  <bruno@clisp.org>
92623         * modules/iconv_open (Link): New section, from module 'iconv'.
92624         * modules/striconv (Link): Likewise.
92625         * modules/striconveh (Link): Likewise.
92626         * modules/xstriconv (Link): Likewise.
92627         * modules/unicodeio (Link): Likewise.
92628         * modules/propername (Link): Likewise.
92629         Reported by Jim Meyering.
92631 2008-05-26  Jim Meyering  <meyering@redhat.com>
92633         sha256: do not artificially restrict buffer length to be < 2^32
92634         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
92635         uint32_t to size_t.
92636         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
92637         to match.
92639         avoid unaligned access errors, e.g., on sparc
92640         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
92641         direct access through a possibly-unaligned uint64* pointer.
92642         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
92643         direct access through a possibly-unaligned uint32* pointer.
92644         Prompted by this patch from Tom "spot" Callaway:
92645         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
92647         sha512.c: fix typo in comment
92648         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
92650 2008-05-25  Bruno Haible  <bruno@clisp.org>
92652         * lib/set-mode-acl.c: Renamed from lib/acl.c.
92653         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
92654         (Makefile.am): Update lib_SOURCES.
92656 2008-05-25  Bruno Haible  <bruno@clisp.org>
92658         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
92660 2008-05-25  Jim Meyering  <meyering@redhat.com>
92662         useless-if-before-free: freed expr may have white-space differences
92663         * build-aux/useless-if-before-free: Recognize cases in which the
92664         freed expression differs from the tested one in embedded white
92665         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
92666         $1 was used, so we can't make any regexp shy.  Improved tests now
92667         detect this.
92669         useless-if-before-free: accept white space in the expression.
92670         * build-aux/useless-if-before-free: For now, any white space
92671         in the expression must be identical in the free argument.
92673         useless-if-before-free: efficiency tweak
92674         * build-aux/useless-if-before-free: Make the expression-matching
92675         regexp "shy".
92676         Make the *outer* regexp shy, not the expr-matching one.
92678         update code-in-comment to accept cast of free arg
92679         * build-aux/useless-if-before-free: Update regexp.
92681 2008-05-25  Bruno Haible  <bruno@clisp.org>
92683         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
92684         * modules/copy-file-tests (Files, Makefile.am): Update.
92685         * tests/test-copy-file.c (func_test_copy): Update.
92687 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
92689         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
92691 2008-05-23  Bruno Haible  <bruno@clisp.org>
92693         Improve support for ACLs on OSF/1.
92694         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
92695         Remove fallback for unknown flavors of ACLs.
92697 2008-05-22  Bruno Haible  <bruno@clisp.org>
92699         Add support for ACLs on OSF/1.
92700         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
92701         replacements.
92702         (acl_free_text): New macro fallback.
92703         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
92704         acl_free.
92705         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
92706         acl_free_text function. Require AC_C_INLINE.
92708 2008-05-22  Bruno Haible  <bruno@clisp.org>
92710         Make copy_acl work on MacOS X 10.5.
92711         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
92712         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
92713         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
92714         If MODE_INSIDE_ACL, don't assume that every system has the same text
92715         representation for ACLs as FreeBSD.
92716         * lib/copy-acl.c (copy_acl): Add support for platforms with
92717         !MODE_INSIDE_ACL.
92718         * lib/file-has-acl.c (file_has_acl): Likewise.
92719         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
92720         FreeBSD, MacOS X, or IRIX, respectively.
92722 2008-05-22  Bruno Haible  <bruno@clisp.org>
92724         * lib/acl.h: Don't include <sys/acl.h>.
92725         (GETACLCNT): Move fallback to lib/acl-internal.h.
92726         * lib/acl-internal.h: Include <sys/acl.h> here.
92727         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
92729 2008-05-22  Bruno Haible  <bruno@clisp.org>
92731         Split off copy_acl function to separate file.
92732         * lib/copy-acl.c: New file, extracted from lib/acl.c.
92733         * lib/acl.c (copy_acl): Moved function to separate file.
92734         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
92735         * modules/acl (Files): Add lib/copy-acl.c.
92736         (Makefiles.am): Augment lib_SOURCES.
92738 2008-05-22  Bruno Haible  <bruno@clisp.org>
92740         * modules/copy-file-tests: New file.
92741         * tests/test-copy-file.sh: New file.
92742         * tests/test-copy-file.c: New file.
92743         * tests/test-copy-file-sameacls.c: New file.
92745 2008-05-22  Eric Blake  <ebb9@byu.net>
92747         Avoid gcc warning.
92748         * tests/test-memcmp.c (main): Pass NULL indirectly.
92750 2008-05-21  Bruno Haible  <bruno@clisp.org>
92752         Add reference doc about ACLs.
92753         * doc/acl-resources.txt: New file.
92754         * doc/acl-cygwin.txt: New file.
92756 2008-05-21  Bruno Haible  <bruno@clisp.org>
92758         Avoid one more warning from gcc.
92759         * lib/vasnprintf.c (IF_LINT): Update comments.
92760         (VASNPRINTF): Use it also for the 'prefix' array initializer.
92762 2008-05-21  Jim Meyering  <meyering@redhat.com>
92764         avoid a warning from gcc
92765         * lib/vasnprintf.c (IF_LINT): Define.
92766         (scale10_round_decimal_long_double):
92767         Use it to avoid a "may be used uninitialized" warning.
92768         (scale10_round_decimal_double): Likewise.
92770 2008-05-21  Simon Josefsson  <simon@josefsson.org>
92772         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
92773         declared.
92775 2008-05-20  Bruno Haible  <bruno@clisp.org>
92777         * tests/test-memcmp.c (main): Test also the sign of the result. Test
92778         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
92780 2008-05-20  Simon Josefsson  <simon@josefsson.org>
92782         * modules/memcmp-tests: New file.
92783         * tests/test-memcmp.c: New file.
92785 2008-05-19  Bruno Haible  <bruno@clisp.org>
92787         * modules/propername (Notice, configure.ac): Put quoted "..." into
92788         --keyword option.
92789         * lib/propername.h: Update comments accordingly.
92790         Reported by Eric Blake.
92792 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
92794         * modules/getpass-gnu (Depends-on): Add fseeko.
92796 2008-05-19  Simon Josefsson  <simon@josefsson.org>
92798         * modules/base64-tests: New file.
92800 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
92802         * lib/base64.c (base64_decode_ctx): If a decode context structure
92803         was passed in use it to ignore newlines.  If a context structure
92804         was _not_ passed in, continue to treat newlines as garbage (this
92805         is the historical behavior).  Formerly base64_decode.
92806         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
92807         takes a decode context structure.
92808         * lib/base64.h (base64_decode): Macro for four-argument calls.
92809         (base64_decode_alloc): Likewise.
92810         * lib/base64.c (base64_decode_ctx): If a decode context structure
92811         was passed in use it to ignore newlines.  If a context structure
92812         was _not_ passed in, continue to treat newlines as garbage (this
92813         is the historical behavior).  Formerly base64_decode.
92814         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
92815         takes a decode context structure.
92816         * lib/base64.h (base64_decode): Macro for four-argument calls.
92817         (base64_decode_alloc): Likewise.
92819 2008-05-19  Jim Meyering  <meyering@redhat.com>
92821         avoid a warning from gcc
92822         * lib/trim.c (IF_LINT): Define.
92823         (trim2): Use it to avoid a "may be used uninitialized" warning.
92825         Fix doc typo.
92826         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
92828 2008-05-19  Bruno Haible  <bruno@clisp.org>
92830         * doc/glibc-functions/getpass.texi: Document limits of other
92831         implementations.
92833 2008-05-19  Simon Josefsson  <simon@josefsson.org>
92834             Bruno Haible <bruno@clisp.org>
92836         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
92838 2008-05-18  Bruno Haible  <bruno@clisp.org>
92840         * modules/propername: New file, from GNU gettext.
92841         * lib/propername.h: New file, from GNU gettext.
92842         * lib/propername.c: New file, from GNU gettext.
92843         * MODULES.html.sh (Internationalization functions): Add propername.
92845 2008-05-16  Jim Meyering  <meyering@redhat.com>
92846             Bruno Haible  <bruno@clisp.org>
92848         Avoid some warnings from "gcc -Wshadow".
92849         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
92851 2008-05-15  Eric Blake  <ebb9@byu.net>
92853         Extend previous patch to cygwin 1.7.0.
92854         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
92855         fast implementation in cygwin >= 1.7.0.
92856         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92859 2008-05-15  Bruno Haible  <bruno@clisp.org>
92861         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
92862         implementation in glibc >= 2.9.
92863         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92866 2008-05-15  Bruno Haible  <bruno@clisp.org>
92868         * MODULES.html.sh (Internationalization functions): Remove linebreak.
92869         (Unicode string functions): Add unilbrk/*.
92870         Reported by Karl Berry.
92872 2008-05-15  Eric Blake  <ebb9@byu.net>
92874         Fix violation of <stdbool.h> replacement in regex.
92875         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
92876         * lib/regexec.c (re_search_internal): Likewise.
92877         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
92879 2008-05-15  Jim Meyering  <meyering@redhat.com>
92881         avoid distracting test output when git or cvs is not found
92882         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
92883         * tests/test-vc-list-files-git.sh: Likewise.
92885 2008-05-15  Eric Blake  <ebb9@byu.net>
92887         Glibc finally accepted the memmem speedup code, bugzilla #5514.
92888         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
92889         glibc version.
92890         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
92891         * doc/posix-functions/strstr.texi (strstr): Likewise.
92892         * lib/str-two-way.h (MAX): Sychronize with glibc.
92894 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
92896         * lib/regcomp.c (optimize_utf8): Add a note on why we test
92897         opr.ctx_type.
92898         (calc_first): Initialize constraint field.
92899         (duplicate_node_closure): Use it instead of special casing ANCHORS.
92900         Fix grammar.
92901         (duplicate_node): Merge constraint field for all node types.
92902         (calc_eclosure_iter): Look at constraint field for all node types.
92903         * lib/regex_internal.c (create_cd_newstate): Don't look at
92904         opr.ctx_type.
92906 2008-05-14  Bruno Haible  <bruno@clisp.org>
92908         Help GCC to do better code generation.
92909         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
92910         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
92911         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
92912         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
92913         Declare with attribute 'malloc' if supported.
92915 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
92917         use "echo STR|wc -c" rather than unportable "expr length STR"
92918         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
92919         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
92921 2008-05-14  Jim Meyering  <meyering@redhat.com>
92923         use dd ibs=$n count=1 ... rather than less-portable head -c$n
92924         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
92925         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
92926         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
92927         via Collin Lasse.
92929 2008-05-14  Eric Blake  <ebb9@byu.net>
92931         Avoid quadratic growth in gl_LIBSOURCES.
92932         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
92933         Suggested by Bruno Haible.
92935         Test xmemdup0.
92936         * modules/xmemdup0-tests: New file.
92937         * tests/test-xmemdup0.c: Likewise.
92939 2008-05-13  Eric Blake  <ebb9@byu.net>
92941         Split xmemdup0 into its own module.
92942         * modules/xmemdup0: New file.
92943         * lib/xmemdup0.h: Likewise.
92944         * lib/xmemdup0.c: Likewise.
92945         * MODULES.html.sh (Memory management functions): Add xmemdup0.
92946         * lib/xalloc.h (xmemdup0): Remove.
92947         * lib/xmalloc.c (xmemdup0): Likewise.
92949 2008-05-13  Eric Blake  <ebb9@byu.net>
92950             Bruno Haible  <bruno@clisp.org>
92952         Reduce number of forks required during autoconf.
92953         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
92954         and gl_LIBSOURCES_DIR.
92955         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
92956         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
92957         m4_syscmd per file.
92958         <m4_foreach_w>: Move...
92959         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
92961 2008-05-13  Eric Blake  <ebb9@byu.net>
92963         * gnulib-tool: Fix various comment typos.
92965 2008-05-12  Bruno Haible  <bruno@clisp.org>
92967         Tailor the linebreaking algorithm.
92968         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
92970 2008-05-12  Bruno Haible  <bruno@clisp.org>
92972         Update to Unicode 5.0.0.
92973         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
92974         LBP_JV, LBP_JT. Redistribute values.
92975         (unilbrk_table): Change size.
92976         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
92977         Unicode TR#14 rev. 22.
92978         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
92979         LBP_JV, LBP_JT. Redistribute values.
92980         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
92981         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
92982         Update.
92983         * lib/unilbrk/lbrkprop1.h: Regenerated.
92984         * lib/unilbrk/lbrkprop2.h: Regenerated.
92985         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
92986         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
92987         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
92988         Likewise.
92989         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
92990         Likewise.
92991         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
92992         result.
92993         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
92994         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
92995         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
92996         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
92997         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
92998         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
93000 2008-05-11  Bruno Haible  <bruno@clisp.org>
93002         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
93004 2008-05-11  Bruno Haible  <bruno@clisp.org>
93006         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
93007         * modules/unilbrk/gen-lbrk: New file.
93009 2008-05-11  Bruno Haible  <bruno@clisp.org>
93011         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
93012         * m4/sha512.m4 (gl_SHA512): Likewise.
93014 2008-05-11  Jim Meyering  <meyering@redhat.com>
93016         New modules: crypto/sha256, crypto/sha512 (from coreutils)
93017         * modules/crypto/sha256: New file.
93018         * modules/crypto/sha512: Likewise.
93019         * lib/sha256.c: Likewise.
93020         * lib/sha256.h: Likewise.
93021         * lib/sha512.c: Likewise.
93022         * lib/sha512.h: Likewise.
93023         * lib/u64.h: Likewise.
93024         * m4/sha256.m4: Likewise.
93025         * m4/sha512.m4: Likewise.
93026         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
93028 2008-05-10  Bruno Haible  <bruno@clisp.org>
93030         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
93031         (Input/Output <stdio.h>): Add xprintf.
93032         (Signal handling <signal.h>): Add strsignal.
93033         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
93034         (Core language properties): Add func.
93035         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
93036         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
93037         strings.
93038         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
93039         (Input/output): New section.
93040         (File system functions): Add openat-die, stat-macros.
93041         (Networking functions): Add sockets.
93042         (Unicode string functions): Add unictype/*.
93043         (Support for building libraries and executables): Add gperf.
93044         (Support for building documentation): Add agpl-3.0.
93045         (Misc): Add nocrash.
93047 2008-05-10  Bruno Haible  <bruno@clisp.org>
93049         * modules/unictype/gen-ctype: New file.
93051 2008-05-10  Jim Meyering  <meyering@redhat.com>
93053         Make chdir-safer.c more efficient on a system with no symlinks.
93054         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
93055         also if ELOOP is zero.  Suggested by Bruno Haible.
93057         Make chdir-safer.c slightly safer.
93058         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
93059         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
93061         Avoid compile failure on systems without ELOOP (like mingw).
93062         * lib/chdir-safer.c (ELOOP): Define if not already defined.
93063         Reported by Bruno Haible.
93065 2008-05-10  Bruno Haible  <bruno@clisp.org>
93067         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
93068         (is_utf8_encoding): Use a case-insensitive comparison.
93069         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
93070         streq.
93072 2008-05-10  Bruno Haible  <bruno@clisp.org>
93074         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
93075         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
93076         * lib/unilbrk/ulc-common.h (iconv_string_length,
93077         iconv_string_keeping_offsets): Remove declarations.
93078         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
93079         Don't include <iconv.h>, streq.h, xsize.h.
93080         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
93081         conversion.
93082         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
93083         <iconv.h>, streq.h, xsize.h.
93084         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
93085         conversion.
93086         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
93087         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
93088         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
93089         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
93091 2008-05-10  Bruno Haible  <bruno@clisp.org>
93093         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
93094         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
93096         * modules/unilbrk/u32-width-linebreaks-tests: New file.
93097         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
93099         * modules/unilbrk/u16-width-linebreaks-tests: New file.
93100         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
93102         * modules/unilbrk/u8-width-linebreaks-tests: New file.
93103         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
93105         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
93106         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
93108         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
93109         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
93111         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
93112         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
93114         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
93115         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
93117 2008-05-10  Bruno Haible  <bruno@clisp.org>
93119         Split up 'linebreak' module.
93120         * lib/unilbrk.h: New file, based on lib/linebreak.h.
93121         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
93122         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
93123         modifications.
93124         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
93125         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
93126         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
93127         lib/linebreak.c.
93128         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
93129         lib/linebreak.c.
93130         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
93131         lib/linebreak.c.
93132         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
93133         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
93134         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
93135         lib/linebreak.c.
93136         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
93137         lib/linebreak.c.
93138         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
93139         lib/linebreak.c.
93140         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
93141         lib/linebreak.c.
93142         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
93143         lib/linebreak.c.
93144         * modules/unilbrk/base: New file.
93145         * modules/unilbrk/tables: New file.
93146         * modules/unilbrk/u8-possible-linebreaks: New file.
93147         * modules/unilbrk/u16-possible-linebreaks: New file.
93148         * modules/unilbrk/u32-possible-linebreaks: New file.
93149         * modules/unilbrk/ulc-common: New file.
93150         * modules/unilbrk/ulc-possible-linebreaks: New file.
93151         * modules/unilbrk/u8-width-linebreaks: New file.
93152         * modules/unilbrk/u16-width-linebreaks: New file.
93153         * modules/unilbrk/u32-width-linebreaks: New file.
93154         * modules/unilbrk/ulc-width-linebreaks: New file.
93155         * lib/linebreak.h: Remove file.
93156         * lib/linebreak.c: Remove file.
93157         * m4/linebreak.m4: Remove file.
93158         * modules/linebreak: Remove file.
93159         * NEWS: Mention the changes.
93161 2008-05-09  Eric Blake  <ebb9@byu.net>
93163         Add xmemdup0.
93164         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
93165         implementation.
93166         * lib/xmalloc.c (xmemdup0): New C implementation.
93168 2008-05-08  Bruno Haible  <bruno@clisp.org>
93170         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
93172 2008-05-07  Eric Blake  <ebb9@byu.net>
93174         Support cross-compilation of <wctype.h>.
93175         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
93176         AC_CACHE_CHECK.
93178 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
93180         * build-aux/vc-list-files: Add support for bzr.
93182 2008-05-03  Jim Meyering  <meyering@redhat.com>
93184         avoid failed assertion with tight malloc
93185         * tests/test-getndelim2.c: Correct an off-by-one assertion.
93187 2008-05-03  Simon Josefsson  <simon@josefsson.org>
93189         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
93190         are needed from arpa/inet.h.
93191         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
93192         Reported by Bruno Haible.
93194 2008-05-02  Jim Meyering  <meyering@redhat.com>
93196         avoid compilation error on FreeBSD 6
93197         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
93199 2008-05-01  Jim Meyering  <meyering@redhat.com>
93201         useless-if-before-free: correct --help's exit status description
93202         * build-aux/useless-if-before-free (usage): Like grep, exit 0
93203         for one or more matches, etc.  Reported by Bruno Haible.
93205         vc-list-files: make the stand-alone gnulib test work
93206         * modules/vc-list-files-tests (configure.ac):
93207         Define and AC_SUBST abs_aux_dir.
93208         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
93209         $(abs_top_srcdir) to each script and having each of them
93210         duplicate the work of setting PATH, set PATH here, using
93211         the new variable, abs_aux_dir instead.
93212         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
93213         * tests/test-vc-list-files-git.sh: Likewise.
93214         Reported by Bruno Haible.
93216 2008-05-01  Bruno Haible  <bruno@clisp.org>
93218         * lib/getndelim2.c (getndelim2): Fix newsize computation during
93219         reallocation. Rename 'done' to 'found_delimiter'.
93221 2008-05-01  Jim Meyering  <meyering@redhat.com>
93223         vc-list-files: accommodate /bin/sh like the one from Solaris 10
93224         * build-aux/vc-list-files: Use `...`, not $(...).
93226 2008-04-30  Jim Meyering  <meyering@redhat.com>
93228         add tests for vc-list-files
93229         * modules/vc-list-files-tests: New module.
93230         * tests/test-vc-list-files-cvs.sh: New file.
93231         * tests/test-vc-list-files-git.sh: New file.
93233         avoid a warning from gcc
93234         * lib/getndelim2.c (IF_LINT): Define.
93235         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
93237         vc-list-files: work properly with build-aux/cvsu, too
93238         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
93239         to all cvs-based clauses.
93241         vc-list-files: work properly in the CVS+awk case, too
93242         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
93244         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
93245         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
93246         take more than one file argument, so .  Add quotes, just in case $dir
93247         ever contains a shell meta-character.  Prompted by Soren Hansen in
93248         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
93250 2008-04-29  Eric Blake  <ebb9@byu.net>
93252         Optimize getndelim2 to use block operations when possible.
93253         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
93254         freadseek, and memchr2.
93255         * lib/getndelim2.c (getndelim2): Use them for block reads.
93257 2008-04-29  Bruno Haible  <bruno@clisp.org>
93259         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
93260         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93261         * modules/inet_ntop (Depends-on): Add extensions.
93262         * modules/inet_pton (Depends-on): Likewise.
93263         Reported by Simon Josefsson.
93265 2008-04-29  Jim Meyering  <meyering@redhat.com>
93267         When the is more than one match in a block, match all of them.
93268         * build-aux/useless-if-before-free: Iterate through each block
93269         until there are no more matches.
93271         Fix broken useless-if-before-free script.
93272         * build-aux/useless-if-before-free: Fix typo: missing "?" after
93273         the expression to match cast of argument to free-like function.
93275 2008-04-29  Eric Blake  <ebb9@byu.net>
93277         Use new header.
93278         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
93280 2008-04-29  Jim Meyering  <meyering@redhat.com>
93282         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
93283         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
93284         by gnulib to exist and to declare e.g., inet_ntop.
93285         Don't include "inet_ntop.h", now removed.
93287         * m4/arpa_inet_h.m4: Remove trailing blanks.
93289 2008-04-29  Eric Blake  <ebb9@byu.net>
93291         Silence valgrind on safe reads beyond potential array bounds.
93292         * lib/rawmemchr.valgrind: New file.
93293         * lib/strchrnul.valgrind: Likewise.
93294         * modules/rawmemchr (Files): Distribute new file.
93295         * modules/strchrnul (Files): Likewise.
93296         Suggested by Bruno Haible.
93298 2008-04-29  Bruno Haible  <bruno@clisp.org>
93300         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
93301         (inet_ntop, inet_pton): Change portability warning's wording.
93302         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
93303         Invoke gl_CHECK_NEXT_HEADERS.
93304         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
93305         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
93306         set ARPA_INET_H.
93307         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93308         * modules/arpa_inet (Description): No longer only for systems that
93309         lack it.
93310         (Depends-on): Add include_next.
93311         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
93312         HAVE_ARPA_INET_H.
93314 2008-04-29  Jim Meyering  <meyering@redhat.com>
93316         * modules/mkdir (License): Re-license as LGPLv2+.
93318 2008-04-29  Bruno Haible  <bruno@clisp.org>
93320         * modules/rawmemchr (Maintainer): Set to Eric.
93321         * modules/strchrnul (Maintainer): Likewise.
93323 2008-04-29  Simon Josefsson  <simon@josefsson.org>
93325         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
93326         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
93328         * modules/arpa_inet (arpa/inet.h): Use them.
93330 2008-04-28  Eric Blake  <ebb9@byu.net>
93332         Test getndelim2.
93333         * modules/getndelim2-tests: New file.
93334         * tests/test-getndelim2.c: Likewise.
93335         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
93336         stream.
93337         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
93339         * MODULES.html.sh: Document new module.
93341 2008-04-20  Bruno Haible  <bruno@clisp.org>
93343         * lib/c-stack.c (die): Use raise.
93344         * modules/c-stack (Depends-on): Add raise.
93346 2008-04-28  Bruno Haible  <bruno@clisp.org>
93348         Expect rpmatch to be declared.
93349         * lib/yesno.c (rpmatch): Remove declaration.
93351         Declare rpmatch.
93352         * lib/stdlib.in.h (rpmatch): New declaration.
93353         * lib/rpmatch.c: Include <stdlib.h> first.
93354         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
93355         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
93356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
93357         HAVE_RPMATCH.
93358         * modules/rpmatch (Depends-on): Add stdlib, extensions.
93359         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
93360         (Include): Set to <stdlib.h>.
93361         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
93362         HAVE_RPMATCH.
93363         * NEWS: Document the change.
93365 2008-04-28  Bruno Haible  <bruno@clisp.org>
93367         Change rpmatch to use nl_langinfo when appropriate.
93368         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
93369         (N_): New macro.
93370         (localized_pattern): New function/macro.
93371         (try): Remove match, nomatch arguments. Copy the pattern into safe
93372         memory before caching it.
93373         (rpmatch): Use localized_pattern. Add translator comments.
93374         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
93375         Suggested by Eric Blake.
93376         * modules/rpmatch (Depends-on): Add stdbool.
93378 2008-04-28  Eric Blake  <ebb9@byu.net>
93380         Add rawmemchr module, matching glibc.
93381         * modules/string (Makefile.am): New indicator.
93382         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
93383         * lib/string.in.h (rawmemchr): Declare when appropriate.
93384         * modules/rawmemchr: New file.
93385         * m4/rawmemchr.m4: Likewise.
93386         * lib/rawmemchr.c: Likewise.
93387         * modules/rawmemchr-tests: Likewise.
93388         * tests/test-rawmemchr.c: Likewise.
93389         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
93390         module.
93391         * modules/strchrnul (Depends-on): Add rawmemchr.
93392         * lib/strchrnul.c (strchrnul): Optimize a corner case.
93394         Whitespace cleanup.
93395         * tests/test-strchrnul.c: Reindent.
93396         * lib/strchrnul.c: Likewise.
93398         Optimize and test strchrnul.
93399         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
93400         * modules/strchrnul-tests: New file.
93401         * tests/test-strchrnul.c: Likewise.
93403         Remove intprops dependency.
93404         * modules/memchr (Depends-on): Remove intprops.
93405         * modules/memrchr (Depends-on): Likewise.
93406         * modules/memchr2 (Depends-on): Likewise.
93407         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
93408         * lib/memrchr.c (__memrchr): Likewise.
93409         * lib/memrchr2.c (memchr2): Likewise.
93410         Reported by Simon Josefsson.
93412 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93414         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
93415         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93417 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93419         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
93421         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
93423         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
93425         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
93426         declarations.
93427         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
93429         * m4/inet_pton.m4: Don't check for header files.
93431         * m4/inet_ntop.m4: Don't check for header files.
93433 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93435         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
93436         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
93437         trigger for cygwin).
93438         Reported by Bruno Haible  <bruno@clisp.org>.
93440 2008-04-28  Bruno Haible  <bruno@clisp.org>
93442         * doc/posix-functions/strdup.texi: Mention mingw problem.
93444 2008-04-27  Bruno Haible  <bruno@clisp.org>
93446         * modules/stat-time-tests (Depends-on): Add sleep.
93447         * tests/test-stat-time.c (force_unlink): New function.
93448         (cleanup): Use it.
93449         (test_mtime): Remove the ctime related tests.
93450         (test_ctime): New function, containing the ctime related tests.
93451         (main): Call test_ctime, except on native Windows platforms.
93453 2008-04-27  Bruno Haible  <bruno@clisp.org>
93455         * lib/rpmatch.c (rpmatch): Add some comments.
93456         Reported by James Youngman <jay@gnu.org>.
93458 2008-04-27  Bruno Haible  <bruno@clisp.org>
93460         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
93461         quiet NaNs.
93463 2008-04-27  Bruno Haible  <bruno@clisp.org>
93465         Make test-yesno.sh work on mingw.
93466         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
93467         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
93468         (main): Set stdin to binary mode.
93469         * modules/yesno-tests (Depends-on): Add binary-io.
93471 2008-04-27  Bruno Haible  <bruno@clisp.org>
93473         Fix 'isfinite' on x86, x86_64, ia64 platforms.
93474         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
93475         argument that lie outside the IEEE 854 domain.
93476         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
93477         (gl_ISFINITE): Use it.
93478         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
93480 2008-04-27  Bruno Haible  <bruno@clisp.org>
93482         Allow local renaming in config.h.
93483         * lib/memrchr.c (memrchr): Don't undefine outside libc.
93485 2008-04-27  Bruno Haible  <bruno@clisp.org>
93487         * lib/memchr.c (__memchr): Change type of 'i'.
93488         * lib/memchr2.c (memchr2): Likewise.
93490 2008-04-26  Eric Blake  <ebb9@byu.net>
93491         and Bruno Haible  <bruno@clisp.org>
93493         Optimize and test memrchr.
93494         * modules/memrchr (Depends-on): Add intprops.
93495         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
93496         * modules/memrchr-tests: New file.
93497         * tests/test-memrchr.c: New file.
93499 2008-04-26  Bruno Haible  <bruno@clisp.org>
93501         Add tentative support for DragonFly BSD.
93502         * lib/stdio-impl.h: Add macros for DragonFly BSD.
93503         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
93504         fp.
93505         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
93506         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
93507         * lib/fpurge.c (fpurge): Likewise.
93508         * lib/freadable.c (freaadable): Likewise.
93509         * lib/freadahead.c (freadahead): Likewise.
93510         * lib/freading.c (freading): Likewise.
93511         * lib/freadptr.c (freadptr): Likewise.
93512         * lib/freadseek.c (freadptrinc): Likewise.
93513         * lib/fseeko.c (fseeko): Likewise.
93514         * lib/fseterr.c (fseterr): Likewise.
93515         * lib/fwritable.c (fwritable): Likewise.
93516         * lib/fwriting.c (fwriting): Likewise.
93518 2008-04-26  Bruno Haible  <bruno@clisp.org>
93520         * lib/stdio-impl.h: New file.
93521         * lib/fbufmode.c: Include stdio-impl.h.
93522         (fbufmode): Use fp_, remove redundant #defines.
93523         * lib/fflush.c: Include stdio-impl.h.
93524         (clear_ungetc_buffer): Remove redundant #defines.
93525         * lib/fpurge.c: Include stdio-impl.h.
93526         (fpurge): Remove redundant #defines.
93527         * lib/freadable.c: Include stdio-impl.h.
93528         (freadable): Remove redundant #defines.
93529         * lib/freadahead.c: Include stdio-impl.h.
93530         (freadahead): Remove redundant #defines.
93531         * lib/freading.c: Include stdio-impl.h.
93532         (freading): Remove redundant #defines.
93533         * lib/freadptr.c: Include stdio-impl.h.
93534         (freadptr): Remove redundant #defines.
93535         * lib/freadseek.c: Include stdio-impl.h.
93536         (freadptrinc): Remove redundant #defines.
93537         * lib/fseeko.c: Include stdio-impl.h.
93538         (rpl_fseeko): Remove redundant #defines.
93539         * lib/fseterr.c: Include stdio-impl.h.
93540         (fseterr): Remove redundant #defines.
93541         * lib/fwritable.c: Include stdio-impl.h.
93542         (fwritable: Remove redundant #defines.
93543         * lib/fwriting.c: Include stdio-impl.h.
93544         (fwriting): Remove redundant #defines.
93545         * modules/fbufmode (Files): Add lib/stdio-impl.h.
93546         * modules/fflush (Files): Likewise.
93547         * modules/fpurge (Files): Likewise.
93548         * modules/freadable (Files): Likewise.
93549         * modules/freadahead (Files): Likewise.
93550         * modules/freading (Files): Likewise.
93551         * modules/freadptr (Files): Likewise.
93552         * modules/freadseek (Files): Likewise.
93553         * modules/fseeko (Files): Likewise.
93554         * modules/fseterr (Files): Likewise.
93555         * modules/fwritable (Files): Likewise.
93556         * modules/fwriting (Files): Likewise.
93558 2008-04-26  Bruno Haible  <bruno@clisp.org>
93560         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
93561         restore_seek_optimization, update_fpos_cache): New functions, extracted
93562         from rpl_fflush.
93563         (rpl_fflush): Use them.
93564         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
93565         (gl_REPLACE_FFLUSH): Use it.
93567 2008-04-26  Bruno Haible  <bruno@clisp.org>
93569         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
93570         on Solaris.
93571         * tests/test-xstrtoimax.sh: Likewise.
93572         * tests/test-xstrtoumax.sh: Likewise.
93573         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93575 2008-04-26  Bruno Haible  <bruno@clisp.org>
93577         * modules/memchr-tests: New file.
93578         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
93580 2008-04-26  Eric Blake  <ebb9@byu.net>
93581             Bruno Haible  <bruno@clisp.org>
93583         * lib/memchr.c: Include intprops.h.
93584         (__memchr): Optimize parallel detection of matching bytes. Rename local
93585         variables. Add explanatory comments.
93587 2008-04-26  Bruno Haible  <bruno@clisp.org>
93589         Fix module 'memchr', broken since 2000-10-28.
93590         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
93592 2008-04-26  Bruno Haible  <bruno@clisp.org>
93594         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
93595         comments.
93597 2008-04-25  Eric Blake  <ebb9@byu.net>
93599         Use native fstatat on cygwin 1.7.0.
93600         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
93601         first.
93603 2008-04-23  Eric Blake  <ebb9@byu.net>
93605         Improve memchr2 performance.
93606         * lib/memchr2.c (memchr2): Further optimize parallel detection of
93607         NUL bytes.
93608         * modules/memchr2 (Depends-on): Use intprops.h.
93610 2008-04-23  Simon Josefsson  <simon@josefsson.org>
93612         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
93613         an inline function instead of a CPP macro.  Patch by Ben Pfaff
93614         <blp@cs.stanford.edu>.
93616 2008-04-23  Simon Josefsson  <simon@josefsson.org>
93618         * lib/arpa_inet.in.h: New file.
93620         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
93621         (Makefile.am): Sed in substitute header file.
93623         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
93624         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
93626         * modules/inet_ntop (configure.ac): Use
93627         gl_ARPA_INET_MODULE_INDICATOR.
93629         * modules/inet_pton (configure.ac): Use
93630         gl_ARPA_INET_MODULE_INDICATOR.
93632 2008-04-22  Jim Meyering  <meyering@redhat.com>
93634         * modules/verify (License): Re-license as LGPLv2+.
93636 2008-04-22  Simon Josefsson  <simon@josefsson.org>
93638         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
93639         parameter to void* as per POSIX standard (MinGW uses char*).
93641 2008-04-21  Bruno Haible  <bruno@clisp.org>
93643         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
93644         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
93645         Define to replacements if REPLACE_ISWCNTRL is 1.
93646         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
93647         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
93648         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
93649         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
93650         what it fixes.
93651         * doc/posix-functions/iswalpha.texi: Likewise.
93652         * doc/posix-functions/iswblank.texi: Likewise.
93653         * doc/posix-functions/iswcntrl.texi: Likewise.
93654         * doc/posix-functions/iswdigit.texi: Likewise.
93655         * doc/posix-functions/iswgraph.texi: Likewise.
93656         * doc/posix-functions/iswlower.texi: Likewise.
93657         * doc/posix-functions/iswprint.texi: Likewise.
93658         * doc/posix-functions/iswpunct.texi: Likewise.
93659         * doc/posix-functions/iswspace.texi: Likewise.
93660         * doc/posix-functions/iswupper.texi: Likewise.
93661         * doc/posix-functions/iswxdigit.texi: Likewise.
93662         Reported by Alain Guibert.
93664 2008-04-21  Bruno Haible  <bruno@clisp.org>
93666         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
93667         Patch by Alain Guibert.
93669 2008-04-21  Bruno Haible  <bruno@clisp.org>
93671         Fix test failures on mingw.
93672         * tests/test-xstrtol.c (print_no_progname): New function.
93673         (main): Install it in error_print_progname hook.
93674         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
93675         * tests/test-xstrtoimax.sh: Likewise.
93676         * tests/test-xstrtoumax.sh: Likewise.
93678 2008-04-21  Bruno Haible  <bruno@clisp.org>
93680         Fix test failure on mingw.
93681         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
93683 2008-04-21  Bruno Haible  <bruno@clisp.org>
93685         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
93686         Actually assign a value.
93688 2008-04-20  Bruno Haible  <bruno@clisp.org>
93690         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
93691         take 2.
93692         * lib/canonicalize.c (canonicalize_file_name): Elide if the
93693         'canonicalize-lgpl' module is also used.
93694         * lib/canonicalize-lgpl.c: Undo last change.
93695         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
93697 2008-04-20  Bruno Haible  <bruno@clisp.org>
93699         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
93700         config.h. Provide _mkdir based fallback for mingw.
93701         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
93702         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
93703         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
93704         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
93705         rather than defining mkdir in config.h.
93706         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
93707         (gl_SYS_STAT_H_DEFAULTS): New macro.
93708         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
93709         HAVE_IO_H any more.
93710         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
93711         HAVE_DECL_MKDIR and HAVE_IO_H.
93713 2008-04-20  Bruno Haible  <bruno@clisp.org>
93715         * lib/isapipe.c: Port to native Windows platforms.
93717 2008-04-20  Bruno Haible  <bruno@clisp.org>
93719         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
93721 2008-04-21  Eric Blake  <ebb9@byu.net>
93723         Work around preprocessors that don't handle UINTMAX_MAX.
93724         * lib/memchr2.c (memchr2): Avoid embedded #if.
93725         Reported by Alain Guibert, fix suggested by Bruno Haible.
93727 2008-04-21  Simon Josefsson  <simon@josefsson.org>
93729         * doc/posix-functions/strftime.texi (strftime): Explain better
93730         Windows incompatibility.  Suggested by Micah Cowan
93731         <micah@cowan.name>.
93733 2008-04-20  Bruno Haible  <bruno@clisp.org>
93735         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
93736         unistr/u8-mblen.
93738 2008-04-20  Bruno Haible  <bruno@clisp.org>
93740         Fix test failure on platforms with non-GNU iconv.
93741         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
93742         (U_TO_U8): Use it, rather than u16_to_u8.
93743         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
93744         units at the end of the input string.
93745         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
93747 2008-04-20  Bruno Haible  <bruno@clisp.org>
93749         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
93750         when the resulting length is 0.
93751         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
93753 2008-04-20  Bruno Haible  <bruno@clisp.org>
93755         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
93756         works.
93757         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
93759 2008-04-20  Bruno Haible  <bruno@clisp.org>
93761         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
93762         * modules/tsearch-tests (configure.ac): Test for initstate function.
93764 2008-04-20  Bruno Haible  <bruno@clisp.org>
93766         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
93767         for nlink_t if missing.
93768         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
93770 2008-04-19  Bruno Haible  <bruno@clisp.org>
93772         Work around snprintf bug on Linux libc5.
93773         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
93774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
93775         gl_SNPRINTF_SIZE1.
93776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93777         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
93778         that test failed.
93779         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
93780         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
93781         * modules/snprintf (Files): Add m4/printf.m4.
93782         * modules/vsnprintf (Files): Likewise.
93783         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
93784         * doc/posix-functions/vsnprintf.texi: Likewise.
93786 2008-04-19  Bruno Haible  <bruno@clisp.org>
93788         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
93789         from 0.0058 to less than 10^-7.
93791 2008-04-19  Bruno Haible  <bruno@clisp.org>
93793         Fix rounding when a precision is given.
93794         * lib/vasnprintf.c (is_borderline): New function.
93795         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
93796         9...9x.
93797         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
93798         %e, %g.
93799         * tests/test-vasprintf-posix.c (test_function): Likewise.
93800         * tests/test-snprintf-posix.h (test_function): Likewise.
93801         * tests/test-sprintf-posix.h (test_function): Likewise.
93802         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
93803         * tests/test-printf-posix.h (test_function): Likewise.
93804         * tests/test-printf-posix.output: Update.
93805         Reported by John Darrington <john@darrington.wattle.id.au> via
93806         Ben Pfaff <blp@cs.stanford.edu>.
93808 2008-04-18  Simon Josefsson  <simon@josefsson.org>
93810         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
93811         Suggested by Bruno Haible <bruno@clisp.org>.
93813 2008-04-17  Bruno Haible  <bruno@clisp.org>
93815         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
93816         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
93817         implementation.
93818         Patch by Bruce Merry <bmerry@gmail.com>.
93820 2008-04-17  Simon Josefsson  <simon@josefsson.org>
93822         * doc/posix-functions/strftime.texi (strftime): Mention that %e
93823         doesn't work under Windows.
93825 2008-04-16  Bruno Haible  <bruno@clisp.org>
93827         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
93828         New macros.
93829         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
93830         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
93831         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
93832         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
93833         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
93834         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
93835         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
93836         macros.
93837         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
93838         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
93839         Northern Sotho, Uighur.
93841 2008-04-16  Bruno Haible  <bruno@clisp.org>
93843         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
93844         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
93845         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
93846         Reported by Daniel Bergström <daniel@octocode.com>.
93848 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
93849             Bruno Haible  <bruno@clisp.org>
93851         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
93852         function.
93853         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
93854         New functions, mostly extracted from gl_locale_name_default.
93855         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
93857 2008-04-16  Eric Blake  <ebb9@byu.net>
93859         Adjust strtod detection to catch glibc 2.7 bug.
93860         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
93861         Reported by John Gatewood Ham.
93863 2008-04-16  Bruno Haible  <bruno@clisp.org>
93865         Add tentative support for Linux libc5.
93866         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
93867         * lib/fpurge.c (fpurge): Likewise.
93868         * lib/freadable.c (freadable): Likewise.
93869         * lib/freadahead.c (freadahead): Likewise.
93870         * lib/freading.c (freading): Likewise.
93871         * lib/freadptr.c (freadptr): Likewise.
93872         * lib/freadseek.c (freadptrinc): Likewise.
93873         * lib/fseeko.c (rpl_fseeko): Likewise.
93874         * lib/fseterr.c (fseterr): Likewise.
93875         * lib/fwritable.c (fwritable): Likewise.
93876         * lib/fwriting.c (fwriting): Likewise.
93877         Reported by Alain Guibert <alguibert+bts@free.fr>.
93879 2008-04-15  Bruno Haible  <bruno@clisp.org>
93881         * modules/mathl (configure.ac): Define module indicator.
93883 2008-04-15  Bruno Haible  <bruno@clisp.org>
93885         * lib/logl.c (logl): Remove unused variables.
93887 2008-04-15  Bruno Haible  <bruno@clisp.org>
93889         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
93890         fails.
93892 2008-04-15  Bruno Haible  <bruno@clisp.org>
93894         * lib/trim.c (trim2): Fix argument of isspace() macro.
93896 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
93898         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
93899         to 0.
93900         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
93902 2008-04-14  Bruno Haible  <bruno@clisp.org>
93904         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
93905         AC_LANG_PROGRAM argument.
93906         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
93907         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
93908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
93909         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
93910         * m4/math_h.m4 (gl_MATH_H): Likewise.
93911         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
93912         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93913         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
93914         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
93915         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
93916         * m4/regex.m4 (gl_REGEX): Likewise.
93917         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
93918         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
93919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93920         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
93921         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93922         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93923         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
93924         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
93926 2008-04-14  Jim Meyering  <meyering@redhat.com>
93928         test-strtod: fix typos: s/abs/fabs/
93929         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
93931 2008-04-13  Bruno Haible  <bruno@clisp.org>
93933         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
93934         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
93935         module is also used and while not building the reloc-wrapper.
93937 2008-04-13  Bruno Haible  <bruno@clisp.org>
93939         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
93941 2008-04-13  Bruno Haible  <bruno@clisp.org>
93943         Fix AIX compilation failure introduced on 2008-04-02.
93944         * tests/test-frexp.c (exp): Undefine before redefining.
93945         * tests/test-frexpl.c (exp): Likewise.
93947 2008-04-13  Bruno Haible  <bruno@clisp.org>
93949         Work around a HP-UX stdio bug.
93950         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
93951         * tests/test-ftello.c (main): Likewise.
93952         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
93953         * doc/posix-functions/ftello.texi: Likewise.
93955 2008-04-13  Bruno Haible  <bruno@clisp.org>
93957         Make test-signbit pass on HP-UX/hppa.
93958         * tests/test-signbit.c (minus_zerol): New variable.
93959         (test_signbitl): Use it.
93961 2008-04-13  Bruno Haible  <bruno@clisp.org>
93963         Make truncl work on OSF/1 4.0.
93964         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
93965         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
93966         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
93967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
93968         HAVE_DECL_TRUNCL.
93969         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
93970         HAVE_DECL_TRUNCL.
93971         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
93973 2008-04-13  Bruno Haible  <bruno@clisp.org>
93975         * lib/unictype.h: Remove trailing comma from enumeration definitions.
93977 2008-04-13  Bruno Haible  <bruno@clisp.org>
93979         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
93980         expression, so as to avoid HP-UX 11 cc compiler bug.
93982 2008-04-13  Bruno Haible  <bruno@clisp.org>
93984         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
93986 2008-04-13  Bruno Haible  <bruno@clisp.org>
93988         * lib/git-merge-changelog.c: Remove empty declaration outside of
93989         functions.
93991 2008-04-13  Bruno Haible  <bruno@clisp.org>
93993         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
93995 2008-04-13  Bruno Haible  <bruno@clisp.org>
93997         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
93998         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
93999         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
94000         also if it exists but lacks definitions of the SHUT_* macros.
94001         * modules/sys_socket (Description): Update.
94002         Reported by Elbert Pol <e.pol@chello.nl>.
94004 2008-04-13  Bruno Haible  <bruno@clisp.org>
94006         * lib/localcharset.c (OS2): Don't redefine if already defined.
94007         Reported by Elbert Pol <e.pol@chello.nl>.
94009 2008-04-13  Bruno Haible  <bruno@clisp.org>
94011         * lib/binary-io.h [__EMX__]: Include <io.h>.
94012         Reported by Elbert Pol <e.pol@chello.nl>.
94014 2008-04-12  Bruno Haible  <bruno@clisp.org>
94016         * lib/fpucw.h: Enable the definitions also for x86_64.
94017         Needed for NetBSD/x86_64.
94018         Reported by Thomas Klausner <tk@giga.or.at>.
94020 2008-04-12  Bruno Haible  <bruno@clisp.org>
94022         * tests/test-strtod.c: Include isnand.h.
94023         (main): Use isnand instead of isnan.
94024         Reported by Jim Meyering.
94026 2008-04-12  Bruno Haible  <bruno@clisp.org>
94028         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
94029         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
94031 2008-04-12  Jim Meyering  <meyering@redhat.com>
94033         * m4/math_h.m4 (gl_MATH_H): Fix typos.
94035 2008-04-12  Bruno Haible  <bruno@clisp.org>
94037         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
94038         Reported by Elbert Pol <e.pol@chello.nl>.
94040 2008-04-12  Eric Blake  <ebb9@byu.net>
94042         Work around Solaris 10 math.h bug.
94043         * m4/math_h.m4 (gl_MATH_H): Check for bug.
94044         (gl_MATH_H_DEFAULTS): Set up default.
94045         * modules/math (Makefile.am): Replace new indicators.
94046         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
94047         * tests/test-math.c (main): Test this.
94048         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
94049         * doc/posix-headers/math.texi (math.h): Mention bug.
94050         Reported by Nelson H. F. Beebe and Jim Meyering.
94052 2008-04-11  Bruno Haible  <bruno@clisp.org>
94054         Adapt to future versions of Apple GCC.
94055         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
94056         Reported by Peter O'Gorman <peter@pogma.com>.
94058 2008-04-11  Bruno Haible  <bruno@clisp.org>
94060         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
94062 2008-04-11  Bruno Haible  <bruno@clisp.org>
94064         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
94066         * modules/getaddrinfo-tests (Makefile.am): Define
94067         test_getaddrinfo_LDADD.
94069 2008-04-11  Bruno Haible  <bruno@clisp.org>
94071         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
94072         (init): Fix syntax error.
94073         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
94074         is declared.
94076 2008-04-11  Bruno Haible  <bruno@clisp.org>
94078         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
94079         * modules/glob (Depends-on): Add stdbool.
94081 2008-04-11  Bruno Haible  <bruno@clisp.org>
94083         * lib/trim.c: Include <string.h>.
94085 2008-04-11  Eric Blake  <ebb9@byu.net>
94087         Avoid compile failure on OS/2.
94088         * lib/regex_internal.h (internal_function): Disable optimization
94089         on OS/2 (__EMX__), where it caused compiler error.
94090         Reported by Elbert Pol.
94092 2008-04-11  Bruno Haible  <bruno@clisp.org>
94094         Flush the standard error stream before aborting. Needed on mingw.
94095         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
94096         * tests/test-array_list.c (ASSERT): Likewise.
94097         * tests/test-array_oset.c (ASSERT): Likewise.
94098         * tests/test-avltree_list.c (ASSERT): Likewise.
94099         * tests/test-avltree_oset.c (ASSERT): Likewise.
94100         * tests/test-avltreehash_list.c (ASSERT): Likewise.
94101         * tests/test-binary-io.c (ASSERT): Likewise.
94102         * tests/test-byteswap.c (ASSERT): Likewise.
94103         * tests/test-c-ctype.c (ASSERT): Likewise.
94104         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
94105         * tests/test-c-strcasestr.c (ASSERT): Likewise.
94106         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
94107         * tests/test-c-strstr.c (ASSERT): Likewise.
94108         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
94109         * tests/test-canonicalize.c (ASSERT): Likewise.
94110         * tests/test-carray_list.c (ASSERT): Likewise.
94111         * tests/test-ceilf1.c (ASSERT): Likewise.
94112         * tests/test-ceilf2.c (ASSERT): Likewise.
94113         * tests/test-ceill.c (ASSERT): Likewise.
94114         * tests/test-count-one-bits.c (ASSERT): Likewise.
94115         * tests/test-fbufmode.c (ASSERT): Likewise.
94116         * tests/test-fflush2.c (ASSERT): Likewise.
94117         * tests/test-floorf1.c (ASSERT): Likewise.
94118         * tests/test-floorf2.c (ASSERT): Likewise.
94119         * tests/test-floorl.c (ASSERT): Likewise.
94120         * tests/test-fopen.c (ASSERT): Likewise.
94121         * tests/test-fpending.c (ASSERT): Likewise.
94122         * tests/test-fprintf-posix.c (ASSERT): Likewise.
94123         * tests/test-fpurge.c (ASSERT): Likewise.
94124         * tests/test-freadable.c (ASSERT): Likewise.
94125         * tests/test-freadahead.c (ASSERT): Likewise.
94126         * tests/test-freading.c (ASSERT): Likewise.
94127         * tests/test-freadptr.c (ASSERT): Likewise.
94128         * tests/test-freadptr2.c (ASSERT): Likewise.
94129         * tests/test-freadseek.c (ASSERT): Likewise.
94130         * tests/test-freopen.c (ASSERT): Likewise.
94131         * tests/test-frexp.c (ASSERT): Likewise.
94132         * tests/test-frexpl.c (ASSERT): Likewise.
94133         * tests/test-fseek.c (ASSERT): Likewise.
94134         * tests/test-fseeko.c (ASSERT): Likewise.
94135         * tests/test-fstrcmp.c (ASSERT): Likewise.
94136         * tests/test-ftell.c (ASSERT): Likewise.
94137         * tests/test-ftello.c (ASSERT): Likewise.
94138         * tests/test-func.c (ASSERT): Likewise.
94139         * tests/test-fwritable.c (ASSERT): Likewise.
94140         * tests/test-fwriting.c (ASSERT): Likewise.
94141         * tests/test-getdelim.c (ASSERT): Likewise.
94142         * tests/test-getline.c (ASSERT): Likewise.
94143         * tests/test-i-ring.c (ASSERT): Likewise.
94144         * tests/test-iconv-utf.c (ASSERT): Likewise.
94145         * tests/test-iconv.c (ASSERT): Likewise.
94146         * tests/test-isfinite.c (ASSERT): Likewise.
94147         * tests/test-isnand.c (ASSERT): Likewise.
94148         * tests/test-isnanf.c (ASSERT): Likewise.
94149         * tests/test-isnanl.h (ASSERT): Likewise.
94150         * tests/test-ldexpl.c (ASSERT): Likewise.
94151         * tests/test-linked_list.c (ASSERT): Likewise.
94152         * tests/test-linkedhash_list.c (ASSERT): Likewise.
94153         * tests/test-localename.c (ASSERT): Likewise.
94154         * tests/test-lseek.c (ASSERT): Likewise.
94155         * tests/test-mbscasecmp.c (ASSERT): Likewise.
94156         * tests/test-mbscasestr1.c (ASSERT): Likewise.
94157         * tests/test-mbscasestr2.c (ASSERT): Likewise.
94158         * tests/test-mbscasestr3.c (ASSERT): Likewise.
94159         * tests/test-mbscasestr4.c (ASSERT): Likewise.
94160         * tests/test-mbschr.c (ASSERT): Likewise.
94161         * tests/test-mbscspn.c (ASSERT): Likewise.
94162         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
94163         * tests/test-mbspbrk.c (ASSERT): Likewise.
94164         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
94165         * tests/test-mbsrchr.c (ASSERT): Likewise.
94166         * tests/test-mbsspn.c (ASSERT): Likewise.
94167         * tests/test-mbsstr1.c (ASSERT): Likewise.
94168         * tests/test-mbsstr2.c (ASSERT): Likewise.
94169         * tests/test-mbsstr3.c (ASSERT): Likewise.
94170         * tests/test-memchr2.c (ASSERT): Likewise.
94171         * tests/test-memmem.c (ASSERT): Likewise.
94172         * tests/test-open.c (ASSERT): Likewise.
94173         * tests/test-printf-frexp.c (ASSERT): Likewise.
94174         * tests/test-printf-frexpl.c (ASSERT): Likewise.
94175         * tests/test-printf-posix.c (ASSERT): Likewise.
94176         * tests/test-quotearg.c (ASSERT): Likewise.
94177         * tests/test-rbtree_list.c (ASSERT): Likewise.
94178         * tests/test-rbtree_oset.c (ASSERT): Likewise.
94179         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
94180         * tests/test-round1.c (ASSERT): Likewise.
94181         * tests/test-roundf1.c (ASSERT): Likewise.
94182         * tests/test-roundl.c (ASSERT): Likewise.
94183         * tests/test-signbit.c (ASSERT): Likewise.
94184         * tests/test-sleep.c (ASSERT): Likewise.
94185         * tests/test-snprintf-posix.c (ASSERT): Likewise.
94186         * tests/test-snprintf.c (ASSERT): Likewise.
94187         * tests/test-sprintf-posix.c (ASSERT): Likewise.
94188         * tests/test-stat-time.c (ASSERT): Likewise.
94189         * tests/test-strcasestr.c (ASSERT): Likewise.
94190         * tests/test-strerror.c (ASSERT): Likewise.
94191         * tests/test-striconv.c (ASSERT): Likewise.
94192         * tests/test-striconveh.c (ASSERT): Likewise.
94193         * tests/test-striconveha.c (ASSERT): Likewise.
94194         * tests/test-strsignal.c (ASSERT): Likewise.
94195         * tests/test-strstr.c (ASSERT): Likewise.
94196         * tests/test-strtod.c (ASSERT): Likewise.
94197         * tests/test-trunc1.c (ASSERT): Likewise.
94198         * tests/test-trunc2.c (ASSERT): Likewise.
94199         * tests/test-truncf1.c (ASSERT): Likewise.
94200         * tests/test-truncf2.c (ASSERT): Likewise.
94201         * tests/test-truncl.c (ASSERT): Likewise.
94202         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
94203         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
94204         * tests/test-vasnprintf.c (ASSERT): Likewise.
94205         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
94206         * tests/test-vasprintf.c (ASSERT): Likewise.
94207         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
94208         * tests/test-vprintf-posix.c (ASSERT): Likewise.
94209         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
94210         * tests/test-vsnprintf.c (ASSERT): Likewise.
94211         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
94212         * tests/test-wcwidth.c (ASSERT): Likewise.
94213         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
94214         * tests/test-xprintf-posix.c (ASSERT): Likewise.
94215         * tests/test-xvasprintf.c (ASSERT): Likewise.
94216         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
94217         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
94218         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
94219         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
94220         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
94221         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
94222         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
94223         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
94224         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
94225         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
94226         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
94227         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
94228         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
94229         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
94230         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
94231         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
94232         * tests/unictype/test-block_list.c (ASSERT): Likewise.
94233         * tests/unictype/test-block_of.c (ASSERT): Likewise.
94234         * tests/unictype/test-block_test.c (ASSERT): Likewise.
94235         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
94236         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
94237         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
94238         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
94239         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
94240         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
94241         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
94242         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
94243         * tests/unictype/test-combining.c (ASSERT): Likewise.
94244         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
94245         * tests/unictype/test-digit.c (ASSERT): Likewise.
94246         * tests/unictype/test-mirror.c (ASSERT): Likewise.
94247         * tests/unictype/test-numeric.c (ASSERT): Likewise.
94248         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
94249         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
94250         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
94251         * tests/unictype/test-scripts.c (ASSERT): Likewise.
94252         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
94253         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
94254         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
94255         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
94256         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
94257         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
94258         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
94259         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
94260         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
94261         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
94262         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
94263         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
94264         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
94265         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
94266         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
94267         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
94268         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
94269         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
94270         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
94271         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
94272         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
94273         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
94274         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
94275         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
94276         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
94277         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
94278         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
94279         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
94280         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
94281         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
94282         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
94283         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
94284         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
94285         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
94286         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
94287         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
94288         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
94289         Reported by Eric Blake.
94291 2008-04-11  Bruno Haible  <bruno@clisp.org>
94293         * lib/wchar.in.h: Tweak comment.
94295 2008-04-11  Bruno Haible  <bruno@clisp.org>
94297         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
94298         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
94299         gl_COMMON.
94300         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
94302 2008-04-11  Bruno Haible  <bruno@clisp.org>
94304         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
94306 2008-04-11  Simon Josefsson  <simon@josefsson.org>
94308         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
94309         of attempting to use non-existing /dev/*random.  Based on patch
94310         from Adam Strzelecki <ono@java.pl> in
94311         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
94313 2008-04-08  Bruno Haible  <bruno@clisp.org>
94315         Add tentative support for emx+gcc.
94316         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
94317         * lib/fpurge.c (fpurge): Likewise.
94318         * lib/freadable.c (freadable): Likewise.
94319         * lib/freadahead.c (freadahead): Likewise.
94320         * lib/freading.c (freading): Likewise.
94321         * lib/freadptr.c (freadptr): Likewise.
94322         * lib/freadseek.c (freadptrinc): Likewise.
94323         * lib/fseeko.c (rpl_fseeko): Likewise.
94324         * lib/fseterr.c (fseterr): Likewise.
94325         * lib/fwritable.c (fwritable): Likewise.
94326         * lib/fwriting.c (fwriting): Likewise.
94327         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
94329 2008-04-09  Eric Blake  <ebb9@byu.net>
94331         Avoid some autoconf warnings.
94332         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
94333         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
94334         * m4/afs.m4 (gl_AFS): Likewise.
94335         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
94336         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
94337         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
94338         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
94339         (gl_INTEGER_TYPE_SUFFIX): Likewise.
94340         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
94341         (AC_CHECK_DECLS_ONCE): Likewise.
94342         Rename file...
94343         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
94344         gnulib-tool requires autoconf 2.59 or better.
94345         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
94347 2008-04-08  Eric Blake  <ebb9@byu.net>
94349         Use 'git describe --match' if present (added in git 1.5.5).
94350         * build-aux/git-version-gen: Limit result to tags that match 'v*'
94351         if possible.
94353 2008-04-08  Bruno Haible  <bruno@clisp.org>
94355         Add tentative support for OpenServer.
94356         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
94357         _ptr, _cnt.
94358         * lib/fpurge.c (fpurge): Likewise.
94359         * lib/freadable.c (freadable): Likewise.
94360         * lib/freadahead.c (freadahead): Likewise.
94361         * lib/freading.c (freading): Likewise.
94362         * lib/freadptr.c (freadptr): Likewise.
94363         * lib/freadseek.c (freadptrinc): Likewise.
94364         * lib/fseeko.c (rpl_fseeko): Likewise.
94365         * lib/fseterr.c (fseterr): Likewise.
94366         * lib/fwritable.c (fwritable): Likewise.
94367         * lib/fwriting.c (fwriting): Likewise.
94368         Reported by Roger Cornelius <rac@tenzing.org> and
94369         Brian K. White <brian@aljex.com>.
94371 2008-04-06  Jim Meyering  <meyering@redhat.com>
94373         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
94375 2008-04-06  Bruno Haible  <bruno@clisp.org>
94377         Avoid possible error with non-ASCII bytes in UTF-8 locales.
94378         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
94379         * tests/test-printf-posix.sh: Likewise.
94380         * tests/test-vfprintf-posix.sh: Likewise.
94381         * tests/test-vprintf-posix.sh: Likewise.
94382         * tests/test-xprintf-posix.sh: Likewise.
94384 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94386         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
94387         hide error from 'ls', needed on OS/2.
94388         Report by Elbert Pol <elbert.pol@gmail.com>.
94390 2008-04-04  Eric Blake  <ebb9@byu.net>
94392         Make test-fseeko.c failures meaningful.
94393         * tests/test-fseeko.c: Print line number on failure.
94394         * tests/test-fseek.c: Likewise.
94395         Reported by Nelson H. F. Beebe.
94397         Improve strtod bug detection check.
94398         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
94399         required for Solaris 10.
94400         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
94402 2008-04-04  Bruno Haible  <bruno@clisp.org>
94404         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
94405         by m4/setenv.m4.
94407 2008-04-03  Eric Blake  <ebb9@byu.net>
94409         Ensure sane .version contents.
94410         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
94411         version string.
94412         * build-aux/git-version-gen: Improve documentation.
94414         Make GNU make output nicer.
94415         * top/GNUmakefile [!_have-Makefile]: Add dependency on
94416         MAKECMDGOALS to enforce message for all command line targets.  Set
94417         srcdir for use in maint.mk.
94419         Another maintainer tweak.
94420         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
94421         a target that regenerates version.
94423 2008-04-03  Jim Meyering  <meyering@redhat.com>
94425         vc-list-files: don't cause coreutils "make po-check" failure
94426         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
94428 2008-04-03  Eric Blake  <ebb9@byu.net>
94430         Allow VPATH usage of vc-list-files.
94431         * build-aux/vc-list-files (scriptversion): Add timestamp.
94432         (options): Add --help, --version, -C.
94433         (CVS): Support installed cvsu.
94435 2008-04-02  Bruno Haible  <bruno@clisp.org>
94437         Avoid some "statement with no effect" warnings from gcc.
94438         * tests/test-wctype.c (main): Explicitly ignore unused values.
94439         Reported by Jim Meyering.
94441 2008-04-02  Jim Meyering  <meyering@redhat.com>
94443         Avoid some warnings from "gcc -Wshadow".
94444         * tests/test-frexp.c (exp): Define to a different identifier.
94445         * tests/test-frexpl.c (exp): Likewise.
94447 2008-04-03  Jim Meyering  <meyering@redhat.com>
94449         bootstrap: remove dangling *.[ch] symlinks from lib
94450         * build-aux/bootstrap [dangling symlink removal]: Move find's
94451         -depth option to precede all others, to avoid a warning.
94452         Remove *.[ch] files too, and from "$source_base" (usually lib/).
94454 2008-04-02  Bruno Haible  <bruno@clisp.org>
94456         Avoid some warnings from "gcc -Wshadow".
94457         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
94458         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
94459         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
94460         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
94461         Reported by Jim Meyering.
94463 2008-04-01  Bruno Haible  <bruno@clisp.org>
94465         Fix test to work on IRIX 6.5 with cc.
94466         * tests/test-math.c (numeric_equal): New function.
94467         (main): Use it.
94469 2008-04-01  Bruno Haible  <bruno@clisp.org>
94471         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
94473 2008-04-01  Bruno Haible  <bruno@clisp.org>
94475         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
94476         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94477         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
94478         (Depends-on): Remove math.
94480         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
94481         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94482         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
94483         (Depends-on): Remove math.
94485         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
94486         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94487         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
94488         (Depends-on): Remove math.
94489         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
94490         (Depends-on): Remove math.
94492         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
94493         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94494         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
94495         (Depends-on): Remove math.
94496         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
94497         (Depends-on): Remove math.
94499         * tests/test-round1.c: Include nan.h.
94500         (main): Use NaNd instead of NAN.
94501         * modules/round-tests (Files): Add tests/nan.h.
94503         * tests/test-trunc1.c: Include nan.h.
94504         (main): Use NaNd instead of NAN.
94505         * modules/trunc-tests (Files): Add tests/nan.h.
94507         * tests/test-roundf1.c: Include nan.h.
94508         (main): Use NaNf instead of NAN.
94509         * modules/roundf-tests (Files): Add tests/nan.h.
94511         * tests/test-truncf1.c: Include nan.h.
94512         (main): Use NaNf instead of NAN.
94513         * modules/truncf-tests (Files): Add tests/nan.h.
94515         * tests/test-ceilf1.c: Include nan.h.
94516         (main): Use NaNf instead of NAN.
94517         * modules/ceilf-tests (Files): Add tests/nan.h.
94519         * tests/test-floorf1.c: Include nan.h.
94520         (main): Use NaNf instead of NAN.
94521         * modules/floorf-tests (Files): Add tests/nan.h.
94523         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
94524         (main): Use NaNf instead of NAN.
94525         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
94527         * tests/test-isnand.c: Include nan.h instead of <math.h>.
94528         (main): Use NaNd instead of NAN.
94529         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
94531         * tests/test-frexp.c: Include nan.h.
94532         (main): Use NaNd instead of NAN.
94533         * modules/frexp-tests (Files): Add tests/nan.h.
94535         * lib/isnan.c: Don't include <math.h>.
94536         (FUNC): Don't use NAN macro.
94537         * modules/isnand-nolibm (Depends-on): Remove math.
94538         * modules/isnanf-nolibm (Depends-on): Remove math.
94539         * modules/isnanl (Depends-on): Remove math.
94540         * modules/isnanl-nolibm (Depends-on): Remove math.
94542         * tests/nan.h: New file.
94544 2008-04-01  Eric Blake  <ebb9@byu.net>
94546         Fix typos.
94547         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
94548         values to be the right type.
94550         For now, cater to gnulib strtod inaccuracies.
94551         * tests/test-strtod.c (main): Allow 1-ulp error on expected
94552         fractional results.  While not as nice from a QoI perspective, it
94553         is a quicker patch than correctly implementing decimal to binary
94554         rounding.
94556 2008-03-31  Eric Blake  <ebb9@byu.net>
94558         Guarantee a definition of NAN.
94559         * lib/math.in.h (NAN): Define if missing.
94560         * tests/test-math.c (main): Test it.
94561         * doc/posix-headers/math.texi (math.h): Document this.
94562         * lib/isnan.c (rpl_isnand): Use it.
94563         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
94564         * tests/test-floorf1.c (NaN): Likewise.
94565         * tests/test-frexp.c (NaN): Likewise.
94566         * tests/test-isnand.c (NaN): Likewise.
94567         * tests/test-isnanf.c (NaN): Likewise.
94568         * tests/test-round1.c (NaN): Likewise.
94569         * tests/test-roundf1.c (NaN): Likewise.
94570         * tests/test-snprintf-posix.h (NaN): Likewise.
94571         * tests/test-sprintf-posix.h (NaN): Likewise.
94572         * tests/test-trunc1.c (NaN): Likewise.
94573         * tests/test-truncf1.c (NaN): Likewise.
94574         * tests/test-vasnprintf-posix.c (NaN): Likewise.
94575         * tests/test-vasprintf-posix.c (NaN): Likewise.
94576         * modules/isnand-nolibm (Depends-on): Add math.
94577         * modules/isnanf-nolibm (Depends-on): Likewise.
94578         * modules/isnanl (Depends-on): Likewise.
94579         * modules/isnanl-nolibm (Depends-on): Likewise.
94580         * modules/snprintf-posix-tests (Depends-on): Likewise.
94581         * modules/sprintf-posix-tests (Depends-on): Likewise.
94582         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
94583         * modules/vsprintf-posix-tests (Depends-on): Likewise.
94584         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
94585         * modules/vasprintf-posix-tests (Depends-on): Likewise.
94587 2008-03-31  Bruno Haible  <bruno@clisp.org>
94589         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
94590         * doc/posix-functions/strtod.texi: Likewise.
94592 2008-03-31  Bruno Haible  <bruno@clisp.org>
94594         * tests/test-strtod.c (main): Don't use C99 syntax.
94596 2008-03-31  Bruno Haible  <bruno@clisp.org>
94598         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
94599         Reported by Eric Blake.
94601 2008-03-31  Jim Meyering  <meyering@redhat.com>
94603         Don't compare actual signbit return values.
94604         * tests/test-strtod.c (main): Rather, compare only their
94605         zero/non-zero nature.
94607 2008-03-31  Eric Blake  <ebb9@byu.net>
94609         More strtod documentation.
94610         * doc/posix-functions/strtod.texi (strtod): Interpret more test
94611         failures as distinct bugs.
94613 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
94615         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
94616         Problem reported by Erik Benada in
94617         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
94619 2008-03-30  Bruno Haible  <bruno@clisp.org>
94621         * tests/test-strtod.c: Add comments about which assertion fails on which
94622         platform.
94623         * doc/posix-functions/strtod.texi: Add info about many more platforms.
94625 2008-03-30  Eric Blake  <ebb9@byu.net>
94627         Test signbit behavior on zeros.
94628         * tests/test-signbit.c (test_signbitf): Add tests for zero.
94629         (test_signbitd, test_signbitl): Likewise.
94631         More strtod touchups.
94632         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
94633         sign of negative underflow, for now.  Use .5, not .1.
94634         * doc/posix-functions/strtod.texi (strtod): Mention these
94635         limitations.
94636         Reported by Jim Meyering.
94638 2008-03-30  Bruno Haible  <bruno@clisp.org>
94640         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
94641         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
94643 2008-03-30  Bruno Haible  <bruno@clisp.org>
94645         Avoid failure when attempting to return empty iconv results on some
94646         platforms.
94647         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
94648         allocation, don't report ENOMEM when the resulting string is empty.
94650 2008-03-30  Bruno Haible  <bruno@clisp.org>
94652         Fix buffer overrun.
94653         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
94654         Don't consider the width for tmp_length. Check count against tmp_length
94655         before doing the padding. Ensure enough allocation during padding.
94657 2008-03-30  Eric Blake  <ebb9@byu.net>
94659         strtod touchups.
94660         * lib/strtod.c (strtod): Avoid compiler warnings.
94661         Reported by Jim Meyering.
94663 2008-03-30  Bruno Haible  <bruno@clisp.org>
94665         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
94666         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
94667         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
94668         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
94669         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
94670         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
94671         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
94672         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
94674         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
94675         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
94676         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
94677         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
94678         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
94679         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
94680         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
94681         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
94683         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
94684         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
94685         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
94686         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
94687         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
94688         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
94689         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
94690         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
94692         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
94693         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
94695         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
94696         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
94698         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
94699         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
94701         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
94702         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
94703         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
94705         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
94706         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
94707         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
94709         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
94710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
94711         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
94713         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
94714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
94715         * modules/vasprintf (Depends-on): Add EOVERFLOW.
94717         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
94718         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
94719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
94720         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
94721         (Depends-on): Add EOVERFLOW.
94722         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
94723         (Depends-on): Add EOVERFLOW.
94724         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
94725         (Depends-on): Add EOVERFLOW.
94726         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
94727         (Depends-on): Add EOVERFLOW.
94728         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
94729         (Depends-on): Add EOVERFLOW.
94730         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
94731         (Depends-on): Add EOVERFLOW.
94732         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
94733         (Depends-on): Add EOVERFLOW.
94734         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
94735         (Depends-on): Add EOVERFLOW.
94737         * lib/sprintf.c (EOVERFLOW): Remove fallback.
94738         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
94739         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
94741         * lib/snprintf.c (EOVERFLOW): Remove fallback.
94742         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
94743         * modules/snprintf (Depends-on): Add EOVERFLOW.
94745         * lib/poll.c (EOVERFLOW): Remove fallback.
94746         * modules/poll (Depends-on): Add EOVERFLOW.
94748         * lib/getugroups.c (EOVERFLOW): Remove fallback.
94749         * modules/getugroups (Depends-on): Add EOVERFLOW.
94751         * lib/getdelim.c (EOVERFLOW): Remove fallback.
94752         * modules/getdelim (Depends-on): Add EOVERFLOW.
94754         * lib/ftell.c (EOVERFLOW): Remove fallback.
94755         * modules/ftell (Depends-on): Add EOVERFLOW.
94757         * lib/fprintf.c (EOVERFLOW): Remove fallback.
94758         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
94759         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
94761         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
94763         * modules/EOVERFLOW-tests: New file.
94764         * tests/test-EOVERFLOW.c: New file.
94766         * modules/EOVERFLOW: New file.
94767         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
94769 2008-03-30  Bruno Haible  <bruno@clisp.org>
94771         Fix bug introduced on 2007-06-10.
94772         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
94773         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
94775 2008-03-30  Bruno Haible  <bruno@clisp.org>
94777         Improve freadseek's efficiency after ungetc.
94778         * lib/freadseek.c: Include freadahead.h.
94779         (freadptrinc): New function, extracted from freadseek.
94780         (freadseek): Use it in a loop. Use freadahead to determine the number
94781         of loop iterations.
94782         * modules/freadseek (Depends-on): Add freadahead.
94783         (configure.ac): Require AC_C_INLINE.
94785 2008-03-30  Bruno Haible  <bruno@clisp.org>
94787         * lib/freadseek.c (freadseek): Don't ignore the return value of
94788         freadptr.
94790 2008-03-29  Eric Blake  <ebb9@byu.net>
94792         Add hex float support.
94793         * modules/strtod (Depends-on): Add c-ctype.
94794         (Link): Mention POW_LIB.
94795         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
94796         whitespace between 'e' and exponent.
94797         * tests/test-strtod.c (main): Enable hex float tests.
94798         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
94799         now provides.
94801         Document various strtod bugs, with some fixes.
94802         * doc/posix-functions/strtod.texi (strtod): Document bugs with
94803         "-0x", "inf", "nan", and hex constants.
94804         * doc/posix-functions/atof.texi (atof): Likewise.
94805         * modules/stdlib (Makefile.am): Support strtod.
94806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
94807         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
94808         detect additional strtod bugs.
94809         * lib/stdlib.in.h (rpl_strtod): Add declarations.
94810         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
94811         bool where appropriate.  Parse 'inf' and 'nan'.
94812         * tests/test-strtod.c: New file.
94813         * modules/strtod (Depends-on): Add stdbool, stdlib.
94814         (configure.ac): Turn on module indicator.
94815         * modules/strtod-tests: New module.
94817 2008-03-29  Eric Blake  <ebb9@byu.net>
94819         Fix ftell on mingw.
94820         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
94821         * modules/ftell-tests (Depends-on): Add binary-io.
94822         * modules/ftello-tests (Depends-on): Likewise.
94823         * tests/test-ftell.c (main): Enhance test to cover behavior after
94824         ungetc.  Enforce binary mode.
94825         * tests/test-ftello.c (main): Likewise.
94827         Pass test-freadseek on cygwin.
94828         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
94829         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
94830         ungetc buffer.
94832         * tests/test-fflush2.c (main): Fix typo.
94834 2008-03-29  Bruno Haible  <bruno@clisp.org>
94836         * tests/test-fflush2.c (main): Temporarily disable the contents of
94837         this test.
94838         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
94839         Reported by Eric Blake.
94841 2008-03-28  Simon Josefsson  <simon@josefsson.org>
94843         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
94844         (GC_SHA224_DIGEST_SIZE): Add.
94846         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
94847         (gc_hash_digest_length): Likewise.
94848         (gc_hash_buffer): Likewise.
94850 2008-03-25  Bruno Haible  <bruno@clisp.org>
94852         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
94853         detail which gettext release to use.
94854         Reported by Simon Josefsson.
94856 2008-03-26  Jim Meyering  <meyering@redhat.com>
94858         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
94859         * modules/gnumakefile (clean-GNUmakefile): Also, use
94860         test ... && ... || : syntax rather than if-then ... fi.
94862         gnumakefile: Don't double-quote-expand $(VPATH) value.
94863         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
94865 2008-03-24  Eric Blake  <ebb9@byu.net>
94867         Alter GNUmakefile to install into top directory.
94868         * modules/maintainer-makefile: Split, and add dependency...
94869         * modules/gnumakefile: to this new module.
94870         * build-aux/GNUmakefile: Move...
94871         * top/GNUmakefile: ...here.
94872         * build-aux/maint.mk: Move...
94873         * top/maint.mk: ...here.
94874         * MODULES.html.sh (Support for maintaining...): Document new
94875         module.
94877 2008-03-23  Bruno Haible  <bruno@clisp.org>
94879         * gnulib-tool: New options --vc-files, --no-vc-files.
94880         (func_usage): Document them.
94881         (vc_files): New variable.
94882         (func_import): Consider vc_files.
94883         (func_create_testdir): Set vc_files to empty.
94884         Suggested by Jim Meyering and Karl Berry.
94886 2008-03-23  Bruno Haible  <bruno@clisp.org>
94888         Fix regex compilation error on HP-UX 11.
94889         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
94890         * modules/regex (Files): Add m4/mbstate_t.m4.
94891         Reported by Ton Voon <ton.voon@altinity.com>.
94893 2008-03-23  Bruno Haible  <bruno@clisp.org>
94895         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
94897 2008-03-23  Eric Blake  <ebb9@byu.net>
94898             Bruno Haible  <bruno@clisp.org>
94900         Install files from top/ in the destination directory.
94901         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
94902         augmentation also for the files from top/.
94903         (func_import, func_create_testdir): Rewrite file names:
94904         top/filename -> filename.
94906 2008-03-23  Bruno Haible  <bruno@clisp.org>
94908         Tweak "gnulib --version" output.
94909         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
94911 2008-03-23  Bruno Haible  <bruno@clisp.org>
94913         Tweak "gnulib --version" output.
94914         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
94915         rather than contents of ChangeLog, when possible.
94917 2008-03-21  Eric Blake  <ebb9@byu.net>
94919         More --version tweaks.
94920         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
94921         date of last ChangeLog entry.
94923 2008-03-21  Jim Meyering  <meyering@redhat.com>
94925         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
94927 2008-03-20  Eric Blake  <ebb9@byu.net>
94929         VPATH fix.
94930         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
94932 2008-03-20  Simon Josefsson  <simon@josefsson.org>
94934         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
94935         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
94937 2008-03-20  Eric Blake  <ebb9@byu.net>
94939         Sync GNUmakefile with coreutils.
94940         * build-aux/GNUmakefile (have-Makefile): Rename...
94941         (_have-Makefile): ...to this, for namespace consideration.
94942         (GNUmakefile.cfg): Include, if present.
94943         (_autoreconf): Define a default.
94944         (_is-dist-target): New rule for rebuilds to pick up intra-release
94945         version.
94946         (maint-cfg.mk): Rename...
94947         (cfg.mk): ...to this.
94949 2008-03-18  Jim Meyering  <meyering@redhat.com>
94951         New script and module: mktempd
94952         * MODULES.html.sh (maint+release support): Add mktempd.
94953         * build-aux/mktempd: New file.
94954         * modules/mktempd: New file.
94956 2008-03-15  Jim Meyering  <meyering@redhat.com>
94958         Undo last change.
94959         * lib/sha1.c, lib/md5.c: 63 != ~63.
94960         Reported by Andreas Schwab.
94962         sha1.c, md5.c: Hoist a redundant expression.
94963         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
94964         "ctx->buflen" only once, before calling *_process_block.
94965         * lib/md5.c (md5_process_bytes): Likewise.
94967 2008-03-14  Eric Blake  <ebb9@byu.net>
94969         Bump copyright year in files generated by gnulib-tool.
94970         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
94971         gnulib-tool, rather than hard-coding it.
94973         Fix 'gnulib-tool --version' output to work with git.
94974         * gnulib-tool (func_gnulib_dir): New function, extracted from...
94975         (startup): ...here.
94976         (func_version): Use it to invoke git-version-gen, rather than
94977         relying on CVS keyword expansion.  Modernize wording.
94978         (cvsdatestamp, last_checkin_date, version): Kill unused
94979         variables.
94981 2008-03-12  Jim Meyering  <meyering@redhat.com>
94983         Recognize optional cast of the argument to free.
94984         * build-aux/useless-if-before-free: Update regexps.
94986         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
94988 2008-03-11  Bruno Haible  <bruno@clisp.org>
94990         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
94991         by a single package.
94992         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
94993         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
94994         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
94995         Reported by Sam Steingold <sds@gnu.org>.
94997 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
94999         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
95000         repositories.
95002 2008-03-11  Bruno Haible  <bruno@clisp.org>
95004         Avoid conflicts between local macro definitions.
95005         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95006         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
95008 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
95009             Bruno Haible  <bruno@clisp.org>
95011         Make va_copy work with some version of xlc on AIX 5.1.
95012         * lib/stdarg.in.h: New file.
95013         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
95014         On AIX, use a <stdarg.h> file substitute.
95015         * modules/stdarg (Files): Add lib/stdarg.in.h.
95016         (Depends-on): Add include_next.
95017         (Makefile.am): Build a stdarg.h substitute if requested.
95018         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
95020 2008-03-10  Bruno Haible  <bruno@clisp.org>
95022         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
95023         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95024         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95026 2008-03-10  Bruno Haible  <bruno@clisp.org>
95028         * modules/stdlib (Depends-on): Add include_next, remove
95029         absolute-header.
95031 2008-03-09  Bruno Haible  <bruno@clisp.org>
95033         * lib/freadahead.h (freadahead): Document more precisely.
95034         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
95035         the sum of both buffer sizes.
95036         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
95037         * NEWS: Document the change.
95039 2008-03-09  Bruno Haible  <bruno@clisp.org>
95041         Extend freadptr to return also the buffer size.
95042         * lib/freadptr.h (freadptr): Add sizep argument.
95043         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
95044         (freadptr): Add sizep argument. Determine buffer size like freadahead
95045         does.
95046         * tests/test-freadptr.c: Don't include freadahead.h.
95047         (main): Adapt for new calling convention of freadptr.
95048         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
95049         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
95050         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
95051         tests/test-freadptr2.sh.
95052         (Depends): Remove freadahead.
95053         (TESTS): Add test-freadptr2.sh.
95054         (check_PROGRAMS): Add test-freadptr2.
95056 2008-03-09  Bruno Haible  <bruno@clisp.org>
95058         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
95059         Report and solution by Simon Josefsson.
95061 2008-03-06  Bruno Haible  <bruno@clisp.org>
95063         Make fflush after ungetc work on BSD platforms.
95064         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
95065         * tests/test-fflush2.c: New file.
95066         * tests/test-fflush2.sh: New file.
95067         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
95068         tests/test-fflush2.c.
95069         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
95070         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
95072 2008-03-06  Eric Blake  <ebb9@byu.net>
95074         Likewise for ftello.
95075         * modules/ftello (Dependencies): Add extensions.
95076         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
95078 2008-03-06  Bruno Haible  <bruno@clisp.org>
95080         * modules/fseeko (Dependencies): Add extensions.
95081         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
95082         Needed on glibc systems.
95084 2008-03-06  Bruno Haible  <bruno@clisp.org>
95086         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
95087         email address.
95088         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95090 2008-03-06  Bruno Haible  <bruno@clisp.org>
95092         * users.txt: Add libgnupdf.
95094 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
95096         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
95097         (Header File Substitutes, Function Substitutes,
95098         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
95099         (Build robot for gnulib): Fix typo.
95101 2008-03-06  Bruno Haible  <bruno@clisp.org>
95103         * doc/gnulib-tool.texi (VCS Issues): Small updates.
95104         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95106 2008-03-06  Bruno Haible  <bruno@clisp.org>
95108         * doc/func.texi: New file, extracted from doc/gnulib.texi.
95109         * doc/gnulib.texi: Include it.
95111 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95113         * modules/func (License): Change license to unlimited; there was
95114         no LGPL parts in the module anyway.
95116 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95118         * modules/__func__: Renamed to modules/func.
95119         * modules/__func__-tests: Renamed to modules/func-tests.
95120         * tests/test-__func__.c: Renamed to tests/test-func.c.
95121         * m4/__func__.m4: Renamed to m4/func.m4.
95122         * doc/gnulib.texi (__func__): Section renamed to func.
95123         Suggested by Eric Blake <ebb9@byu.net>.
95125 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95127         * doc/gnulib.texi (__func__): Use C99 terminology when talking
95128         about __func__.  Make example self-contained.  Suggested by Eric
95129         Blake <ebb9@byu.net>.
95131         * tests/test-__func__.c (main): Avoid extraneous () around __func.
95132         Suggested by Eric Blake <ebb9@byu.net>.
95134 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95136         * modules/__func__: New file.
95137         * modules/__func__-tests: New file.
95138         * tests/test-__func__.c: New file.
95139         * m4/__func__.m4: New file.
95140         * doc/gnulib.texi (__func__): Document __func__ module.
95142 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95144         * modules/byteswap (License): Re-license as LGPLv2+.
95146 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95148         * doc/Makefile: Add pdf target.
95150 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95152         * modules/inline (License): Use 'unlimited', since there are only
95153         *.m4 files in this module.
95155 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95156             Bruno Haible  <bruno@clisp.org>
95158         Add support for HP C 7.1 on OpenVMS 8.3.
95159         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
95161 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95163         Update VMS specifics.
95164         * lib/getopt.c [VMS]: Remove include of unixlib.h.
95166 2008-03-02  Jim Meyering  <meyering@redhat.com>
95168         Remove the last dependency on the "free" module.
95169         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
95170         Reported by Bob Proulx.
95172         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
95174         Remove useless "if" tests before free.  Deprecate "free" module.
95175         * doc/posix-functions/free.texi: Mention that this
95176         module is no longer useful.
95177         * modules/free (Notice): Say this module is obsolete.
95178         * modules/readutmp (Depends-on): Remove free.
95179         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
95180         * lib/putenv.c (putenv): Likewise.
95181         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
95182         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
95183         * tests/test-c-strcasestr.c (main): Likewise.
95184         * tests/test-c-strstr.c (main): Likewise.
95185         * tests/test-mbscasestr1.c (main): Likewise.
95186         * tests/test-mbscasestr2.c (main): Likewise.
95187         * tests/test-mbsstr1.c (main): Likewise.
95188         * tests/test-mbsstr2.c (main): Likewise.
95189         * tests/test-memmem.c (main): Likewise.
95190         * tests/test-strcasestr.c (main): Likewise.
95191         * tests/test-striconv.c (main): Likewise.
95192         * tests/test-striconveh.c (main): Likewise.
95193         * tests/test-striconveha.c (main): Likewise.
95194         * tests/test-strstr.c (main): Likewise.
95196         * build-aux/git-version-gen: Adjust a comment and the Usage string.
95198         bootstrap: sync from coreutils again
95199         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
95201 2008-03-01  Jim Meyering  <meyering@redhat.com>
95203         bootstrap: sync from coreutils
95204         * build-aux/bootstrap (update_po_files): Copy a .po file into place
95205         also when the target doesn't exist.
95207 2008-03-01  Eric Blake  <ebb9@byu.net>
95209         Fix bugs in last patch.
95210         * lib/memchr2.c (memchr2): Fix typo.
95211         * tests/test-memchr2.c: Test previous bug, and don't use GNU
95212         extension.
95213         Reported by Bruce Korb.
95215         New module 'memchr2'.
95216         * modules/memchr2: New file.
95217         * modules/memchr2-tests: Likewise.
95218         * lib/memchr2.h: Likewise.
95219         * lib/memchr2.c: Likewise, based on memchr.c.
95220         * tests/test-memchr2.c: New test.
95221         * MODULES.html.sh (String handling): Add memchr2.
95223 2008-02-29  Bruno Haible  <bruno@clisp.org>
95225         * modules/freadseek-tests: New file.
95226         * tests/test-freadseek.sh: New file.
95227         * tests/test-freadseek.c: New file.
95229         New module 'freadseek'.
95230         * modules/freadseek: New file.
95231         * lib/freadseek.h: New file.
95232         * lib/freadseek.c: New file.
95233         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
95235 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
95237         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
95238         wydawca.
95240         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
95241         program_invocation_name and program_invocation_short_name are
95242         present.
95244 2008-02-28  Bruno Haible  <bruno@clisp.org>
95246         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
95247         * tests/test-freadptr.sh: Also test non-seekable stdin.
95249 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
95251         * build-aux/bootstrap (source_base, m4_base)
95252         (doc_base, tests_base): New variables.
95253         (gnulib_tool_options): Do not hardcode base directories, use
95254         the above variables instead.
95256 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
95258         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
95260 2008-02-28  Bruno Haible  <bruno@clisp.org>
95262         * modules/freadptr-tests: New file.
95263         * tests/test-freadptr.sh: New file.
95264         * tests/test-freadptr.c: New file.
95266         New module 'freadptr'.
95267         * modules/freadptr: New file.
95268         * lib/freadptr.h: New file.
95269         * lib/freadptr.c: New file.
95270         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
95272 2008-02-26  Karl Berry  <karl@freefriends.org>
95274         Sync from Libtool:
95275         * libltdl/argz.c (argz_add, argz_count): New functions.
95276         * libltdl/argz.in.h: Declare them.
95277         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
95279 2008-02-22  Bruno Haible  <bruno@clisp.org>
95281         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
95282         is a pointer type.  Needed for HP-UX 10.
95283         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
95284         * doc/posix-functions/gmtime_r.texi: Likewise.
95285         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95287 2008-02-24  Bruno Haible  <bruno@clisp.org>
95289         * modules/environ-tests: New file.
95290         * tests/test-environ.c: New file.
95292         New module 'environ'.
95293         * modules/environ: New file.
95294         * lib/unistd.in.h (environ): New declaration.
95295         * m4/environ.m4: New file.
95296         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
95297         after use.
95298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
95299         HAVE_DECL_ENVIRON.
95300         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
95301         HAVE_DECL_ENVIRON.
95302         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
95303         wrong claim that 'environ' is missing on some systems.
95304         * modules/execute (Depends-on): Add environ.
95305         * lib/execute.c (environ): Remove fallback declaration.
95306         * modules/pipe (Depends-on): Add environ.
95307         * lib/pipe.c (environ): Remove fallback declaration.
95308         * modules/setenv (Depends-on): Add environ.
95309         * lib/setenv.c (environ): Remove fallback declaration.
95310         * modules/unsetenv (Depends-on): Add environ.
95311         * lib/unsetenv.c (environ): Remove fallback declaration.
95312         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
95313         m4/environ.m4.
95314         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
95315         (gl_PREREQ_UNSETENV): Likewise.
95317 2008-02-24  Bruno Haible  <bruno@clisp.org>
95319         * doc/posix-functions/environ.texi: Document the MacOS X problem.
95321 2008-02-20  Bob Proulx  <bob@proulx.com>
95323         Enable use of older two part flavor 'git describe'.
95324         * build-aux/git-version-gen: If using the older two part flavor of
95325         git version then recreate the third part now present in the
95326         newer three part flavor of git describe.
95328 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
95330         * lib/fts.c (fts_build): Typo correction to comment.
95332 2008-02-17  Bruno Haible  <bruno@clisp.org>
95334         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
95335         generating no-op conflicts.
95337 2008-02-17  Bruno Haible  <bruno@clisp.org>
95339         Speed up by 10%.
95340         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
95341         result_entries, rather than an index-based loop.
95343 2008-02-17  Bruno Haible  <bruno@clisp.org>
95345         Speed up by 25%.
95346         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
95347         'hashcode_cached'.
95348         (entry_create): New function.
95349         (entry_hashcode): Use the cached hashcode if possible.
95350         (read_changelog_file, try_split_merged_entry): Use entry_create.
95352 2008-02-17  Bruno Haible  <bruno@clisp.org>
95354         Speed up from O(n^2) to O(n) for long ChangeLog files.
95355         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
95356         (read_changelog_file): Change implementation of entries_reversed list
95357         to rbtreehash.
95358         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
95360 2008-02-17  Bruno Haible  <bruno@clisp.org>
95362         New option --split-merged-entry.
95363         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
95364         (find_paragraph_end, try_split_merged_entry): New functions.
95365         (long_options): Add option --split-merged-entry.
95366         (usage): Document option --split-merged-entry.
95367         (main): Implement option --split-merged-entry.
95368         Reported by Eric Blake.
95370 2008-02-17  Bruno Haible  <bruno@clisp.org>
95372         * lib/git-merge-changelog.c: Include c-strstr.h.
95373         (main): Support the "git pull --rebase" situation.
95374         * modules/git-merge-changelog (Depends-on): Add c-strstr.
95375         Reported by Eric Blake.
95377 2008-02-16  Eric Blake  <ebb9@byu.net>
95379         Avoid doubling \ in common case of "c-maybe" quoting style.
95380         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
95381         eliding outer quotes.
95382         * lib/quotearg.h: Document this.
95383         * tests/test-quotearg.c (result_strings, inputs, results_g)
95384         (flag_results, locale_results): Test it by adding a new string to
95385         each test group.
95386         (compare_strings): Test new string.
95388 2008-02-13  Eric Blake  <ebb9@byu.net>
95390         Avoid trigraph quoting in default output.
95391         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
95392         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
95393         unless explicitly requested.
95394         * tests/test-quotearg.c (flag_results, main): Add additional tests.
95396 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
95398         Don't rely on signed integer overflowing to negative value.
95399         * lib/getugroups.c (getugroups): Include <limits.h>.
95400         Instead, compare against INT_MAX, and increment only if the test passes.
95402 2008-02-13  Jim Meyering  <meyering@redhat.com>
95403         and Eric Blake  <ebb9@byu.net>
95405         Avoid shadowing warning and compile errors on Linux.
95406         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
95407         forwarding macros on Linux.
95408         (dcgettext): Define a stub, for Linux.
95409         (results_g, main): Avoid warnings.
95411 2008-02-12  Eric Blake  <ebb9@byu.net>
95413         Silence warning in last patch.
95414         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
95416         Quotearg part 4: add tests, fix c-maybe colon quoting.
95417         * lib/quotearg.h: Improve documentation.
95418         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
95419         escapes when adding outer quotes.  When quoting trigraphs, use
95420         valid C notation.  When quoting NUL, omit extra characters if next
95421         character is not digit.  Alter prototype.
95422         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
95423         callers.
95424         * modules/quotearg-tests: New module.
95425         * tests/test-quotearg.c: New test.
95427 2008-02-07  Eric Blake  <ebb9@byu.net>
95429         Quotearg part 3: add flag to control outer quote elision.
95430         * lib/quotearg.h (c_maybe_quoting_style): New style.
95431         (enum quoting_flags): Better documentation of flags.
95432         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
95433         c-maybe style.
95434         (quotearg_buffer_restyled): Handle new flag to elide outer
95435         quotes.
95437         Quotearg part 2: add flag that can control NUL elision.
95438         * lib/quotearg.h (set_quoting_flags): New prototype.
95439         * lib/quotearg.c (struct quoting_options): Add flag field.
95440         (set_quoting_flags): New function.
95441         (quotearg_buffer_restyled): Add flags parameter.
95442         (quotearg_alloc_mem): Set the flag if length cannot be returned.
95443         (quotearg_n_options): Set the flag, since length cannot be
95444         returned.
95445         (quoting_options_from_style): Default flags correctly.
95447         Quotearg part 1: more wrappers, restore quotearg_char state.
95448         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
95449         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
95450         (quotearg_colon_mem): New wrappers.
95451         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
95452         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
95453         functions.
95454         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
95455         (quotearg_colon_mem): New functions.
95457 2008-02-11  Bruno Haible  <bruno@clisp.org>
95459         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
95460         library in the current directory: it does not work with parallel make.
95461         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95463 2008-02-11  Bruno Haible  <bruno@clisp.org>
95465         * .gitattributes: New file.
95467 2008-02-11  Jim Meyering  <meyering@redhat.com>
95469         useless-if-before-free: Fix reversed exit values.
95470         * build-aux/useless-if-before-free: Use correct values
95471         for EXIT_MATCH and EXIT_NO_MATCH.
95473         * build-aux/useless-if-before-free: Close stdout carefully.
95475 2008-02-10  Bruno Haible  <bruno@clisp.org>
95477         New module 'git-merge-changelog'.
95478         * modules/git-merge-changelog: New file.
95479         * lib/git-merge-changelog.c: New file.
95481 2008-02-10  Jim Meyering  <meyering@redhat.com>
95483         useless-if-before-free: New option: --list (-l).
95485         useless-if-before-free: Don't exit immediately upon open failure.
95486         * build-aux/useless-if-before-free: Exit 2 for errors.
95487         Upon failure to open a file, don't exit immediately.
95488         Rather, just warn and continue with any remaining files.
95490 2008-02-10  Bruno Haible  <bruno@clisp.org>
95492         New abstract list operation 'node_set_value'.
95493         * lib/gl_list.h (gl_list_node_set_value): New function.
95494         (struct gl_list_implementation): New field node_set_value.
95495         * lib/gl_list.c (gl_list_node_set_value): New function.
95496         * lib/gl_array_list.c (gl_array_node_set_value): New function.
95497         (gl_array_list_implementation): Update.
95498         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
95499         (gl_carray_list_implementation): Update.
95500         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
95501         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
95502         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
95503         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
95504         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
95505         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
95506         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
95507         Update.
95508         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
95509         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
95510         (gl_sublist_list_implementation): Update.
95512 2008-02-10  Bruno Haible  <bruno@clisp.org>
95514         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
95515         Needed when ELEMENT is #defined to 'some_type *'.
95517 2008-02-10  Jim Meyering  <meyering@redhat.com>
95519         New script and module: useless-if-before-free
95520         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
95521         * build-aux/useless-if-before-free: New file.
95522         * modules/useless-if-before-free: New file.
95524         * build-aux/gitlog-to-changelog: Use committer date, not author date.
95526         xstrtol_error: Fix typo.
95527         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
95528         s/exit_failure/exit_status/.
95530 2008-02-09  Jim Meyering  <meyering@redhat.com>
95532         New script and module: gitlog-to-changelog
95533         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
95534         * modules/gitlog-to-changelog: New file.
95535         * build-aux/gitlog-to-changelog: New file.
95537 2008-02-08  Jim Meyering  <meyering@redhat.com>
95539         Avoid two "parameter unused" warnings.
95540         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
95541         Mark "st" as used.
95543         Use "git COMMAND", not "git-COMMAND".
95544         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
95545         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
95546         * build-aux/git-version-gen: Use "git status", not "git-status".
95548 2008-02-07  Bruno Haible  <bruno@clisp.org>
95550         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
95551         Avoids a crash on Windows Vista.
95552         Reported by Adam Strzelecki <ono@java.pl> via
95553         Simon Josefsson <simon@josefsson.org>.
95555 2008-02-06  Bruno Haible  <bruno@clisp.org>
95557         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
95558         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
95559         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
95560         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
95561         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95562         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95563         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
95564         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
95565         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95566         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95567         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95568         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95572         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
95573         left-adjust flag.
95574         * tests/test-snprintf-posix.h (test_function): Likewise.
95575         * tests/test-sprintf-posix.h (test_function): Likewise.
95576         * tests/test-vasprintf-posix.c (test_function): Likewise.
95577         * doc/posix-functions/fprintf.texi: Update.
95578         * doc/posix-functions/printf.texi: Update.
95579         * doc/posix-functions/snprintf.texi: Update.
95580         * doc/posix-functions/sprintf.texi: Update.
95581         * doc/posix-functions/vfprintf.texi: Update.
95582         * doc/posix-functions/vprintf.texi: Update.
95583         * doc/posix-functions/vsnprintf.texi: Update.
95584         * doc/posix-functions/vsprintf.texi: Update.
95585         Reported by Peter Fales <psfales@alcatel-lucent.com>.
95587 2008-02-06  Bruno Haible  <bruno@clisp.org>
95589         Fix bug introduced on 2008-01-26.
95590         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
95592 2008-02-06  Bruno Haible  <bruno@clisp.org>
95594         Fix bug introduced on 2007-06-10.
95595         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
95596         !NEED_PRINTF_FLAG_ZERO.
95598 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
95600         getloadavg: use libperfstat on AIX5
95601         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
95603 2008-02-03  Bruno Haible  <bruno@clisp.org>
95605         * lib/diffseq.h: Add comments about required #includes.
95606         Reported by Michael Biggs <gnulib@doubleplum.net>.
95608 2008-02-01  Bruno Haible  <bruno@clisp.org>
95610         * users.txt: Add gnuit.
95612 2008-01-31  Bruno Haible  <bruno@clisp.org>
95614         * lib/md4.c (set_uint32): Mark as inline.
95615         * lib/md5.c (set_uint32): Likewise.
95616         * lib/sha1.c (set_uint32): Likewise.
95617         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
95618         * m4/md5.m4 (gl_MD5): Likewise.
95619         * m4/sha1.m4 (gl_SHA1): Likewise.
95621 2008-01-31  Jim Meyering  <meyering@redhat.com>
95623         Use "sizeof VAR", rather than a literal "4".
95624         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
95625         * lib/md4.c (md4_read_ctx): Likewise.
95626         * lib/sha1.c (sha1_read_ctx): Likewise.
95628 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95630         * tests/test-sha1.c: New file, based on test-md5.c.
95632         * modules/crypto/sha1-tests: New file.
95634 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95636         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
95638 2008-01-31  Jim Meyering  <meyering@redhat.com>
95640         Prefer "sizeof v" over the equivalent "4".
95641         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
95642         * lib/md5.c (set_uint32): Likewise.
95643         * lib/sha1.c (set_uint32): Likewise.
95645 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95647         * lib/sha1.c (set_uint32): Mark function as static.
95649 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95651         md2: clarify comments to say that alignment is not required.
95652         * lib/md2.h: Remove warning about alignment in comment.
95653         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
95654         never been required.
95656 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95658         md4: adapt alignment constraint fix from sha1.
95659         * lib/md4.c (set_uint32): New function, from sha1.c
95660         (md4_read_ctx): Use it.
95661         (md4_finish_ctx): Doc fix.
95662         * lib/md4.h: Doc fix.
95664 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95666         md5: adapt alignment constraint fix from sha1.
95667         * lib/md5.c (set_uint32): New function, from sha1.c
95668         (md5_read_ctx): Use it.
95669         (md5_finish_ctx): Doc fix.
95670         * lib/md5.h: Doc fix.
95672 2008-01-30  Peter Palfrader  <weasel@debian.org>
95674         sha1: remove the result buffer alignment constraint
95675         * lib/sha1.c (set_uint32): New function.
95676         (sha1_read_ctx): Rewrite to remove the result buffer alignment
95677         constraint.
95678         (sha1_finish_ctx): Remove comment warning about alignment constraint.
95679         * lib/sha1.h: Likewise.
95681 2008-01-30  Andreas Schwab  <schwab@suse.de>
95682             Bruno Haible  <bruno@clisp.org>
95684         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
95685         correct definition of LDBL_MIN_EXP.
95687 2008-01-30  Karl Berry  <karl@gnu.org>
95689         * config/srclist-update: try to preserve x bit on updates.
95690         * config/srclistvars.sh: update for karl.
95692 2008-01-29  Jim Meyering  <meyering@redhat.com>
95694         vasnprintf.c: Avoid warning about unused label
95695         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
95696         "overflow" label definition and associated code with the
95697         same cpp condition that guards the sole use of that label.
95699 2008-01-26  Bruno Haible  <bruno@clisp.org>
95701         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
95702         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
95703         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
95704         * lib/isnanl-nolibm.h (isnanl): Likewise.
95705         Reported by Paul Eggert <eggert@cs.ucla.edu>.
95707 2008-01-26  Bruno Haible  <bruno@clisp.org>
95709         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
95710         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
95712 2008-01-26  Bruno Haible  <bruno@clisp.org>
95714         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
95715         GCC >= 4.0 built-in.
95716         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
95718 2008-01-26  Bruno Haible  <bruno@clisp.org>
95720         Rename isnan, applicable to 'double' only, to isnand.
95721         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
95722         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
95723         (configure.ac): Update.
95724         (Include): Replace "isnan.h" with "isnand.h".
95725         * m4/isnand.m4: Renamed from m4/isnan.m4.
95726         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
95727         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
95728         instead of isnan.c.
95729         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
95730         instead of HAVE_ISNAN_IN_LIBC.
95731         (isnand): Renamed from isnan.
95732         * lib/isnand.c: New file.
95733         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
95734         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
95735         (Makefile.am): Update.
95736         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
95737         Include isnand.h instead of isnan.h.
95738         (main): Test isnand instead of isnan.
95739         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
95740         isnan-nolibm.
95741         * modules/frexp (Depends-on): Likewise.
95742         * modules/frexp-tests (Depends-on): Likewise.
95743         * modules/frexp-nolibm (Depends-on): Likewise.
95744         * modules/frexp-nolibm-tests (Depends-on): Likewise.
95745         * modules/isfinite (Depends-on): Likewise.
95746         * modules/round-tests (Depends-on): Likewise.
95747         * modules/signbit (Depends-on): Likewise.
95748         * modules/signbit-tests (Depends-on): Likewise.
95749         * modules/snprintf-posix (Depends-on): Likewise.
95750         * modules/sprintf-posix (Depends-on): Likewise.
95751         * modules/trunc-tests (Depends-on): Likewise.
95752         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95753         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95754         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95755         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95756         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95757         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95758         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95759         * modules/vasnprintf-posix (Depends-on): Likewise.
95760         * modules/vasprintf-posix (Depends-on): Likewise.
95761         * modules/vfprintf-posix (Depends-on): Likewise.
95762         * modules/vsnprintf-posix (Depends-on): Likewise.
95763         * modules/vsprintf-posix (Depends-on): Likewise.
95764         * lib/frexp.c: Include isnand.h instead of isnan.h.
95765         (ISNAN): Set to isnand instead of isnan.
95766         * lib/isfinite.c: Include isnand.h instead of isnan.h.
95767         (gl_isfinited): Use isnand instead of isnan.
95768         * lib/signbitd.c: Include isnand.h instead of isnan.h.
95769         (gl_signbitd): Use isnand instead of isnan.
95770         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
95771         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
95772         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
95773         (main): Use isnand instead of isnan.
95774         * tests/test-round1.c: Include isnand.h.
95775         (main): Use isnand instead of isnan.
95776         * tests/test-round2.c: Include isnand.h instead of isnan.h.
95777         (ISNAN): Set to isnand instead of isnan.
95778         * tests/test-trunc1.c: Include isnand.h.
95779         (main): Use isnand instead of isnan.
95780         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
95781         (equal): Use isnand instead of isnan.
95782         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
95783         isnand-nolibm.
95784         * NEWS: Mention the change.
95786 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
95787             Bruno Haible  <bruno@clisp.org>
95789         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
95790         the GCC builtins for signbits are present and set
95791         REPLACE_SIGNBIT_USING_GCC if so.
95792         * lib/math.in.h (signbit): Define using GCC builtins if
95793         REPLACE_SIGNBIT_USING_GCC is set.
95794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
95795         REPLACE_SIGNBIT_USING_GCC.
95796         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
95798 2008-01-25  Jim Meyering  <meyering@redhat.com>
95800         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
95801         * lib/poll.c: Include <config.h>, not "config.h".
95802         * tests/test-getaddrinfo.c: Likewise.
95804 2008-01-25  Simon Josefsson  <simon@josefsson.org>
95806         * modules/sockets-tests: New file.
95808 2008-01-24  Simon Josefsson  <simon@josefsson.org>
95810         * modules/sockets: New module, can be used to call WSA_Startup and
95811         WSA_Cleanup when needed.
95813         * lib/sockets.h, lib/sockets.c: New files.
95815         * m4/sockets.m4: New file.
95817         * tests/test-sockets.c: New file.
95819 2008-01-19  Bruno Haible  <bruno@clisp.org>
95821         * doc/posix-headers: Renamed from doc/headers.
95822         * doc/posix-functions: Renamed from doc/functions.
95823         * doc/gnulib.texi: Update.
95825 2008-01-19  Bruno Haible  <bruno@clisp.org>
95827         * doc/glibc-functions/strcasestr.texi: Include contents of
95828         doc/functions/strcasestr.texi, fixing the list of platforms.
95829         * doc/functions/strcasestr.texi: Remove file.
95831 2008-01-19  Bruno Haible  <bruno@clisp.org>
95833         * doc/glibc-functions/memmem.texi: Include contents of
95834         doc/functions/memmem.texi.
95835         * doc/functions/memmem.texi: Remove file.
95837 2008-01-18  Bruno Haible  <bruno@clisp.org>
95839         * doc/glibc-functions/*.texi: New files.
95840         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
95841         to use the new files.
95843 2008-01-17  Bruno Haible  <bruno@clisp.org>
95845         * tests/test-gethostname.c (main): Fix printf statement.
95847 2008-01-17  Simon Josefsson  <simon@josefsson.org>
95849         * modules/gethostname-tests: New file.
95851         * tests/test-gethostname.c: New file.
95853 2008-01-17  Simon Josefsson  <simon@josefsson.org>
95855         * lib/gethostname.c: Include string.h unconditionally, strncpy is
95856         used by the UNAME case.  Reported by Bruno Haible
95857         <bruno@clisp.org>.
95859 2008-01-17  Eric Blake  <ebb9@byu.net>
95861         Convert c-strcasestr to be more efficient.
95862         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
95863         (Depends-on): Add c-strcase, remove malloca, strnlen.
95864         * tests/test-c-strcasestr.c (main): Enhance test.
95865         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
95867 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
95869         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
95870         Use it in creating po/Makevars.
95872 2008-01-15  Simon Josefsson  <simon@josefsson.org>
95874         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
95875         Applications that requires it should initialize libgcrypt
95876         manually.
95878 2008-01-16  Simon Josefsson  <simon@josefsson.org>
95880         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
95882 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
95884         Fix problem with getdate on mingw32 reported by Simon Josefsson
95885         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
95886         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
95887         tzname", when deciding whether to declare tzname.
95888         * lib/strftime.c (tzname): Likewise.
95890 2008-01-15  Bruno Haible  <bruno@clisp.org>
95892         Work around a MacOS X 10.5 bug in frexpl().
95893         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
95894         * doc/functions/frexpl.texi: Document the bug.
95895         Reported by Elias Pipping <pipping@gentoo.org>.
95897 2008-01-14  Eric Blake  <ebb9@byu.net>
95899         Touch up previous patch.
95900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
95901         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
95903         Convert strcasestr module to use Two-Way algorithm.
95904         * modules/strcasestr-simple: New module, based on the old
95905         strcasestr, but with Two-Way rather than KMP.
95906         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
95907         * lib/string.in.h (rpl_strcasestr): Declare.
95908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
95909         performance.
95910         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
95911         * modules/string (Makefile.am): Support strcasestr.
95912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
95913         * modules/strcasestr-tests (Depends-on): Check for alarm.
95914         * tests/test-strcasestr.c: Augment test.
95915         * lib/str-two-way.h: Clean up stray macro.
95916         * NEWS: Document new module.
95917         * MODULES.html.sh (string handling): Likewise.
95918         * doc/functions/strcasestr.texi: New file.
95919         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
95920         here, since it is not a POSIX function.
95922 2008-01-14  Colin Watson  <cjwatson@debian.org>
95923             Bruno Haible  <bruno@clisp.org>
95925         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
95926         works fine; if not, set REPLACE_STRSIGNAL.
95927         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
95928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
95929         REPLACE_STRSIGNAL.
95930         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
95931         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
95932         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
95934 2008-01-14  Bruno Haible  <bruno@clisp.org>
95936         * modules/strsignal (Include): Change to <string.h>.
95938 2008-01-14  Colin Watson  <cjwatson@debian.org>
95940         * modules/argp (Notice): Add a notice recommending to change
95941         XGETTEXT_OPTIONS.
95942         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
95944 2008-01-13  Colin Watson  <cjwatson@debian.org>
95946         * modules/strsignal-tests: New file.
95947         * tests/test-strsignal.c: New file.
95949         * lib/strsignal.c: New file, from glibc with modifications.
95950         * lib/siglist.h: New file, from glibc with modifications.
95951         * lib/string.in.h (strsignal): New declaration.
95952         * m4/strsignal.m4: New file.
95953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
95954         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
95955         * modules/strsignal: New file.
95956         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
95957         HAVE_DECL_STRSIGNAL.
95959 2008-01-13  Bruno Haible  <bruno@clisp.org>
95961         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
95962         locale encoding is not ASCII. Needed for OpenBSD 4.0.
95963         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
95964         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
95966 2008-01-13  Bruno Haible  <bruno@clisp.org>
95968         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
95969         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
95970         * lib/argp.h (__attribute__): Likewise.
95971         * lib/c-stack.c (__attribute__): Likewise.
95972         * lib/error.h (__attribute__): Likewise.
95973         * lib/fts.c (__attribute__): Likewise.
95974         * lib/openat.h (__attribute__): Likewise.
95975         * lib/stdio.in.h (__attribute__): Likewise.
95976         * lib/string.in.h (__attribute__): Likewise.
95977         * lib/utimens.c (__attribute__): Likewise.
95978         * lib/vasnprintf.h (__attribute__): Likewise.
95979         * lib/xalloc.h (__attribute__): Likewise.
95980         * lib/xprintf.h (__attribute__): Likewise.
95981         * lib/xstrtol.h (__attribute__): Likewise.
95982         * lib/xvasprintf.h (__attribute__): Likewise.
95984 2008-01-12  Bruno Haible  <bruno@clisp.org>
95986         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
95987         * doc/glibc-headers/a.out.texi: New file.
95988         * doc/glibc-headers/aliases.texi: New file.
95989         * doc/glibc-headers/alloca.texi: New file.
95990         * doc/glibc-headers/ar.texi: New file.
95991         * doc/glibc-headers/argp.texi: New file.
95992         * doc/glibc-headers/argz.texi: New file.
95993         * doc/glibc-headers/byteswap.texi: New file.
95994         * doc/glibc-headers/crypt.texi: New file.
95995         * doc/glibc-headers/endian.texi: New file.
95996         * doc/glibc-headers/envz.texi: New file.
95997         * doc/glibc-headers/err.texi: New file.
95998         * doc/glibc-headers/error.texi: New file.
95999         * doc/glibc-headers/execinfo.texi: New file.
96000         * doc/glibc-headers/fpu_control.texi: New file.
96001         * doc/glibc-headers/fstab.texi: New file.
96002         * doc/glibc-headers/fts.texi: New file.
96003         * doc/glibc-headers/getopt.texi: New file.
96004         * doc/glibc-headers/ieee754.texi: New file.
96005         * doc/glibc-headers/ifaddrs.texi: New file.
96006         * doc/glibc-headers/libintl.texi: New file.
96007         * doc/glibc-headers/mcheck.texi: New file.
96008         * doc/glibc-headers/mntent.texi: New file.
96009         * doc/glibc-headers/obstack.texi: New file.
96010         * doc/glibc-headers/paths.texi: New file.
96011         * doc/glibc-headers/printf.texi: New file.
96012         * doc/glibc-headers/pty.texi: New file.
96013         * doc/glibc-headers/resolv.texi: New file.
96014         * doc/glibc-headers/shadow.texi: New file.
96015         * doc/glibc-headers/sysexits.texi: New file.
96016         * doc/glibc-headers/ttyent.texi: New file.
96018 2008-01-12  Jim Meyering  <meyering@redhat.com>
96020         announce-gen: emit Gnulib's git-based version string.
96021         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
96022         New option --gnulib-version=V, where V is expected to be
96023         the output of running git describe in the gnulib directory.
96024         (get_tool_versions): Request feedback on xdelta.  I suspect it's
96025         not useful, and plan to stop publishing an xdelta file with each
96026         coreutils release.
96028         * build-aux/announce-gen: Also check for lzma-compressed files.
96030 2008-01-11  Bruno Haible  <bruno@clisp.org>
96032         * tests/test-memmem.c (main): Increase maximum allowed time.
96033         * tests/test-strstr.c (main): Likewise.
96035 2008-01-11  Bruno Haible  <bruno@clisp.org>
96037         * doc/functions/memmem.texi: Add more precisions about platforms.
96038         * doc/functions/strstr.texi: Likewise.
96040 2008-01-10  Eric Blake  <ebb9@byu.net>
96042         * m4/strstr.m4: Delete cruft from copy-n-paste.
96043         Reported by Bruno Haible.
96045 2008-01-10  Bruno Haible  <bruno@clisp.org>
96047         Make c-strstr rely on strstr.
96048         * lib/c-strstr.c: Don't include str-kmp.h.
96049         (c_strstr): Define in terms of strstr.
96050         * modules/c-strstr (Files): Remove lib/str-kmp.h.
96051         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
96053 2008-01-10  Bruno Haible  <bruno@clisp.org>
96055         * doc/gnulib.texi (String Functions in C Locale): New section.
96056         * doc/c-ctype.texi: New file.
96057         * doc/c-strcase.texi: New file.
96058         * doc/c-strcaseeq.texi: New file.
96059         * doc/c-strcasestr.texi: New file.
96060         * doc/c-strstr.texi: New file.
96061         * doc/c-strtod.texi: New file.
96062         * doc/c-strtold.texi: New file.
96064 2008-01-10  Eric Blake  <ebb9@byu.net>
96066         * lib/relocatable.h: Fix a comment.
96068 2008-01-10  Eric Blake  <ebb9@byu.net>
96070         Share two-way algorithm.
96071         * lib/str-two-way.h: New file, merged from...
96072         * lib/memmem.c: ...here...
96073         * lib/strstr.c: ...and here.
96074         * modules/memmem (Files): Use it.
96075         * modules/strstr (Files): Likewise.
96077         Avoid quadratic strstr implementations.
96078         * lib/strstr.c: New file.
96079         * m4/strstr.m4: Likewise.
96080         * modules/strstr: Likewise.
96081         * modules/strstr-tests: Likewise.
96082         * tests/test-strstr.c: Likewise.
96083         * lib/string.in.h (rpl_strstr): Declare.
96084         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
96085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
96086         * modules/string (Makefile.am): Likewise.
96087         * MODULES.html.sh (string handling): Mention new module.
96088         * doc/functions/strstr.texi (strstr): Document the bug.
96090 2008-01-10  Bruno Haible  <bruno@clisp.org>
96092         * lib/relocatable.h (relocate): State whether result is freshly
96093         allocated or not.
96094         * lib/relocatable.c (relocate): Return a freshly allocated string
96095         instead of a pointer to a privately held string.
96096         Reported by Sylvain Beucler <beuc@gnu.org>.
96098 2008-01-10  Colin Watson  <cjwatson@debian.org>
96100         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
96101         s/S_ISNLK/S_ISLNK/.
96103 2008-01-09  Bruno Haible  <bruno@clisp.org>
96105         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
96106         and other files.
96107         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
96108         if it's only a guess.
96109         * modules/memmem: Simplify by depending on memmem-simple.
96111 2008-01-09  Bruno Haible  <bruno@clisp.org>
96113         Work around OpenBSD 4.0 tdelete() bug.
96114         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
96115         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
96116         macros and don't redefine the enum values.
96117         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
96118         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
96119         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
96121 2008-01-09  Bruno Haible  <bruno@clisp.org>
96123         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
96124         (main): Don't perform the tests if setlocale did not install a UTF-8
96125         locale. Needed on OpenBSD 4.0.
96126         * modules/wcwidth-tests (Depends-on): Add localcharset.
96128 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96130         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
96131         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
96132         * NEWS: announce this.
96133         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
96135 2008-01-09  Simon Josefsson  <simon@josefsson.org>
96136         and Eric Blake  <ebb9@byu.net>
96138         Add memmem-simple module.
96139         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
96140         (gl_FUNC_MEMMEM): Separate performance from presence checks.
96141         * modules/memmem-simple: New file.
96142         * modules/memmem (Description): Tweak.
96143         * MODULES.html.sh (string handling): Mention new module.
96144         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
96145         addressed by memmem-simple.
96146         * NEWS: Document the difference.
96148 2008-01-09  Eric Blake  <ebb9@byu.net>
96150         Give gcc some memmem optimization hints.
96151         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
96152         (strcasestr): Declare as pure.
96153         * modules/memmem (Maintainer): Claim my implementation.
96155 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96157         Support AIX 6.1 and higher.
96158         * build-aux/config.libpath: Likewise.
96159         * build-aux/config.rpath: Likewise.
96161 2008-01-08  Jim Meyering  <meyering@redhat.com>
96162             Bruno Haible  <bruno@clisp.org>
96164         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
96165         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
96166         Reported by Peter Fales in
96167         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
96169 2008-01-08  Bruno Haible  <bruno@clisp.org>
96171         * modules/unictype/category-of (Depends-on): Add
96172         unictype/category-none.
96173         * modules/unictype/category-and-tests (Depends-on): Add
96174         unictype/category-{L,N,Lu,Nd}.
96175         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
96176         * modules/unictype/category-or-tests (Depends-on): Add
96177         unictype/category-{L,N}.
96178         * modules/unictype/category-name-tests (Depends-on): Add
96179         unictype/category-{Z,Nl}.
96180         Reported by Simon Josefsson.
96182 2008-01-08  Bruno Haible  <bruno@clisp.org>
96184         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
96185         convention better.
96186         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
96187         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
96188         Reported by Peter Miller <millerp@canb.auug.org.au>.
96190 2008-01-08  Eric Blake  <ebb9@byu.net>
96192         Rewrite memmem to guarantee linear complexity without malloc.
96193         * lib/memmem.c (memmem): Use Two-Way rather than
96194         Knuth-Morris-Pratt, to allow O(1) space usage.
96195         (critical_factorization, two_way_short_needle)
96196         (two_way_long_needle): New functions.
96197         (knuth_morris_pratt): Delete.
96198         * modules/memmem (Depends-on): No longer need malloca or stdbool.
96199         Add stdint.
96200         * tests/test-memmem.c (main): Add tests for periodic needle and
96201         sublinear performance.
96202         * doc/functions/memmem.texi (memmem): Document other deficiencies
96203         in cygwin and older glibc.
96205 2008-01-08  Bruno Haible  <bruno@clisp.org>
96207         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
96208         augmentation.
96210 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
96212         Add a configure time option: --disable-acl.
96213         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
96214         AC_ARG_ENABLE(acl).
96216 2008-01-06  Simon Josefsson  <simon@josefsson.org>
96218         * tests/test-localename.c: Don't include obsolete "setenv.h".
96220         * modules/localename-tests (Depends-on): Need unsetenv.
96222 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96224         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
96226 2008-01-06  Colin Watson  <cjwatson@debian.org>
96228         * users.txt: Add man-db.
96230 2008-01-07  Bruno Haible  <bruno@clisp.org>
96232         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
96233         previous section name.
96235 2008-01-07  Bruno Haible  <bruno@clisp.org>
96237         * lib/progname.c (set_program_name): Don't strip off a leading
96238         "lt-" prefix outside a .libs directory.
96239         Suggested by Paul Eggert.
96241 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
96242             Bruno Haible  <bruno@clisp.org>
96244         Improve memory cleanup in 'relocatable' module.
96245         * lib/relocatable.h (compute_curr_prefix): Change return type to
96246         'char *'.
96247         * lib/relocatable.c (compute_curr_prefix): Change return type to
96248         'char *'. Free curr_installdir after use.
96249         (relocate): Free curr_prefix_better after use.
96250         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
96252 2008-01-01  Bruno Haible  <bruno@clisp.org>
96254         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
96255         failure on older glibc systems.
96256         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96258 2008-01-05  Eric Blake  <ebb9@byu.net>
96260         Avoid quadratic system memmem.
96261         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
96262         Reported by Ralf Wildenhues.
96264         Fix memmem test for mingw.
96265         * modules/memmem-tests (configure.ac): Check for alarm.
96266         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
96267         it.
96268         * doc/functions/memmem.texi: New file.
96269         * doc/gnulib.texi (Function Substitutes): Add memmem.
96270         Reported by Bruno Haible.
96272 2008-01-04  Bruno Haible  <bruno@clisp.org>
96274         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
96275         Require gl_HEADER_STRINGS_H_DEFAULTS, not
96276         gl_HEADER_STRING_H_DEFAULTS.
96278 2008-01-04  Eric Blake  <ebb9@byu.net>
96280         Shorten duration of memmem test.
96281         * tests/test-memmem.c (main): Use alarm to declare failure if test
96282         is taking too long.
96283         Reported by Ralf Wildenhues.
96285 2007-12-21  Simon Josefsson  <simon@josefsson.org>
96287         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
96288         string, needed by strerror.
96290 2008-01-03  Colin Watson  <cjwatson@debian.org>
96291             Bruno Haible  <bruno@clisp.org>
96293         * doc/gnulib-tool.texi (Localization): New section.
96295 2008-01-02  Bruno Haible  <bruno@clisp.org>
96297         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
96298         variables to 'unsigned char *' type.
96299         Reported by Paul Eggert.
96301 2008-01-02  Jim Meyering  <jim@meyering.net>
96303         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
96305 2007-12-31  Jim Meyering  <jim@meyering.net>
96307         Avoid use of private FTS type name.
96308         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
96310 2007-12-30  Karl Berry  <karl@gnu.org>
96312         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
96313         work around defect in Texinfo and/or the standalone Info browser.
96315 2007-12-30  Bruno Haible  <bruno@clisp.org>
96317         Unify 5 copies of the KMP code.
96318         * lib/str-kmp.h: New file.
96319         * lib/c-strcasestr.c: Include str-kmp.h.
96320         (knuth_morris_pratt): Remove function.
96321         (c_strcasestr): Update.
96322         * lib/c-strstr.c: Include str-kmp.h.
96323         (knuth_morris_pratt): Remove function.
96324         (c_strcasestr): Update.
96325         * lib/mbscasestr.c: Include str-kmp.h.
96326         (knuth_morris_pratt_unibyte): Remove function.
96327         * lib/mbsstr.c: Include str-kmp.h.
96328         (knuth_morris_pratt_unibyte): Remove function.
96329         * lib/strcasestr.c: Include str-kmp.h.
96330         (knuth_morris_pratt): Remove function.
96331         (strcasestr): Update.
96332         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
96333         * modules/c-strstr (Files): Likewise.
96334         * modules/mbscasestr (Files): Likewise.
96335         * modules/mbsstr (Files): Likewise.
96336         * modules/strcasestr (Files): Likewise.
96337         Suggested by Paul Eggert.
96339 2007-12-30  Bruno Haible  <bruno@clisp.org>
96341         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
96342         defined.
96344 2007-12-30  Bruno Haible  <bruno@clisp.org>
96346         * lib/xmalloca.h: Include xalloc.h.
96347         (xnmalloca): New macro.
96349 2007-12-30  Bruno Haible  <bruno@clisp.org>
96351         * lib/malloca.h (nmalloca): New macro.
96352         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
96353         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
96354         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
96355         knuth_morris_pratt_multibyte): Likewise.
96356         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
96357         knuth_morris_pratt_multibyte): Likewise.
96358         * lib/memmem.c (knuth_morris_pratt): Likewise.
96359         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
96361 2007-12-25  Bruno Haible  <bruno@clisp.org>
96363         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
96364         * lib/glob.c: Don't include openat.h.
96365         (link_exists2_p): Add back the code that deals with the
96366         !GLOB_ALTDIRFUNC case.
96367         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
96368         let it do the filename concatenation.
96369         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
96370         * modules/glob (Depends-on): Remove openat.
96372 2007-12-31  Bruno Haible  <bruno@clisp.org>
96374         * modules/dirfd (License): Change to LGPLv2+.
96375         Approved by Jim Meyering.
96377 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
96379         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
96380         when multiplying M by sizeof (size_t).
96382 2007-12-10  Martin Lambers  <marlam@marlam.de>
96384         Override getpagesize on mingw.
96385         * lib/getpagesize.c: New file.
96386         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
96387         * modules/getpagesize (Files): Add lib/getpagesize.c.
96388         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
96389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
96390         REPLACE_GETPAGESIZE.
96391         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
96393 2007-12-25  Bruno Haible  <bruno@clisp.org>
96395         * modules/localcharset (Notice): New field.
96396         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
96397         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
96399 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
96400             Bruno Haible  <bruno@clisp.org>
96402         Avoid using the syntax symbol() in formatted documentation.
96403         * MODULES.html.sh (func_module): When replacing symbol() with a
96404         hyperlink, remove the parentheses. Show an error if some remain.
96405         Recognize and render the '...' syntax.
96406         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
96407         Rework. Add paragraph about GCC's inlining.
96408         * doc/alloca.texi: Likewise.
96409         * doc/error.texi: Remove parentheses from symbol reference.
96410         * doc/gnulib-intro.texi: Likewise.
96411         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
96412         * modules/fnmatch (Description): Reword to say "the ... function".
96413         * modules/full-read (Description): Likewise.
96414         * modules/full-write (Description): Likewise.
96415         * modules/safe-read (Description): Likewise.
96416         * modules/safe-write (Description): Likewise.
96417         * modules/strchrnul (Description): Likewise.
96418         * modules/trim (Description): Likewise.
96419         * modules/error (Description): Remove parentheses from symbol
96420         references.
96421         * modules/verror (Description): Likewise.
96422         Reported by Karl Berry.
96424 2007-12-25  Bruno Haible  <bruno@clisp.org>
96426         Fixup after 2007-10-16 commit.
96427         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
96429 2007-12-24  Bruno Haible  <bruno@clisp.org>
96431         Make --enable-relocatable work with DESTDIR.
96432         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
96433         to compute installdir from destprog.
96434         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
96435         also set the RELOC_DESTDIR variable.
96436         Reported by Левашев Иван <octagram@bluebottle.com>.
96438 2007-12-24  Bruno Haible  <bruno@clisp.org>
96440         Fix link error due to xalloc_die().
96441         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
96442         of xreadlink.
96443         * lib/relocwrapper.c: Update comments.
96444         * build-aux/install-reloc: Remove xreadlink.c from file list.
96445         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
96446         xreadlink.c.
96447         Reported by Левашев Иван <octagram@bluebottle.com>.
96449 2007-12-24  Bruno Haible  <bruno@clisp.org>
96451         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
96452         * lib/setenv.h: Remove file.
96453         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
96454         lib/setenv.h.
96455         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
96456         (Depends-on): Add stdlib.
96457         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
96458         gl_FUNC_UNSETENV.
96459         (Include): Replace setenv.h with <stdlib.h>.
96460         * modules/unsetenv: New file.
96461         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
96462         * lib/unsetenv.c: Include <stdlib.h> first.
96463         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
96464         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
96465         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
96466         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
96467         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
96468         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
96470         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96471         * doc/functions/unsetenv.texi: Update.
96472         * modules/xsetenv (Depends-on): Add unsetenv.
96473         * modules/getdate (Depends-on): Likewise.
96474         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
96475         * lib/xsetenv.c: Don't include setenv.h.
96476         * lib/getdate.y: Likewise.
96477         * lib/relocwrapper.c: Likewise.
96478         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
96479         (Depends-on): Add stdlib.
96480         * NEWS: Mention the changes.
96481         Reported by Левашев Иван <octagram@bluebottle.com>.
96483 2007-12-23  Bruno Haible  <bruno@clisp.org>
96485         * lib/memmem.c (memmem): Use lowercase variable names. Tab
96486         indentation.
96488 2007-12-23  Bruno Haible  <bruno@clisp.org>
96490         * lib/c-strcasestr.c: Add more comments.
96491         * lib/c-strstr.c: Likewise.
96492         * lib/mbscasestr.c: Likewise.
96493         * lib/mbsstr.c: Likewise.
96494         * lib/strcasestr.c: Likewise.
96495         * lib/memmem.c: Likewise.
96497 2007-12-23  Bruno Haible  <bruno@clisp.org>
96499         * tests/test-memmem.c: Include <string.h> first.
96501 2007-12-22  Bruno Haible  <bruno@clisp.org>
96503         * gnulib-tool (func_create_testdir): Change $auxdir while generating
96504         the contents of $testsbase.
96505         Reported by Ralf Wildenhues.
96507 2007-12-22  Bruno Haible  <bruno@clisp.org>
96509         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
96510         two variables local_ldadd_before, local_ldadd_last.
96512 2007-12-20  Eric Blake  <ebb9@byu.net>
96514         Work around circular library issue when cross-compiling.
96515         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
96516         that progname.o does not need to pull in rpl_memcmp.
96518 2007-12-19  Eric Blake  <ebb9@byu.net>
96520         Fix memmem to avoid O(n^2) worst-case complexity.
96521         * lib/memmem.c (knuth_morris_pratt): New function.
96522         (memmem): Use it if first few naive iterations fail.
96523         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
96524         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
96525         * modules/memchr (License): Likewise.
96526         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
96527         malloca.
96528         * tests/test-memmem.c: Rewrite, borrowing ideas from
96529         test-mbsstr1.c; the old version wouldn't even compile!
96530         * modules/memmem-tests: New file.
96531         * lib/string.in.h (rpl_memmem): Add declaration.
96532         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
96533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
96534         REPLACE_MEMMEM.
96536 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
96538         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
96539         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
96540         before any system include files, and undef after them all.  This
96541         should fix a problem on VMS reported by John E. Malmberg in
96542         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
96544 2007-12-17  Eric Blake  <ebb9@byu.net>
96546         Revert addition of verify, for BSD/OS.
96547         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
96548         can't handle large files, for the sake of obsolete platforms.
96549         * modules/fseeko (Depends-on): Remove verify.
96550         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
96551         * doc/functions/ftello.texi (ftello): Likewise.
96552         * doc/functions/fgetpos.texi (fgetpos): Likewise.
96553         Reported by Larry Jones.
96555 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
96557         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
96558         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
96560 2007-12-17  Jim Meyering  <meyering@redhat.com>
96562         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
96563         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
96564         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
96565         * modules/getcwd (Depends-on): Add openat.
96566         Reported by Petr Salinger.
96568 2007-12-17  Bruno Haible  <bruno@clisp.org>
96570         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
96571         avoid a segmentation fault of the configure test on x86_64 systems.
96573 2007-12-15  Jim Meyering  <meyering@redhat.com>
96575         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
96577 2007-12-13  Eric Blake  <ebb9@byu.net>
96579         Another fseek test.
96580         * tests/test-fseek.c (main): Also test ungetc handling.
96581         * tests/test-fseeko.c (main): Likewise.
96582         * modules/fseeko (Depends-on): Add verify.
96583         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
96584         large.
96585         Reported by Larry Jones.
96587         Fix fseeko on mingw.
96588         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
96589         seek.
96591         Beef up fseek tests.
96592         * tests/test-fseek.c (main): Also test eof handling.
96593         * tests/test-fseeko.c (main): Likewise.
96594         Reported by Larry Jones.
96596 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
96598         Fix fseeko on BSD-based platforms.
96599         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
96600         successful seek.
96602 2007-12-12  Eric Blake  <ebb9@byu.net>
96604         Allow circular dependency of separate libtests.a
96605         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
96606         when use_libtests.
96608 2007-12-11  Eric Blake  <ebb9@byu.net>
96610         Fix bug with -0.0L in previous patch.
96611         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
96612         * tests/test-isnan.c (main): Also test on zeroes.
96613         * tests/test-isnanf.c (main): Likewise.
96614         * tests/test-isnanl.h (main): Likewise.
96616         Detect pseudo-denormals on x86 even when cross-compiling.
96617         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
96618         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
96619         invalid bit patterns that happen to satisfy ==.
96621         Avoid link failures with separate libtests.a.
96622         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
96623         last, to satisfy circular dependencies.
96625 2007-12-11  Eric Blake  <ebb9@byu.net>
96626         and Bruno Haible  <bruno@clisp.org>
96628         Fix OpenBSD 4.0 <float.h> handling of long double.
96629         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
96630         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
96631         * doc/headers/float.texi (float.h): Document OpenBSD bug.
96633 2007-12-11  Jim Meyering  <meyering@redhat.com>
96635         * users.txt: Add libvirt.
96637         Support versions of autoconf prior to 2.59c.
96638         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
96639         if it is not already defined.
96641 2007-12-09  Bruno Haible  <bruno@clisp.org>
96643         Let 'gnulib-tool --import' collect sources needed for the tests in
96644         tests/ rather than in lib/.
96645         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
96646         argument. If true, add rules to generate libtests.a, and put libtests.a
96647         into $(LDADD). Consider source files in subdirectories and set
96648         uses_subdirs.
96649         (func_emit_initmacro_start, func_emit_initmacro_end,
96650         func_emit_initmacro_done): Pass all arguments explicitly.
96651         (func_import): Determine two module lists main_modules,
96652         testsrelated_modules. Determine use_libtests. Determine two variables
96653         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
96654         instead of just sed_transform_lib_file. Determine two variables
96655         main_files and testsrelated_files. Compute 'files' as the union of
96656         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
96657         func_add_or_update. In the generated gnulib-comp.m4, collect the
96658         object files for tests/ in different variables than those for lib/.
96659         Substitute LIBTESTS_LIBDEPS.
96660         (func_create_testdir): Combine the uses_subdirs results from
96661         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
96663 2007-12-09  Bruno Haible  <bruno@clisp.org>
96665         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
96666         the build-aux directory.
96668 2007-12-09  Bruno Haible  <bruno@clisp.org>
96670         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
96671         introduced on 2006-09-09.
96673 2007-12-07  Jim Meyering  <meyering@redhat.com>
96675         Let these macros work also with autoconf-2.59.
96676         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
96677         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
96678         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
96680 2007-12-06  Jim Meyering  <meyering@redhat.com>
96682         Avoid a configure-time syntax error in gl_FUNC_ACL.
96683         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
96684         function in each branch, before testing the cache variable.
96686 2007-12-04  Eric Blake  <ebb9@byu.net>
96688         Make scripts executable.
96689         * build-aux/config.guess: Add execute permissions.
96690         * build-aux/config.sub: Likewise.
96691         * build-aux/gendocs.sh: Likewise.
96693         Fix frexp on mingw.
96694         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
96695         cross-compiling.
96696         * doc/functions/frexp.texi (frexp): Document the bug.
96698         Make cygwin fseeko check more reliable.
96699         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
96700         version numbers, rather than unrelated feature check.
96701         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
96702         * doc/functions/ftello.texi (ftello): Likewise.
96703         Reported by Bruno Haible.
96705         * m4/strerror.m4: Bump version number.
96707 2007-12-03  Bruno Haible  <bruno@clisp.org>
96709         * doc/functions/mprotect.texi: Mention the mingw problem.
96711 2007-12-03  Eric Blake  <ebb9@byu.net>
96713         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
96714         REPLACE_STRERROR is initialized before this macro.
96716 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
96718         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
96719         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
96720         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
96721         put -lsec in even for programs other than 'ls'.  This fixes a problem
96722         for gettext reported by Bruno Haible in
96723         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
96724         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
96725         Add support for Solaris 10.  This isn't efficient, but should get the
96726         job done for now.
96728 2007-12-03  James Youngman  <jay@gnu.org>
96730         * doc/regexprops-generic.texi: change "an close-group" to "a
96731         close-group" and "illegal" to "not allowed".
96733 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96735         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
96736         pr_byname.h. Needed for the rare case when the maintainer has done
96737         "make maintainer-clean" in the source directory and then attempts a
96738         build outside the source directory.
96739         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
96740         scripts_byname.h.
96742 2007-12-02  Martin Lambers  <marlam@marlam.de>
96743             Bruno Haible  <bruno@clisp.org>
96745         * lib/getpagesize.h: Remove file.
96746         * lib/unistd.in.h: Include declaration of getpagesize here.
96747         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
96748         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
96749         HAVE_SYS_PARAM_H.
96750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
96751         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
96752         * modules/getpagesize (Files): Remove lib/getpagesize.h.
96753         (Depends-on): Add unistd.
96754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96755         (Include): Use <unistd.h> instead of getpagesize.h.
96756         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
96757         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
96758         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
96759         gl_GETPAGESIZE invocation, already handled by module dependency.
96760         * lib/pagealign_alloc.c: Don't include getpagesize.h.
96762 2007-12-02  Bruno Haible  <bruno@clisp.org>
96764         * modules/strings-tests: New file.
96765         * tests/test-strings.c: New file.
96767         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
96768         * lib/strings.in.h: New file.
96769         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
96770         * m4/strings_h.m4: New file.
96771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
96772         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
96773         * modules/strings: New file.
96774         * modules/string (Makefile.am): Update.
96775         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
96776         Reported by Karl Berry.
96778 2007-12-01  Eric Blake  <ebb9@byu.net>
96780         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
96781         accommodate fix in cygwin 1.5.25.
96783 2007-12-01  Jim Meyering  <meyering@redhat.com>
96785         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
96786         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
96787         that would inhibit utf8-optimization of a regexp containing line-
96788         or buffer-anchors, e.g., `^', `$'.
96790 2007-11-30  Bruno Haible  <bruno@clisp.org>
96792         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
96793         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
96794         glthread_recursive_lock_init.
96795         * lib/lock.c (glthread_recursive_lock_init)
96796         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
96797         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96799 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
96801         New function qset_acl, like set_acl but with syscall semantics.
96802         * lib/acl.h (qset_acl): New decl.
96803         * lib/acl.c (qset_acl): New function.
96804         (set_acl): Use new function.  Use more-consistent diagnostics.
96806 2007-11-28  Jim Meyering  <meyering@redhat.com>
96808         * modules/physmem (License): Change from GPL to LGPLv2+.
96810 2007-11-26  Bruno Haible  <bruno@clisp.org>
96812         * lib/vasnprintf.c (decode_long_double): Don't abort if the
96813         'long double' type has excess precision.
96814         Reported by Jim Meyering in
96815         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
96817 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96819         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
96820         Sync from <http://gnu.org/licenses>.
96821         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
96822         with license text from same location.
96823         * doc/maintain.texi, doc/standards.texi:  Sync from
96824         <http://savannah.gnu.org/projects/gnustandards>.
96826 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
96827         and Jim Meyering  <meyering@redhat.com>
96829         Adjust getdate' grammar to accept a slightly more regular language.
96830         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
96831         Before, the former was rejected.
96832         * lib/getdate.y (digits_to_date_time): New function, factored
96833         out of ...
96834         (number): ...here.  Just call digits_to_date_time.
96835         (hybrid): New non-terminal to handle an <unsigned number,
96836         signed relative offset> sequence consistently.
96838 2007-11-18  Jim Meyering  <meyering@redhat.com>
96840         Pull my changes from coreutils:
96841         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
96842         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
96843         use of $gnulib_tool_option_extras, so that it's separated from the
96844         preceding argument.
96846         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
96847         * build-aux/bootstrap (cp_mark_as_generated): Create any required
96848         parent destination directories before copying a file into place.
96850 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
96852         bootstrap: work also with 4-argument variant of AC_INIT
96853         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
96855 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
96857         Port test-getaddrinfo to Solaris.
96858         Problem reported by Bruno Haible in
96859         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
96860         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
96861         explanation of setting 'hints'.
96862         Don't reject an implementation merely because it returns EAI_SERVICE.
96863         (EAI_SERVICE): Define to 0 if not defined.
96865 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
96867         The license of gnu-make and posix-shell is now "GPLed build tool".
96868         * modules/gnu-make (License): Likewise.
96869         * modules/posix-shell (License): Likewise.
96871         New module posix-shell, for determining a POSIX shell
96872         or perhaps something that is close enough to a POSIX shell.
96873         * m4/posix-shell.m4: New file.
96874         * modules/posix-shell: New file.
96876         * MODULES.html.sh: Mention new module.
96878         New module gnu-make, for determining whether we're using GNU Make.
96879         * m4/gnu-make.m4: New file.
96880         * modules/gnu-make: New file.
96881         * MODULES.html.sh: Mention new module.
96883 2007-11-14  Jim Meyering  <meyering@redhat.com>
96885         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
96886         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
96887         use this macro to create a function _definition_.
96888         Remove useless "#undef ARGMATCH_DIE".
96890 2007-11-14  Bruno Haible  <bruno@clisp.org>
96892         * lib/config.charset: Update for OpenBSD 4.1.
96893         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
96895 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
96897         Document 64-bit #if problems in stdint.texi.
96898         * doc/headers/stdint.texi (stdint.h): Mention problems with
96899         64-bit-#if, and how to work around them.
96901         Don't insist on 'long long int' support in the preprocessor.  It
96902         breaks too many things.  For example, PRIdMAX still uses a 'long
96903         long int' format with the latest Sun compiler, even though
96904         HAVE_LONG_LONG_INT isn't defined due to that compiler's
96905         preprocessor problem.  This causes the latest coreutils to dump
96906         core on Solaris 10 sparc with the Sun C compiler.
96907         Instead, fix the 2007-10-16 problem in a different way, by evaluating
96908         the troublesome expressions at configure-time, not at #if-time.
96909         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
96910         preprocessor.
96911         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
96912         compile-time C checks, done at 'configure'-time.
96913         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
96914         * modules/inttypes (Makefile): Substitute the new symbols that
96915         gl_INTTYPES_H now generates.
96916         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
96918 2007-11-12  Bruno Haible  <bruno@clisp.org>
96920         Tests for Unicode character classification functions.
96922         * modules/unictype/bidicategory-byname-tests: New file.
96923         * modules/unictype/bidicategory-name-tests: New file.
96924         * modules/unictype/bidicategory-of-tests: New file.
96925         * modules/unictype/bidicategory-test-tests: New file.
96926         * modules/unictype/block-list-tests: New file.
96927         * modules/unictype/block-of-tests: New file.
96928         * modules/unictype/block-test-tests: New file.
96929         * modules/unictype/category-C-tests: New file.
96930         * modules/unictype/category-Cc-tests: New file.
96931         * modules/unictype/category-Cf-tests: New file.
96932         * modules/unictype/category-Cn-tests: New file.
96933         * modules/unictype/category-Co-tests: New file.
96934         * modules/unictype/category-Cs-tests: New file.
96935         * modules/unictype/category-L-tests: New file.
96936         * modules/unictype/category-Ll-tests: New file.
96937         * modules/unictype/category-Lm-tests: New file.
96938         * modules/unictype/category-Lo-tests: New file.
96939         * modules/unictype/category-Lt-tests: New file.
96940         * modules/unictype/category-Lu-tests: New file.
96941         * modules/unictype/category-M-tests: New file.
96942         * modules/unictype/category-Mc-tests: New file.
96943         * modules/unictype/category-Me-tests: New file.
96944         * modules/unictype/category-Mn-tests: New file.
96945         * modules/unictype/category-N-tests: New file.
96946         * modules/unictype/category-Nd-tests: New file.
96947         * modules/unictype/category-Nl-tests: New file.
96948         * modules/unictype/category-No-tests: New file.
96949         * modules/unictype/category-P-tests: New file.
96950         * modules/unictype/category-Pc-tests: New file.
96951         * modules/unictype/category-Pd-tests: New file.
96952         * modules/unictype/category-Pe-tests: New file.
96953         * modules/unictype/category-Pf-tests: New file.
96954         * modules/unictype/category-Pi-tests: New file.
96955         * modules/unictype/category-Po-tests: New file.
96956         * modules/unictype/category-Ps-tests: New file.
96957         * modules/unictype/category-S-tests: New file.
96958         * modules/unictype/category-Sc-tests: New file.
96959         * modules/unictype/category-Sk-tests: New file.
96960         * modules/unictype/category-Sm-tests: New file.
96961         * modules/unictype/category-So-tests: New file.
96962         * modules/unictype/category-Z-tests: New file.
96963         * modules/unictype/category-Zl-tests: New file.
96964         * modules/unictype/category-Zp-tests: New file.
96965         * modules/unictype/category-Zs-tests: New file.
96966         * modules/unictype/category-and-not-tests: New file.
96967         * modules/unictype/category-and-tests: New file.
96968         * modules/unictype/category-byname-tests: New file.
96969         * modules/unictype/category-name-tests: New file.
96970         * modules/unictype/category-none-tests: New file.
96971         * modules/unictype/category-of-tests: New file.
96972         * modules/unictype/category-or-tests: New file.
96973         * modules/unictype/category-test-withtable-tests: New file.
96974         * modules/unictype/combining-class-tests: New file.
96975         * modules/unictype/ctype-alnum-tests: New file.
96976         * modules/unictype/ctype-alpha-tests: New file.
96977         * modules/unictype/ctype-blank-tests: New file.
96978         * modules/unictype/ctype-cntrl-tests: New file.
96979         * modules/unictype/ctype-digit-tests: New file.
96980         * modules/unictype/ctype-graph-tests: New file.
96981         * modules/unictype/ctype-lower-tests: New file.
96982         * modules/unictype/ctype-print-tests: New file.
96983         * modules/unictype/ctype-punct-tests: New file.
96984         * modules/unictype/ctype-space-tests: New file.
96985         * modules/unictype/ctype-upper-tests: New file.
96986         * modules/unictype/ctype-xdigit-tests: New file.
96987         * modules/unictype/decimal-digit-tests: New file.
96988         * modules/unictype/digit-tests: New file.
96989         * modules/unictype/mirror-tests: New file.
96990         * modules/unictype/numeric-tests: New file.
96991         * modules/unictype/property-alphabetic-tests: New file.
96992         * modules/unictype/property-ascii-hex-digit-tests: New file.
96993         * modules/unictype/property-bidi-arabic-digit-tests: New file.
96994         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
96995         * modules/unictype/property-bidi-block-separator-tests: New file.
96996         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
96997         * modules/unictype/property-bidi-common-separator-tests: New file.
96998         * modules/unictype/property-bidi-control-tests: New file.
96999         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
97000         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
97001         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
97002         * modules/unictype/property-bidi-european-digit-tests: New file.
97003         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
97004         * modules/unictype/property-bidi-left-to-right-tests: New file.
97005         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
97006         * modules/unictype/property-bidi-other-neutral-tests: New file.
97007         * modules/unictype/property-bidi-pdf-tests: New file.
97008         * modules/unictype/property-bidi-segment-separator-tests: New file.
97009         * modules/unictype/property-bidi-whitespace-tests: New file.
97010         * modules/unictype/property-byname-tests: New file.
97011         * modules/unictype/property-combining-tests: New file.
97012         * modules/unictype/property-composite-tests: New file.
97013         * modules/unictype/property-currency-symbol-tests: New file.
97014         * modules/unictype/property-dash-tests: New file.
97015         * modules/unictype/property-decimal-digit-tests: New file.
97016         * modules/unictype/property-default-ignorable-code-point-tests: New file.
97017         * modules/unictype/property-deprecated-tests: New file.
97018         * modules/unictype/property-diacritic-tests: New file.
97019         * modules/unictype/property-extender-tests: New file.
97020         * modules/unictype/property-format-control-tests: New file.
97021         * modules/unictype/property-grapheme-base-tests: New file.
97022         * modules/unictype/property-grapheme-extend-tests: New file.
97023         * modules/unictype/property-grapheme-link-tests: New file.
97024         * modules/unictype/property-hex-digit-tests: New file.
97025         * modules/unictype/property-hyphen-tests: New file.
97026         * modules/unictype/property-id-continue-tests: New file.
97027         * modules/unictype/property-id-start-tests: New file.
97028         * modules/unictype/property-ideographic-tests: New file.
97029         * modules/unictype/property-ids-binary-operator-tests: New file.
97030         * modules/unictype/property-ids-trinary-operator-tests: New file.
97031         * modules/unictype/property-ignorable-control-tests: New file.
97032         * modules/unictype/property-iso-control-tests: New file.
97033         * modules/unictype/property-join-control-tests: New file.
97034         * modules/unictype/property-left-of-pair-tests: New file.
97035         * modules/unictype/property-line-separator-tests: New file.
97036         * modules/unictype/property-logical-order-exception-tests: New file.
97037         * modules/unictype/property-lowercase-tests: New file.
97038         * modules/unictype/property-math-tests: New file.
97039         * modules/unictype/property-non-break-tests: New file.
97040         * modules/unictype/property-not-a-character-tests: New file.
97041         * modules/unictype/property-numeric-tests: New file.
97042         * modules/unictype/property-other-alphabetic-tests: New file.
97043         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
97044         * modules/unictype/property-other-grapheme-extend-tests: New file.
97045         * modules/unictype/property-other-id-continue-tests: New file.
97046         * modules/unictype/property-other-id-start-tests: New file.
97047         * modules/unictype/property-other-lowercase-tests: New file.
97048         * modules/unictype/property-other-math-tests: New file.
97049         * modules/unictype/property-other-uppercase-tests: New file.
97050         * modules/unictype/property-paired-punctuation-tests: New file.
97051         * modules/unictype/property-paragraph-separator-tests: New file.
97052         * modules/unictype/property-pattern-syntax-tests: New file.
97053         * modules/unictype/property-pattern-white-space-tests: New file.
97054         * modules/unictype/property-private-use-tests: New file.
97055         * modules/unictype/property-punctuation-tests: New file.
97056         * modules/unictype/property-quotation-mark-tests: New file.
97057         * modules/unictype/property-radical-tests: New file.
97058         * modules/unictype/property-sentence-terminal-tests: New file.
97059         * modules/unictype/property-soft-dotted-tests: New file.
97060         * modules/unictype/property-space-tests: New file.
97061         * modules/unictype/property-terminal-punctuation-tests: New file.
97062         * modules/unictype/property-test-tests: New file.
97063         * modules/unictype/property-titlecase-tests: New file.
97064         * modules/unictype/property-unassigned-code-value-tests: New file.
97065         * modules/unictype/property-unified-ideograph-tests: New file.
97066         * modules/unictype/property-uppercase-tests: New file.
97067         * modules/unictype/property-variation-selector-tests: New file.
97068         * modules/unictype/property-white-space-tests: New file.
97069         * modules/unictype/property-xid-continue-tests: New file.
97070         * modules/unictype/property-xid-start-tests: New file.
97071         * modules/unictype/property-zero-width-tests: New file.
97072         * modules/unictype/scripts-tests: New file.
97073         * modules/unictype/syntax-c-ident-tests: New file.
97074         * modules/unictype/syntax-c-whitespace-tests: New file.
97075         * modules/unictype/syntax-java-ident-tests: New file.
97076         * modules/unictype/syntax-java-whitespace-tests: New file.
97077         * tests/unictype/test-bidi_byname.c: New file.
97078         * tests/unictype/test-bidi_name.c: New file.
97079         * tests/unictype/test-bidi_of.c: New file.
97080         * tests/unictype/test-bidi_test.c: New file.
97081         * tests/unictype/test-block_list.c: New file.
97082         * tests/unictype/test-block_of.c: New file.
97083         * tests/unictype/test-block_test.c: New file.
97084         * tests/unictype/test-categ_and.c: New file.
97085         * tests/unictype/test-categ_and_not.c: New file.
97086         * tests/unictype/test-categ_byname.c: New file.
97087         * tests/unictype/test-categ_name.c: New file.
97088         * tests/unictype/test-categ_none.c: New file.
97089         * tests/unictype/test-categ_of.c: New file.
97090         * tests/unictype/test-categ_or.c: New file.
97091         * tests/unictype/test-categ_test_withtable.c: New file.
97092         * tests/unictype/test-combining.c: New file.
97093         * tests/unictype/test-decdigit.c: New file.
97094         * tests/unictype/test-digit.c: New file.
97095         * tests/unictype/test-mirror.c: New file.
97096         * tests/unictype/test-numeric.c: New file.
97097         * tests/unictype/test-pr_byname.c: New file.
97098         * tests/unictype/test-pr_test.c: New file.
97099         * tests/unictype/test-predicate-part1.h: New file.
97100         * tests/unictype/test-predicate-part2.h: New file.
97101         * tests/unictype/test-scripts.c: New file.
97102         * tests/unictype/test-sy_c_ident.c: New file.
97103         * tests/unictype/test-sy_java_ident.c: New file.
97105         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
97106         for Unicode 5.0.0.
97107         * tests/unictype/test-categ_Cc.c: Likewise.
97108         * tests/unictype/test-categ_Cf.c: Likewise.
97109         * tests/unictype/test-categ_Cn.c: Likewise.
97110         * tests/unictype/test-categ_Co.c: Likewise.
97111         * tests/unictype/test-categ_Cs.c: Likewise.
97112         * tests/unictype/test-categ_L.c: Likewise.
97113         * tests/unictype/test-categ_Ll.c: Likewise.
97114         * tests/unictype/test-categ_Lm.c: Likewise.
97115         * tests/unictype/test-categ_Lo.c: Likewise.
97116         * tests/unictype/test-categ_Lt.c: Likewise.
97117         * tests/unictype/test-categ_Lu.c: Likewise.
97118         * tests/unictype/test-categ_M.c: Likewise.
97119         * tests/unictype/test-categ_Mc.c: Likewise.
97120         * tests/unictype/test-categ_Me.c: Likewise.
97121         * tests/unictype/test-categ_Mn.c: Likewise.
97122         * tests/unictype/test-categ_N.c: Likewise.
97123         * tests/unictype/test-categ_Nd.c: Likewise.
97124         * tests/unictype/test-categ_Nl.c: Likewise.
97125         * tests/unictype/test-categ_No.c: Likewise.
97126         * tests/unictype/test-categ_P.c: Likewise.
97127         * tests/unictype/test-categ_Pc.c: Likewise.
97128         * tests/unictype/test-categ_Pd.c: Likewise.
97129         * tests/unictype/test-categ_Pe.c: Likewise.
97130         * tests/unictype/test-categ_Pf.c: Likewise.
97131         * tests/unictype/test-categ_Pi.c: Likewise.
97132         * tests/unictype/test-categ_Po.c: Likewise.
97133         * tests/unictype/test-categ_Ps.c: Likewise.
97134         * tests/unictype/test-categ_S.c: Likewise.
97135         * tests/unictype/test-categ_Sc.c: Likewise.
97136         * tests/unictype/test-categ_Sk.c: Likewise.
97137         * tests/unictype/test-categ_Sm.c: Likewise.
97138         * tests/unictype/test-categ_So.c: Likewise.
97139         * tests/unictype/test-categ_Z.c: Likewise.
97140         * tests/unictype/test-categ_Zl.c: Likewise.
97141         * tests/unictype/test-categ_Zp.c: Likewise.
97142         * tests/unictype/test-categ_Zs.c: Likewise.
97143         * tests/unictype/test-ctype_alnum.c: Likewise.
97144         * tests/unictype/test-ctype_alpha.c: Likewise.
97145         * tests/unictype/test-ctype_blank.c: Likewise.
97146         * tests/unictype/test-ctype_cntrl.c: Likewise.
97147         * tests/unictype/test-ctype_digit.c: Likewise.
97148         * tests/unictype/test-ctype_graph.c: Likewise.
97149         * tests/unictype/test-ctype_lower.c: Likewise.
97150         * tests/unictype/test-ctype_print.c: Likewise.
97151         * tests/unictype/test-ctype_punct.c: Likewise.
97152         * tests/unictype/test-ctype_space.c: Likewise.
97153         * tests/unictype/test-ctype_upper.c: Likewise.
97154         * tests/unictype/test-ctype_xdigit.c: Likewise.
97155         * tests/unictype/test-decdigit.h: Likewise.
97156         * tests/unictype/test-digit.h: Likewise.
97157         * tests/unictype/test-numeric.h: Likewise.
97158         * tests/unictype/test-pr_alphabetic.c: Likewise.
97159         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
97160         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
97161         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
97162         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
97163         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
97164         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
97165         * tests/unictype/test-pr_bidi_control.c: Likewise.
97166         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
97167         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
97168         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
97169         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
97170         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
97171         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
97172         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
97173         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
97174         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
97175         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
97176         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
97177         * tests/unictype/test-pr_combining.c: Likewise.
97178         * tests/unictype/test-pr_composite.c: Likewise.
97179         * tests/unictype/test-pr_currency_symbol.c: Likewise.
97180         * tests/unictype/test-pr_dash.c: Likewise.
97181         * tests/unictype/test-pr_decimal_digit.c: Likewise.
97182         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
97183         * tests/unictype/test-pr_deprecated.c: Likewise.
97184         * tests/unictype/test-pr_diacritic.c: Likewise.
97185         * tests/unictype/test-pr_extender.c: Likewise.
97186         * tests/unictype/test-pr_format_control.c: Likewise.
97187         * tests/unictype/test-pr_grapheme_base.c: Likewise.
97188         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
97189         * tests/unictype/test-pr_grapheme_link.c: Likewise.
97190         * tests/unictype/test-pr_hex_digit.c: Likewise.
97191         * tests/unictype/test-pr_hyphen.c: Likewise.
97192         * tests/unictype/test-pr_id_continue.c: Likewise.
97193         * tests/unictype/test-pr_id_start.c: Likewise.
97194         * tests/unictype/test-pr_ideographic.c: Likewise.
97195         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
97196         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
97197         * tests/unictype/test-pr_ignorable_control.c: Likewise.
97198         * tests/unictype/test-pr_iso_control.c: Likewise.
97199         * tests/unictype/test-pr_join_control.c: Likewise.
97200         * tests/unictype/test-pr_left_of_pair.c: Likewise.
97201         * tests/unictype/test-pr_line_separator.c: Likewise.
97202         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
97203         * tests/unictype/test-pr_lowercase.c: Likewise.
97204         * tests/unictype/test-pr_math.c: Likewise.
97205         * tests/unictype/test-pr_non_break.c: Likewise.
97206         * tests/unictype/test-pr_not_a_character.c: Likewise.
97207         * tests/unictype/test-pr_numeric.c: Likewise.
97208         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
97209         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
97210         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
97211         * tests/unictype/test-pr_other_id_continue.c: Likewise.
97212         * tests/unictype/test-pr_other_id_start.c: Likewise.
97213         * tests/unictype/test-pr_other_lowercase.c: Likewise.
97214         * tests/unictype/test-pr_other_math.c: Likewise.
97215         * tests/unictype/test-pr_other_uppercase.c: Likewise.
97216         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
97217         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
97218         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
97219         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
97220         * tests/unictype/test-pr_private_use.c: Likewise.
97221         * tests/unictype/test-pr_punctuation.c: Likewise.
97222         * tests/unictype/test-pr_quotation_mark.c: Likewise.
97223         * tests/unictype/test-pr_radical.c: Likewise.
97224         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
97225         * tests/unictype/test-pr_soft_dotted.c: Likewise.
97226         * tests/unictype/test-pr_space.c: Likewise.
97227         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
97228         * tests/unictype/test-pr_titlecase.c: Likewise.
97229         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
97230         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
97231         * tests/unictype/test-pr_uppercase.c: Likewise.
97232         * tests/unictype/test-pr_variation_selector.c: Likewise.
97233         * tests/unictype/test-pr_white_space.c: Likewise.
97234         * tests/unictype/test-pr_xid_continue.c: Likewise.
97235         * tests/unictype/test-pr_xid_start.c: Likewise.
97236         * tests/unictype/test-pr_zero_width.c: Likewise.
97237         * tests/unictype/test-sy_c_whitespace.c: Likewise.
97238         * tests/unictype/test-sy_java_whitespace.c: Likewise.
97240 2007-11-12  Bruno Haible  <bruno@clisp.org>
97242         Unicode character classification functions.
97243         * lib/unictype.h: New file.
97244         * modules/unictype/base: New file.
97245         * modules/unictype/category-L: New file.
97246         * modules/unictype/category-Lu: New file.
97247         * modules/unictype/category-Ll: New file.
97248         * modules/unictype/category-Lt: New file.
97249         * modules/unictype/category-Lm: New file.
97250         * modules/unictype/category-Lo: New file.
97251         * modules/unictype/category-M: New file.
97252         * modules/unictype/category-Mn: New file.
97253         * modules/unictype/category-Mc: New file.
97254         * modules/unictype/category-Me: New file.
97255         * modules/unictype/category-N: New file.
97256         * modules/unictype/category-Nd: New file.
97257         * modules/unictype/category-Nl: New file.
97258         * modules/unictype/category-No: New file.
97259         * modules/unictype/category-P: New file.
97260         * modules/unictype/category-Pc: New file.
97261         * modules/unictype/category-Pd: New file.
97262         * modules/unictype/category-Ps: New file.
97263         * modules/unictype/category-Pe: New file.
97264         * modules/unictype/category-Pi: New file.
97265         * modules/unictype/category-Pf: New file.
97266         * modules/unictype/category-Po: New file.
97267         * modules/unictype/category-S: New file.
97268         * modules/unictype/category-Sm: New file.
97269         * modules/unictype/category-Sc: New file.
97270         * modules/unictype/category-Sk: New file.
97271         * modules/unictype/category-So: New file.
97272         * modules/unictype/category-Z: New file.
97273         * modules/unictype/category-Zs: New file.
97274         * modules/unictype/category-Zl: New file.
97275         * modules/unictype/category-Zp: New file.
97276         * modules/unictype/category-C: New file.
97277         * modules/unictype/category-Cc: New file.
97278         * modules/unictype/category-Cf: New file.
97279         * modules/unictype/category-Cs: New file.
97280         * modules/unictype/category-Co: New file.
97281         * modules/unictype/category-Cn: New file.
97282         * modules/unictype/category-or: New file.
97283         * modules/unictype/category-of: New file.
97284         * modules/unictype/category-test: New file.
97285         * modules/unictype/category-test-withtable: New file.
97286         * modules/unictype/category-byname: New file.
97287         * modules/unictype/category-none: New file.
97288         * modules/unictype/category-and: New file.
97289         * modules/unictype/category-and-not: New file.
97290         * modules/unictype/category-name: New file.
97291         * modules/unictype/combining-class: New file.
97292         * modules/unictype/category-all: New file.
97293         * modules/unictype/bidicategory-all: New file.
97294         * modules/unictype/bidicategory-byname: New file.
97295         * modules/unictype/bidicategory-name: New file.
97296         * modules/unictype/bidicategory-of: New file.
97297         * modules/unictype/bidicategory-test: New file.
97298         * modules/unictype/decimal-digit: New file.
97299         * modules/unictype/digit: New file.
97300         * modules/unictype/numeric: New file.
97301         * modules/unictype/mirror: New file.
97302         * modules/unictype/property-white-space: New file.
97303         * modules/unictype/property-alphabetic: New file.
97304         * modules/unictype/property-other-alphabetic: New file.
97305         * modules/unictype/property-not-a-character: New file.
97306         * modules/unictype/property-default-ignorable-code-point: New file.
97307         * modules/unictype/property-other-default-ignorable-code-point: New
97308         file.
97309         * modules/unictype/property-deprecated: New file.
97310         * modules/unictype/property-logical-order-exception: New file.
97311         * modules/unictype/property-variation-selector: New file.
97312         * modules/unictype/property-private-use: New file.
97313         * modules/unictype/property-unassigned-code-value: New file.
97314         * modules/unictype/property-uppercase: New file.
97315         * modules/unictype/property-other-uppercase: New file.
97316         * modules/unictype/property-lowercase: New file.
97317         * modules/unictype/property-other-lowercase: New file.
97318         * modules/unictype/property-titlecase: New file.
97319         * modules/unictype/property-soft-dotted: New file.
97320         * modules/unictype/property-id-start: New file.
97321         * modules/unictype/property-other-id-start: New file.
97322         * modules/unictype/property-id-continue: New file.
97323         * modules/unictype/property-other-id-continue: New file.
97324         * modules/unictype/property-xid-start: New file.
97325         * modules/unictype/property-xid-continue: New file.
97326         * modules/unictype/property-pattern-white-space: New file.
97327         * modules/unictype/property-pattern-syntax: New file.
97328         * modules/unictype/property-join-control: New file.
97329         * modules/unictype/property-grapheme-base: New file.
97330         * modules/unictype/property-grapheme-extend: New file.
97331         * modules/unictype/property-other-grapheme-extend: New file.
97332         * modules/unictype/property-grapheme-link: New file.
97333         * modules/unictype/property-bidi-control: New file.
97334         * modules/unictype/property-bidi-left-to-right: New file.
97335         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
97336         * modules/unictype/property-bidi-arabic-right-to-left: New file.
97337         * modules/unictype/property-bidi-european-digit: New file.
97338         * modules/unictype/property-bidi-eur-num-separator: New file.
97339         * modules/unictype/property-bidi-eur-num-terminator: New file.
97340         * modules/unictype/property-bidi-arabic-digit: New file.
97341         * modules/unictype/property-bidi-common-separator: New file.
97342         * modules/unictype/property-bidi-block-separator: New file.
97343         * modules/unictype/property-bidi-segment-separator: New file.
97344         * modules/unictype/property-bidi-whitespace: New file.
97345         * modules/unictype/property-bidi-non-spacing-mark: New file.
97346         * modules/unictype/property-bidi-boundary-neutral: New file.
97347         * modules/unictype/property-bidi-pdf: New file.
97348         * modules/unictype/property-bidi-embedding-or-override: New file.
97349         * modules/unictype/property-bidi-other-neutral: New file.
97350         * modules/unictype/property-hex-digit: New file.
97351         * modules/unictype/property-ascii-hex-digit: New file.
97352         * modules/unictype/property-ideographic: New file.
97353         * modules/unictype/property-unified-ideograph: New file.
97354         * modules/unictype/property-radical: New file.
97355         * modules/unictype/property-ids-binary-operator: New file.
97356         * modules/unictype/property-ids-trinary-operator: New file.
97357         * modules/unictype/property-zero-width: New file.
97358         * modules/unictype/property-space: New file.
97359         * modules/unictype/property-non-break: New file.
97360         * modules/unictype/property-iso-control: New file.
97361         * modules/unictype/property-format-control: New file.
97362         * modules/unictype/property-dash: New file.
97363         * modules/unictype/property-hyphen: New file.
97364         * modules/unictype/property-punctuation: New file.
97365         * modules/unictype/property-line-separator: New file.
97366         * modules/unictype/property-paragraph-separator: New file.
97367         * modules/unictype/property-quotation-mark: New file.
97368         * modules/unictype/property-sentence-terminal: New file.
97369         * modules/unictype/property-terminal-punctuation: New file.
97370         * modules/unictype/property-currency-symbol: New file.
97371         * modules/unictype/property-math: New file.
97372         * modules/unictype/property-other-math: New file.
97373         * modules/unictype/property-paired-punctuation: New file.
97374         * modules/unictype/property-left-of-pair: New file.
97375         * modules/unictype/property-combining: New file.
97376         * modules/unictype/property-composite: New file.
97377         * modules/unictype/property-decimal-digit: New file.
97378         * modules/unictype/property-numeric: New file.
97379         * modules/unictype/property-diacritic: New file.
97380         * modules/unictype/property-extender: New file.
97381         * modules/unictype/property-ignorable-control: New file.
97382         * modules/unictype/property-test: New file.
97383         * modules/unictype/property-byname: New file.
97384         * modules/unictype/property-all: New file.
97385         * modules/unictype/scripts: New file.
97386         * modules/unictype/scripts-all: New file.
97387         * modules/unictype/block-of: New file.
97388         * modules/unictype/block-test: New file.
97389         * modules/unictype/block-list: New file.
97390         * modules/unictype/block-all: New file.
97391         * modules/unictype/syntax-c-whitespace: New file.
97392         * modules/unictype/syntax-java-whitespace: New file.
97393         * modules/unictype/syntax-c-ident: New file.
97394         * modules/unictype/syntax-java-ident: New file.
97395         * modules/unictype/ctype-alnum: New file.
97396         * modules/unictype/ctype-alpha: New file.
97397         * modules/unictype/ctype-cntrl: New file.
97398         * modules/unictype/ctype-digit: New file.
97399         * modules/unictype/ctype-graph: New file.
97400         * modules/unictype/ctype-lower: New file.
97401         * modules/unictype/ctype-print: New file.
97402         * modules/unictype/ctype-punct: New file.
97403         * modules/unictype/ctype-space: New file.
97404         * modules/unictype/ctype-upper: New file.
97405         * modules/unictype/ctype-xdigit: New file.
97406         * modules/unictype/ctype-blank: New file.
97407         * lib/unictype/bidi_byname.c: New file.
97408         * lib/unictype/bidi_name.c: New file.
97409         * lib/unictype/bidi_of.c: New file.
97410         * lib/unictype/bidi_test.c: New file.
97411         * lib/unictype/bitmap.h: New file.
97412         * lib/unictype/block_test.c: New file.
97413         * lib/unictype/blocks.c: New file.
97414         * lib/unictype/categ_C.c: New file.
97415         * lib/unictype/categ_Cc.c: New file.
97416         * lib/unictype/categ_Cf.c: New file.
97417         * lib/unictype/categ_Cn.c: New file.
97418         * lib/unictype/categ_Co.c: New file.
97419         * lib/unictype/categ_Cs.c: New file.
97420         * lib/unictype/categ_L.c: New file.
97421         * lib/unictype/categ_Ll.c: New file.
97422         * lib/unictype/categ_Lm.c: New file.
97423         * lib/unictype/categ_Lo.c: New file.
97424         * lib/unictype/categ_Lt.c: New file.
97425         * lib/unictype/categ_Lu.c: New file.
97426         * lib/unictype/categ_M.c: New file.
97427         * lib/unictype/categ_Mc.c: New file.
97428         * lib/unictype/categ_Me.c: New file.
97429         * lib/unictype/categ_Mn.c: New file.
97430         * lib/unictype/categ_N.c: New file.
97431         * lib/unictype/categ_Nd.c: New file.
97432         * lib/unictype/categ_Nl.c: New file.
97433         * lib/unictype/categ_No.c: New file.
97434         * lib/unictype/categ_P.c: New file.
97435         * lib/unictype/categ_Pc.c: New file.
97436         * lib/unictype/categ_Pd.c: New file.
97437         * lib/unictype/categ_Pe.c: New file.
97438         * lib/unictype/categ_Pf.c: New file.
97439         * lib/unictype/categ_Pi.c: New file.
97440         * lib/unictype/categ_Po.c: New file.
97441         * lib/unictype/categ_Ps.c: New file.
97442         * lib/unictype/categ_S.c: New file.
97443         * lib/unictype/categ_Sc.c: New file.
97444         * lib/unictype/categ_Sk.c: New file.
97445         * lib/unictype/categ_Sm.c: New file.
97446         * lib/unictype/categ_So.c: New file.
97447         * lib/unictype/categ_Z.c: New file.
97448         * lib/unictype/categ_Zl.c: New file.
97449         * lib/unictype/categ_Zp.c: New file.
97450         * lib/unictype/categ_Zs.c: New file.
97451         * lib/unictype/categ_and.c: New file.
97452         * lib/unictype/categ_and_not.c: New file.
97453         * lib/unictype/categ_byname.c: New file.
97454         * lib/unictype/categ_name.c: New file.
97455         * lib/unictype/categ_none.c: New file.
97456         * lib/unictype/categ_of.c: New file.
97457         * lib/unictype/categ_or.c: New file.
97458         * lib/unictype/categ_test.c: New file.
97459         * lib/unictype/combining.c: New file.
97460         * lib/unictype/ctype_alnum.c: New file.
97461         * lib/unictype/ctype_alpha.c: New file.
97462         * lib/unictype/ctype_blank.c: New file.
97463         * lib/unictype/ctype_cntrl.c: New file.
97464         * lib/unictype/ctype_digit.c: New file.
97465         * lib/unictype/ctype_graph.c: New file.
97466         * lib/unictype/ctype_lower.c: New file.
97467         * lib/unictype/ctype_print.c: New file.
97468         * lib/unictype/ctype_punct.c: New file.
97469         * lib/unictype/ctype_space.c: New file.
97470         * lib/unictype/ctype_upper.c: New file.
97471         * lib/unictype/ctype_xdigit.c: New file.
97472         * lib/unictype/decdigit.c: New file.
97473         * lib/unictype/digit.c: New file.
97474         * lib/unictype/identsyntaxmap.h: New file.
97475         * lib/unictype/mirror.c: New file.
97476         * lib/unictype/numeric.c: New file.
97477         * lib/unictype/pr_alphabetic.c: New file.
97478         * lib/unictype/pr_ascii_hex_digit.c: New file.
97479         * lib/unictype/pr_bidi_arabic_digit.c: New file.
97480         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
97481         * lib/unictype/pr_bidi_block_separator.c: New file.
97482         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
97483         * lib/unictype/pr_bidi_common_separator.c: New file.
97484         * lib/unictype/pr_bidi_control.c: New file.
97485         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
97486         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
97487         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
97488         * lib/unictype/pr_bidi_european_digit.c: New file.
97489         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
97490         * lib/unictype/pr_bidi_left_to_right.c: New file.
97491         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
97492         * lib/unictype/pr_bidi_other_neutral.c: New file.
97493         * lib/unictype/pr_bidi_pdf.c: New file.
97494         * lib/unictype/pr_bidi_segment_separator.c: New file.
97495         * lib/unictype/pr_bidi_whitespace.c: New file.
97496         * lib/unictype/pr_byname.c: New file.
97497         * lib/unictype/pr_byname.gperf: New file.
97498         * lib/unictype/pr_combining.c: New file.
97499         * lib/unictype/pr_composite.c: New file.
97500         * lib/unictype/pr_currency_symbol.c: New file.
97501         * lib/unictype/pr_dash.c: New file.
97502         * lib/unictype/pr_decimal_digit.c: New file.
97503         * lib/unictype/pr_default_ignorable_code_point.c: New file.
97504         * lib/unictype/pr_deprecated.c: New file.
97505         * lib/unictype/pr_diacritic.c: New file.
97506         * lib/unictype/pr_extender.c: New file.
97507         * lib/unictype/pr_format_control.c: New file.
97508         * lib/unictype/pr_grapheme_base.c: New file.
97509         * lib/unictype/pr_grapheme_extend.c: New file.
97510         * lib/unictype/pr_grapheme_link.c: New file.
97511         * lib/unictype/pr_hex_digit.c: New file.
97512         * lib/unictype/pr_hyphen.c: New file.
97513         * lib/unictype/pr_id_continue.c: New file.
97514         * lib/unictype/pr_id_start.c: New file.
97515         * lib/unictype/pr_ideographic.c: New file.
97516         * lib/unictype/pr_ids_binary_operator.c: New file.
97517         * lib/unictype/pr_ids_trinary_operator.c: New file.
97518         * lib/unictype/pr_ignorable_control.c: New file.
97519         * lib/unictype/pr_iso_control.c: New file.
97520         * lib/unictype/pr_join_control.c: New file.
97521         * lib/unictype/pr_left_of_pair.c: New file.
97522         * lib/unictype/pr_line_separator.c: New file.
97523         * lib/unictype/pr_logical_order_exception.c: New file.
97524         * lib/unictype/pr_lowercase.c: New file.
97525         * lib/unictype/pr_math.c: New file.
97526         * lib/unictype/pr_non_break.c: New file.
97527         * lib/unictype/pr_not_a_character.c: New file.
97528         * lib/unictype/pr_numeric.c: New file.
97529         * lib/unictype/pr_other_alphabetic.c: New file.
97530         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
97531         * lib/unictype/pr_other_grapheme_extend.c: New file.
97532         * lib/unictype/pr_other_id_continue.c: New file.
97533         * lib/unictype/pr_other_id_start.c: New file.
97534         * lib/unictype/pr_other_lowercase.c: New file.
97535         * lib/unictype/pr_other_math.c: New file.
97536         * lib/unictype/pr_other_uppercase.c: New file.
97537         * lib/unictype/pr_paired_punctuation.c: New file.
97538         * lib/unictype/pr_paragraph_separator.c: New file.
97539         * lib/unictype/pr_pattern_syntax.c: New file.
97540         * lib/unictype/pr_pattern_white_space.c: New file.
97541         * lib/unictype/pr_private_use.c: New file.
97542         * lib/unictype/pr_punctuation.c: New file.
97543         * lib/unictype/pr_quotation_mark.c: New file.
97544         * lib/unictype/pr_radical.c: New file.
97545         * lib/unictype/pr_sentence_terminal.c: New file.
97546         * lib/unictype/pr_soft_dotted.c: New file.
97547         * lib/unictype/pr_space.c: New file.
97548         * lib/unictype/pr_terminal_punctuation.c: New file.
97549         * lib/unictype/pr_test.c: New file.
97550         * lib/unictype/pr_titlecase.c: New file.
97551         * lib/unictype/pr_unassigned_code_value.c: New file.
97552         * lib/unictype/pr_unified_ideograph.c: New file.
97553         * lib/unictype/pr_uppercase.c: New file.
97554         * lib/unictype/pr_variation_selector.c: New file.
97555         * lib/unictype/pr_white_space.c: New file.
97556         * lib/unictype/pr_xid_continue.c: New file.
97557         * lib/unictype/pr_xid_start.c: New file.
97558         * lib/unictype/pr_zero_width.c: New file.
97559         * lib/unictype/scripts.c: New file.
97560         * lib/unictype/sy_c_ident.c: New file.
97561         * lib/unictype/sy_c_whitespace.c: New file.
97562         * lib/unictype/sy_java_ident.c: New file.
97563         * lib/unictype/sy_java_whitespace.c: New file.
97565         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
97566         Unicode 5.0.0.
97567         * lib/unictype/blocks.h: Likewise.
97568         * lib/unictype/categ_C.h: Likewise.
97569         * lib/unictype/categ_Cc.h: Likewise.
97570         * lib/unictype/categ_Cf.h: Likewise.
97571         * lib/unictype/categ_Cn.h: Likewise.
97572         * lib/unictype/categ_Co.h: Likewise.
97573         * lib/unictype/categ_Cs.h: Likewise.
97574         * lib/unictype/categ_L.h: Likewise.
97575         * lib/unictype/categ_Ll.h: Likewise.
97576         * lib/unictype/categ_Lm.h: Likewise.
97577         * lib/unictype/categ_Lo.h: Likewise.
97578         * lib/unictype/categ_Lt.h: Likewise.
97579         * lib/unictype/categ_Lu.h: Likewise.
97580         * lib/unictype/categ_M.h: Likewise.
97581         * lib/unictype/categ_Mc.h: Likewise.
97582         * lib/unictype/categ_Me.h: Likewise.
97583         * lib/unictype/categ_Mn.h: Likewise.
97584         * lib/unictype/categ_N.h: Likewise.
97585         * lib/unictype/categ_Nd.h: Likewise.
97586         * lib/unictype/categ_Nl.h: Likewise.
97587         * lib/unictype/categ_No.h: Likewise.
97588         * lib/unictype/categ_P.h: Likewise.
97589         * lib/unictype/categ_Pc.h: Likewise.
97590         * lib/unictype/categ_Pd.h: Likewise.
97591         * lib/unictype/categ_Pe.h: Likewise.
97592         * lib/unictype/categ_Pf.h: Likewise.
97593         * lib/unictype/categ_Pi.h: Likewise.
97594         * lib/unictype/categ_Po.h: Likewise.
97595         * lib/unictype/categ_Ps.h: Likewise.
97596         * lib/unictype/categ_S.h: Likewise.
97597         * lib/unictype/categ_Sc.h: Likewise.
97598         * lib/unictype/categ_Sk.h: Likewise.
97599         * lib/unictype/categ_Sm.h: Likewise.
97600         * lib/unictype/categ_So.h: Likewise.
97601         * lib/unictype/categ_Z.h: Likewise.
97602         * lib/unictype/categ_Zl.h: Likewise.
97603         * lib/unictype/categ_Zp.h: Likewise.
97604         * lib/unictype/categ_Zs.h: Likewise.
97605         * lib/unictype/categ_of.h: Likewise.
97606         * lib/unictype/combining.h: Likewise.
97607         * lib/unictype/ctype_alnum.h: Likewise.
97608         * lib/unictype/ctype_alpha.h: Likewise.
97609         * lib/unictype/ctype_blank.h: Likewise.
97610         * lib/unictype/ctype_cntrl.h: Likewise.
97611         * lib/unictype/ctype_digit.h: Likewise.
97612         * lib/unictype/ctype_graph.h: Likewise.
97613         * lib/unictype/ctype_lower.h: Likewise.
97614         * lib/unictype/ctype_print.h: Likewise.
97615         * lib/unictype/ctype_punct.h: Likewise.
97616         * lib/unictype/ctype_space.h: Likewise.
97617         * lib/unictype/ctype_upper.h: Likewise.
97618         * lib/unictype/ctype_xdigit.h: Likewise.
97619         * lib/unictype/decdigit.h: Likewise.
97620         * lib/unictype/digit.h: Likewise.
97621         * lib/unictype/mirror.h: Likewise.
97622         * lib/unictype/numeric.h: Likewise.
97623         * lib/unictype/pr_alphabetic.h: Likewise.
97624         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
97625         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
97626         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
97627         * lib/unictype/pr_bidi_block_separator.h: Likewise.
97628         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
97629         * lib/unictype/pr_bidi_common_separator.h: Likewise.
97630         * lib/unictype/pr_bidi_control.h: Likewise.
97631         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
97632         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
97633         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
97634         * lib/unictype/pr_bidi_european_digit.h: Likewise.
97635         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
97636         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
97637         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
97638         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
97639         * lib/unictype/pr_bidi_pdf.h: Likewise.
97640         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
97641         * lib/unictype/pr_bidi_whitespace.h: Likewise.
97642         * lib/unictype/pr_combining.h: Likewise.
97643         * lib/unictype/pr_composite.h: Likewise.
97644         * lib/unictype/pr_currency_symbol.h: Likewise.
97645         * lib/unictype/pr_dash.h: Likewise.
97646         * lib/unictype/pr_decimal_digit.h: Likewise.
97647         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
97648         * lib/unictype/pr_deprecated.h: Likewise.
97649         * lib/unictype/pr_diacritic.h: Likewise.
97650         * lib/unictype/pr_extender.h: Likewise.
97651         * lib/unictype/pr_format_control.h: Likewise.
97652         * lib/unictype/pr_grapheme_base.h: Likewise.
97653         * lib/unictype/pr_grapheme_extend.h: Likewise.
97654         * lib/unictype/pr_grapheme_link.h: Likewise.
97655         * lib/unictype/pr_hex_digit.h: Likewise.
97656         * lib/unictype/pr_hyphen.h: Likewise.
97657         * lib/unictype/pr_id_continue.h: Likewise.
97658         * lib/unictype/pr_id_start.h: Likewise.
97659         * lib/unictype/pr_ideographic.h: Likewise.
97660         * lib/unictype/pr_ids_binary_operator.h: Likewise.
97661         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
97662         * lib/unictype/pr_ignorable_control.h: Likewise.
97663         * lib/unictype/pr_iso_control.h: Likewise.
97664         * lib/unictype/pr_join_control.h: Likewise.
97665         * lib/unictype/pr_left_of_pair.h: Likewise.
97666         * lib/unictype/pr_line_separator.h: Likewise.
97667         * lib/unictype/pr_logical_order_exception.h: Likewise.
97668         * lib/unictype/pr_lowercase.h: Likewise.
97669         * lib/unictype/pr_math.h: Likewise.
97670         * lib/unictype/pr_non_break.h: Likewise.
97671         * lib/unictype/pr_not_a_character.h: Likewise.
97672         * lib/unictype/pr_numeric.h: Likewise.
97673         * lib/unictype/pr_other_alphabetic.h: Likewise.
97674         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
97675         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
97676         * lib/unictype/pr_other_id_continue.h: Likewise.
97677         * lib/unictype/pr_other_id_start.h: Likewise.
97678         * lib/unictype/pr_other_lowercase.h: Likewise.
97679         * lib/unictype/pr_other_math.h: Likewise.
97680         * lib/unictype/pr_other_uppercase.h: Likewise.
97681         * lib/unictype/pr_paired_punctuation.h: Likewise.
97682         * lib/unictype/pr_paragraph_separator.h: Likewise.
97683         * lib/unictype/pr_pattern_syntax.h: Likewise.
97684         * lib/unictype/pr_pattern_white_space.h: Likewise.
97685         * lib/unictype/pr_private_use.h: Likewise.
97686         * lib/unictype/pr_punctuation.h: Likewise.
97687         * lib/unictype/pr_quotation_mark.h: Likewise.
97688         * lib/unictype/pr_radical.h: Likewise.
97689         * lib/unictype/pr_sentence_terminal.h: Likewise.
97690         * lib/unictype/pr_soft_dotted.h: Likewise.
97691         * lib/unictype/pr_space.h: Likewise.
97692         * lib/unictype/pr_terminal_punctuation.h: Likewise.
97693         * lib/unictype/pr_titlecase.h: Likewise.
97694         * lib/unictype/pr_unassigned_code_value.h: Likewise.
97695         * lib/unictype/pr_unified_ideograph.h: Likewise.
97696         * lib/unictype/pr_uppercase.h: Likewise.
97697         * lib/unictype/pr_variation_selector.h: Likewise.
97698         * lib/unictype/pr_white_space.h: Likewise.
97699         * lib/unictype/pr_xid_continue.h: Likewise.
97700         * lib/unictype/pr_xid_start.h: Likewise.
97701         * lib/unictype/pr_zero_width.h: Likewise.
97702         * lib/unictype/scripts.h: Likewise.
97703         * lib/unictype/scripts_byname.gperf: Likewise.
97704         * lib/unictype/sy_c_ident.h: Likewise.
97705         * lib/unictype/sy_c_whitespace.h: Likewise.
97706         * lib/unictype/sy_java_ident.h: Likewise.
97707         * lib/unictype/sy_java_whitespace.h: Likewise.
97709         * lib/unictype/Makefile: New file.
97710         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
97711         glibc.
97712         * lib/unictype/3level.h: New file, copied from glibc.
97713         * lib/unictype/3levelbit.h: New file.
97715 2007-11-11  Bruno Haible  <bruno@clisp.org>
97717         * modules/gperf: New file.
97718         * modules/iconv_open (Depends-on): Add it.
97719         (Makefile.am): Remove the GPERF definition.
97721 2007-11-11  Bruno Haible  <bruno@clisp.org>
97723         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
97724         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
97726 2007-11-11  Bruno Haible  <bruno@clisp.org>
97728         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
97729         (usage): Remove function.
97731 2007-11-11  Bruno Haible  <bruno@clisp.org>
97733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
97734         gl_FUNC_CEILF_LIBS.
97735         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
97736         gl_FUNC_CEIL_LIBS.
97737         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
97738         gl_FUNC_CEILL_LIBS.
97739         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
97740         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
97741         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
97743 2007-11-11  Bruno Haible  <bruno@clisp.org>
97745         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
97746         roundf were declared but do not exist on functions.
97747         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
97748         roundl were declared but do not exist on functions.
97749         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
97750         HAVE_FLOORL_AND_CEILL, respectively.
97751         Needed for Sun C on Solaris 10.
97753 2007-11-11  Bruno Haible  <bruno@clisp.org>
97755         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
97756         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
97757         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
97758         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
97759         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
97760         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
97761         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
97762         HAVE_DECL_ROUNDF.
97763         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
97764         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
97765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
97766         of HAVE_DECL_ROUND*.
97767         * modules/math (Makefile.am): Update.
97769 2007-11-10  Bruno Haible  <bruno@clisp.org>
97771         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
97772         ptrdiff_t as m4/intl.m4.
97774 2007-11-10  Jim Meyering  <meyering@redhat.com>
97776         Avoid link failure for the argmatch test.
97777         * tests/test-argmatch.c (usage): Define function to avoid a link
97778         failure: argmatch_die requires a usage function.
97780 2007-11-09  Bruno Haible  <bruno@clisp.org>
97782         * doc/functions/snprintf.texi: Mention BeOS deficiency.
97783         * doc/functions/vsnprintf.texi: Likewise.
97784         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
97785         with a size argument < 2.
97787 2007-11-09  Bruno Haible  <bruno@clisp.org>
97789         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
97790         buffer. Fixes an inefficiency introduced on 2007-11-03.
97792 2007-11-09  Bruno Haible  <bruno@clisp.org>
97794         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
97795         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
97797 2007-11-08  Jim Meyering  <meyering@redhat.com>
97799         Change cache variable name prefix "jm_" to "gl_" everywhere.
97800         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
97801         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
97802         * m4/uptime.m4: s/gl_/jm_/
97804 2007-11-07  Bruno Haible  <bruno@clisp.org>
97806         Update to GNU gettext 0.17.
97807         * m4/intl.m4: Update to GNU gettext 0.17.
97808         * m4/po.m4: Likewise.
97809         * modules/gettext (Files): Remove m4/ulonglong.m4.
97810         (configure.ac): Require gettext infrastructure from version 0.17.
97812 2007-11-06  Bruno Haible  <bruno@clisp.org>
97814         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
97815         symbolic values are not defined in a public header.
97816         * lib/freadable.c (freadable) [QNX]: Likewise.
97817         * lib/freadahead.c (freadahead) [QNX]: Likewise.
97818         * lib/freading.c (freading) [QNX]: Likewise.
97819         * lib/fseterr.c (fseterr) [QNX]: Likewise.
97820         * lib/fwritable.c (fwritable) [QNX]: Likewise.
97821         * lib/fwriting.c (fwriting) [QNX]: Likewise.
97822         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
97823         Reported by Alain Magloire.
97825         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
97827 2007-11-05  Bruno Haible  <bruno@clisp.org>
97829         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
97830         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
97831         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
97832         Reported by Eric Blake.
97834 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97835             Bruno Haible  <bruno@clisp.org>
97837         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
97838         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
97839         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
97840         (malloc): Undefine also before including <stdlib.h>.
97841         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
97842         Needed on OSF/1 4.0.
97844 2007-11-05  Jim Meyering  <meyering@redhat.com>
97846         git-version-gen: sync from coreutils.
97847         * build-aux/git-version-gen: Add comments.
97848         Change the first '-' to '.' in the snapshot version string,
97849         e.g., 6.9-377-08144 -> 6.9.377-08144
97850         Remove first parameter.
97851         Don't declare a version "-dirty" merely because a time
97852         stamp has changed.
97854 2007-11-04  Bruno Haible  <bruno@clisp.org>
97856         * lib/lock.h: Protect all macro definitions containing an 'if'
97857         statement through a "do { ... } while (0)".
97858         * lib/tls.h: Likewise.
97860 2007-11-04  Bruno Haible  <bruno@clisp.org>
97862         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
97864 2007-11-04  Bruno Haible  <bruno@clisp.org>
97866         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
97867         * modules/fprintf-posix (Depends-on): Add nocrash.
97868         * modules/snprintf-posix (Depends-on): Likewise.
97869         * modules/sprintf-posix (Depends-on): Likewise.
97870         * modules/vasnprintf-posix (Depends-on): Likewise.
97871         * modules/vasprintf-posix (Depends-on): Likewise.
97872         * modules/vfprintf-posix (Depends-on): Likewise.
97873         * modules/vsnprintf-posix (Depends-on): Likewise.
97874         * modules/vsprintf-posix (Depends-on): Likewise.
97875         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
97876         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
97877         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97878         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
97879         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
97880         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
97881         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
97883 2007-11-04  Bruno Haible  <bruno@clisp.org>
97885         * modules/nocrash: New file.
97886         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
97887         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
97889 2007-11-04  Bruno Haible  <bruno@clisp.org>
97891         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
97892         precision handling.
97893         * tests/test-vasprintf-posix.c (test_function): Likewise.
97894         * tests/test-snprintf-posix.h (test_function): Likewise.
97895         * tests/test-sprintf-posix.h (test_function): Likewise.
97897         Fix *printf behaviour for large precisions on mingw and BeOS.
97898         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
97899         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
97900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
97901         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97903         gl_PRINTF_PRECISION and test its result. Invoke
97904         gl_PREREQ_VASNPRINTF_PRECISION.
97905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97907         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97908         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97909         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97910         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97911         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97912         * doc/functions/fprintf.texi: Update.
97913         * doc/functions/printf.texi: Update.
97914         * doc/functions/snprintf.texi: Update.
97915         * doc/functions/sprintf.texi: Update.
97916         * doc/functions/vfprintf.texi: Update.
97917         * doc/functions/vprintf.texi: Update.
97918         * doc/functions/vsnprintf.texi: Update.
97919         * doc/functions/vsprintf.texi: Update.
97921 2007-11-04  Bruno Haible  <bruno@clisp.org>
97923         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
97925 2007-11-04  Bruno Haible  <bruno@clisp.org>
97927         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
97928         Reported by Sylvain Beucler <beuc@gnu.org>.
97930 2007-11-03  Bruno Haible  <bruno@clisp.org>
97932         * tests/test-fprintf-posix2.sh: New file.
97933         * tests/test-fprintf-posix2.c: New file.
97934         * modules/fprintf-posix-tests (Files): Add them.
97935         (TESTS): Add test-fprintf-posix2.sh.
97936         (configure.ac): Check for getrlimit and setrlimit.
97937         (check_PROGRAMS): Add test-fprintf-posix2.
97939         * tests/test-printf-posix2.sh: New file.
97940         * tests/test-printf-posix2.c: New file.
97941         * modules/printf-posix-tests (Files): Add them.
97942         (TESTS): Add test-printf-posix2.sh.
97943         (configure.ac): Check for getrlimit and setrlimit.
97944         (check_PROGRAMS): Add test-printf-posix2.
97946         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
97947         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
97948         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
97949         (decode_double): New function, copied from decode_long_double.
97950         (scale10_round_decimal_decoded): New function, extracted from
97951         scale10_round_decimal_long_double.
97952         (scale10_round_decimal_long_double): Use it.
97953         (scale10_round_decimal_double): New function.
97954         (floorlog10): New function.
97955         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
97956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
97957         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97959         gl_PRINTF_ENOMEM and test its result. Invoke
97960         gl_PREREQ_VASNPRINTF_ENOMEM.
97961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97965         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97966         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97968         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
97969         * modules/snprintf-posix (Depends-on): Likewise.
97970         * modules/sprintf-posix (Depends-on): Likewise.
97971         * modules/vasnprintf-posix (Depends-on): Likewise.
97972         * modules/vasprintf-posix (Depends-on): Likewise.
97973         * modules/vfprintf-posix (Depends-on): Likewise.
97974         * modules/vsnprintf-posix (Depends-on): Likewise.
97975         * modules/vsprintf-posix (Depends-on): Likewise.
97976         * doc/functions/fprintf.texi: Update.
97977         * doc/functions/printf.texi: Update.
97978         * doc/functions/snprintf.texi: Update.
97979         * doc/functions/sprintf.texi: Update.
97980         * doc/functions/vfprintf.texi: Update.
97981         * doc/functions/vprintf.texi: Update.
97982         * doc/functions/vsnprintf.texi: Update.
97983         * doc/functions/vsprintf.texi: Update.
97985 2007-11-03  Bruno Haible  <bruno@clisp.org>
97987         * modules/frexp-nolibm-tests: New file.
97989         * modules/frexp-nolibm: New file.
97990         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
97992 2007-11-03  Bruno Haible  <bruno@clisp.org>
97994         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
97995         value is C99 compliant.
97996         Needed for OSF/1 5.1.
97998 2007-11-03  Bruno Haible  <bruno@clisp.org>
98000         Fix out-of-memory handling of vasnprintf.
98001         * lib/printf-parse.c: Include <errno.h>.
98002         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
98003         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
98004         is already set.
98006 2007-11-02  Eric Blake  <ebb9@byu.net>
98008         Fix tests on cygwin.
98009         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
98011 2007-11-01  Bruno Haible  <bruno@clisp.org>
98013         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
98014         warning.
98015         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
98016         needed for POSIX compatibility.
98018 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98020         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
98021         for compatibility with GNU.
98023 2007-11-01  Bruno Haible  <bruno@clisp.org>
98025         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
98026         (putenv): Renamed from rpl_putenv. Change argument type from
98027         'const char *' to 'char *'.
98028         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
98029         of defining putenv in config.h, just set REPLACE_PUTENV.
98030         * modules/putenv (Depends-on): Add stdlib.
98031         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
98032         (Include): Use <stdlib.h>.
98033         * lib/stdlib.in.h (putenv): New declaration.
98034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
98035         REPLACE_PUTENV.
98036         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
98037         REPLACE_PUTENV.
98038         Needed for MacOS X 10.5.0.
98039         Reported by Peter O'Gorman <peter@pogma.com>.
98041 2007-11-01  Jim Meyering  <meyering@redhat.com>
98043         Treat an empty date string exactly like "0".
98044         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
98045         if the remaining date string (to be parsed) is empty, use "0".
98046         Reported by Mischa Molhoek and discussed in this thread:
98047         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
98049 2007-10-31  Bruno Haible  <bruno@clisp.org>
98051         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
98052         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
98053         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
98054         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
98055         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
98056         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
98058 2007-10-31  Bruno Haible  <bruno@clisp.org>
98060         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
98061         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
98062         (AC_TYPE_LONG_LONG_INT): Use it.
98063         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
98064         it as well.
98065         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
98066         to m4/longlong.m4.
98067         * modules/stdint (Files): Remove m4/ulonglong.m4.
98068         * modules/strtoull (Files): Use m4/longlong.m4 instead of
98069         m4/ulonglong.m4.
98070         * modules/strtoumax (Files): Likewise.
98072 2007-10-30  Bruno Haible  <bruno@clisp.org>
98074         * modules/xvasprintf-posix: New file.
98075         Suggested by Eric Blake.
98077 2007-10-30  Bruno Haible  <bruno@clisp.org>
98079         * modules/xprintf-posix-tests: New file.
98080         * tests/test-xprintf-posix.sh: New file.
98081         * tests/test-xprintf-posix.c: New file.
98082         * tests/test-xfprintf-posix.c: New file.
98084         * modules/xprintf-posix: New file.
98086 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98088         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
98089         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
98090         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
98092 2007-10-29  Bruno Haible  <bruno@clisp.org>
98094         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
98095         contain the special marker '_cv_'.
98096         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
98097         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
98098         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
98099         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
98100         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
98101         Reported by Ralf Wildenhues.
98103 2007-10-29  Bruno Haible  <bruno@clisp.org>
98105         * gnulib-tool (func_import): When --lgpl is not specified, set
98106         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
98107         GPLv3.
98108         Reported by Simon Josefsson.
98110 2007-10-28  Bruno Haible  <bruno@clisp.org>
98112         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
98113         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
98114         HAVE_DECL_ISFINITE.
98115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98116         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
98117         HAVE_DECL_ISFINITE.
98119 2007-10-28  Bruno Haible  <bruno@clisp.org>
98121         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
98122         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
98124 2007-10-28  Bruno Haible  <bruno@clisp.org>
98126         Fix link errors with Sun C 5.0 on Solaris 10.
98127         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
98128         function is declared but not present in the compiler's libm.
98129         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
98130         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
98131         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
98132         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
98133         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
98134         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
98135         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
98136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98137         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
98138         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
98139         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
98140         HAVE_DECL_FLOORL.
98142 2007-10-28  Bruno Haible  <bruno@clisp.org>
98144         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
98145         gl_FUNC_FLOORL. Cache the result.
98146         (gl_FUNC_FLOORL): Use it.
98147         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
98148         gl_FUNC_CEILL. Cache the result.
98149         (gl_FUNC_CEILL): Use it.
98151         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
98152         gl_FUNC_FLOOR. Cache the result.
98153         (gl_FUNC_FLOOR): Use it.
98154         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
98155         gl_FUNC_CEIL. Cache the result.
98156         (gl_FUNC_CEIL): Use it.
98158         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
98159         gl_FUNC_FLOORF. Cache the result.
98160         (gl_FUNC_FLOORF): Use it.
98161         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
98162         gl_FUNC_CEILF. Cache the result.
98163         (gl_FUNC_CEILF): Use it.
98165 2007-10-28  Bruno Haible  <bruno@clisp.org>
98167         * gnulib-tool: Allow specifying the LGPL version number through
98168         --lgpl=2 or --lgpl=3.
98169         (func_usage): Document --lgpl with argument.
98170         Handle --lgpl=... arguments.
98171         (func_import): Recognize also gl_LGPL calls with an argument. When
98172         --lgpl=2 is used and the module's license is just LGPL, report an
98173         error. Set sed_transform_lib_file according to the lgpl variable. In
98174         the generated files, use --lgpl or gl_LGPL invocations with argument,
98175         if necessary.
98176         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
98177         an LGPv2+ license.
98178         * doc/gnulib-tool.texi (Modified imports): Update explanation of
98179         gl_LGPL macro.
98181 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98182             Bruno Haible  <bruno@clisp.org>
98184         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
98185         (u16_uctomb_aux): Likewise.
98186         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
98187         !HAVE_INLINE.
98188         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
98190 2007-10-28  Bruno Haible  <bruno@clisp.org>
98192         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
98193         Invoke AM_GETTEXT_OPTION if it exists.
98194         * modules/vasprintf: Likewise.
98195         * modules/verror: Likewise.
98196         * modules/xprintf: Likewise.
98197         * modules/xvasprintf: Likewise.
98199 2007-10-27  Ben Pfaff  <blp@gnu.org>
98201         * lib/math.in.h: Define isfinite macro and prototypes for
98202         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
98203         implementations.
98204         * m4/math_h.m4: New substitutions for isfinite module.
98205         * lib/isfinite.c: New file.
98206         * m4/isfinite.m4: New file.
98207         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
98208         * modules/isfinite: New file.
98209         * modules/isfinite-tests: New file.
98210         * tests/tests-isfinite.c: New file.
98211         * doc/functions/isfinite.texi: Mention isfinite module.
98212         * MODULES.html.sh: Mention new module.
98214 2007-10-27  Ben Pfaff  <blp@gnu.org>
98216         Ralf Wildenhues reported that Tru64 4.0D declares the round
98217         functions but does not have definitions.
98218         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
98219         cannot be found in any library, set the output variable to
98220         "missing" instead of "".
98221         * m4/round.m4: Also use our substitute if we cannot find round in
98222         any library, even if it is declared.
98223         * m4/roundf.m4: Likewise for roundf.
98224         * m4/roundl.m4: Likewise for roundl.
98225         * lib/math.in.h: Undefine roundf, round, roundl before defining
98226         their replacements, to allow for hypothetical systems where these
98227         may be defined as macros but not available in libraries.
98229 2007-10-27  Bruno Haible  <bruno@clisp.org>
98231         * doc/gnulib.texi: Invoke @firstparagraphindent.
98232         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
98233         changes in gnulib.
98234         (Source changes): New section.
98236 2007-10-26  Bruno Haible  <bruno@clisp.org>
98238         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
98239         borrowed from autoconf.
98241 2007-10-26  Bruno Haible  <bruno@clisp.org>
98243         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
98244         strerror returned the empty string. Needed on HP-UX 11.00.
98246 2007-10-24  Micah Cowan  <micah@cowan.name>
98248         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
98249         * build-aux/bootstrap: Remove support for now-unnecessary option,
98250         --cvs-user, and envvars CVS_USER, CVS_RSH.
98252 2007-10-24  Jim Meyering  <meyering@redhat.com>
98254         Avoid diagnostics from sha1sum when there is no cached checksum.
98255         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
98256         if the po.s1 file hasn't been created yet.
98258         * build-aux/bootstrap: Sync from coreutils:
98259         2007-10-24  Jim Meyering  <meyering@redhat.com>
98260         Get gnulib from the git repository, not from an obsolete cvs one.
98261         * build-aux/bootstrap: Suggestion from Micah Cowan.
98262         2007-10-04  Jim Meyering  <jim@meyering.net>
98263         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
98264         (update_po_files): Work also when there are no .po files in po/.
98266 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
98268         * README: Append ".git" to git and cg examples.
98269         Problem reported by Benoit Sigoure.
98271 2007-10-23  Micah Cowan  <micah@cowan.name>
98273         * users.txt: Add wget.
98275 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98277         Fix linking of some unistdio tests on FreeBSD.
98278         * modules/unistdio/u16-vsnprintf-tests
98279         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
98280         * modules/unistdio/u16-vsprintf-tests
98281         (test_u16_vsnprintf1_LDADD): Likewise.
98282         * modules/unistdio/u32-vsnprintf-tests
98283         (test_u32_vsnprintf1_LDADD): Likewise.
98284         * modules/unistdio/u32-vsprintf-tests
98285         (test_u32_vsprintf1_LDADD): Likewise.
98286         * modules/unistdio/u8-vsnprintf-tests
98287         (test_u8_vsnprintf1_LDADD): Likewise.
98288         * modules/unistdio/u8-vsprintf-tests
98289         (test_u8_vsprintf1_LDADD): Likewise.
98290         * modules/unistdio/ulc-vsnprintf-tests
98291         (test_ulc_vsnprintf1_LDADD): Likewise.
98292         * modules/unistdio/ulc-vsprintf-tests
98293         (test_ulc_vsprintf1_LDADD): Likewise.
98295         Fix linking of some uniconv tests on FreeBSD.
98296         * modules/uniconv/u16-conv-from-enc-tests
98297         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
98298         * modules/uniconv/u16-conv-to-enc-tests
98299         (test_u16_conv_to_enc_LDADD): Likewise.
98300         * modules/uniconv/u16-strconv-from-enc-tests
98301         (test_u16_strconv_from_enc_LDADD): Likewise.
98302         * modules/uniconv/u16-strconv-to-enc-tests
98303         (test_u16_strconv_to_enc_LDADD): Likewise.
98304         * modules/uniconv/u32-conv-from-enc-tests
98305         (test_u32_conv_from_enc_LDADD): Likewise.
98306         * modules/uniconv/u32-conv-to-enc-tests
98307         (test_u32_conv_to_enc_LDADD): Likewise.
98308         * modules/uniconv/u32-strconv-from-enc-tests
98309         (test_u32_strconv_from_enc_LDADD): Likewise.
98310         * modules/uniconv/u32-strconv-to-enc-tests
98311         (test_u32_strconv_to_enc_LDADD): Likewise.
98312         * modules/uniconv/u8-conv-from-enc-tests
98313         (test_u8_conv_from_enc_LDADD): Likewise.
98314         * modules/uniconv/u8-conv-to-enc-tests
98315         (test_u8_conv_to_enc_LDADD): Likewise.
98316         * modules/uniconv/u8-strconv-from-enc-tests
98317         (test_u8_strconv_from_enc_LDADD): Likewise.
98318         * modules/uniconv/u8-strconv-to-enc-tests
98319         (test_u8_strconv_to_enc_LDADD): Likewise.
98321 2007-10-22  Bruno Haible  <bruno@clisp.org>
98323         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
98324         size.
98326 2007-10-22  Eric Blake  <ebb9@byu.net>
98328         Tweak x*printf documentation.
98329         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
98330         variable name and comments.
98331         Suggested by Bruno Haible.
98333 2007-10-22  Bruno Haible  <bruno@clisp.org>
98335         * lib/acl.c (copy_acl): Fix file name in comment.
98337 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98339         Fix Tru64 problem with stdbool.h.
98340         * lib/stdbool.in.h (false, true):
98341         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
98342         Don't declare as an enum in this situation; it runs afoul of Tru64.
98343         Problem reported by Steven M. Schweda in
98344         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
98346 2007-10-22  Eric Blake  <ebb9@byu.net>
98348         Also wrap vf?printf.
98349         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
98350         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
98351         (xvprintf, xvfprintf): New functions.
98353 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98355         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
98356         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
98358         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
98359         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
98361 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98363         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
98364         by Bruno Haible.
98366 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98368         * lib/getloadavg.c
98369         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
98370         Undef `sys' after including sys/table.h, for Tru64 4.0D.
98372         * tests/test-i-ring.c: Work for C89.
98374 2007-10-22  Bruno Haible  <bruno@clisp.org>
98376         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
98377         -1u, in preprocessor expression, so that we don't test for the bug
98378         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
98379         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
98381 2007-10-22  Eric Blake  <ebb9@byu.net>
98383         * tests/test-yesno.sh: Silence stderr during test.
98385 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98387         * modules/crypto/gc-camellia: New file.
98389         * m4/gc-camellia.m4: New file.
98391         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
98393         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
98395 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98397         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
98398         --help to stdout.  Reported by sms@antinode.org (Steven
98399         M. Schweda).
98401 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98403         * users.txt: Fix link to libksba.
98405 2007-10-21  Ben Pfaff  <blp@gnu.org>
98407         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
98408         round.c roundf implementation that depends on floorf and ceilf to
98409         be tested unconditionally.
98411 2007-10-21  Ben Pfaff  <blp@gnu.org>
98413         * m4/check-libm-func.m4: Removed.
98414         * m4/check-math-lib.m4: New file.
98415         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
98416         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
98417         definition and lack of AC_LIBOBJ([roundf]).
98418         * m4/roundl.m4: Ditto, and similarly for roundl.
98419         * modules/round: Reference new m4 file.
98420         * modules/roundf: Ditto.
98421         * modules/roundl: Ditto.
98422         * tests/test-round2.c (main): Use ROUND instead of round.
98423         Bug report from Bruno Haible.
98425 2007-10-21  Bruno Haible  <bruno@clisp.org>
98427         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
98428         context.
98430 2007-10-21  Bruno Haible  <bruno@clisp.org>
98432         * tests/test-wcwidth.c (main): Allow negative result for some control
98433         characters.
98435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
98436         Needed on OSF/1 5.1.
98438 2007-10-21  Bruno Haible  <bruno@clisp.org>
98440         * tests/test-floorf1.c: Include isnanf.h.
98441         (main): Use isnanf() instead of isnan().
98442         * tests/test-ceilf1.c: Include isnanf.h.
98443         (main): Use isnanf() instead of isnan().
98444         * tests/test-truncf1.c: Include isnanf.h.
98445         (main): Use isnanf() instead of isnan().
98446         * tests/test-roundf1.c: Include isnanf.h.
98447         (main): Use isnanf() instead of isnan().
98449 2007-10-21  Eric Blake  <ebb9@byu.net>
98451         * users.txt: Update URL for m4.
98453 2007-10-21  Bruno Haible  <bruno@clisp.org>
98455         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
98457 2007-10-21  Bruno Haible  <bruno@clisp.org>
98459         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
98460         Git's management files if the CVS files are not present.
98462 2007-10-20  Bruno Haible  <bruno@clisp.org>
98464         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
98465         gcc-3.4.x.
98467 2007-10-20  Ben Pfaff  <blp@gnu.org>
98469         * lib/math.in.h: Declare round, roundf, roundl if we are providing
98470         implementations.
98471         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
98472         * lib/round.c: New file.
98473         * lib/roundf.c: New file.
98474         * lib/roundl.c: New file.
98475         * m4/round.m4: New file.
98476         * m4/roundf.m4: New file.
98477         * m4/roundl.m4: New file.
98478         * m4/check-libm-func-m4: New file.
98479         * modules/math: Replace round, roundf, roundl related @VARS@ in
98480         math.in.h.
98481         * modules/round: New file.
98482         * modules/round-tests: New file.
98483         * modules/roundf: New file.
98484         * modules/roundf-tests: New file.
98485         * modules/roundl: New file.
98486         * modules/roundl-tests: New file.
98487         * tests/test-round1.c: New file.
98488         * tests/test-round2.c: New file.
98489         * tests/test-roundf1.c: New file.
98490         * tests/test-roundf2.c: New file.
98491         * tests/test-roundl.c: New file.
98492         * doc/functions/round.texi: Mention round module.
98493         * doc/functions/roundf.texi: Mention roundf module.
98494         * doc/functions/roundl.texi: Mention roundl module.
98495         * MODULES.html.sh: Mention new modules.
98496         Thanks to Bruno Haible for suggestions.
98498 2007-10-20  Jim Meyering  <meyering@redhat.com>
98500         * lib/xprintf.c: Include <config.h> unconditionally.
98502         Change xprintf's license to GPL.
98503         * modules/xprintf (License): s/LGPL/GPL/, since this module
98504         depends on modules (exit and exitfail) which are GPL.
98505         Suggestion from Bruno Haible.
98507         xprintf fixes.
98508         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
98509         Use a clearer diagnostic.
98510         Patch from Bruno Haible.
98512 2007-10-20  Bruno Haible  <bruno@clisp.org>
98514         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
98515         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
98516         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98518 2007-10-20  Bruno Haible  <bruno@clisp.org>
98520         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
98521         precision in the comparison result > x - 1 or similar.
98522         * tests/test-ceilf2.c (correct_result_p): Likewise.
98523         * tests/test-truncf2.c (correct_result_p): Likewise.
98524         * tests/test-trunc2.c (correct_result_p): Likewise.
98525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98527 2007-10-20  Bruno Haible  <bruno@clisp.org>
98529         * modules/ceil: New file.
98530         * m4/ceil.m4: New file.
98531         * doc/functions/ceil.texi: Mention the 'ceil' module.
98533 2007-10-20  Bruno Haible  <bruno@clisp.org>
98535         * modules/floor: New file.
98536         * m4/floor.m4: New file.
98537         * doc/functions/floor.texi: Mention the 'floor' module.
98539 2007-10-20  Bruno Haible  <bruno@clisp.org>
98541         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
98542         of %a.
98543         * modules/floorf-tests (Depends-on): Likewise.
98544         * modules/truncf-tests (Depends-on): Likewise.
98545         * modules/trunc-tests (Depends-on): Likewise.
98546         Reported by Ben Pfaff.
98548 2007-10-19  Jim Meyering  <meyering@redhat.com>
98550         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
98551         Don't bother testing specific errno values.  Just test ferror.
98553         New module: xprintf
98554         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
98556 2007-10-19  Bruno Haible  <bruno@clisp.org>
98558         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
98559         syntax.
98560         * modules/javaexec (Makefile.am): Likewise.
98561         * modules/relocatable-prog (Makefile.am): Likewise.
98562         Suggested by Jim Meyering.
98564 2007-10-18  Bruno Haible  <bruno@clisp.org>
98566         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
98567         Reported by Jim Meyering.
98569 2007-10-18  Eric Blake  <ebb9@byu.net>
98571         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
98573 2007-10-18  Bruno Haible  <bruno@clisp.org>
98575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
98576         the format string into writable memory. Needed in Fortify conditions.
98578 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
98579             Bruno Haible  <bruno@clisp.org>
98581         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
98582         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
98583         * modules/trim (Depends-on): Add mbchar.
98584         (configure.ac): Add gl_FUNC_MBRTOWC.
98585         (Makefile.am): Augment lib_SOURCES.
98587 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
98589         Modify glob.c to use fstatat and dirfd, to simplify it.
98590         Suggested by Eric Blake.
98591         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
98592         Don't include <stdbool.h>; not used.
98593         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
98594         (link_exists_p): Simplify implementation, since we can now assume
98595         dirfd and fstatat.
98596         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
98598 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98600         * gnulib-tool (func_get_dependencies): Fix sed script to
98601         match only tests.
98603 2007-10-17  Bruno Haible  <bruno@clisp.org>
98605         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
98606         allow locale names without encoding suffix.
98607         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
98608         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98610 2007-10-16  Bruno Haible  <bruno@clisp.org>
98612         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
98613         * lib/getgroups.c (getgroups): Likewise.
98614         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
98616 2007-10-16  Bruno Haible  <bruno@clisp.org>
98618         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
98619         * modules/malloc-posix (License): Likewise.
98620         * modules/realloc-posix (License): Likewise.
98621         * modules/calloc-posix (License): Likewise.
98622         * modules/intprops (License): Change from GPL to LGPL, with
98623         Paul Eggert's approval.
98625 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
98627         Merge glibc changes into lib/glob.c.
98629         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
98630         2007-10-15 04:59:03 UTC.  Here are the changes:
98632         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
98634         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
98636         * lib/glob.c: Add some branch prediction throughout.
98638         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
98640         [BZ #5103]
98641         * lib/glob.c (glob): Recognize patterns starting \/.
98643         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
98645         [BZ #3996]
98646         * lib/glob.c (attribute_hidden): Define if not defined.
98647         (glob): Unescape dirname, filename or username when needed and not
98648         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
98649         is NULL.  Handle unescaped [ in pattern without closing ].
98650         Don't pass GLOB_CHECK down to recursive glob for directories.
98651         (__glob_pattern_type): New function.
98652         (__glob_pattern_p): Implement using __glob_pattern_type.
98653         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
98654         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
98655         Remove unreachable code.
98657         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
98659         * lib/glob.c (glob_in_dir): Add some comments and asserts to
98660         explain why there are no leaks.
98662         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
98664         [BZ #3253]
98665         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
98666         time, rather allocate increasingly bigger arrays of pointers, if
98667         possible with alloca, if too large with malloc.
98669 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
98671         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
98672         Problem reported by H.Merijn Brand in
98673         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
98674         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
98675         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
98677 2007-10-15  Bruno Haible  <bruno@clisp.org>
98679         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
98680         with explicit rpl_ prefix.
98681         * lib/fopen.c (fopen): Likewise.
98682         * lib/freopen.c (freopen): Likewise.
98683         * lib/iconv.c (iconv): Likewise.
98684         * lib/iconv_close.c (iconv_close): Likewise.
98686 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98688         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
98690 2007-10-15  Bruno Haible  <bruno@clisp.org>
98692         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
98693         <stddef.h> instead of <stdlib.h> since we only need NULL.
98694         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98696 2007-10-15  Bruno Haible  <bruno@clisp.org>
98698         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
98699         Replace paragraph talking about LIBOBJS.
98700         Reported by Colin Watson <cjwatson@debian.org>.
98702 2007-10-15  Bruno Haible  <bruno@clisp.org>
98704         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
98705         <stdlib.h> before using NULL.
98707 2007-10-15  Simon Josefsson  <simon@josefsson.org>
98709         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
98710         Reported by Albert Chin <china@thewrittenword.com>.
98712 2007-10-14  Bruno Haible  <bruno@clisp.org>
98714         * modules/iconv_open-utf-tests: New file.
98715         * tests/test-iconv-utf.c: New file.
98717         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
98718         * modules/iconv_open-utf: New file.
98719         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
98720         (iconv, iconv_close): New declarations.
98721         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
98722         be defined.
98723         (iconv_open): Add special handling of conversion between UTF-8 and
98724         UTF-{16,32}{BE,LE}.
98725         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
98726         * lib/iconv_close.c: New file.
98727         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
98728         gl_FUNC_ICONV_OPEN.
98729         (gl_FUNC_ICONV_OPEN): Use it.
98730         (gl_FUNC_ICONV_OPEN_UTF): New macro.
98731         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
98732         and REPLACE_ICONV_UTF.
98733         * modules/iconv_open (Depends-on): Add c-strcase.
98734         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
98735         ICONV_CONST.
98736         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
98738 2007-10-13  Albert Chin  <china@thewrittenword.com>
98739             Bruno Haible  <bruno@clisp.org>
98741         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
98742         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
98744 2007-10-13  Bruno Haible  <bruno@clisp.org>
98746         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
98747         defined, use the ISO C99 inline semantics.
98748         * lib/argp.h (ARGP_EI): Likewise.
98750 2007-10-13  Bruno Haible  <bruno@clisp.org>
98752         Handle 'inline' change in gcc 4.3.0.
98753         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
98754         argp_fmtstream_write, argp_fmtstream_set_lmargin,
98755         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
98756         argp_fmtstream_point): Disable 'extern' declaration if the function
98757         definition is going to be provided inline.
98758         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
98759         semantics, not the ISO C99 inline semantics.
98760         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
98761         'extern' declaration if the function definition is going to be provided
98762         inline.
98763         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
98764         the GNU C inline semantics, not the ISO C99 inline semantics. With
98765         GCC 4.2, avoid a warning.
98767 2007-10-13  Bruno Haible  <bruno@clisp.org>
98769         * lib/freading.h (freading): Enable the use of __freading for
98770         glibc >= 2.7.
98771         * lib/freading.c (freading): Likewise.
98773 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
98775         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
98776         "warning: C99 inline functions are not supported; using GNU89".
98778 2007-10-12  Bruno Haible  <bruno@clisp.org>
98780         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
98781         of 2.
98782         * tests/test-ceilf2.c: New file.
98783         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
98785         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
98786         * modules/ceilf-tests: Update.
98788 2007-10-12  Bruno Haible  <bruno@clisp.org>
98790         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
98791         of 2.
98792         * tests/test-floorf2.c: New file.
98793         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
98795         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
98796         * modules/floorf-tests: Update.
98798 2007-10-12  Bruno Haible  <bruno@clisp.org>
98800         * tests/test-trunc2.c: New file.
98801         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
98803         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
98804         * modules/trunc-tests: Update.
98806 2007-10-12  Bruno Haible  <bruno@clisp.org>
98808         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
98809         of 2.
98810         * tests/test-truncf2.c: New file.
98811         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
98813         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
98814         * modules/truncf-tests: Update.
98816 2007-10-11  Eric Blake  <ebb9@byu.net>
98818         Don't claim strerror is broken on Interix.
98819         * doc/functions/strerror.texi (strerror): Known broken systems are
98820         now Solaris 8, and not Interix.
98821         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
98822         Interix on cross-compile.
98823         Reported by Martin Koeppe in
98824         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
98826 2007-10-11  Bruno Haible  <bruno@clisp.org>
98828         * modules/i-ring-tests: New file.
98829         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
98830         instead of assert.
98832 2007-10-11  Bruno Haible  <bruno@clisp.org>
98834         * modules/filenamecat-tests: New file.
98835         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
98836         * lib/filenamecat.c: Remove test code.
98838 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
98840         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
98842         * lib/strerror.c: Include <string.h> always, to test interface,
98843         and to remove the need for the dummy.
98844         Include intprops.h to compute width instead of doing it ourselves
98845         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
98846         (strerror): Define it to return NULL if there's no system strerror.
98847         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
98848         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
98849         ancient pre-strerror Unix systems well any more.  Saying "unknown
98850         system error" is enough.
98851         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
98852         simpler strerror.c implementation.
98853         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
98854         Simplify the tests to reflect the simpler strerror implementation.
98855         * modules/strerror (Depends-on): Add intprops.
98857 2007-10-09  Eric Blake  <ebb9@byu.net>
98859         Silence test-fpending.
98860         * modules/fpending-tests (Files): Add wrapper script.
98861         * tests/test-fpending.sh: New file.
98863 2007-10-09  Bruno Haible  <bruno@clisp.org>
98865         * MODULES.html.sh (func_module): Don't create a hyperlink for
98866         function names like 'printf_frexp'.
98867         (Misc): Add crc, memxor.
98868         (Characteristics of floating types): New section.
98869         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
98870         isnanf-nolibm, signbit, trunc, truncf, truncl.
98871         (Enhancements for ISO C 99 functions): New subsection Input/output.
98872         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
98873         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
98874         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
98875         (Compatibility checks for POSIX:2001 functions): Add clock-time.
98876         (Enhancements for POSIX:2001 functions): Add chdir-long.
98877         (File system functions): Add areadlink, chdir-safer, read-file.
98878         Remove cycle-check.
98879         (File system as inode set): New section.
98880         (Date and time): Add gethrxtime.
98881         (Multithreading): Add openmp.
98882         (Internationalization functions): Add localename.
98883         (Unicode string functions): Add unistr/u*-mbsnlen.
98884         (Support for maintaining and releasing projects): Add git-version-gen.
98885         (Lone files): Remove directories.
98887 2007-10-08  Ben Pfaff  <blp@gnu.org>
98889         * lib/xmalloca.h: Fix typo in comment.
98891 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
98893         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
98894         when avoiding problems with integer overflow.  Use a portable test
98895         instead.
98897 2007-10-08  Simon Josefsson  <simon@josefsson.org>
98899         * modules/dummy (License): Change to LGPLv2+.
98900         * modules/float (License): Likewise
98901         * modules/realloc (License): Likewise
98902         * modules/stdlib (License): Likewise
98904 2007-10-07  Bruno Haible  <bruno@clisp.org>
98906         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
98907         * floor.c (TWO_MANT_DIG): Likewise.
98908         * ceil.c (TWO_MANT_DIG): Likewise.
98909         Reported by Ben Pfaff.
98911 2007-10-07  Bruno Haible  <bruno@clisp.org>
98913         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
98914         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
98915         * lib/frexp.c (FUNC): Likewise.
98916         * lib/printf-frexp.h (printf_frexp): Likewise.
98917         * lib/printf-frexpl.h (printf_frexpl): Likewise.
98918         * lib/printf-frexp.c (FUNC): Likewise.
98919         Suggested by Jim Meyering.
98921 2007-10-07  Jim Meyering  <meyering@redhat.com>
98923         Make xnanosleep's integer overflow test more robust.
98924         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
98925         so that gcc-4.3.0 doesn't optimize away this test for overflow.
98927 2007-10-07  Bruno Haible  <bruno@clisp.org>
98929         * NEWS: Mention the license change.
98931         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
98932         abbreviations in the modules files.
98934         Change copyright notice from GPLv2+ to GPLv3+.
98935         * README: Change copyright notice.
98936         * MODULES.html.sh: Likewise.
98937         * build-aux/bootstrap.conf: Likewise.
98938         * build-aux/config.libpath: Likewise.
98939         * build-aux/csharpcomp.sh.in: Likewise.
98940         * build-aux/csharpexec.sh.in: Likewise.
98941         * build-aux/install-reloc: Likewise.
98942         * build-aux/javacomp.sh.in: Likewise.
98943         * build-aux/javaexec.sh.in: Likewise.
98944         * build-aux/ldd.sh.in: Likewise.
98945         * build-aux/reloc-ldflags: Likewise.
98946         * build-aux/relocatable.sh.in: Likewise.
98947         * build-aux/x-to-1.in: Likewise.
98948         * check-module: Likewise.
98949         * config/srclistvars.sh: Likewise.
98950         * gnulib-tool: Likewise.
98951         * lib/acl-internal.h: Likewise.
98952         * lib/acl.c: Likewise.
98953         * lib/acl.h: Likewise.
98954         * lib/acl_entries.c: Likewise.
98955         * lib/areadlink-with-size.c: Likewise.
98956         * lib/areadlink.c: Likewise.
98957         * lib/areadlink.h: Likewise.
98958         * lib/argmatch.c: Likewise.
98959         * lib/argmatch.h: Likewise.
98960         * lib/argp-ba.c: Likewise.
98961         * lib/argp-eexst.c: Likewise.
98962         * lib/argp-fmtstream.c: Likewise.
98963         * lib/argp-fmtstream.h: Likewise.
98964         * lib/argp-fs-xinl.c: Likewise.
98965         * lib/argp-help.c: Likewise.
98966         * lib/argp-namefrob.h: Likewise.
98967         * lib/argp-parse.c: Likewise.
98968         * lib/argp-pin.c: Likewise.
98969         * lib/argp-pv.c: Likewise.
98970         * lib/argp-pvh.c: Likewise.
98971         * lib/argp-xinl.c: Likewise.
98972         * lib/argp.h: Likewise.
98973         * lib/at-func.c: Likewise.
98974         * lib/atanl.c: Likewise.
98975         * lib/backupfile.c: Likewise.
98976         * lib/backupfile.h: Likewise.
98977         * lib/basename.c: Likewise.
98978         * lib/binary-io.h: Likewise.
98979         * lib/byteswap.in.h: Likewise.
98980         * lib/c-stack.c: Likewise.
98981         * lib/c-stack.h: Likewise.
98982         * lib/c-strcasestr.c: Likewise.
98983         * lib/c-strcasestr.h: Likewise.
98984         * lib/c-strstr.c: Likewise.
98985         * lib/c-strstr.h: Likewise.
98986         * lib/c-strtod.c: Likewise.
98987         * lib/calloc.c: Likewise.
98988         * lib/canon-host.c: Likewise.
98989         * lib/canon-host.h: Likewise.
98990         * lib/canonicalize-lgpl.c: Likewise.
98991         * lib/canonicalize.c: Likewise.
98992         * lib/canonicalize.h: Likewise.
98993         * lib/ceil.c: Likewise.
98994         * lib/ceilf.c: Likewise.
98995         * lib/ceill.c: Likewise.
98996         * lib/chdir-long.c: Likewise.
98997         * lib/chdir-long.h: Likewise.
98998         * lib/chdir-safer.c: Likewise.
98999         * lib/chdir-safer.h: Likewise.
99000         * lib/chown.c: Likewise.
99001         * lib/classpath.c: Likewise.
99002         * lib/classpath.h: Likewise.
99003         * lib/clean-temp.c: Likewise.
99004         * lib/clean-temp.h: Likewise.
99005         * lib/cloexec.c: Likewise.
99006         * lib/close-stream.c: Likewise.
99007         * lib/closein.c: Likewise.
99008         * lib/closein.h: Likewise.
99009         * lib/closeout.c: Likewise.
99010         * lib/closeout.h: Likewise.
99011         * lib/concat-filename.c: Likewise.
99012         * lib/copy-file.c: Likewise.
99013         * lib/copy-file.h: Likewise.
99014         * lib/count-one-bits.h: Likewise.
99015         * lib/crc.c: Likewise.
99016         * lib/crc.h: Likewise.
99017         * lib/creat-safer.c: Likewise.
99018         * lib/csharpcomp.c: Likewise.
99019         * lib/csharpcomp.h: Likewise.
99020         * lib/csharpexec.c: Likewise.
99021         * lib/csharpexec.h: Likewise.
99022         * lib/cycle-check.c: Likewise.
99023         * lib/cycle-check.h: Likewise.
99024         * lib/diacrit.c: Likewise.
99025         * lib/diacrit.h: Likewise.
99026         * lib/diffseq.h: Likewise.
99027         * lib/dirchownmod.c: Likewise.
99028         * lib/dirent.in.h: Likewise.
99029         * lib/dirfd.c: Likewise.
99030         * lib/dirfd.h: Likewise.
99031         * lib/dirname.c: Likewise.
99032         * lib/dirname.h: Likewise.
99033         * lib/dummy.c: Likewise.
99034         * lib/dup-safer.c: Likewise.
99035         * lib/dup2.c: Likewise.
99036         * lib/eealloc.h: Likewise.
99037         * lib/error.c: Likewise.
99038         * lib/error.h: Likewise.
99039         * lib/euidaccess.c: Likewise.
99040         * lib/exclude.c: Likewise.
99041         * lib/exclude.h: Likewise.
99042         * lib/execute.c: Likewise.
99043         * lib/execute.h: Likewise.
99044         * lib/exitfail.c: Likewise.
99045         * lib/exitfail.h: Likewise.
99046         * lib/expl.c: Likewise.
99047         * lib/fatal-signal.c: Likewise.
99048         * lib/fatal-signal.h: Likewise.
99049         * lib/fbufmode.c: Likewise.
99050         * lib/fbufmode.h: Likewise.
99051         * lib/fchdir.c: Likewise.
99052         * lib/fchmodat.c: Likewise.
99053         * lib/fchownat.c: Likewise.
99054         * lib/fcntl--.h: Likewise.
99055         * lib/fcntl-safer.h: Likewise.
99056         * lib/fcntl.in.h: Likewise.
99057         * lib/fd-safer.c: Likewise.
99058         * lib/fflush.c: Likewise.
99059         * lib/file-has-acl.c: Likewise.
99060         * lib/file-set.c: Likewise.
99061         * lib/file-type.c: Likewise.
99062         * lib/file-type.h: Likewise.
99063         * lib/fileblocks.c: Likewise.
99064         * lib/filemode.c: Likewise.
99065         * lib/filemode.h: Likewise.
99066         * lib/filename.h: Likewise.
99067         * lib/filenamecat.c: Likewise.
99068         * lib/filenamecat.h: Likewise.
99069         * lib/findprog.c: Likewise.
99070         * lib/findprog.h: Likewise.
99071         * lib/float.in.h: Likewise.
99072         * lib/floor.c: Likewise.
99073         * lib/floorf.c: Likewise.
99074         * lib/floorl.c: Likewise.
99075         * lib/fopen-safer.c: Likewise.
99076         * lib/fopen.c: Likewise.
99077         * lib/fpending.c: Likewise.
99078         * lib/fpending.h: Likewise.
99079         * lib/fprintf.c: Likewise.
99080         * lib/fprintftime.h: Likewise.
99081         * lib/fpucw.h: Likewise.
99082         * lib/fpurge.c: Likewise.
99083         * lib/fpurge.h: Likewise.
99084         * lib/freadable.c: Likewise.
99085         * lib/freadable.h: Likewise.
99086         * lib/freadahead.c: Likewise.
99087         * lib/freadahead.h: Likewise.
99088         * lib/freading.c: Likewise.
99089         * lib/freading.h: Likewise.
99090         * lib/free.c: Likewise.
99091         * lib/freopen.c: Likewise.
99092         * lib/frexp.c: Likewise.
99093         * lib/frexpl.c: Likewise.
99094         * lib/fseek.c: Likewise.
99095         * lib/fseterr.c: Likewise.
99096         * lib/fseterr.h: Likewise.
99097         * lib/fstatat.c: Likewise.
99098         * lib/fstrcmp.c: Likewise.
99099         * lib/fstrcmp.h: Likewise.
99100         * lib/fsusage.c: Likewise.
99101         * lib/fsusage.h: Likewise.
99102         * lib/ftell.c: Likewise.
99103         * lib/ftello.c: Likewise.
99104         * lib/fts-cycle.c: Likewise.
99105         * lib/fts.c: Likewise.
99106         * lib/fts_.h: Likewise.
99107         * lib/full-read.c: Likewise.
99108         * lib/full-read.h: Likewise.
99109         * lib/full-write.c: Likewise.
99110         * lib/full-write.h: Likewise.
99111         * lib/fwritable.c: Likewise.
99112         * lib/fwritable.h: Likewise.
99113         * lib/fwriteerror.c: Likewise.
99114         * lib/fwriteerror.h: Likewise.
99115         * lib/fwriting.c: Likewise.
99116         * lib/fwriting.h: Likewise.
99117         * lib/gcd.c: Likewise.
99118         * lib/gcd.h: Likewise.
99119         * lib/getcwd.c: Likewise.
99120         * lib/getdate.h: Likewise.
99121         * lib/getdate.y: Likewise.
99122         * lib/getdomainname.c: Likewise.
99123         * lib/getdomainname.h: Likewise.
99124         * lib/getgroups.c: Likewise.
99125         * lib/gethostname.c: Likewise.
99126         * lib/gethrxtime.c: Likewise.
99127         * lib/gethrxtime.h: Likewise.
99128         * lib/getloadavg.c: Likewise.
99129         * lib/getndelim2.c: Likewise.
99130         * lib/getndelim2.h: Likewise.
99131         * lib/getnline.c: Likewise.
99132         * lib/getnline.h: Likewise.
99133         * lib/getopt.c: Likewise.
99134         * lib/getopt.in.h: Likewise.
99135         * lib/getopt1.c: Likewise.
99136         * lib/getopt_int.h: Likewise.
99137         * lib/getpagesize.h: Likewise.
99138         * lib/getsubopt.c: Likewise.
99139         * lib/gettime.c: Likewise.
99140         * lib/getugroups.c: Likewise.
99141         * lib/getugroups.h: Likewise.
99142         * lib/getusershell.c: Likewise.
99143         * lib/gl_anyavltree_list1.h: Likewise.
99144         * lib/gl_anyavltree_list2.h: Likewise.
99145         * lib/gl_anyhash_list1.h: Likewise.
99146         * lib/gl_anyhash_list2.h: Likewise.
99147         * lib/gl_anylinked_list1.h: Likewise.
99148         * lib/gl_anylinked_list2.h: Likewise.
99149         * lib/gl_anyrbtree_list1.h: Likewise.
99150         * lib/gl_anyrbtree_list2.h: Likewise.
99151         * lib/gl_anytree_list1.h: Likewise.
99152         * lib/gl_anytree_list2.h: Likewise.
99153         * lib/gl_anytree_oset.h: Likewise.
99154         * lib/gl_anytreehash_list1.h: Likewise.
99155         * lib/gl_anytreehash_list2.h: Likewise.
99156         * lib/gl_array_list.c: Likewise.
99157         * lib/gl_array_list.h: Likewise.
99158         * lib/gl_array_oset.c: Likewise.
99159         * lib/gl_array_oset.h: Likewise.
99160         * lib/gl_avltree_list.c: Likewise.
99161         * lib/gl_avltree_list.h: Likewise.
99162         * lib/gl_avltree_oset.c: Likewise.
99163         * lib/gl_avltree_oset.h: Likewise.
99164         * lib/gl_avltreehash_list.c: Likewise.
99165         * lib/gl_avltreehash_list.h: Likewise.
99166         * lib/gl_carray_list.c: Likewise.
99167         * lib/gl_carray_list.h: Likewise.
99168         * lib/gl_linked_list.c: Likewise.
99169         * lib/gl_linked_list.h: Likewise.
99170         * lib/gl_linkedhash_list.c: Likewise.
99171         * lib/gl_linkedhash_list.h: Likewise.
99172         * lib/gl_list.c: Likewise.
99173         * lib/gl_list.h: Likewise.
99174         * lib/gl_oset.c: Likewise.
99175         * lib/gl_oset.h: Likewise.
99176         * lib/gl_rbtree_list.c: Likewise.
99177         * lib/gl_rbtree_list.h: Likewise.
99178         * lib/gl_rbtree_oset.c: Likewise.
99179         * lib/gl_rbtree_oset.h: Likewise.
99180         * lib/gl_rbtreehash_list.c: Likewise.
99181         * lib/gl_rbtreehash_list.h: Likewise.
99182         * lib/gl_sublist.c: Likewise.
99183         * lib/gl_sublist.h: Likewise.
99184         * lib/group-member.c: Likewise.
99185         * lib/group-member.h: Likewise.
99186         * lib/hard-locale.c: Likewise.
99187         * lib/hard-locale.h: Likewise.
99188         * lib/hash-pjw.c: Likewise.
99189         * lib/hash-pjw.h: Likewise.
99190         * lib/hash-triple.c: Likewise.
99191         * lib/hash.c: Likewise.
99192         * lib/hash.h: Likewise.
99193         * lib/human.c: Likewise.
99194         * lib/human.h: Likewise.
99195         * lib/i-ring.c: Likewise.
99196         * lib/i-ring.h: Likewise.
99197         * lib/idcache.c: Likewise.
99198         * lib/imaxabs.c: Likewise.
99199         * lib/imaxdiv.c: Likewise.
99200         * lib/inet_pton.c: Likewise.
99201         * lib/inet_pton.h: Likewise.
99202         * lib/intprops.h: Likewise.
99203         * lib/inttostr.c: Likewise.
99204         * lib/inttostr.h: Likewise.
99205         * lib/inttypes.in.h: Likewise.
99206         * lib/isapipe.c: Likewise.
99207         * lib/isdir.c: Likewise.
99208         * lib/isnan.c: Likewise.
99209         * lib/isnan.h: Likewise.
99210         * lib/isnanf.c: Likewise.
99211         * lib/isnanf.h: Likewise.
99212         * lib/isnanl-nolibm.h: Likewise.
99213         * lib/isnanl.c: Likewise.
99214         * lib/isnanl.h: Likewise.
99215         * lib/javacomp.c: Likewise.
99216         * lib/javacomp.h: Likewise.
99217         * lib/javaexec.c: Likewise.
99218         * lib/javaexec.h: Likewise.
99219         * lib/javaversion.c: Likewise.
99220         * lib/javaversion.h: Likewise.
99221         * lib/javaversion.java: Likewise.
99222         * lib/lbrkprop.h: Likewise.
99223         * lib/lchmod.h: Likewise.
99224         * lib/lchown.c: Likewise.
99225         * lib/ldexpl.c: Likewise.
99226         * lib/linebreak.c: Likewise.
99227         * lib/linebreak.h: Likewise.
99228         * lib/linebuffer.c: Likewise.
99229         * lib/linebuffer.h: Likewise.
99230         * lib/locale.in.h: Likewise.
99231         * lib/logl.c: Likewise.
99232         * lib/long-options.c: Likewise.
99233         * lib/long-options.h: Likewise.
99234         * lib/lstat.c: Likewise.
99235         * lib/lstat.h: Likewise.
99236         * lib/math.in.h: Likewise.
99237         * lib/mbchar.c: Likewise.
99238         * lib/mbchar.h: Likewise.
99239         * lib/mbfile.h: Likewise.
99240         * lib/mbiter.h: Likewise.
99241         * lib/mbscasecmp.c: Likewise.
99242         * lib/mbscasestr.c: Likewise.
99243         * lib/mbschr.c: Likewise.
99244         * lib/mbscspn.c: Likewise.
99245         * lib/mbslen.c: Likewise.
99246         * lib/mbsncasecmp.c: Likewise.
99247         * lib/mbsnlen.c: Likewise.
99248         * lib/mbspbrk.c: Likewise.
99249         * lib/mbspcasecmp.c: Likewise.
99250         * lib/mbsrchr.c: Likewise.
99251         * lib/mbssep.c: Likewise.
99252         * lib/mbsspn.c: Likewise.
99253         * lib/mbsstr.c: Likewise.
99254         * lib/mbstok_r.c: Likewise.
99255         * lib/mbswidth.c: Likewise.
99256         * lib/mbswidth.h: Likewise.
99257         * lib/mbuiter.h: Likewise.
99258         * lib/memcasecmp.c: Likewise.
99259         * lib/memcasecmp.h: Likewise.
99260         * lib/memchr.c: Likewise.
99261         * lib/memcmp.c: Likewise.
99262         * lib/memcoll.c: Likewise.
99263         * lib/memcoll.h: Likewise.
99264         * lib/memcpy.c: Likewise.
99265         * lib/memrchr.c: Likewise.
99266         * lib/mkancesdirs.c: Likewise.
99267         * lib/mkdir-p.c: Likewise.
99268         * lib/mkdir-p.h: Likewise.
99269         * lib/mkdir.c: Likewise.
99270         * lib/mkdirat.c: Likewise.
99271         * lib/mkdtemp.c: Likewise.
99272         * lib/mkstemp-safer.c: Likewise.
99273         * lib/mkstemp.c: Likewise.
99274         * lib/modechange.c: Likewise.
99275         * lib/modechange.h: Likewise.
99276         * lib/mountlist.c: Likewise.
99277         * lib/mountlist.h: Likewise.
99278         * lib/mpsort.c: Likewise.
99279         * lib/nanosleep.c: Likewise.
99280         * lib/obstack.c: Likewise.
99281         * lib/obstack.h: Likewise.
99282         * lib/open-safer.c: Likewise.
99283         * lib/open.c: Likewise.
99284         * lib/openat-die.c: Likewise.
99285         * lib/openat-priv.h: Likewise.
99286         * lib/openat-proc.c: Likewise.
99287         * lib/openat.c: Likewise.
99288         * lib/openat.h: Likewise.
99289         * lib/pagealign_alloc.c: Likewise.
99290         * lib/pagealign_alloc.h: Likewise.
99291         * lib/physmem.c: Likewise.
99292         * lib/physmem.h: Likewise.
99293         * lib/pipe-safer.c: Likewise.
99294         * lib/pipe.c: Likewise.
99295         * lib/pipe.h: Likewise.
99296         * lib/posixtm.c: Likewise.
99297         * lib/posixtm.h: Likewise.
99298         * lib/posixver.c: Likewise.
99299         * lib/printf-frexp.c: Likewise.
99300         * lib/printf-frexp.h: Likewise.
99301         * lib/printf-frexpl.c: Likewise.
99302         * lib/printf-frexpl.h: Likewise.
99303         * lib/printf.c: Likewise.
99304         * lib/progname.c: Likewise.
99305         * lib/progname.h: Likewise.
99306         * lib/progreloc.c: Likewise.
99307         * lib/putenv.c: Likewise.
99308         * lib/quote.c: Likewise.
99309         * lib/quote.h: Likewise.
99310         * lib/quotearg.c: Likewise.
99311         * lib/quotearg.h: Likewise.
99312         * lib/raise.c: Likewise.
99313         * lib/readline.c: Likewise.
99314         * lib/readline.h: Likewise.
99315         * lib/readlink.c: Likewise.
99316         * lib/readtokens.c: Likewise.
99317         * lib/readtokens.h: Likewise.
99318         * lib/readtokens0.c: Likewise.
99319         * lib/readtokens0.h: Likewise.
99320         * lib/readutmp.c: Likewise.
99321         * lib/readutmp.h: Likewise.
99322         * lib/realloc.c: Likewise.
99323         * lib/relocwrapper.c: Likewise.
99324         * lib/rename-dest-slash.c: Likewise.
99325         * lib/rename.c: Likewise.
99326         * lib/rmdir.c: Likewise.
99327         * lib/rpmatch.c: Likewise.
99328         * lib/safe-read.c: Likewise.
99329         * lib/safe-read.h: Likewise.
99330         * lib/safe-write.c: Likewise.
99331         * lib/safe-write.h: Likewise.
99332         * lib/same-inode.h: Likewise.
99333         * lib/same.c: Likewise.
99334         * lib/same.h: Likewise.
99335         * lib/save-cwd.c: Likewise.
99336         * lib/save-cwd.h: Likewise.
99337         * lib/savedir.c: Likewise.
99338         * lib/savedir.h: Likewise.
99339         * lib/savewd.c: Likewise.
99340         * lib/savewd.h: Likewise.
99341         * lib/search.in.h: Likewise.
99342         * lib/setenv.c: Likewise.
99343         * lib/setenv.h: Likewise.
99344         * lib/settime.c: Likewise.
99345         * lib/sh-quote.c: Likewise.
99346         * lib/sh-quote.h: Likewise.
99347         * lib/sig2str.c: Likewise.
99348         * lib/sig2str.h: Likewise.
99349         * lib/signal.in.h: Likewise.
99350         * lib/signbitd.c: Likewise.
99351         * lib/signbitf.c: Likewise.
99352         * lib/signbitl.c: Likewise.
99353         * lib/sigprocmask.c: Likewise.
99354         * lib/sincosl.c: Likewise.
99355         * lib/sleep.c: Likewise.
99356         * lib/sprintf.c: Likewise.
99357         * lib/sqrtl.c: Likewise.
99358         * lib/stat-time.h: Likewise.
99359         * lib/stdio--.h: Likewise.
99360         * lib/stdio-safer.h: Likewise.
99361         * lib/stdlib--.h: Likewise.
99362         * lib/stdlib-safer.h: Likewise.
99363         * lib/stdlib.in.h: Likewise.
99364         * lib/stpcpy.c: Likewise.
99365         * lib/stpncpy.c: Likewise.
99366         * lib/strchrnul.c: Likewise.
99367         * lib/strcspn.c: Likewise.
99368         * lib/strerror.c: Likewise.
99369         * lib/strftime.c: Likewise.
99370         * lib/strftime.h: Likewise.
99371         * lib/striconveh.c: Likewise.
99372         * lib/striconveh.h: Likewise.
99373         * lib/striconveha.c: Likewise.
99374         * lib/striconveha.h: Likewise.
99375         * lib/stripslash.c: Likewise.
99376         * lib/strnlen1.c: Likewise.
99377         * lib/strnlen1.h: Likewise.
99378         * lib/strtod.c: Likewise.
99379         * lib/strtoimax.c: Likewise.
99380         * lib/strtok_r.c: Likewise.
99381         * lib/strtol.c: Likewise.
99382         * lib/strtoll.c: Likewise.
99383         * lib/strtoul.c: Likewise.
99384         * lib/strtoull.c: Likewise.
99385         * lib/sysexits.in.h: Likewise.
99386         * lib/tempname.c: Likewise.
99387         * lib/tempname.h: Likewise.
99388         * lib/timespec.h: Likewise.
99389         * lib/tls.c: Likewise.
99390         * lib/tls.h: Likewise.
99391         * lib/tmpdir.c: Likewise.
99392         * lib/tmpdir.h: Likewise.
99393         * lib/tmpfile-safer.c: Likewise.
99394         * lib/tmpfile.c: Likewise.
99395         * lib/trigl.c: Likewise.
99396         * lib/trigl.h: Likewise.
99397         * lib/trim.c: Likewise.
99398         * lib/trim.h: Likewise.
99399         * lib/trunc.c: Likewise.
99400         * lib/truncf.c: Likewise.
99401         * lib/truncl.c: Likewise.
99402         * lib/tsearch.c: Likewise.
99403         * lib/unicodeio.c: Likewise.
99404         * lib/unicodeio.h: Likewise.
99405         * lib/unistd--.h: Likewise.
99406         * lib/unistd-safer.h: Likewise.
99407         * lib/unistdio/ulc-fprintf.c: Likewise.
99408         * lib/unistdio/ulc-vfprintf.c: Likewise.
99409         * lib/unlinkdir.c: Likewise.
99410         * lib/unlinkdir.h: Likewise.
99411         * lib/unlocked-io.h: Likewise.
99412         * lib/unsetenv.c: Likewise.
99413         * lib/userspec.c: Likewise.
99414         * lib/utime.c: Likewise.
99415         * lib/utimecmp.c: Likewise.
99416         * lib/utimecmp.h: Likewise.
99417         * lib/utimens.c: Likewise.
99418         * lib/verify.h: Likewise.
99419         * lib/verror.c: Likewise.
99420         * lib/verror.h: Likewise.
99421         * lib/version-etc-fsf.c: Likewise.
99422         * lib/version-etc.c: Likewise.
99423         * lib/version-etc.h: Likewise.
99424         * lib/vfprintf.c: Likewise.
99425         * lib/vprintf.c: Likewise.
99426         * lib/vsprintf.c: Likewise.
99427         * lib/w32spawn.h: Likewise.
99428         * lib/wait-process.c: Likewise.
99429         * lib/wait-process.h: Likewise.
99430         * lib/wcwidth.c: Likewise.
99431         * lib/write-any-file.c: Likewise.
99432         * lib/xalloc-die.c: Likewise.
99433         * lib/xalloc.h: Likewise.
99434         * lib/xasprintf.c: Likewise.
99435         * lib/xgetcwd.c: Likewise.
99436         * lib/xgetcwd.h: Likewise.
99437         * lib/xgetdomainname.c: Likewise.
99438         * lib/xgetdomainname.h: Likewise.
99439         * lib/xgethostname.c: Likewise.
99440         * lib/xmalloc.c: Likewise.
99441         * lib/xmalloca.c: Likewise.
99442         * lib/xmalloca.h: Likewise.
99443         * lib/xmemcoll.c: Likewise.
99444         * lib/xnanosleep.c: Likewise.
99445         * lib/xreadlink.c: Likewise.
99446         * lib/xreadlink.h: Likewise.
99447         * lib/xsetenv.c: Likewise.
99448         * lib/xsetenv.h: Likewise.
99449         * lib/xstriconv.c: Likewise.
99450         * lib/xstriconv.h: Likewise.
99451         * lib/xstrndup.c: Likewise.
99452         * lib/xstrndup.h: Likewise.
99453         * lib/xstrtod.c: Likewise.
99454         * lib/xstrtod.h: Likewise.
99455         * lib/xstrtol-error.c: Likewise.
99456         * lib/xstrtol.c: Likewise.
99457         * lib/xstrtol.h: Likewise.
99458         * lib/xtime.h: Likewise.
99459         * lib/xvasprintf.c: Likewise.
99460         * lib/xvasprintf.h: Likewise.
99461         * lib/yesno.c: Likewise.
99462         * lib/yesno.h: Likewise.
99463         * posix-modules: Likewise.
99464         * tests/test-alloca-opt.c: Likewise.
99465         * tests/test-arcfour.c: Likewise.
99466         * tests/test-arctwo.c: Likewise.
99467         * tests/test-argmatch.c: Likewise.
99468         * tests/test-argp-2.sh: Likewise.
99469         * tests/test-argp.c: Likewise.
99470         * tests/test-arpa_inet.c: Likewise.
99471         * tests/test-array_list.c: Likewise.
99472         * tests/test-array_oset.c: Likewise.
99473         * tests/test-atexit.c: Likewise.
99474         * tests/test-avltree_list.c: Likewise.
99475         * tests/test-avltree_oset.c: Likewise.
99476         * tests/test-avltreehash_list.c: Likewise.
99477         * tests/test-base64.c: Likewise.
99478         * tests/test-binary-io.c: Likewise.
99479         * tests/test-byteswap.c: Likewise.
99480         * tests/test-c-ctype.c: Likewise.
99481         * tests/test-c-strcasecmp.c: Likewise.
99482         * tests/test-c-strcasestr.c: Likewise.
99483         * tests/test-c-strncasecmp.c: Likewise.
99484         * tests/test-c-strstr.c: Likewise.
99485         * tests/test-canonicalize-lgpl.c: Likewise.
99486         * tests/test-canonicalize.c: Likewise.
99487         * tests/test-carray_list.c: Likewise.
99488         * tests/test-ceilf.c: Likewise.
99489         * tests/test-ceill.c: Likewise.
99490         * tests/test-count-one-bits.c: Likewise.
99491         * tests/test-crc.c: Likewise.
99492         * tests/test-dirname.c: Likewise.
99493         * tests/test-fbufmode.c: Likewise.
99494         * tests/test-fcntl.c: Likewise.
99495         * tests/test-fflush.c: Likewise.
99496         * tests/test-floorf.c: Likewise.
99497         * tests/test-floorl.c: Likewise.
99498         * tests/test-fopen.c: Likewise.
99499         * tests/test-fprintf-posix.c: Likewise.
99500         * tests/test-fprintf-posix.h: Likewise.
99501         * tests/test-fpurge.c: Likewise.
99502         * tests/test-freadable.c: Likewise.
99503         * tests/test-freadahead.c: Likewise.
99504         * tests/test-freading.c: Likewise.
99505         * tests/test-freopen.c: Likewise.
99506         * tests/test-frexp.c: Likewise.
99507         * tests/test-frexpl.c: Likewise.
99508         * tests/test-fseek.c: Likewise.
99509         * tests/test-fseeko.c: Likewise.
99510         * tests/test-fseterr.c: Likewise.
99511         * tests/test-fstrcmp.c: Likewise.
99512         * tests/test-ftell.c: Likewise.
99513         * tests/test-ftello.c: Likewise.
99514         * tests/test-fwritable.c: Likewise.
99515         * tests/test-fwriting.c: Likewise.
99516         * tests/test-getaddrinfo.c: Likewise.
99517         * tests/test-getpass.c: Likewise.
99518         * tests/test-gettimeofday.c: Likewise.
99519         * tests/test-hmac-md5.c: Likewise.
99520         * tests/test-hmac-sha1.c: Likewise.
99521         * tests/test-iconv.c: Likewise.
99522         * tests/test-iconvme.c: Likewise.
99523         * tests/test-inttypes.c: Likewise.
99524         * tests/test-isnan.c: Likewise.
99525         * tests/test-isnanf.c: Likewise.
99526         * tests/test-isnanl-nolibm.c: Likewise.
99527         * tests/test-isnanl.c: Likewise.
99528         * tests/test-isnanl.h: Likewise.
99529         * tests/test-ldexpl.c: Likewise.
99530         * tests/test-linked_list.c: Likewise.
99531         * tests/test-linkedhash_list.c: Likewise.
99532         * tests/test-locale.c: Likewise.
99533         * tests/test-localename.c: Likewise.
99534         * tests/test-lock.c: Likewise.
99535         * tests/test-lseek.c: Likewise.
99536         * tests/test-malloca.c: Likewise.
99537         * tests/test-math.c: Likewise.
99538         * tests/test-mbscasecmp.c: Likewise.
99539         * tests/test-mbscasestr1.c: Likewise.
99540         * tests/test-mbscasestr2.c: Likewise.
99541         * tests/test-mbscasestr3.c: Likewise.
99542         * tests/test-mbscasestr4.c: Likewise.
99543         * tests/test-mbschr.c: Likewise.
99544         * tests/test-mbscspn.c: Likewise.
99545         * tests/test-mbsncasecmp.c: Likewise.
99546         * tests/test-mbspbrk.c: Likewise.
99547         * tests/test-mbspcasecmp.c: Likewise.
99548         * tests/test-mbsrchr.c: Likewise.
99549         * tests/test-mbsspn.c: Likewise.
99550         * tests/test-mbsstr1.c: Likewise.
99551         * tests/test-mbsstr2.c: Likewise.
99552         * tests/test-mbsstr3.c: Likewise.
99553         * tests/test-md5.c: Likewise.
99554         * tests/test-memmem.c: Likewise.
99555         * tests/test-netinet_in.c: Likewise.
99556         * tests/test-open.c: Likewise.
99557         * tests/test-printf-frexp.c: Likewise.
99558         * tests/test-printf-frexpl.c: Likewise.
99559         * tests/test-printf-posix.c: Likewise.
99560         * tests/test-printf-posix.h: Likewise.
99561         * tests/test-rbtree_list.c: Likewise.
99562         * tests/test-rbtree_oset.c: Likewise.
99563         * tests/test-rbtreehash_list.c: Likewise.
99564         * tests/test-read-file.c: Likewise.
99565         * tests/test-rijndael.c: Likewise.
99566         * tests/test-search.c: Likewise.
99567         * tests/test-signbit.c: Likewise.
99568         * tests/test-sleep.c: Likewise.
99569         * tests/test-snprintf-posix.c: Likewise.
99570         * tests/test-snprintf-posix.h: Likewise.
99571         * tests/test-snprintf.c: Likewise.
99572         * tests/test-sprintf-posix.c: Likewise.
99573         * tests/test-sprintf-posix.h: Likewise.
99574         * tests/test-stat-time.c: Likewise.
99575         * tests/test-stdbool.c: Likewise.
99576         * tests/test-stdint.c: Likewise.
99577         * tests/test-stdio.c: Likewise.
99578         * tests/test-stdlib.c: Likewise.
99579         * tests/test-stpncpy.c: Likewise.
99580         * tests/test-strcasestr.c: Likewise.
99581         * tests/test-striconv.c: Likewise.
99582         * tests/test-striconveh.c: Likewise.
99583         * tests/test-striconveha.c: Likewise.
99584         * tests/test-string.c: Likewise.
99585         * tests/test-sys_select.c: Likewise.
99586         * tests/test-sys_socket.c: Likewise.
99587         * tests/test-sys_stat.c: Likewise.
99588         * tests/test-sys_time.c: Likewise.
99589         * tests/test-sysexits.c: Likewise.
99590         * tests/test-time.c: Likewise.
99591         * tests/test-tls.c: Likewise.
99592         * tests/test-trunc.c: Likewise.
99593         * tests/test-truncf.c: Likewise.
99594         * tests/test-truncl.c: Likewise.
99595         * tests/test-unistd.c: Likewise.
99596         * tests/test-vasnprintf-posix.c: Likewise.
99597         * tests/test-vasnprintf-posix2.c: Likewise.
99598         * tests/test-vasnprintf.c: Likewise.
99599         * tests/test-vasprintf-posix.c: Likewise.
99600         * tests/test-vasprintf.c: Likewise.
99601         * tests/test-verify.c: Likewise.
99602         * tests/test-vfprintf-posix.c: Likewise.
99603         * tests/test-vprintf-posix.c: Likewise.
99604         * tests/test-vsnprintf-posix.c: Likewise.
99605         * tests/test-vsnprintf.c: Likewise.
99606         * tests/test-vsprintf-posix.c: Likewise.
99607         * tests/test-wchar.c: Likewise.
99608         * tests/test-wctype.c: Likewise.
99609         * tests/test-wcwidth.c: Likewise.
99610         * tests/test-xstrtol.c: Likewise.
99611         * tests/test-xvasprintf.c: Likewise.
99612         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
99613         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
99614         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99615         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99616         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99617         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
99618         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99619         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99620         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
99621         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
99622         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
99623         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
99624         * tests/uniname/test-uninames.c: Likewise.
99625         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
99626         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
99627         * tests/unistdio/test-u16-printf1.h: Likewise.
99628         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
99629         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
99630         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
99631         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
99632         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
99633         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
99634         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
99635         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
99636         * tests/unistdio/test-u32-printf1.h: Likewise.
99637         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
99638         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
99639         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
99640         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
99641         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
99642         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
99643         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
99644         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
99645         * tests/unistdio/test-u8-printf1.h: Likewise.
99646         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
99647         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
99648         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
99649         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
99650         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
99651         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
99652         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
99653         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
99654         * tests/unistdio/test-ulc-printf1.h: Likewise.
99655         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
99656         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
99657         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
99658         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
99659         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
99660         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
99661         * tests/uniwidth/test-u16-strwidth.c: Likewise.
99662         * tests/uniwidth/test-u16-width.c: Likewise.
99663         * tests/uniwidth/test-u32-strwidth.c: Likewise.
99664         * tests/uniwidth/test-u32-width.c: Likewise.
99665         * tests/uniwidth/test-u8-strwidth.c: Likewise.
99666         * tests/uniwidth/test-u8-width.c: Likewise.
99667         * tests/uniwidth/test-uc_width.c: Likewise.
99668         * config/srclist-update: Likewise.
99669         (fixlicense): Update to GPLv3+.
99671         Change copyright notice from LGPLv2.1+ to LGPLv3+.
99672         * tests/test-tsearch.c: Change copyright notice.
99674         Change copyright notice from LGPLv2.0+ to LGPLv3+.
99675         * lib/c-strcaseeq.h: Change copyright notice.
99676         * lib/streq.h: Likewise.
99677         * lib/uniconv.h: Likewise.
99678         * lib/uniconv/u-conv-from-enc.h: Likewise.
99679         * lib/uniconv/u-conv-to-enc.h: Likewise.
99680         * lib/uniconv/u-strconv-from-enc.h: Likewise.
99681         * lib/uniconv/u-strconv-to-enc.h: Likewise.
99682         * lib/uniconv/u16-conv-from-enc.c: Likewise.
99683         * lib/uniconv/u16-conv-to-enc.c: Likewise.
99684         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
99685         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
99686         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
99687         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
99688         * lib/uniconv/u32-conv-from-enc.c: Likewise.
99689         * lib/uniconv/u32-conv-to-enc.c: Likewise.
99690         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
99691         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
99692         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
99693         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
99694         * lib/uniconv/u8-conv-from-enc.c: Likewise.
99695         * lib/uniconv/u8-conv-to-enc.c: Likewise.
99696         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
99697         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
99698         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
99699         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
99700         * lib/uniname.h: Likewise.
99701         * lib/uniname/uniname.c: Likewise.
99702         * lib/unistdio.h: Likewise.
99703         * lib/unistdio/u-asnprintf.h: Likewise.
99704         * lib/unistdio/u-asprintf.h: Likewise.
99705         * lib/unistdio/u-printf-args.c: Likewise.
99706         * lib/unistdio/u-printf-args.h: Likewise.
99707         * lib/unistdio/u-printf-parse.h: Likewise.
99708         * lib/unistdio/u-snprintf.h: Likewise.
99709         * lib/unistdio/u-sprintf.h: Likewise.
99710         * lib/unistdio/u-vasprintf.h: Likewise.
99711         * lib/unistdio/u-vsnprintf.h: Likewise.
99712         * lib/unistdio/u-vsprintf.h: Likewise.
99713         * lib/unistdio/u16-asnprintf.c: Likewise.
99714         * lib/unistdio/u16-asprintf.c: Likewise.
99715         * lib/unistdio/u16-printf-parse.c: Likewise.
99716         * lib/unistdio/u16-snprintf.c: Likewise.
99717         * lib/unistdio/u16-sprintf.c: Likewise.
99718         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
99719         * lib/unistdio/u16-u16-asprintf.c: Likewise.
99720         * lib/unistdio/u16-u16-snprintf.c: Likewise.
99721         * lib/unistdio/u16-u16-sprintf.c: Likewise.
99722         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
99723         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
99724         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
99725         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
99726         * lib/unistdio/u16-vasnprintf.c: Likewise.
99727         * lib/unistdio/u16-vasprintf.c: Likewise.
99728         * lib/unistdio/u16-vsnprintf.c: Likewise.
99729         * lib/unistdio/u16-vsprintf.c: Likewise.
99730         * lib/unistdio/u32-asnprintf.c: Likewise.
99731         * lib/unistdio/u32-asprintf.c: Likewise.
99732         * lib/unistdio/u32-printf-parse.c: Likewise.
99733         * lib/unistdio/u32-snprintf.c: Likewise.
99734         * lib/unistdio/u32-sprintf.c: Likewise.
99735         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
99736         * lib/unistdio/u32-u32-asprintf.c: Likewise.
99737         * lib/unistdio/u32-u32-snprintf.c: Likewise.
99738         * lib/unistdio/u32-u32-sprintf.c: Likewise.
99739         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
99740         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
99741         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
99742         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
99743         * lib/unistdio/u32-vasnprintf.c: Likewise.
99744         * lib/unistdio/u32-vasprintf.c: Likewise.
99745         * lib/unistdio/u32-vsnprintf.c: Likewise.
99746         * lib/unistdio/u32-vsprintf.c: Likewise.
99747         * lib/unistdio/u8-asnprintf.c: Likewise.
99748         * lib/unistdio/u8-asprintf.c: Likewise.
99749         * lib/unistdio/u8-printf-parse.c: Likewise.
99750         * lib/unistdio/u8-snprintf.c: Likewise.
99751         * lib/unistdio/u8-sprintf.c: Likewise.
99752         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
99753         * lib/unistdio/u8-u8-asprintf.c: Likewise.
99754         * lib/unistdio/u8-u8-snprintf.c: Likewise.
99755         * lib/unistdio/u8-u8-sprintf.c: Likewise.
99756         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
99757         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
99758         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
99759         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
99760         * lib/unistdio/u8-vasnprintf.c: Likewise.
99761         * lib/unistdio/u8-vasprintf.c: Likewise.
99762         * lib/unistdio/u8-vsnprintf.c: Likewise.
99763         * lib/unistdio/u8-vsprintf.c: Likewise.
99764         * lib/unistdio/ulc-asnprintf.c: Likewise.
99765         * lib/unistdio/ulc-asprintf.c: Likewise.
99766         * lib/unistdio/ulc-printf-parse.c: Likewise.
99767         * lib/unistdio/ulc-snprintf.c: Likewise.
99768         * lib/unistdio/ulc-sprintf.c: Likewise.
99769         * lib/unistdio/ulc-vasnprintf.c: Likewise.
99770         * lib/unistdio/ulc-vasprintf.c: Likewise.
99771         * lib/unistdio/ulc-vsnprintf.c: Likewise.
99772         * lib/unistdio/ulc-vsprintf.c: Likewise.
99773         * lib/unistr.h: Likewise.
99774         * lib/unistr/u-cpy-alloc.h: Likewise.
99775         * lib/unistr/u-cpy.h: Likewise.
99776         * lib/unistr/u-endswith.h: Likewise.
99777         * lib/unistr/u-move.h: Likewise.
99778         * lib/unistr/u-set.h: Likewise.
99779         * lib/unistr/u-startswith.h: Likewise.
99780         * lib/unistr/u-stpcpy.h: Likewise.
99781         * lib/unistr/u-stpncpy.h: Likewise.
99782         * lib/unistr/u-strcat.h: Likewise.
99783         * lib/unistr/u-strcpy.h: Likewise.
99784         * lib/unistr/u-strcspn.h: Likewise.
99785         * lib/unistr/u-strdup.h: Likewise.
99786         * lib/unistr/u-strlen.h: Likewise.
99787         * lib/unistr/u-strncat.h: Likewise.
99788         * lib/unistr/u-strncpy.h: Likewise.
99789         * lib/unistr/u-strnlen.h: Likewise.
99790         * lib/unistr/u-strpbrk.h: Likewise.
99791         * lib/unistr/u-strspn.h: Likewise.
99792         * lib/unistr/u-strstr.h: Likewise.
99793         * lib/unistr/u-strtok.h: Likewise.
99794         * lib/unistr/u16-check.c: Likewise.
99795         * lib/unistr/u16-chr.c: Likewise.
99796         * lib/unistr/u16-cmp.c: Likewise.
99797         * lib/unistr/u16-cpy-alloc.c: Likewise.
99798         * lib/unistr/u16-cpy.c: Likewise.
99799         * lib/unistr/u16-endswith.c: Likewise.
99800         * lib/unistr/u16-mblen.c: Likewise.
99801         * lib/unistr/u16-mbsnlen.c: Likewise.
99802         * lib/unistr/u16-mbtouc-aux.c: Likewise.
99803         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
99804         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
99805         * lib/unistr/u16-mbtouc.c: Likewise.
99806         * lib/unistr/u16-mbtoucr.c: Likewise.
99807         * lib/unistr/u16-move.c: Likewise.
99808         * lib/unistr/u16-next.c: Likewise.
99809         * lib/unistr/u16-prev.c: Likewise.
99810         * lib/unistr/u16-set.c: Likewise.
99811         * lib/unistr/u16-startswith.c: Likewise.
99812         * lib/unistr/u16-stpcpy.c: Likewise.
99813         * lib/unistr/u16-stpncpy.c: Likewise.
99814         * lib/unistr/u16-strcat.c: Likewise.
99815         * lib/unistr/u16-strchr.c: Likewise.
99816         * lib/unistr/u16-strcmp.c: Likewise.
99817         * lib/unistr/u16-strcpy.c: Likewise.
99818         * lib/unistr/u16-strcspn.c: Likewise.
99819         * lib/unistr/u16-strdup.c: Likewise.
99820         * lib/unistr/u16-strlen.c: Likewise.
99821         * lib/unistr/u16-strmblen.c: Likewise.
99822         * lib/unistr/u16-strmbtouc.c: Likewise.
99823         * lib/unistr/u16-strncat.c: Likewise.
99824         * lib/unistr/u16-strncmp.c: Likewise.
99825         * lib/unistr/u16-strncpy.c: Likewise.
99826         * lib/unistr/u16-strnlen.c: Likewise.
99827         * lib/unistr/u16-strpbrk.c: Likewise.
99828         * lib/unistr/u16-strrchr.c: Likewise.
99829         * lib/unistr/u16-strspn.c: Likewise.
99830         * lib/unistr/u16-strstr.c: Likewise.
99831         * lib/unistr/u16-strtok.c: Likewise.
99832         * lib/unistr/u16-to-u32.c: Likewise.
99833         * lib/unistr/u16-to-u8.c: Likewise.
99834         * lib/unistr/u16-uctomb-aux.c: Likewise.
99835         * lib/unistr/u16-uctomb.c: Likewise.
99836         * lib/unistr/u32-check.c: Likewise.
99837         * lib/unistr/u32-chr.c: Likewise.
99838         * lib/unistr/u32-cmp.c: Likewise.
99839         * lib/unistr/u32-cpy-alloc.c: Likewise.
99840         * lib/unistr/u32-cpy.c: Likewise.
99841         * lib/unistr/u32-endswith.c: Likewise.
99842         * lib/unistr/u32-mblen.c: Likewise.
99843         * lib/unistr/u32-mbsnlen.c: Likewise.
99844         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
99845         * lib/unistr/u32-mbtouc.c: Likewise.
99846         * lib/unistr/u32-mbtoucr.c: Likewise.
99847         * lib/unistr/u32-move.c: Likewise.
99848         * lib/unistr/u32-next.c: Likewise.
99849         * lib/unistr/u32-prev.c: Likewise.
99850         * lib/unistr/u32-set.c: Likewise.
99851         * lib/unistr/u32-startswith.c: Likewise.
99852         * lib/unistr/u32-stpcpy.c: Likewise.
99853         * lib/unistr/u32-stpncpy.c: Likewise.
99854         * lib/unistr/u32-strcat.c: Likewise.
99855         * lib/unistr/u32-strchr.c: Likewise.
99856         * lib/unistr/u32-strcmp.c: Likewise.
99857         * lib/unistr/u32-strcpy.c: Likewise.
99858         * lib/unistr/u32-strcspn.c: Likewise.
99859         * lib/unistr/u32-strdup.c: Likewise.
99860         * lib/unistr/u32-strlen.c: Likewise.
99861         * lib/unistr/u32-strmblen.c: Likewise.
99862         * lib/unistr/u32-strmbtouc.c: Likewise.
99863         * lib/unistr/u32-strncat.c: Likewise.
99864         * lib/unistr/u32-strncmp.c: Likewise.
99865         * lib/unistr/u32-strncpy.c: Likewise.
99866         * lib/unistr/u32-strnlen.c: Likewise.
99867         * lib/unistr/u32-strpbrk.c: Likewise.
99868         * lib/unistr/u32-strrchr.c: Likewise.
99869         * lib/unistr/u32-strspn.c: Likewise.
99870         * lib/unistr/u32-strstr.c: Likewise.
99871         * lib/unistr/u32-strtok.c: Likewise.
99872         * lib/unistr/u32-to-u16.c: Likewise.
99873         * lib/unistr/u32-to-u8.c: Likewise.
99874         * lib/unistr/u32-uctomb.c: Likewise.
99875         * lib/unistr/u8-check.c: Likewise.
99876         * lib/unistr/u8-chr.c: Likewise.
99877         * lib/unistr/u8-cmp.c: Likewise.
99878         * lib/unistr/u8-cpy-alloc.c: Likewise.
99879         * lib/unistr/u8-cpy.c: Likewise.
99880         * lib/unistr/u8-endswith.c: Likewise.
99881         * lib/unistr/u8-mblen.c: Likewise.
99882         * lib/unistr/u8-mbsnlen.c: Likewise.
99883         * lib/unistr/u8-mbtouc-aux.c: Likewise.
99884         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
99885         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
99886         * lib/unistr/u8-mbtouc.c: Likewise.
99887         * lib/unistr/u8-mbtoucr.c: Likewise.
99888         * lib/unistr/u8-move.c: Likewise.
99889         * lib/unistr/u8-next.c: Likewise.
99890         * lib/unistr/u8-prev.c: Likewise.
99891         * lib/unistr/u8-set.c: Likewise.
99892         * lib/unistr/u8-startswith.c: Likewise.
99893         * lib/unistr/u8-stpcpy.c: Likewise.
99894         * lib/unistr/u8-stpncpy.c: Likewise.
99895         * lib/unistr/u8-strcat.c: Likewise.
99896         * lib/unistr/u8-strchr.c: Likewise.
99897         * lib/unistr/u8-strcmp.c: Likewise.
99898         * lib/unistr/u8-strcpy.c: Likewise.
99899         * lib/unistr/u8-strcspn.c: Likewise.
99900         * lib/unistr/u8-strdup.c: Likewise.
99901         * lib/unistr/u8-strlen.c: Likewise.
99902         * lib/unistr/u8-strmblen.c: Likewise.
99903         * lib/unistr/u8-strmbtouc.c: Likewise.
99904         * lib/unistr/u8-strncat.c: Likewise.
99905         * lib/unistr/u8-strncmp.c: Likewise.
99906         * lib/unistr/u8-strncpy.c: Likewise.
99907         * lib/unistr/u8-strnlen.c: Likewise.
99908         * lib/unistr/u8-strpbrk.c: Likewise.
99909         * lib/unistr/u8-strrchr.c: Likewise.
99910         * lib/unistr/u8-strspn.c: Likewise.
99911         * lib/unistr/u8-strstr.c: Likewise.
99912         * lib/unistr/u8-strtok.c: Likewise.
99913         * lib/unistr/u8-to-u16.c: Likewise.
99914         * lib/unistr/u8-to-u32.c: Likewise.
99915         * lib/unistr/u8-uctomb-aux.c: Likewise.
99916         * lib/unistr/u8-uctomb.c: Likewise.
99917         * lib/unitypes.h: Likewise.
99918         * lib/uniwidth.h: Likewise.
99919         * lib/uniwidth/cjk.h: Likewise.
99920         * lib/uniwidth/u16-strwidth.c: Likewise.
99921         * lib/uniwidth/u16-width.c: Likewise.
99922         * lib/uniwidth/u32-strwidth.c: Likewise.
99923         * lib/uniwidth/u32-width.c: Likewise.
99924         * lib/uniwidth/u8-strwidth.c: Likewise.
99925         * lib/uniwidth/u8-width.c: Likewise.
99926         * lib/uniwidth/width.c: Likewise.
99928 2007-10-07  Bruno Haible  <bruno@clisp.org>
99930         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
99931         The file is still under LGPL (see modules/inttypes).
99933 2007-10-06  Bruno Haible  <bruno@clisp.org>
99935         * modules/trunc (Dependencies): Add 'extensions'.
99936         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
99937         Reported by Ben Pfaff <blp@gnu.org>.
99939 2007-10-06  Bruno Haible  <bruno@clisp.org>
99941         * modules/freopen-tests: New file.
99942         * tests/test-freopen.c: New file.
99944         * modules/fopen-tests: New file.
99945         * tests/test-fopen.c: New file.
99947         * modules/fopen: New file.
99948         * lib/fopen.c: New file.
99949         * m4/fopen.m4: New file.
99950         * modules/freopen: New file.
99951         * lib/freopen.c: New file.
99952         * m4/freopen.m4: New file.
99953         * lib/stdio.in.h (fopen, freopen): New declarations.
99954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
99955         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
99956         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
99957         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
99958         * doc/functions/fopen.texi: Mention the 'fopen' module.
99959         * doc/functions/freopen.texi: Mention the 'freopen' module.
99961 2007-10-06  Bruno Haible  <bruno@clisp.org>
99963         * modules/open-tests: New file.
99964         * tests/test-open.c: New file.
99966         * modules/open: New file.
99967         * lib/open.c: New file.
99968         * m4/open.m4: New file.
99969         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
99970         lib/open.c does.
99971         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
99972         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
99973         macros.
99974         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
99975         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
99976         REPLACE_OPEN.
99977         * doc/functions/open.texi: Mention the 'open' module.
99979 2007-10-04  Bruno Haible  <bruno@clisp.org>
99981         * modules/ceill-tests: New file.
99982         * tests/test-ceill.c: New file.
99984         * modules/ceill: New file.
99985         * lib/ceill.c: Replace entire file.
99986         * m4/ceill.m4: New file.
99987         * lib/math.in.h (ceill): Replace declaration.
99988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
99989         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
99990         * doc/functions/ceill.texi: Mention the 'ceill' module.
99991         * modules/mathl (Files): Remove lib/ceill.c.
99992         (Depends-on): Add ceill.
99994 2007-10-04  Bruno Haible  <bruno@clisp.org>
99996         * modules/ceilf-tests: New file.
99997         * tests/test-ceilf.c: New file.
99999         * modules/ceilf: New file.
100000         * lib/ceil.c: New file.
100001         * lib/ceilf.c: New file.
100002         * m4/ceilf.m4: New file.
100003         * lib/math.in.h (ceilf): New declaration.
100004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
100005         HAVE_DECL_CEILF.
100006         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
100007         HAVE_DECL_CEILF.
100008         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
100010 2007-10-04  Bruno Haible  <bruno@clisp.org>
100012         * modules/floorl-tests: New file.
100013         * tests/test-floorl.c: New file.
100015         * modules/floorl: New file.
100016         * lib/floorl.c: Replace entire file.
100017         * m4/floorl.m4: New file.
100018         * lib/math.in.h (floorl): Replace declaration.
100019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
100020         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
100021         * doc/functions/floorl.texi: Mention the 'floorl' module.
100022         * modules/mathl (Files): Remove lib/floorl.c.
100023         (Depends-on): Add floorl.
100025 2007-10-04  Bruno Haible  <bruno@clisp.org>
100027         * modules/floorf-tests: New file.
100028         * tests/test-floorf.c: New file.
100030         * modules/floorf: New file.
100031         * lib/floor.c: New file.
100032         * lib/floorf.c: New file.
100033         * m4/floorf.m4: New file.
100034         * lib/math.in.h (floorf): New declaration.
100035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
100036         HAVE_DECL_FLOORF.
100037         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
100038         HAVE_DECL_FLOORF.
100039         * doc/functions/floorf.texi: Mention the 'floorf' module.
100041 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
100042             Bruno Haible  <bruno@clisp.org>
100044         Advertise for the Git server instead of the CVS server.
100045         * doc/gnulib-intro.texi (Steady Development): Mention the Git
100046         repository instead of the CVS one.
100047         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
100048         about all VCS systems generically.
100049         * doc/gnulib.texi (Introduction): Capitalize `Git'.
100051 2007-10-04  Bruno Haible  <bruno@clisp.org>
100053         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
100054         means.
100055         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
100057 2007-10-04  Bruno Haible  <bruno@clisp.org>
100059         * modules/truncl-tests: New file.
100060         * tests/test-truncl.c: New file.
100062         * modules/truncl: New file.
100063         * lib/truncl.c: New file.
100064         * m4/truncl.m4: New file.
100065         * lib/math.in.h (truncl): New declaration.
100066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
100067         HAVE_DECL_TRUNCL.
100068         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
100069         HAVE_DECL_TRUNCL.
100070         * doc/functions/truncl.texi: Mention the 'truncl' module.
100072 2007-10-04  Bruno Haible  <bruno@clisp.org>
100074         * modules/truncf-tests: New file.
100075         * tests/test-truncf.c: New file.
100077         * modules/truncf: New file.
100078         * lib/trunc.c: Make paramerizable through USE_* macros.
100079         * lib/truncf.c: New file.
100080         * m4/truncf.m4: New file.
100081         * lib/math.in.h (truncf): New declaration.
100082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
100083         HAVE_DECL_TRUNCF.
100084         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
100085         HAVE_DECL_TRUNCF.
100086         * doc/functions/truncf.texi: Mention the 'truncf' module.
100088 2007-10-03  Bruno Haible  <bruno@clisp.org>
100090         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
100091         augmentation also for tests modules.
100092         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
100093         * modules/atexit-tests (Makefile.am): Likewise.
100094         * modules/binary-io-tests (Makefile.am): Likewise.
100095         * modules/c-strcase-tests (Makefile.am): Likewise.
100096         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
100097         * modules/canonicalize-tests (Makefile.am): Likewise.
100098         * modules/closein-tests (Makefile.am): Likewise.
100099         * modules/fprintf-posix-tests (Makefile.am): Likewise.
100100         * modules/freadahead-tests (Makefile.am): Likewise.
100101         * modules/fseek-tests (Makefile.am): Likewise.
100102         * modules/fseeko-tests (Makefile.am): Likewise.
100103         * modules/ftell-tests (Makefile.am): Likewise.
100104         * modules/ftello-tests (Makefile.am): Likewise.
100105         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
100106         * modules/isnanl-tests (Makefile.am): Likewise.
100107         * modules/lseek-tests (Makefile.am): Likewise.
100108         * modules/mbscasecmp-tests (Makefile.am): Likewise.
100109         * modules/mbscasestr-tests (Makefile.am): Likewise.
100110         * modules/mbschr-tests (Makefile.am): Likewise.
100111         * modules/mbscspn-tests (Makefile.am): Likewise.
100112         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
100113         * modules/mbspbrk-tests (Makefile.am): Likewise.
100114         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
100115         * modules/mbsrchr-tests (Makefile.am): Likewise.
100116         * modules/mbsspn-tests (Makefile.am): Likewise.
100117         * modules/mbsstr-tests (Makefile.am): Likewise.
100118         * modules/printf-posix-tests (Makefile.am): Likewise.
100119         * modules/snprintf-posix-tests (Makefile.am): Likewise.
100120         * modules/sprintf-posix-tests (Makefile.am): Likewise.
100121         * modules/tsearch-tests (Makefile.am): Likewise.
100122         * modules/uniname/uniname-tests (Makefile.am): Likewise.
100123         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
100124         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
100125         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
100126         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
100127         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
100128         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
100129         * modules/vprintf-posix-tests (Makefile.am): Likewise.
100130         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
100131         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
100132         * modules/xstrtoimax-tests (Makefile.am): Likewise.
100133         * modules/xstrtol-tests (Makefile.am): Likewise.
100134         * modules/xstrtoumax-tests (Makefile.am): Likewise.
100135         * modules/yesno-tests (Makefile.am): Likewise.
100137 2007-10-03  Bruno Haible  <bruno@clisp.org>
100139         * modules/trunc-tests: New file.
100140         * tests/test-trunc.c: New file.
100142         * modules/trunc: New file.
100143         * lib/trunc.c: New file.
100144         * m4/trunc.m4: New file.
100145         * lib/math.in.h (trunc): New declaration.
100146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
100147         HAVE_DECL_TRUNC.
100148         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
100149         HAVE_DECL_TRUNC.
100150         * doc/functions/trunc.texi: Mention the 'trunc' module.
100152 2007-10-03  Bruno Haible  <bruno@clisp.org>
100154         * tests/test-fpending.c: New file, mostly copied
100155         from coreutils/lib/t-fpending.c.
100156         * modules/fpending-tests: New file.
100158 2007-10-03  Bruno Haible  <bruno@clisp.org>
100160         Port the stdio extensions to QNX (untested).
100161         * lib/fseterr.c (fseterr): Add support for QNX.
100162         * lib/fbufmode.c (fbufmode): Likewise.
100163         * lib/freadable.c (freadable): Likewise.
100164         * lib/fwritable.c (fwritable): Likewise.
100165         * lib/freading.c (freading): Likewise.
100166         * lib/fwriting.c (fwriting): Likewise.
100167         * lib/freadahead.c (freadahed): Likewise.
100168         * lib/fpurge.c (fpurge): Likewise.
100169         * lib/fseeko.c (rpl_fseeko): Likewise.
100171 2007-10-03  Bruno Haible  <bruno@clisp.org>
100172             Jim Meyering  <jim@meyering.net>
100173             Eric Blake  <ebb9@byu.net>
100175         * doc/relocatable.texi: Use @command instead of @program.
100177 2007-10-02  Jim Meyering  <jim@meyering.net>
100179         Perform one more "_.h" -> ".in.h" substitution.
100180         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
100181         instead of unistd_.h here, too.
100183 2007-10-01  Bruno Haible  <bruno@clisp.org>
100185         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
100186         Needed for the alloca-opt module.
100188 2007-09-30  Bruno Haible  <bruno@clisp.org>
100190         * lib/alloca.in.h: Renamed from lib/alloca_.h.
100191         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
100192         alloca_.h.
100193         * lib/argz.in.h: Renamed from lib/argz_.h.
100194         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
100195         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
100196         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
100197         byteswap_.h.
100198         * lib/dirent.in.h: Renamed from lib/dirent_.h.
100199         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
100200         dirent_.h.
100201         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
100202         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
100203         fcntl_.h.
100204         * lib/float.in.h: Renamed from lib/float_.h.
100205         * modules/float (Files, Makefile.am): Use float.in.h instead of
100206         float_.h.
100207         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
100208         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
100209         fnmatch_.h.
100210         * lib/getopt.in.h: Renamed from lib/getopt_.h.
100211         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
100212         getopt_.h.
100213         * lib/glob.in.h: Renamed from lib/glob_.h.
100214         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
100215         * lib/iconv.in.h: Renamed from lib/iconv_.h.
100216         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
100217         iconv_.h.
100218         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
100219         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
100220         inttypes_.h.
100221         * lib/locale.in.h: Renamed from lib/locale_.h.
100222         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
100223         locale_.h.
100224         * lib/math.in.h: Renamed from lib/math_.h.
100225         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
100226         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
100227         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
100228         of netinet_in_.h. Add dependency.
100229         * lib/poll.in.h: Renamed from lib/poll_.h.
100230         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
100231         * lib/search.in.h: Renamed from lib/search_.h.
100232         * modules/search (Files, Makefile.am): Use search.in.h instead of
100233         search_.h.
100234         * lib/signal.in.h: Renamed from lib/signal_.h.
100235         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
100236         _signal.h.
100237         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
100238         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
100239         stdbool_.h.
100240         * lib/stdint.in.h: Renamed from lib/stdint_.h.
100241         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
100242         stdint_.h.
100243         * lib/stdio.in.h: Renamed from lib/stdio_.h.
100244         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
100245         stdio_.h.
100246         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
100247         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
100248         stdlib_.h.
100249         * lib/string.in.h: Renamed from lib/string_.h.
100250         * modules/string (Files, Makefile.am): Use string.in.h instead of
100251         string_.h.
100252         * doc/gnulib-tool.texi (Initial import): Update.
100253         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
100254         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
100255         of sys_select_.h. Add dependency.
100256         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
100257         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
100258         of sys_socket_.h.
100259         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
100260         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
100261         sys_stat_.h.
100262         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
100263         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
100264         sys_time_.h.
100265         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
100266         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
100267         sysexits_.h.
100268         * lib/time.in.h: Renamed from lib/time_.h.
100269         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
100270         * lib/unistd.in.h: Renamed from lib/unistd_.h.
100271         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
100272         unistd_.h.
100273         * lib/wchar.in.h: Renamed from lib/wchar_.h.
100274         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
100275         wchar_.h.
100276         * lib/wctype.in.h: Renamed from lib/wctype_.h.
100277         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
100278         wctype_.h.
100279         * build-aux/bootstrap (slurp): Update.
100280         * lib/.cppi-disable: Update.
100282 2007-09-30  Bruno Haible  <bruno@clisp.org>
100284         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
100285         Needed on BeOS.
100287 2007-09-30  Bruno Haible  <bruno@clisp.org>
100289         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
100291 2007-09-29  Bruno Haible  <bruno@clisp.org>
100293         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
100295 2007-09-29  Bruno Haible  <bruno@clisp.org>
100297         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
100298         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
100299         * build-aux/install-reloc: Compile also areadlink.c.
100300         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
100302 2007-09-29  Bruno Haible  <bruno@clisp.org>
100304         * gnulib-tool (func_emit_initmacro_done): Indentation.
100306 2007-09-29  Bruno Haible  <bruno@clisp.org>
100308         * README: Add CVS checkout update instructions.
100309         Info from Bob Proulx <bob@proulx.com>.
100311 2007-09-28  Eric Blake  <ebb9@byu.net>
100313         Provide move-if-change.
100314         * build-aux/move-if-change: New file, based on best practice
100315         rather than any canonical upstream location.
100317 2007-09-28  Jim Meyering  <jim@meyering.net>
100319         Fix canonicalize loop-detection corner case.
100320         Do not attempt to stat the symlink values stored via seen_triple.
100321         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
100322         on linux-2.6.18, (but not 2.6.22).
100323         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
100324         triple_compare.  The former compares dev,ino,filename, while the latter
100325         would actually stat dirname(filename) when dev and ino were equal.
100326         * lib/hash-triple.c: Install <string.h>.
100327         (STREQ): Define.
100328         (triple_compare_ino_str): New function.
100329         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
100331 2007-09-28  Eric Blake  <ebb9@byu.net>
100333         Enforce that AC_REPLACE_FUNCS files exist.
100334         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
100335         override check for typos.
100337         Fix test-closein on Solaris 10.
100338         * tests/test-closein.c (main): Don't assume stdin can be inherited
100339         closed on all systems.
100340         * tests/test-closein.sh: Likewise.
100341         Reported by Piotr Tarnowski.
100343 2007-09-28  Jim Meyering  <jim@meyering.net>
100345         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
100347 2007-09-27  Jim Meyering  <jim@meyering.net>
100349         canonicalize: Avoid a false-positive cycle failure.
100350         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
100351         Sort.  Remove cycle-check.
100352         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
100353         not cycle-check.h.
100354         (seen_triple): New function.
100355         (canonicalize_filename_mode): Use it instead of cycle-check.
100356         * tests/test-canonicalize.c: Add a test for this bug.
100357         * tests/test-canonicalize.sh: Set up and run the test.
100359         New module, file-set, from coreutils.
100360         * modules/file-set: Define it.
100361         * lib/file-set.c, lib/file-set.h: Implement.
100363         New module, hash-triple, from coreutils.
100364         * modules/hash-triple: Define it.
100365         * lib/hash-triple.c, lib/hash-triple.h: Implement.
100367 2007-09-25  Eric Blake  <ebb9@byu.net>
100369         Fix strerror on Interix.
100370         * lib/string_.h (strerror): Declare replacement.
100371         * doc/functions/strerror.texi (strerror): Document the Interix
100372         shortcoming.
100373         * modules/string (Makefile.am): Support new hooks.
100374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
100375         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
100376         gl_FUNC_STRERROR_SEPARATE.
100377         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
100378         * lib/strerror.c (rpl_strerror): Provide replacement.
100379         * modules/strerror (Depends-on): Add string.
100380         (configure.ac): Detect use of module.
100381         * tests/test-strerror.c: New file.
100382         * modules/strerror-tests: New test module.
100383         * modules/argp (Depends-on): Add strerror.
100384         * modules/error (Depends-on): Likewise.
100385         Reported by Martin Koeppe.
100387 2007-09-24  Bruno Haible  <bruno@clisp.org>
100389         * README: Update git instructions.
100391 2007-09-24  Eric Blake  <ebb9@byu.net>
100393         Revert fpending breakage from 2007-09-08.
100394         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
100395         __fpending.c.
100397 2007-09-24  Jim Meyering  <jim@meyering.net>
100399         filenamecat.c: Add a test.
100400         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
100401         showing how the function works when DIR is the empty string.
100403 2007-09-21  Simon Josefsson  <simon@josefsson.org>
100405         * tests/test-canonicalize.sh: Turn on executable bit.
100407 2007-09-19  Eric Blake  <ebb9@byu.net>
100409         * README: Update CVS instructions.
100411 2007-09-18  Bruno Haible  <bruno@clisp.org>
100413         * modules/areadlink: New file.
100414         * lib/areadlink.h (areadlink): New declaration.
100415         * lib/areadlink.c: New file, based on lib/xreadlink.c.
100417 2007-09-17  Jim Meyering  <jim@meyering.net>
100419         * lib/savewd.c (ESTALE) [!defined]: Define.
100420         Reported to be required on Interix by Martin Koeppe.
100422 2007-09-17  Bruno Haible  <bruno@clisp.org>
100424         * gnulib-tool (func_version): Use $version.
100426 2007-09-16  Bruno Haible  <bruno@clisp.org>
100428         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
100429         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
100430         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
100431         Reported by Greg Schafer <gschafer@zip.com.au>.
100433 2007-09-15  Bruno Haible  <bruno@clisp.org>
100435         * gnulib-tool (sed): Try a little harder to make bash understand the
100436         alias.
100437         Reported by Bruce Korb <bruce.korb@gmail.com>.
100439 2007-09-13  Eric Blake  <ebb9@byu.net>
100441         * ChangeLog: Remove conflict markers.
100443 2007-09-13  Simon Josefsson  <simon@josefsson.org>
100445         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
100446         Reported by Bruno Haible <bruno@clisp.org>.
100448 2007-09-12  Bruno Haible  <bruno@clisp.org>
100450         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
100451         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
100452         is not defined.
100454 2007-09-12  Eric Blake  <ebb9@byu.net>
100456         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
100457         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
100458         Autoconf definition.
100459         * modules/euidaccess (Depends-on): Add extensions, for
100460         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
100461         * modules/fnmatch (Depends-on): Likewise.
100462         * modules/getaddrinfo (Depends-on): Likewise.
100463         * modules/getdelim (Depends-on): Likewise.
100464         * modules/getline (Depends-on): Likewise.
100465         * modules/getsubopt (Depends-on): Likewise.
100466         * modules/gettext (Depends-on): Likewise.
100467         * modules/group-member (Depends-on): Likewise.
100468         * modules/mbchar (Depends-on): Likewise.
100469         * modules/memmem (Depends-on): Likewise.
100470         * modules/mempcpy (Depends-on): Likewise.
100471         * modules/memrchr (Depends-on): Likewise.
100472         * modules/pagealign_alloc (Depends-on): Likewise.
100473         * modules/readutmp (Depends-on): Likewise.
100474         * modules/stpcpy (Depends-on): Likewise.
100475         * modules/stpncpy (Depends-on): Likewise.
100476         * modules/strchrnul (Depends-on): Likewise.
100477         * modules/strndup (Depends-on): Likewise.
100478         * modules/strsep (Depends-on): Likewise.
100479         * modules/strverscmp (Depends-on): Likewise.
100480         * modules/vasprintf (Depends-on): Likewise.
100481         * modules/wcwidth (Depends-on): Likewise.
100482         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
100483         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
100484         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
100485         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
100486         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
100487         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
100488         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
100489         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
100490         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
100491         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
100492         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
100493         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
100494         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
100495         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
100496         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
100497         * m4/readutmp.m4 (gl_READUTMP): Likewise.
100498         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100499         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
100500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100501         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
100502         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
100503         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
100504         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
100505         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
100506         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
100507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
100508         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
100509         so that lock.m4 can be used in gettext without extensions module.
100511 2007-09-11  Bruno Haible  <bruno@clisp.org>
100513         * m4/isc-posix.m4: Remove file.
100514         Suggested by Eric Blake.
100516 2007-09-11  Eric Blake  <ebb9@byu.net>
100518         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
100520 2007-09-10  Bruno Haible  <bruno@clisp.org>
100522         * posix-modules: Fix typo in error message.
100523         Reported by Matt <mkraai@beckman.com>.
100525 2007-09-09  Bruno Haible  <bruno@clisp.org>
100527         * doc/functions/getdelim.texi: Update list of platforms lacking the
100528         function.
100529         * doc/functions/getline.texi: Likewise.
100531 2007-09-09  Jim Meyering  <jim@meyering.net>
100533         * lib/hash.c (hash_initialize): Detect calloc failure.
100534         Reported by Bruno Haible.
100536 2007-09-09  Bruno Haible  <bruno@clisp.org>
100538         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
100539         malloc or realloc fails.
100541 2007-09-09  Bruno Haible  <bruno@clisp.org>
100543         * modules/getcwd (Depends-on): Add malloc-posix.
100544         * modules/glob (Depends-on): Likewise.
100545         * modules/putenv (Depends-on): Likewise.
100546         * modules/strdup (Depends-on): Likewise.
100547         * modules/getdelim (Depends-on): Add realloc-posix.
100548         * modules/read-file (Depends-on): Likewise.
100550 2007-09-09  Bruno Haible  <bruno@clisp.org>
100552         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
100553         (gl_FUNC_MALLOC_POSIX): Require it.
100554         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
100555         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
100556         * modules/realloc (Files): Add m4/malloc.m4.
100557         * modules/calloc (Files): Likewise.
100559 2007-09-09  Bruno Haible  <bruno@clisp.org>
100561         * modules/malloc-posix: New file.
100562         * modules/malloc (Depends-on): Add malloc-posix.
100563         * lib/malloc.c: Include errno.h.
100564         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
100565         and a POSIX-compatible malloc into a single function. Set ENOMEM
100566         when returning NULL.
100567         * m4/malloc.m4: New file.
100568         * doc/functions/malloc.texi: Mention the malloc-posix module.
100569         * lib/stdlib_.h (malloc): New declaration.
100570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100571         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
100572         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
100573         and HAVE_MALLOC_POSIX.
100575 2007-09-09  Bruno Haible  <bruno@clisp.org>
100577         * modules/realloc-posix: New file.
100578         * modules/realloc (Depends-on): Add realloc-posix.
100579         * lib/realloc.c: Include errno.h.
100580         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
100581         and a POSIX-compatible realloc into a single function. Set ENOMEM
100582         when returning NULL.
100583         * m4/realloc.m4: New file.
100584         * doc/functions/realloc.texi: Mention the realloc-posix module.
100585         * lib/stdlib_.h (realloc): New declaration.
100586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100587         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
100588         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
100589         and HAVE_REALLOC_POSIX.
100591 2007-09-09  Bruno Haible  <bruno@clisp.org>
100593         * modules/calloc-posix: New file.
100594         * modules/calloc (Depends-on): Add calloc-posix.
100595         * lib/calloc.c: Include errno.h.
100596         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
100597         and a POSIX-compatible calloc into a single function. Set ENOMEM
100598         when returning NULL.
100599         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
100600         * doc/functions/calloc.texi: Mention the calloc-posix module.
100601         * lib/stdlib_.h (calloc): New declaration.
100602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100603         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
100604         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
100605         and HAVE_CALLOC_POSIX.
100607 2007-09-09  Bruno Haible  <bruno@clisp.org>
100609         Allow for modules to show an arbitrary notice.
100610         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
100611         * gnulib-tool: New option --extract-notice.
100612         (func_usage): Document it.
100613         (sed_extract_prog): Update.
100614         (func_get_notice): New function.
100615         (func_modules_notice): New function.
100616         (func_import, func_create_testdir): Invoke it.
100617         Suggested by Jim Meyering.
100619 2007-09-09  Bruno Haible  <bruno@clisp.org>
100621         * gnulib-tool: New options --verbose, --quiet.
100622         (func_usage): Document them.
100623         (verbose): New variable.
100624         (func_execute_command): New function.
100625         (func_import): Don't show the module list and the file list if
100626         $verbose < 0.
100627         (func_create_testdir): Likewise. Use func_execute_command.
100628         (func_create_megatestdir): Use func_execute_command.
100630 2007-09-08  Bruno Haible  <bruno@clisp.org>
100632         * gnulib-tool (func_import): Prefer rsync over wget when available,
100633         for fetching the PO files.
100635 2007-09-08  Bruno Haible  <bruno@clisp.org>
100637         * posix-modules: New file. Portions copied from gnulib-tool.
100638         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
100640 2007-09-08  Jim Meyering  <jim@meyering.net>
100642         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
100643         * lib/fpending.h: Rename from __fpending.h.
100644         * lib/fpending.c: Rename from __fpending.c.
100645         Include "fpending.h", not "__fpending.h".
100646         * lib/__fpending.h, lib/__fpending.c: Remove files.
100647         * modules/fpending (Files): Reflect new file names.
100648         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
100650 2007-09-08  Bruno Haible  <bruno@clisp.org>
100652         * m4/inttypes-h.m4: Remove stub file.
100654 2007-09-07  Simon Josefsson  <simon@josefsson.org>
100656         * doc/headers/stdint.texi: Discuss #include_next issue.
100658 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100660         * build-aux/bootstrap: Remove obsolete comment about wget --help.
100662 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100664         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
100665         in variable name.
100667 2007-09-03  Jim Meyering  <jim@meyering.net>
100669         New module: git-version-gen.
100670         * modules/git-version-gen: New file.
100672         Import changes from coreutils for bootstrap script.
100674         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
100676         bootstrap: uses rsync to download the .po files
100677         * build-aux/bootstrap (po_download_command_format): New global.
100678         (download_po_files): Use rsync.
100679         (update_po_files): Don't remove .po files after download,
100680         so future rsync runs can take advantage of the copies.
100682         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
100684         Solve the unnecessary-.po-file-regeneration problem once and for all.
100685         * build-aux/bootstrap (download_po_files): New function, renamed from
100686         get_translations.  Now, downloads, but doesn't update LINGUAS.
100687         (update_po_files): New function.
100689         bootstrap: Ignore more.
100690         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
100691         uniwidth to e.g., lib/.gitignore.
100692         (slurp): Handle the sys_stat_.h -> sys mapping, too.
100694         * build-aux/bootstrap: New setting: vc_ignore.
100695         (insert_sorted_if_absent): Create $file if absent.
100696         Adapt to new, possibly empty, list: $vc_ignore.
100698         bootstrap: generate more ignorable names
100699         * build-aux/bootstrap (slurp): When generating ignorable names,
100700         also map .sin to .sed, .gperf to .c, and .y to .c.
100702 2007-09-03  Jim Meyering  <jim@meyering.net>
100704         * build-aux/git-version-gen: New file, from coreutils.  For details, see
100705         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
100707 2007-09-02  Bruno Haible  <bruno@clisp.org>
100709         Fix mis-recognition of 'mcs' on QNX 6.
100710         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
100711         output contains the string "Mono".
100712         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
100713         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
100715 2007-09-01  Bruno Haible  <bruno@clisp.org>
100717         Fix collision between uniwidth/* and linebreak modules.
100718         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
100719         u32_width): Remove declarations.
100720         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
100721         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
100722         streq3, streq2, streq1, streq0): Remove functions.
100723         (STREQ): Remove macro.
100724         (is_cjk_encoding): Remove function.
100725         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
100726         (uc_width, u8_width, u16_width, u32_width): Remove functions.
100727         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
100728         * NEWS: Document the change.
100730 2007-09-01  Bruno Haible  <bruno@clisp.org>
100732         * lib/streq.h: Add double-inclusion guard.
100734 2007-09-01  Karl Berry  <karl@gnu.org>
100736         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
100738 2007-08-28  Jim Meyering  <jim@meyering.net>
100740         Rename mreadlink_with_size to areadlink_with_size.
100741         * NEWS: Document the change.
100742         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
100743         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
100744         * lib/mreadlink.h: Rename this to...
100745         * lib/areadlink.h: ...this.
100746         * modules/mreadlink-with-size: Rename this to...
100747         * modules/areadlink-with-size: ...this.
100748         * lib/canonicalize.c: Reflect the renaming.
100749         * modules/canonicalize: Likewise.
100751 2007-08-26  Bruno Haible  <bruno@clisp.org>
100753         * gnulib-tool (func_import): When deciding which files to remove,
100754         consider also dangling symbolic links.
100755         Reported by Eric Blake.
100757 2007-08-26  Bruno Haible  <bruno@clisp.org>
100759         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
100761 2007-08-23  Simon Josefsson  <simon@josefsson.org>
100763         * lib/readline.c: Don't include getline.h, the prototype is now
100764         found in stdio.h.
100766 2007-08-23  Jim Meyering  <jim@meyering.net>
100768         Getdelim touchup.
100769         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
100770         around the funlockfile call, since funlockfile never sets errno.
100771         Don't set errno upon failed realloc.
100773 2007-08-22  Eric Blake  <ebb9@byu.net>
100775         Getline touchups.
100776         * lib/getdelim.c (getdelim): Revert regression that required *n to
100777         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
100778         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
100779         getdelim, rather than whether implementation is missing.
100780         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
100781         * lib/stdio_.h (getline): Also declare if replacement is
100782         required.
100783         * doc/functions/getdelim.texi: New file.
100784         * doc/functions/getline.texi: Likewise.
100785         * doc/gnulib.texi (Function Substitutes): Add new files.
100786         Reported by Bruno Haible.
100788 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
100790         * users.txt: Add Guile.
100792 2007-08-22  Eric Blake  <ebb9@byu.net>
100794         * tests/test-getdelim.c (main): Use remove, not unlink.
100795         * tests/test-getline.c (main): Likewise.
100797         Move getline and getdelim into stdio.h, per POSIX 200x.
100798         * modules/getline (Files): Remove getline.h.
100799         (Depends-on): Add stdio.
100800         (configure.ac): Add module indicator.
100801         * modules/getdelim (Files): Remove getdelim.h.
100802         (Depends-on): Add stdio.
100803         (configure.ac): Add module indicator.
100804         * modules/stdio (Makefile.am): Work with new indicators.
100805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
100806         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
100807         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
100808         * lib/getdelim.h: Delete.
100809         * lib/getline.h: Delete.
100810         * lib/stdio_.h (getdelim, getline): Declare.
100811         * modules/getdelim-tests: New module.
100812         * modules/getline-tests: Likewise.
100813         * tests/test-getdelim.c: New file.
100814         * tests/test-getline.c: Likewise.
100815         * NEWS: Document the change.
100816         * lib/getline.c: Update choice of header.
100817         * lib/csharpcomp.c: Likewise.
100818         * lib/getpass.c: Likewise.
100819         * lib/javacomp.c: Likewise.
100820         * lib/javaversion.c: Likewise.
100821         * lib/yesno.c: Likewise.
100822         * lib/getdelim.c: Likewise.
100823         (getdelim): Set errno on failure, and avoid memory leak.
100825 2007-08-19  Bruno Haible  <bruno@clisp.org>
100827         * modules/closein (Depends-on): Add freadahead.
100828         * lib/closein.c: Include freadahead.h.
100829         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
100830         is zero.
100832 2007-08-19  Bruno Haible  <bruno@clisp.org>
100834         * modules/freadahead-tests: New file.
100835         * tests/test-freadahead.sh: New file.
100836         * tests/test-freadahead.c: New file.
100838         * modules/freadahead: New file.
100839         * lib/freadahead.h: New file.
100840         * lib/freadahead.c: New file.
100841         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
100842         fbufmode, fpurge, freadable, fwritable.
100844 2007-08-19  Eric Blake  <ebb9@byu.net>
100846         Test yesno in combination with closein.
100847         * lib/yesno.c (yesno): Document use of stdin.
100848         * modules/yesno-tests (Files): New module.
100849         * tests/test-yesno.c (main): New file.
100850         * tests/test-yesno.sh: Likewise.
100852 2007-08-19  Bruno Haible  <bruno@clisp.org>
100854         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
100855         * lib/fseeko.c (rpl_fseeko): Likewise.
100856         * lib/fseterr.c (fseterr): Likewise.
100858 2007-08-19  Bruno Haible  <bruno@clisp.org>
100860         * tests/test-lseek.c (main): Disable a test for BeOS.
100861         * doc/functions/lseek.texi: Document the BeOS bug.
100863 2007-08-19  Bruno Haible  <bruno@clisp.org>
100864             Eric Blake  <ebb9@byu.net>
100866         * lib/lseek.c: Include <sys/stat.h>.
100867         (rpl_lseek): Add workaround code also for Unix platforms.
100868         Needed for BeOS.
100869         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
100870         * doc/functions/lseek.texi: Document BeOS definiency.
100872 2007-08-18  Bruno Haible  <bruno@clisp.org>
100874         * modules/fstrcmp-tests: New file.
100875         * tests/test-fstrcmp.c: New file.
100877 2007-08-18  Bruno Haible  <bruno@clisp.org>
100879         * modules/fstrcmp: New file, from GNU gettext with modifications.
100880         * lib/fstrcmp.h: New file, from GNU gettext.
100881         * lib/fstrcmp.c: New file, from GNU gettext.
100882         * MODULES.html.sh (String handling): Add fstrcmp.
100884 2007-08-18  Bruno Haible  <bruno@clisp.org>
100886         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
100887         'bool'.
100888         (diag, compareseq): Remove const from the ctxt argument.
100889         (USE_HEURISTIC): Undefine at the end.
100891 2007-08-18  Jim Meyering  <jim@meyering.net>
100893         New file: lib/idcache.h
100894         * NEWS: Mention the addition.
100895         * modules/idcache (Files): Add lib/idcache.h
100896         * lib/idcache.c: Include "idcache.h".
100897         Don't include <sys/types.h>.
100898         Add a FIXME comment.
100899         Move file-scoped "static" declarations to the top.
100900         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
100902 2007-08-17  Bruno Haible  <bruno@clisp.org>
100903         and Paul Eggert  <eggert@cs.ucla.edu>
100905         * MODULES.html.sh: Add diffseq.
100906         * modules/diffseq: New file.
100907         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
100908         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
100910 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
100912         Import changes from coreutils for bootstrap script.
100914         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
100916         * build-aux/bootstrap (slurp): Work even in environments where
100917         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
100918         current code does not slurp files whose names start with ".", and
100919         this looks like it might be a troublesome area.
100921         2007-07-11  Jim Meyering  <jim@meyering.net>
100923         If there's a GPL vN copyright comment, require that N == 3.
100925         2007-07-08  Jim Meyering  <jim@meyering.net>
100927         Run the coreutils-specific code only if tests/Makefile.am.in exists.
100928         * build-aux/bootstrap (mam_template): Move definition out of loop.
100930         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
100932         * build-aux/bootstrap (symlink_to_dir): Rename function from
100933         symlink_to_gnulib.  Add a directory parameter.  Update all
100934         callers.
100935         (cp_mark_as_generated): Also check for -- and link to -- files in
100936         gl/.
100938         2007-07-08  Jim Meyering  <jim@meyering.net>
100940         Adapt to deeper hierarchy in gnulib.
100941         * build-aux/bootstrap (symlink_to_dir): If the destination
100942         directory doesn't exist, create it. This is required at least for
100943         "lib/uniwidth/cjk.h".
100945         2007-05-15  Jim Meyering  <jim@meyering.net>
100947         * build-aux/bootstrap: Now that generated Makefile.am files
100948         are no longer under version control, they must be created at
100949         bootstrap time.
100951 2007-08-14  Ben Pfaff  <blp@gnu.org>
100953         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
100955 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
100957         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
100958         given the changes below.
100959         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
100960         even on hosts that have padding bits beyond the supported 64.
100962 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
100964         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
100965         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
100966         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
100967         depends on it.
100968         (xstrtol_error): Remove.
100969         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
100970         but with a different signature.
100971         (ATTRIBUTE_NORETURN, __attribute__): New macros.
100972         * lib/xstrtol-error.c: Include exitfail.h.
100973         (xstrtol_fatal): New function, with a different signature from the
100974         old xstrtol_error, so that the caller need not worry about passing
100975         in an exit status, or about storage management of the option argument.
100976         (xstrtol_error): Now a static function.  Redo signature to
100977         implement xstrtol_fatal.  Output the correct number of hyphens in
100978         front of the option so that the caller need not worry about
100979         storage management.
100980         (N_): New macro.
100981         (_): Remove; not used now.
100982         * modules/xstrtol: Depend on getopt.
100983         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
100984         of old STRTOL_FATAL_ERROR macro.
100985         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
100986         of test program.
100987         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
100988         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
100990 2007-08-08  Eric Blake  <ebb9@byu.net>
100992         * lib/xstrtol-error.c: Add missing include.
100994         Move xstrtol messages into gnulib domain, when --pobase is used.
100995         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
100996         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
100997         * modules/xstrtol (Files): Distribute new file.
100998         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
100999         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
101000         * tests/test-xstrtol.c: ...into new file.
101001         * tests/test-xstrtoul.c: Also test xstrtoul.
101002         * tests/test-xstrtoimax.c: Also test xstrtoimax.
101003         * tests/test-xstrtoumax.c: Also test xstrtoumax.
101004         * tests/test-xstrtol.sh: Drive the tests.
101005         * tests/test-xstrtoimax.sh: Likewise.
101006         * tests/test-xstrtoumax.sh: Likewise.
101007         * modules/xstrtol-tests: New module.
101008         * modules/xstrtoimax-tests: Likewise.
101009         * modules/xstrtoumax-tests: Likewise.
101011 2007-08-08  Jim Meyering  <jim@meyering.net>
101013         New function: mfile_name_concat.
101014         * lib/filenamecat.c (mfile_name_concat): New function, just like
101015         file_name_concat, but return NULL upon failure rather than exiting
101016         with a diagnostic.
101017         * lib/filenamecat.h: Declare it.
101019 2007-08-07  Bruno Haible  <bruno@clisp.org>
101021         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
101022         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
101023         warning from gcc.
101024         Reported by Eric Blake.
101026 2007-08-07  Simon Josefsson  <simon@josefsson.org>
101028         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
101029         * modules/crypto/arcfour (License): Likewise.
101030         * modules/crypto/des-tests (License): Likewise.
101031         * modules/crypto/gc-arctwo-tests (License): Likewise.
101032         * modules/crypto/gc-des-tests (License): Likewise.
101033         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
101034         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
101035         * modules/crypto/gc-md2-tests (License): Likewise.
101036         * modules/crypto/gc-md4-tests (License): Likewise.
101037         * modules/crypto/gc-md5-tests (License): Likewise.
101038         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
101039         * modules/crypto/gc-rijndael-tests (License): Likewise.
101040         * modules/crypto/gc-sha1-tests (License): Likewise.
101041         * modules/crypto/gc-tests (License): Likewise.
101042         * modules/crypto/hmac-md5 (License): Likewise.
101043         * modules/crypto/hmac-sha1 (License): Likewise.
101044         * modules/crypto/md2-tests (License): Likewise.
101045         * modules/crypto/md4-tests (License): Likewise.
101046         * modules/crypto/md5 (License): Likewise.
101047         * modules/crypto/rijndael (License): Likewise.
101048         * modules/crypto/sha1 (License): Likewise.
101049         * modules/memxor (License): Likewise.
101051 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101052         and Bruno Haible  <bruno@clisp.org>
101054         * NEWS: Describe interface changes to human, xstrtol.
101055         * lib/human.h: Include <xstrtol.h>.
101056         (human_options): Return enum strtol_error, not int.  Remove
101057         bool arg; take int * instead.
101058         * lib/human.c: Don't include "gettext.h".
101059         (_): Remove; no longer used.
101060         Don't include <xstrtol.h>, since human.h does it.
101061         (human_options): Adjust to abovementioned interface changes.
101062         Do not report error to stderr; that's now the caller's
101063         responsibility.
101064         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
101065         interface change.
101066         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
101067         Str, Argument_type_string.  All uses changed.  Put " argument"
101068         in diagnostics to make them clearer.  Change wording of suffix
101069         message for clarity.
101070         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
101071         Argument_type_string.
101072         (STRTOL_FATAL_WARN): Remove; no longer used.
101073         * modules/human (Depends-on): Remove gettext-h.
101075 2007-08-06  Simon Josefsson  <simon@josefsson.org>
101077         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
101079 2007-07-31  Bruno Haible  <bruno@clisp.org>
101081         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
101082         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
101083         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
101085 2007-07-31  Bruno Haible  <bruno@clisp.org>
101087         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
101088         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
101090 2007-07-30  Bruno Haible  <bruno@clisp.org>
101092         * modules/base64 (License): Use the synonymous term "LGPLv2+".
101093         * modules/c-ctype (License): Likewise.
101094         * modules/c-strcase (License): Likewise.
101095         * modules/check-version (License): Likewise.
101096         * modules/iconv (License): Likewise.
101097         * modules/iconv_open (License): Likewise.
101098         * modules/read-file (License): Likewise.
101099         * modules/striconv (License): Likewise.
101100         * modules/strverscmp (License): Likewise.
101101         * modules/vasprintf (License): Likewise.
101102         * modules/crypto/des (License): Likewise.
101103         * modules/crypto/gc (License): Likewise.
101104         * modules/crypto/gc-arcfour (License): Likewise.
101105         * modules/crypto/gc-arctwo (License): Likewise.
101106         * modules/crypto/gc-des (License): Likewise.
101107         * modules/crypto/gc-hmac-md5 (License): Likewise.
101108         * modules/crypto/gc-hmac-sha1 (License): Likewise.
101109         * modules/crypto/gc-md2 (License): Likewise.
101110         * modules/crypto/gc-md4 (License): Likewise.
101111         * modules/crypto/gc-md5 (License): Likewise.
101112         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
101113         * modules/crypto/gc-random (License): Likewise.
101114         * modules/crypto/gc-rijndael (License): Likewise.
101115         * modules/crypto/gc-sha1 (License): Likewise.
101116         * modules/crypto/md2 (License): Likewise.
101117         * modules/crypto/md4 (License): Likewise.
101119 2007-07-30  Jim Meyering  <jim@meyering.net>
101121         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
101122         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
101123         it has valid stat data.  This bug would cause du not to count the
101124         sizes of inaccessible directories.
101125         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
101126         in <http://bugzilla.redhat.com/250077>.
101128 2007-07-25  Peter O'Gorman  <peter@pogma.com>
101129             Bruno Haible  <bruno@clisp.org>
101131         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
101132         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
101133         #include_next, gives a diagnostic about it, but reports no error in
101134         the exit code.
101135         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
101137 2007-07-24  Ben Pfaff  <blp@gnu.org>
101139         Improve name: "count-one-bits" is better than "popcount".
101140         * MODULES.html.sh: Update name.
101141         * lib/popcount.h: Renamed lib/count-one-bits.h.
101142         (popcount): Renamed count_one_bits.
101143         (popcountl): Renamed count_one_bits_l.
101144         (popcountll): Renamed count_one_bits_ll.
101145         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
101146         * modules/popcount: Renamed module/count-one-bits.
101147         * modules/popcount-tests: Renamed module/count-one-bits-tests.
101148         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
101150 2007-07-23  Ben Pfaff  <blp@gnu.org>
101152         * lib/popcount.h (popcount32): Reduce size of constants, to allow
101153         better code generation, and add U to large constants to avoid
101154         warnings, in non-GCC case.
101155         Suggested by Bruno Haible.
101157 2007-07-23  Ben Pfaff  <blp@gnu.org>
101159         * lib/popcount.h: Use verify_true instead of if...abort.
101160         * modules/popcount: Depend on verify module.
101161         Suggested by Jim Meyering.
101163 2007-07-23  Bruno Haible  <bruno@clisp.org>
101165         * gnulib-tool (func_import): Create a .cvsignore file also when the
101166         directory is not yet in CVS but the toplevel directory is. When
101167         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
101168         Reported by Karl Berry.
101170 2007-07-22  Ben Pfaff  <blp@gnu.org>
101172         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
101173         case.
101174         Suggested by Eric Blake.
101176 2007-07-22  Ben Pfaff  <blp@gnu.org>
101178         New module: popcount.
101179         * MODULES.html.sh: Add popcount.
101180         * modules/popcount: New file.
101181         * modules/popcount-tests: New file.
101182         * tests/test-popcount.c: New file.
101183         * lib/popcount.h: New file.
101184         * m4/popcount.m4: New file.
101186 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
101188         * build-aux/announce-gen: Update to GPLv3.
101190         * build-aux/config.guess: Update from config.
101192 2007-07-21  Bruno Haible  <bruno@clisp.org>
101194         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
101195         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
101197 2007-07-20  Jim Meyering  <jim@meyering.net>
101199         * check-module: Diagnose a self-dependency.
101201 2007-07-19  Bruno Haible  <bruno@clisp.org>
101203         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
101204         empty.
101205         Reported by Eric Blake.
101207 2007-07-18  Bruno Haible  <bruno@clisp.org>
101209         * gnulib-tool: New options --po-base, --po-domain.
101210         (func_usage): Document them.
101211         (pobase, po_domain): New variables.
101212         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
101213         DEFAULT_TEXT_DOMAIN.
101214         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
101215         (func_import): Consider pobase and po_domain. Create a po/ directory.
101216         (func_create_testdir): Set pobase and po_domain to empty.
101217         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
101218         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
101220 2007-07-18  Bruno Haible  <bruno@clisp.org>
101222         * gnulib-tool (func_get_automake_snippet): Synthesize also an
101223         EXTRA_DIST augmentation for files in build-aux/.
101225 2007-07-16  Bruno Haible  <bruno@clisp.org>
101227         * modules/lseek (License): Use the synonymous term "LGPLv2+".
101228         * modules/getdelim (License): Likewise.
101230 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101232         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
101233         * modules/d-type (License): Likewise.
101234         * modules/extensions (License): Likewise.
101235         * modules/fnmatch (License): Likewise.
101236         * modules/fseeko (License): Likewise.
101237         * modules/getaddrinfo (License): Likewise.
101238         * modules/getline (License): Likewise.
101239         * modules/getlogin_r (License): Likewise.
101240         * modules/getpass (License): Likewise.
101241         * modules/gettimeofday (License): Likewise.
101242         * modules/glob (License): Likewise.
101243         * modules/inet_ntop (License): Likewise.
101244         * modules/malloc (License): Likewise.
101245         * modules/malloca (License): Likewise.
101246         * modules/memmem (License): Likewise.
101247         * modules/mempcpy (License): Likewise.
101248         * modules/memset (License): Likewise.
101249         * modules/minmax (License): Likewise.
101250         * modules/mktime (License): Likewise.
101251         * modules/netinet_in (License): Likewise.
101252         * modules/pathmax (License): Likewise.
101253         * modules/poll (License): Likewise.
101254         * modules/regex (License): Likewise.
101255         * modules/snprintf (License): Likewise.
101256         * modules/stdbool (License): Likewise.
101257         * modules/stdint (License): Likewise.
101258         * modules/stdio (License): Likewise.
101259         * modules/strcase (License): Likewise.
101260         * modules/strcasestr (License): Likewise.
101261         * modules/strdup (License): Likewise.
101262         * modules/string (License): Likewise.
101263         * modules/strndup (License): Likewise.
101264         * modules/strnlen (License): Likewise.
101265         * modules/strpbrk (License): Likewise.
101266         * modules/strptime (License): Likewise.
101267         * modules/strsep (License): Likewise.
101268         * modules/sys_select (License): Likewise.
101269         * modules/sys_socket (License): Likewise.
101270         * modules/sys_stat (License): Likewise.
101271         * modules/sys_time (License): Likewise.
101272         * modules/time (License): Likewise.
101273         * modules/time_r (License): Likewise.
101274         * modules/timegm (License): Likewise.
101275         * modules/unistd (License): Likewise.
101276         * modules/vsnprintf (License): Likewise.
101277         * modules/wctype (License): Likewise.
101279 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101281         * modules/argz (License): LGPLv2+.
101283 2007-07-15  Karl Berry  <karl@gnu.org>
101285         * doc/gnulib.texi: revise node structure per new fdl.texi.
101287 2007-07-14  Bruno Haible  <bruno@clisp.org>
101289         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
101290         the output file.
101291         * lib/uniname/uninames.h: Regenerated.
101293 2007-07-14  Karl Berry  <karl@gnu.org>
101295         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
101296         omitting sectioning and index commands.
101298 2007-07-13  Bruno Haible  <bruno@clisp.org>
101300         New gnulib-tool option --more-symlinks.
101301         * gnulib-tool (func_usage): Document --more-symlinks.
101302         (do_copyrights): New variable.
101303         Recognize option --more-symlinks.
101304         (func_import): Don't add a copyright notice transform to
101305         sed_transform_lib_file if do_copyrights is empty.
101307 2007-07-13  Bruno Haible  <bruno@clisp.org>
101309         * lib/vasnprintf.c (decimal_point_char): Define also if
101310         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
101311         && !NEED_PRINTF_DIRECTIVE_A.
101312         Reported by Clemens Koller <clemens.koller@anagramm.de> via
101313         Gary V. Vaughan <gary@gnu.org>.
101315 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
101317         * lib/inttypes_.h: Undo previous change, since it was fixed
101318         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
101320 2007-07-13  Bruno Haible  <bruno@clisp.org>
101322         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
101323         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
101325 2007-07-13  Jim Meyering  <jim@meyering.net>
101327         df: Don't fail for Tru64's "file-on-file mount".
101328         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
101329         so we fall through and use statfs instead.  Details here:
101330         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
101331         Reported by Albert Chin.
101333 2007-07-13  Bruno Haible  <bruno@clisp.org>
101335         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
101336         * modules/configmake (License): Likewise.
101337         * modules/gettext (License): Likewise.
101338         * modules/gettext-h (License): Likewise.
101339         * modules/include_next (License): Likewise.
101340         * modules/link-warning (License): Likewise.
101341         * modules/localcharset (License): Likewise.
101342         * modules/localename (License): Likewise.
101343         * modules/lock (License): Likewise.
101344         * modules/relocatable-lib-lgpl (License): Likewise.
101345         * modules/size_max (License): Likewise.
101346         * modules/vasnprintf (License): Likewise.
101347         * modules/wchar (License): Likewise.
101348         * modules/xsize (License): Likewise.
101350 2007-07-13  Bruno Haible  <bruno@clisp.org>
101352         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
101353         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
101355 2007-07-12  Bruno Haible  <bruno@clisp.org>
101357         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
101358         in the modules files.
101360 2007-07-11  Karl Berry  <karl@gnu.org>
101362         * MODULES.html.sh (func_module): use
101363          sed -e '\|^'"${includefile}"'$|d'
101364          instead of /.../d, to avoid errors on $includefile's containing /.
101366 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
101368         * gnulib-tool (func_import): Avoid duplication of --avoid
101369         statements
101370         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
101371         names to `_' in variable names.
101373 2007-07-10  Eric Blake  <ebb9@byu.net>
101375         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
101376         * NEWS: Document this change.
101378 2007-07-08  Bruno Haible  <bruno@clisp.org>
101380         Update to Unicode 5.0.
101381         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
101382         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
101383         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
101384         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
101385         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
101386         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
101387         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
101388         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
101389         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
101390         U+10A3F, U+1D242..U+1D244.
101391         (nonspacing_table_ind): Update.
101392         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
101393         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
101395 2007-07-08  Bruno Haible  <bruno@clisp.org>
101397         Update to Unicode 5.0.
101398         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
101399         code transform. Extend the name index field of unicode_name_to_code and
101400         unicode_code_to_name from 16 to 24 bits.
101401         * lib/uniname/uniname.c (unicode_character_name,
101402         unicode_name_character): Add the range 0x12xxx to the code transform.
101403         * lib/uniname/uninames.h: Regenerated.
101404         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
101406 2007-07-07  Bruno Haible  <bruno@clisp.org>
101408         * modules/wcwidth-tests: New file.
101409         * tests/test-wcwidth.c: New file.
101411         Work around MacOS X wcwidth() bug.
101412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
101413         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
101414         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
101415         original wcwidth in non-UTF-8 locales.
101416         * modules/wcwidth (Depends-on): Add localcharset, streq,
101417         uniwidth/width.
101418         * doc/functions/wcwidth.texi: Update.
101420 2007-07-07  Bruno Haible  <bruno@clisp.org>
101422         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
101423         (wcwidth): New declaration.
101424         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
101425         macros.
101426         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
101427         here. Prepare for creating <wchar.h> unconditionally.
101428         * modules/wchar (Depends-on): Add link-warning.
101429         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
101430         REPLACE_WCWIDTH, and GL_LINK_WARNING.
101431         * lib/wcwidth.h: Remove file.
101432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
101433         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
101434         * modules/wcwidth (Files): Remove lib/wcwidth.h.
101435         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
101436         (Include): Replace wcwidth.h with <wchar.h>.
101437         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
101438         * lib/mbchar.h: Don't include wcwidth.h.
101439         * lib/mbswidth.c: Likewise.
101440         * NEWS: Mention the change.
101442 2007-07-07  Bruno Haible  <bruno@clisp.org>
101444         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
101445         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
101446         definition with an external declaration.
101447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
101448         defined as a function. Remove AC_C_INLINE requirement.
101449         * modules/wcwidth (Files): Add lib/wcwidth.c.
101450         (Makefile.am): Remove redundant statement.
101452 2007-07-07  Bruno Haible  <bruno@clisp.org>
101454         * MODULES.html.sh (Unicode string functions): Add the new modules.
101456         * tests/uniwidth/test-u32-strwidth.c: New file.
101457         * modules/uniwidth/u32-strwidth-tests: New file.
101459         * lib/uniwidth/u32-strwidth.c: New file.
101460         * modules/uniwidth/u32-strwidth: New file.
101462         * tests/uniwidth/test-u16-strwidth.c: New file.
101463         * modules/uniwidth/u16-strwidth-tests: New file.
101465         * lib/uniwidth/u16-strwidth.c: New file.
101466         * modules/uniwidth/u16-strwidth: New file.
101468         * tests/uniwidth/test-u8-strwidth.c: New file.
101469         * modules/uniwidth/u8-strwidth-tests: New file.
101471         * lib/uniwidth/u8-strwidth.c: New file.
101472         * modules/uniwidth/u8-strwidth: New file.
101474         * tests/uniwidth/test-u32-width.c: New file.
101475         * modules/uniwidth/u32-width-tests: New file.
101477         * lib/uniwidth/u32-width.c: New file.
101478         * modules/uniwidth/u32-width: New file.
101480         * tests/uniwidth/test-u16-width.c: New file.
101481         * modules/uniwidth/u16-width-tests: New file.
101483         * lib/uniwidth/u16-width.c: New file.
101484         * modules/uniwidth/u16-width: New file.
101486         * tests/uniwidth/test-u8-width.c: New file.
101487         * modules/uniwidth/u8-width-tests: New file.
101489         * lib/uniwidth/u8-width.c: New file.
101490         * modules/uniwidth/u8-width: New file.
101492         * tests/uniwidth/test-uc_width.c: New file.
101493         * modules/uniwidth/width-tests: New file.
101495         * lib/uniwidth/width.c: New file, from GNU libiconv.
101496         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
101497         * modules/uniwidth/width: New file.
101499         * lib/uniwidth.h: New file, from GNU libiconv.
101500         * modules/uniwidth/base: New file.
101502 2007-07-07  Bruno Haible  <bruno@clisp.org>
101504         * lib/uniname.h: New file, from GNU gettext.
101505         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
101506         * lib/uniname/uninames.h: New file, from GNU gettext.
101507         * lib/uniname/uniname.c: New file, from GNU gettext.
101508         * tests/uniname/test-uninames.sh: New file.
101509         * tests/uniname/test-uninames.c: New file, from GNU gettext.
101510         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
101511         * modules/uniname/base: New file.
101512         * modules/uniname/uniname: New file.
101513         * modules/uniname/uniname-tests: New file.
101514         * MODULES.html.sh (Unicode string functions): Add the new modules.
101516 2007-07-06  Bruno Haible  <bruno@clisp.org>
101518         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
101520 2007-07-06  Bruno Haible  <bruno@clisp.org>
101522         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
101523         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
101524         includes <cygwin/sys_time.h> which includes <sys/select.h> which
101525         include <sys/time.h>.
101526         Reported by Eric Blake.
101528 2007-07-06  Eric Blake  <ebb9@byu.net>
101530         Fix testing canonicalize on cygwin.
101531         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
101532         Revert patch from 2007-06-19.
101533         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
101534         canonicalize module is also in use.
101535         * tests/test-canonicalize.c: New file.
101536         * tests/test-canonicalize.sh: Likewise.
101537         * modules/canonicalize-tests: Likewise.
101539 2007-07-06  Jim Meyering  <jim@meyering.net>
101541         * lib/getugroups.c (getugroups): Detect getgrent failure.
101542         Adjust comment to reflect reality: this function may return -1.
101544 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
101546         * build-aux/bootstrap (TP_URL,get_translations): Update to use
101547         the new TP address.
101548         (usage): Fix typo
101549         (gnulib_mk): New variable.
101551 2007-07-05  Jim Meyering  <jim@meyering.net>
101553         Don't let endgrent clobber errno, no matter how improbable.
101554         * lib/getugroups.c (getugroups): Save and restore errno around
101555         endgrent call.
101557         Close the group DB even when failing with 2^31 or more members.
101558         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
101560 2007-07-04  Jim Meyering  <jim@meyering.net>
101562         * lib/getugroups.h: New file.
101563         * lib/getugroups.c: Include "getugroups.h".
101564         Remove uses of "register" keyword.
101565         Move local variable, "cp", down into scope where used.
101566         Give "username" parameter the "const" attribute.
101567         * modules/getugroups (Files): Add lib/getugroups.h
101569 2007-07-04  Karl Berry  <karl@gnu.org>
101571         * MODULES.html.sh (func_all_modules): Complete rename of
101572         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
101574 2007-07-02  Bruno Haible  <bruno@clisp.org>
101576         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
101577         mode, when inttypes.h comes from gnulib.
101578         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
101580 2007-07-02  Simon Josefsson  <simon@josefsson.org>
101582         * NEWS: Mention lgpl module name change.
101584         * modules/lgpl-2.1: Renamed from lgpl.
101586         * NEWS: Mention gpl module name change.
101588         * modules/gpl-3.0: New file, based on gpl-2.0.
101590         * modules/gpl-2.0: Renamed from gpl.
101592         * modules/gpl: Fix filename, doc/gpl.texi is now found at
101593         doc/gpl-2.0.texi.
101595 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
101597         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
101598         #define __STDC_LIMIT_MACROS temporarily while including
101599         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
101600         Problem reported by Joel E. Denny in
101601         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
101603 2007-07-01  Bruno Haible  <bruno@clisp.org>
101605         * lib/unistdio.h: New file.
101606         * lib/unistdio/u-asnprintf.h: New file.
101607         * lib/unistdio/u-asprintf.h: New file.
101608         * lib/unistdio/u-printf-args.c: New file.
101609         * lib/unistdio/u-printf-args.h: New file.
101610         * lib/unistdio/u-printf-parse.h: New file.
101611         * lib/unistdio/u-snprintf.h: New file.
101612         * lib/unistdio/u-sprintf.h: New file.
101613         * lib/unistdio/u-vasprintf.h: New file.
101614         * lib/unistdio/u-vsnprintf.h: New file.
101615         * lib/unistdio/u-vsprintf.h: New file.
101616         * lib/unistdio/ulc-asnprintf.c: New file.
101617         * lib/unistdio/ulc-asprintf.c: New file.
101618         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
101619         * lib/unistdio/ulc-printf-parse.c: New file.
101620         * lib/unistdio/ulc-snprintf.c: New file.
101621         * lib/unistdio/ulc-sprintf.c: New file.
101622         * lib/unistdio/ulc-vasnprintf.c: New file.
101623         * lib/unistdio/ulc-vasprintf.c: New file.
101624         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
101625         * lib/unistdio/ulc-vsnprintf.c: New file.
101626         * lib/unistdio/ulc-vsprintf.c: New file.
101627         * lib/unistdio/u8-asnprintf.c: New file.
101628         * lib/unistdio/u8-asprintf.c: New file.
101629         * lib/unistdio/u8-printf-parse.c: New file.
101630         * lib/unistdio/u8-snprintf.c: New file.
101631         * lib/unistdio/u8-sprintf.c: New file.
101632         * lib/unistdio/u8-vasnprintf.c: New file.
101633         * lib/unistdio/u8-vasprintf.c: New file.
101634         * lib/unistdio/u8-vsnprintf.c: New file.
101635         * lib/unistdio/u8-vsprintf.c: New file.
101636         * lib/unistdio/u8-u8-asnprintf.c: New file.
101637         * lib/unistdio/u8-u8-asprintf.c: New file.
101638         * lib/unistdio/u8-u8-snprintf.c: New file.
101639         * lib/unistdio/u8-u8-sprintf.c: New file.
101640         * lib/unistdio/u8-u8-vasnprintf.c: New file.
101641         * lib/unistdio/u8-u8-vasprintf.c: New file.
101642         * lib/unistdio/u8-u8-vsnprintf.c: New file.
101643         * lib/unistdio/u8-u8-vsprintf.c: New file.
101644         * lib/unistdio/u16-asnprintf.c: New file.
101645         * lib/unistdio/u16-asprintf.c: New file.
101646         * lib/unistdio/u16-printf-parse.c: New file.
101647         * lib/unistdio/u16-snprintf.c: New file.
101648         * lib/unistdio/u16-sprintf.c: New file.
101649         * lib/unistdio/u16-vasnprintf.c: New file.
101650         * lib/unistdio/u16-vasprintf.c: New file.
101651         * lib/unistdio/u16-vsnprintf.c: New file.
101652         * lib/unistdio/u16-vsprintf.c: New file.
101653         * lib/unistdio/u16-u16-asnprintf.c: New file.
101654         * lib/unistdio/u16-u16-asprintf.c: New file.
101655         * lib/unistdio/u16-u16-snprintf.c: New file.
101656         * lib/unistdio/u16-u16-sprintf.c: New file.
101657         * lib/unistdio/u16-u16-vasnprintf.c: New file.
101658         * lib/unistdio/u16-u16-vasprintf.c: New file.
101659         * lib/unistdio/u16-u16-vsnprintf.c: New file.
101660         * lib/unistdio/u16-u16-vsprintf.c: New file.
101661         * lib/unistdio/u32-asnprintf.c: New file.
101662         * lib/unistdio/u32-asprintf.c: New file.
101663         * lib/unistdio/u32-printf-parse.c: New file.
101664         * lib/unistdio/u32-snprintf.c: New file.
101665         * lib/unistdio/u32-sprintf.c: New file.
101666         * lib/unistdio/u32-vasnprintf.c: New file.
101667         * lib/unistdio/u32-vasprintf.c: New file.
101668         * lib/unistdio/u32-vsnprintf.c: New file.
101669         * lib/unistdio/u32-vsprintf.c: New file.
101670         * lib/unistdio/u32-u32-asnprintf.c: New file.
101671         * lib/unistdio/u32-u32-asprintf.c: New file.
101672         * lib/unistdio/u32-u32-snprintf.c: New file.
101673         * lib/unistdio/u32-u32-sprintf.c: New file.
101674         * lib/unistdio/u32-u32-vasnprintf.c: New file.
101675         * lib/unistdio/u32-u32-vasprintf.c: New file.
101676         * lib/unistdio/u32-u32-vsnprintf.c: New file.
101677         * lib/unistdio/u32-u32-vsprintf.c: New file.
101678         * tests/unistdio/test-ulc-asnprintf1.c: New file.
101679         * tests/unistdio/test-ulc-asnprintf1.h: New file.
101680         * tests/unistdio/test-ulc-printf1.h: New file.
101681         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
101682         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
101683         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
101684         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
101685         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
101686         * tests/unistdio/test-ulc-vasprintf1.c: New file.
101687         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
101688         * tests/unistdio/test-ulc-vsprintf1.c: New file.
101689         * tests/unistdio/test-u8-asnprintf1.c: New file.
101690         * tests/unistdio/test-u8-asnprintf1.h: New file.
101691         * tests/unistdio/test-u8-printf1.h: New file.
101692         * tests/unistdio/test-u8-vasnprintf1.c: New file.
101693         * tests/unistdio/test-u8-vasnprintf2.c: New file.
101694         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
101695         * tests/unistdio/test-u8-vasnprintf3.c: New file.
101696         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
101697         * tests/unistdio/test-u8-vasprintf1.c: New file.
101698         * tests/unistdio/test-u8-vsnprintf1.c: New file.
101699         * tests/unistdio/test-u8-vsprintf1.c: New file.
101700         * tests/unistdio/test-u16-asnprintf1.c: New file.
101701         * tests/unistdio/test-u16-asnprintf1.h: New file.
101702         * tests/unistdio/test-u16-printf1.h: New file.
101703         * tests/unistdio/test-u16-vasnprintf1.c: New file.
101704         * tests/unistdio/test-u16-vasnprintf2.c: New file.
101705         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
101706         * tests/unistdio/test-u16-vasnprintf3.c: New file.
101707         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
101708         * tests/unistdio/test-u16-vasprintf1.c: New file.
101709         * tests/unistdio/test-u16-vsnprintf1.c: New file.
101710         * tests/unistdio/test-u16-vsprintf1.c: New file.
101711         * tests/unistdio/test-u32-asnprintf1.c: New file.
101712         * tests/unistdio/test-u32-asnprintf1.h: New file.
101713         * tests/unistdio/test-u32-printf1.h: New file.
101714         * tests/unistdio/test-u32-vasnprintf1.c: New file.
101715         * tests/unistdio/test-u32-vasnprintf2.c: New file.
101716         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
101717         * tests/unistdio/test-u32-vasnprintf3.c: New file.
101718         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
101719         * tests/unistdio/test-u32-vasprintf1.c: New file.
101720         * tests/unistdio/test-u32-vsnprintf1.c: New file.
101721         * tests/unistdio/test-u32-vsprintf1.c: New file.
101722         * modules/unistdio/base: New file.
101723         * modules/unistdio/u-printf-args: New file.
101724         * modules/unistdio/ulc-asnprintf: New file.
101725         * modules/unistdio/ulc-asprintf: New file.
101726         * modules/unistdio/ulc-fprintf: New file.
101727         * modules/unistdio/ulc-printf-parse: New file.
101728         * modules/unistdio/ulc-snprintf: New file.
101729         * modules/unistdio/ulc-sprintf: New file.
101730         * modules/unistdio/ulc-vasnprintf: New file.
101731         * modules/unistdio/ulc-vasprintf: New file.
101732         * modules/unistdio/ulc-vfprintf: New file.
101733         * modules/unistdio/ulc-vsnprintf: New file.
101734         * modules/unistdio/ulc-vsprintf: New file.
101735         * modules/unistdio/u8-asnprintf: New file.
101736         * modules/unistdio/u8-asprintf: New file.
101737         * modules/unistdio/u8-printf-parse: New file.
101738         * modules/unistdio/u8-snprintf: New file.
101739         * modules/unistdio/u8-sprintf: New file.
101740         * modules/unistdio/u8-vasnprintf: New file.
101741         * modules/unistdio/u8-vasprintf: New file.
101742         * modules/unistdio/u8-vsnprintf: New file.
101743         * modules/unistdio/u8-vsprintf: New file.
101744         * modules/unistdio/u8-u8-asnprintf: New file.
101745         * modules/unistdio/u8-u8-asprintf: New file.
101746         * modules/unistdio/u8-u8-snprintf: New file.
101747         * modules/unistdio/u8-u8-sprintf: New file.
101748         * modules/unistdio/u8-u8-vasnprintf: New file.
101749         * modules/unistdio/u8-u8-vasprintf: New file.
101750         * modules/unistdio/u8-u8-vsnprintf: New file.
101751         * modules/unistdio/u8-u8-vsprintf: New file.
101752         * modules/unistdio/u16-asnprintf: New file.
101753         * modules/unistdio/u16-asprintf: New file.
101754         * modules/unistdio/u16-printf-parse: New file.
101755         * modules/unistdio/u16-snprintf: New file.
101756         * modules/unistdio/u16-sprintf: New file.
101757         * modules/unistdio/u16-vasnprintf: New file.
101758         * modules/unistdio/u16-vasprintf: New file.
101759         * modules/unistdio/u16-vsnprintf: New file.
101760         * modules/unistdio/u16-vsprintf: New file.
101761         * modules/unistdio/u16-u16-asnprintf: New file.
101762         * modules/unistdio/u16-u16-asprintf: New file.
101763         * modules/unistdio/u16-u16-snprintf: New file.
101764         * modules/unistdio/u16-u16-sprintf: New file.
101765         * modules/unistdio/u16-u16-vasnprintf: New file.
101766         * modules/unistdio/u16-u16-vasprintf: New file.
101767         * modules/unistdio/u16-u16-vsnprintf: New file.
101768         * modules/unistdio/u16-u16-vsprintf: New file.
101769         * modules/unistdio/u32-asnprintf: New file.
101770         * modules/unistdio/u32-asprintf: New file.
101771         * modules/unistdio/u32-printf-parse: New file.
101772         * modules/unistdio/u32-snprintf: New file.
101773         * modules/unistdio/u32-sprintf: New file.
101774         * modules/unistdio/u32-vasnprintf: New file.
101775         * modules/unistdio/u32-vasprintf: New file.
101776         * modules/unistdio/u32-vsnprintf: New file.
101777         * modules/unistdio/u32-vsprintf: New file.
101778         * modules/unistdio/u32-u32-asnprintf: New file.
101779         * modules/unistdio/u32-u32-asprintf: New file.
101780         * modules/unistdio/u32-u32-snprintf: New file.
101781         * modules/unistdio/u32-u32-sprintf: New file.
101782         * modules/unistdio/u32-u32-vasnprintf: New file.
101783         * modules/unistdio/u32-u32-vasprintf: New file.
101784         * modules/unistdio/u32-u32-vsnprintf: New file.
101785         * modules/unistdio/u32-u32-vsprintf: New file.
101786         * modules/unistdio/ulc-asnprintf-tests: New file.
101787         * modules/unistdio/ulc-vasnprintf-tests: New file.
101788         * modules/unistdio/ulc-vasprintf-tests: New file.
101789         * modules/unistdio/ulc-vsnprintf-tests: New file.
101790         * modules/unistdio/ulc-vsprintf-tests: New file.
101791         * modules/unistdio/u8-asnprintf-tests: New file.
101792         * modules/unistdio/u8-vasnprintf-tests: New file.
101793         * modules/unistdio/u8-vasprintf-tests: New file.
101794         * modules/unistdio/u8-vsnprintf-tests: New file.
101795         * modules/unistdio/u8-vsprintf-tests: New file.
101796         * modules/unistdio/u16-asnprintf-tests: New file.
101797         * modules/unistdio/u16-vasnprintf-tests: New file.
101798         * modules/unistdio/u16-vasprintf-tests: New file.
101799         * modules/unistdio/u16-vsnprintf-tests: New file.
101800         * modules/unistdio/u16-vsprintf-tests: New file.
101801         * modules/unistdio/u32-asnprintf-tests: New file.
101802         * modules/unistdio/u32-vasnprintf-tests: New file.
101803         * modules/unistdio/u32-vasprintf-tests: New file.
101804         * modules/unistdio/u32-vsnprintf-tests: New file.
101805         * modules/unistdio/u32-vsprintf-tests: New file.
101806         * MODULES.html.sh (Unicode string functions): Add the new modules.
101808 2007-07-01  Bruno Haible  <bruno@clisp.org>
101810         * lib/sprintf.c (sprintf): Limit the available length estimation,
101811         to avoid address wraparound.
101812         * lib/vsprintf.c (vsprintf): Likewise.
101813         * modules/sprintf-posix (Dependencies): Add stdint.
101814         * modules/vsprintf-posix (Dependencies): Likewise.
101816 2007-07-01  Bruno Haible  <bruno@clisp.org>
101818         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
101819         Windows PATH as well. Conservative double-quoting. Comments.
101821 2007-07-01  Bruno Haible  <bruno@clisp.org>
101822             Eric Blake  <ebb9@byu.net>
101823             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101825         * gnulib-tool (self_abspathname): Fix algorithm to cope with
101826         empty components in $PATH, denoting '.'.
101828 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101830         * gnulib-tool: Fix indentation.
101831         (func_create_megatestdir): Likewise.
101832         Report by Bruno Haible.
101834 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101836         Sync from Automake.
101837         * build-aux/gnupload: Fix shell portability issues with for loops.
101838         Report by Karl Berry.
101840 2007-06-29  Simon Josefsson  <simon@josefsson.org>
101842         * build-aux/maint.mk (POURL): Use translationproject.org.
101844 2007-06-27  Simon Josefsson  <simon@josefsson.org>
101845             Bruno Haible  <bruno@clisp.org>
101847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
101848         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
101849         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
101850         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
101851         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
101853 2007-06-27  Bruno Haible  <bruno@clisp.org>
101855         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
101856         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
101858 2007-06-26  Karl Berry  <karl@gnu.org>
101860         * MODULES.html.sh: remove xreadlink-with-size.
101862 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
101864         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
101865         method that I hope also handles the double-include problem noted
101866         by Bruno Haible in
101867         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
101869 2007-06-23  Bruno Haible  <bruno@clisp.org>
101871         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101872         Don't let the 'mostlyclean' target fail if the last subdirectory could
101873         not be removed.
101874         Reported by Karl Berry.
101876 2007-06-23  Bruno Haible  <bruno@clisp.org>
101878         * gnulib-tool (echo): Add a speedier workaround for ksh.
101879         * tests/test-echo.sh: Likewise.
101881 2007-06-23  Bruno Haible  <bruno@clisp.org>
101883         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
101884         * tests/test-echo.sh: Likewise.
101886 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101888         * gnulib-tool (IFS): Initialize early, so we don't set it to
101889         empty later.
101890         (self_abspathname): Rewrite algorithm to set it, reindent.
101891         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
101892         (func_create_megatestdir): Merge some sed scripts.
101894 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
101896         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
101897         exposed by Sun Studio 11 cc on Solaris 8.
101899 2007-06-22  Bruno Haible  <bruno@clisp.org>
101901         * gnulib-tool (echo): Ensure the echo primitive does not interpret
101902         backslashes.
101903         * tests/test-echo.sh: New file.
101905 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101907         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
101908         simplify `sed_replace_build_aux' scripts, they are portable but
101909         echoing them with `echo' is not.
101910         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
101912 2007-06-21  Karl Berry  <karl@gnu.org>
101914         * config/srclist.txt: guess we can't handle the licenses via
101915         srclist at the moment.
101917 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
101919         * MODULES.html.sh: Add include_next.
101920         * modules/include_next: New file.
101922 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
101924         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
101925         INCLUDE_NEXT.
101926         (gl_CHECK_NEXT_HEADERS): New macro.
101927         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
101928         the obsolescent gl_ABSOLUTE_HEADER.
101929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
101930         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
101931         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
101932         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
101933         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
101934         * m4/math_h.m4 (gl_MATH_H): Likewise.
101935         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
101936         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
101937         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
101938         * m4/stdint.m4 (gl_STDINT_H): Likewise.
101939         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
101940         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
101941         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
101942         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
101943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
101944         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
101945         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
101946         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
101947         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
101948         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
101949         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
101950         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
101951         * m4/inttypes.m4 (gl_INTTYPES_H): Define
101952         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
101953         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
101954         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
101955         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
101956         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
101957         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
101958         * lib/float_.h: Likewise.
101959         * lib/inttypes_.h: Likewise.
101960         * lib/math_.h: Likewise.
101961         * lib/search_.h: Likewise.
101962         * lib/signal_.h: Likewise.
101963         * lib/stdint_.h: Likewise.
101964         * lib/stdio_.h: Likewise.
101965         * lib/stdlib_.h: Likewise.
101966         * lib/string_.h: Likewise.
101967         * lib/sys_stat_.h: Likewise.
101968         * lib/sys_time_.h: Likewise.
101969         * lib/time_.h: Likewise.
101970         * lib/unistd_.h: Likewise.
101971         * lib/wchar_.h: Likewise.
101972         * lib/wctype_.h: Likewise.
101973         * lib/dirent_.h: Likewise.
101974         * lib/iconv_.h: Likewise.
101975         * lib/locale_.h: Likewise.
101976         * lib/netinet_in_.h: Likewise.
101977         * lib/sys_select_.h: Likewise.
101978         * lib/sys_socket_.h: Likewise.
101979         * lib/sysexits_.h: Likewise.
101980         * modules/fcntl (Depends-on): Depend on include_next, not
101981         absolute_header.
101982         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
101983         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
101984         * modules/fchdir: Likewise.
101985         * modules/float: Likewise.
101986         * modules/iconv_open: Likewise.
101987         * modules/inttypes: Likewise.
101988         * modules/locale: Likewise.
101989         * modules/math: Likewise.
101990         * modules/netinet_in: Likewise.
101991         * modules/search: Likewise.
101992         * modules/signal: Likewise.
101993         * modules/stdint: Likewise.
101994         * modules/stdio: Likewise.
101995         * modules/stdlib: Likewise.
101996         * modules/string: Likewise.
101997         * modules/sys_select: Likewise.
101998         * modules/sys_socket: Likewise.
101999         * modules/sys_stat: Likewise.
102000         * modules/sys_time: Likewise.
102001         * modules/sysexits: Likewise.
102002         * modules/time: Likewise.
102003         * modules/unistd: Likewise.
102004         * modules/wchar: Likewise.
102005         * modules/wctype: Likewise.
102006         * modules/sys_stat: Change maintainer to "all".
102007         * modules/unistd: Likewise.
102009 2007-06-20  Karl Berry  <karl@gnu.org>
102011         * config/srclist.txt: track www changes in license files.
102013 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
102015         * build-aux/bootstrap: Remove stray dot.
102016         Make sure build_aux settings are honored when linking
102017         gnulib_extra_files.
102019 2007-06-19  Eric Blake  <ebb9@byu.net>
102021         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102022         Allow compilation on cygwin.
102024 2007-06-19  Jim Meyering  <jim@meyering.net>
102026         xreadlink-with-size: Remove module.  No longer used.
102027         Ex-callers now use xreadlink or mreadlink-with-size.
102028         * modules/xreadlink-with-size: Remove module.
102029         * lib/xreadlink-with-size.c: Remove file.
102030         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
102031         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
102032         just before the function definition *is* accurate.
102034         Eliminate one way canonicalize_filename_mode could exit.
102035         * lib/canonicalize.c (canonicalize_filename_mode):
102036         Use mreadlink_with_size, not xreadlink_with_size.
102038 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
102040         Detect porting problems to FreeBSD/arm, which has time_t wider than
102041         long int.  Original problem reported for GNU diff by Xin Li in
102042         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
102043         * modules/getdate (Depends-on): Add intprops, verify.
102044         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
102045         is an integer type no wider than long int.
102047 2007-06-18  Jim Meyering  <jim@meyering.net>
102049         New module: mreadlink-with-size.
102050         * MODULES.html.sh: Add mreadlink-with-size.
102051         * modules/mreadlink-with-size: New module
102052         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
102053         not xreadlink-with-size.
102054         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
102056 2007-06-16  Bruno Haible  <bruno@clisp.org>
102058         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
102059         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
102060         Reported by Gary V. Vaughan <gary@gnu.org>.
102062 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
102064         Revamp lchown so that it lives in unistd.h where it belongs.
102065         * lib/lchown.h: Remove.
102066         * lib/dirchownmod.c: Don't include lib/lchown.h.
102067         * lib/fchownat.c: Likewise.
102068         * lib/openat.c: Likewise.
102069         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
102070         does not follow symlinks.
102071         (EOPNOTSUPP): Define if not defined.
102072         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
102073         is defined to 0.
102074         (lchown): New decl.
102075         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
102076         Do not check for lchown decl.
102077         Set REPLACE_LCHOWN.
102078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
102079         REPLACE_LCHOWN.
102080         * modules/chown: Make it clear it follows symlinks.
102081         * modules/lchown: Make it clear it doesn't follow symlinks.
102082         (Files): Remove lib/lchown.h
102083         (Depends-on): Add unistd.
102084         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
102085         (Include): Include <unistd.h>, not "lchown.h".
102086         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
102087         REPLACE_LCHOWN.
102089 2007-06-15  Jim Meyering  <jim@meyering.net>
102091         Change license (GPL to LGPL) of fsusage and dependents.
102092         * modules/fsusage (License): Change to LGPL.
102093         * modules/full-read (License): Likewise.
102094         * modules/full-write (License): Likewise.
102095         * modules/safe-read (License): Likewise.
102096         * modules/safe-write (License): Likewise.
102098 2007-06-14  Ben Pfaff  <blp@gnu.org>
102100         Missing part of allocsa -> malloca transition.
102101         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
102102         gl_MALLOCA.
102104 2007-06-12  Bruno Haible  <bruno@clisp.org>
102106         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
102107         to ia64, x86_64, i386.
102108         Reported by Eric Blake.
102110 2007-06-12  Bruno Haible  <bruno@clisp.org>
102112         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
102113         cross-compiling to x86_64.
102115 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
102117         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
102118         glitch reported by Ralf Wildenhues in
102119         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
102121         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
102122         Vin Shelton.
102124 2007-06-11  Bruno Haible  <bruno@clisp.org>
102126         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
102127         replacement string.
102128         Reported by Eric Blake.
102130 2007-06-10  Bruno Haible  <bruno@clisp.org>
102132         Prepare vasnprintf code for use with Unicode strings.
102133         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
102134         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
102135         TYPE_U32_STRING.
102136         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
102137         a_u32_string variants.
102138         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102139         * lib/printf-args.c: Don't include config.h and the specification
102140         header if PRINTF_FETCHARGS is already defined.
102141         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102142         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
102143         TYPE_U16_STRING, TYPE_U32_STRING.
102144         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
102145         u16_directive, u16_directives, u32_directive, u32_directives): New
102146         types.
102147         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
102148         New declarations.
102149         * lib/printf-parse.c: Don't include config.h and the specification
102150         header if PRINTF_PARSE is already defined. Eliminate the set of
102151         parameters for WIDE_CHAR_VERSION; the user of this file must provide
102152         them now. Include c-ctype.h.
102153         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
102154         directive and CHAR_T_ONLY_ASCII.
102155         * lib/vasnprintf.c: Don't include config.h and the specification header
102156         if VASNPRINTF is already defined.
102157         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
102158         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
102159         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
102160         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
102161         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
102162         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
102163         code accordingly.
102164         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
102165         pad_ourselves also in this case, with the 'c' and 's' directives, and
102166         with a different notion of "width".
102167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
102169 2007-06-10  Bruno Haible  <bruno@clisp.org>
102171         * modules/unistr/u32-mbsnlen: New file.
102172         * lib/unistr/u32-mbsnlen.c: New file.
102174         * modules/unistr/u16-mbsnlen: New file.
102175         * lib/unistr/u16-mbsnlen.c: New file.
102177         * modules/unistr/u8-mbsnlen: New file.
102178         * lib/unistr/u8-mbsnlen.c: New file.
102180         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
102181         declarations.
102183 2007-06-10  Bruno Haible  <bruno@clisp.org>
102185         * lib/string_.h (mbsnlen): New declaration.
102186         * lib/mbsnlen.c: New file.
102187         * m4/mbsnlen.m4: New file.
102188         * modules/mbsnlen: New file.
102189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
102190         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
102191         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
102193 2007-06-10  Bruno Haible  <bruno@clisp.org>
102195         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
102197 2007-06-10  Bruno Haible  <bruno@clisp.org>
102199         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
102200         * lib/mbuiter.h: Likewise.
102202 2007-06-10  Bruno Haible  <bruno@clisp.org>
102204         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
102205         declaration.
102207 2007-06-10  Karl Berry  <karl@gnu.org>
102209         * config/srclist.txt: remove gettext entries, Bruno prefers
102210         to update individually.
102212 2007-06-10  Bruno Haible  <bruno@clisp.org>
102214         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
102215         'maxlen'. Ensure only length + width bytes are allocated, not
102216         length + 1 + width.
102218 2007-06-09  Bruno Haible  <bruno@clisp.org>
102220         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
102221         (CHAR_T): Remove macro.
102222         (VASNPRINTF): Update.
102224 2007-06-09  Bruno Haible  <bruno@clisp.org>
102226         * MODULES.html.sh (Unicode string functions): Add the new modules.
102228         * modules/uniconv/u32-conv-to-enc: New file.
102229         * lib/uniconv/u32-conv-to-enc.c: New file.
102230         * modules/uniconv/u32-conv-to-enc-tests: New file.
102231         * tests/uniconv/test-u32-conv-to-enc.c: New file.
102233         * modules/uniconv/u16-conv-to-enc: New file.
102234         * lib/uniconv/u16-conv-to-enc.c: New file.
102235         * lib/uniconv/u-conv-to-enc.h: New file.
102236         * modules/uniconv/u16-conv-to-enc-tests: New file.
102237         * tests/uniconv/test-u16-conv-to-enc.c: New file.
102239         * modules/uniconv/u8-conv-to-enc: New file.
102240         * lib/uniconv/u8-conv-to-enc.c: New file.
102241         * modules/uniconv/u8-conv-to-enc-tests: New file.
102242         * tests/uniconv/test-u8-conv-to-enc.c: New file.
102244         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
102245         u32_conv_to_encoding): New declarations.
102247 2007-06-09  Bruno Haible  <bruno@clisp.org>
102249         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
102251 2007-06-09  Bruno Haible  <bruno@clisp.org>
102253         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
102254         * modules/malloca: Renamed from modules/allocsa, updated.
102255         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
102256         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
102257         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
102258         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
102259         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
102260         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
102261         * modules/xmalloca: Renamed from modules/xallocsa, updated.
102262         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
102263         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
102264         * modules/c-strcasestr (Depends-on): Update.
102265         * lib/c-strcasestr.c: Update.
102266         * modules/c-strstr (Depends-on): Update.
102267         * lib/c-strstr.c: Update.
102268         * modules/canonicalize-lgpl (Depends-on): Update.
102269         * lib/canonicalize-lgpl.c: Update.
102270         * modules/clean-temp (Depends-on): Update.
102271         * lib/clean-temp.c: Update.
102272         * modules/csharpcomp (Depends-on): Update.
102273         * lib/csharpcomp.c: Update.
102274         * modules/csharpexec (Depends-on): Update.
102275         * lib/csharpexec.c: Update.
102276         * modules/javacomp (Depends-on): Update.
102277         * lib/javacomp.c: Update.
102278         * modules/javaexec (Depends-on): Update.
102279         * lib/javaexec.c: Update.
102280         * modules/mbscasestr (Depends-on): Update.
102281         * lib/mbscasestr.c: Update.
102282         * modules/mbsstr (Depends-on): Update.
102283         * lib/mbsstr.c: Update.
102284         * modules/setenv (Depends-on): Update.
102285         * lib/setenv.c: Update.
102286         * modules/strcasestr (Depends-on): Update.
102287         * lib/strcasestr.c: Update.
102288         * modules/striconveha (Depends-on): Update.
102289         * lib/striconveha.c: Update.
102290         * modules/relocatable-prog-wrapper (Files): Update.
102291         * lib/relocwrapper.c: Update.
102292         * build-aux/install-reloc: Update.
102293         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
102295 2007-06-08  Bruno Haible  <bruno@clisp.org>
102297         Port to uClibc.
102298         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
102299         * lib/fpurge.c (fpurge): Likewise.
102300         * lib/freading.c (freading): Likewise.
102301         * lib/fseeko.c (rpl_fseeko): Likewise.
102302         * lib/fseterr.c (fseterr): Likewise.
102303         * lib/fwriting.c (fwriting): Likewise.
102304         * tests/test-fflush.c (main): Avoid a failure on uClibc.
102306 2007-06-08  Bruno Haible  <bruno@clisp.org>
102308         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
102309         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
102310         * modules/gettext (Files): Add m4/intlmacosx.m4.
102312 2007-06-07  Bruno Haible  <bruno@clisp.org>
102314         * modules/localename-tests: New file.
102315         * tests/test-localename.c: New file.
102317         New module 'localename'.
102318         * lib/localename.h: New file.
102319         * lib/localename.c: New file, from GNU gettext.
102320         * m4/localename.m4: New file.
102321         * modules/localename: New file.
102323 2007-06-07  Bruno Haible  <bruno@clisp.org>
102325         Work around the lack of <wchar.h> on some builds of uClibc.
102326         * doc/headers/wchar.texi: Update.
102327         * lib/wchar_.h: Include <wchar.h> only if it exists.
102328         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
102329         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
102330         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
102331         doesn't exist.
102332         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
102333         * modules/mbfile (Depends-on): Add wchar.
102334         * modules/mbiter (Depends-on): Likewise.
102335         * modules/mbuiter (Depends-on): Likewise.
102336         Reported by Simon Josefsson.
102338 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
102340         Work around problem reported by Steven M. Schweda in
102341         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
102342         Tru64 5.1B with the Compaq compiler environment installed declares
102343         an 'isblank' function but does not define it in the C library.
102344         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
102345         * lib/regex_internal.h (isblank): Likewise.
102346         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
102347         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102349 2007-06-05  Bruno Haible  <bruno@clisp.org>
102351         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
102352         ia64.
102353         * modules/printf-safe: New file.
102354         * modules/fprintf-posix (Depends-on): Add printf-safe.
102355         * modules/printf-posix (Depends-on): Likewise.
102356         * modules/snprintf-posix (Depends-on): Likewise.
102357         * modules/sprintf-posix (Depends-on): Likewise.
102358         * modules/vasnprintf-posix (Depends-on): Likewise.
102359         * modules/vasprintf-posix (Depends-on): Likewise.
102360         * modules/vfprintf-posix (Depends-on): Likewise.
102361         * modules/vprintf-posix (Depends-on): Likewise.
102362         * modules/vsnprintf-posix (Depends-on): Likewise.
102363         * modules/vsprintf-posix (Depends-on): Likewise.
102364         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
102365         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
102366         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
102367         "no" on i386, x86_64, ia64.
102368         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
102369         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102370         on i386, x86_64, ia64.
102371         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
102372         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102373         on i386, x86_64, ia64.
102374         * tests/test-vasnprintf-posix.c: Include float.h.
102375         (LDBL80_WORDS): New macro.
102376         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102377         on i386, x86_64, ia64.
102378         * tests/test-vasprintf-posix.c: Include float.h.
102379         (LDBL80_WORDS): New macro.
102380         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102381         on i386, x86_64, ia64.
102382         * tests/test-snprintf-posix.c: Include float.h.
102383         * tests/test-sprintf-posix.c: Likewise.
102384         * tests/test-vsnprintf-posix.c: Likewise.
102385         * tests/test-vsprintf-posix.c: Likewise.
102387 2007-06-05  Bruno Haible  <bruno@clisp.org>
102389         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
102390         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
102391         non-IEEE numbers on i386, x86_64, ia64.
102392         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
102393         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
102394         * tests/test-isnanl.h: Include float.h.
102395         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
102397 2007-06-05  Bruno Haible  <bruno@clisp.org>
102399         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
102400         also the %a / %A. Handle the %a / %A code before this extra handling.
102402 2007-06-05  Bruno Haible  <bruno@clisp.org>
102404         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
102405         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
102407 2007-06-05  Bruno Haible  <bruno@clisp.org>
102409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
102410         typo in variable name.
102412 2007-06-05  Eric Blake  <ebb9@byu.net>
102414         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
102415         Reported by Simon Josefsson.
102417 2007-06-04  Bruno Haible  <bruno@clisp.org>
102419         Avoid test failures on some PowerPC platforms.
102420         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
102421         Define differently for PowerPC.
102422         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
102423         Reported by Gary V. Vaughan <gary@gnu.org>.
102425 2007-06-02  Bruno Haible  <bruno@clisp.org>
102427         Fix test-stdint failure on FreeBSD/ia64.
102428         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
102429         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
102430         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
102431         * doc/headers/stdint.texi: Update.
102433 2007-06-01  Bruno Haible  <bruno@clisp.org>
102435         * tests/test-binary-io.c (main): Pass a third argument to open().
102436         Reported by Gary V. Vaughan <gary@gnu.org>.
102438 2007-06-01  Bruno Haible  <bruno@clisp.org>
102440         * doc/functions/frexpl.texi: Update for mingw.
102442 2007-06-01  Bruno Haible  <bruno@clisp.org>
102444         * tests/test-lseek.c (main): Disable test of errno for invalid third
102445         argument.
102446         * doc/functions/lseek.texi: Update.
102447         Reported by Gary V. Vaughan <gary@gnu.org>.
102449 2007-05-28  Bruno Haible  <bruno@clisp.org>
102451         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
102453 2007-05-31  Eric Blake  <ebb9@byu.net>
102455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
102456         cross compiling.
102458 2007-05-30  Eric Blake  <ebb9@byu.net>
102459         and Bruno Haible  <bruno@clisp.org>
102461         Work around mingw test failures exposed by m4-1.4.9b.
102462         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
102463         * tests/test-unistd.c: Disable uid_t and git_t tests for the
102464         moment.
102466 2007-05-30  Bruno Haible  <bruno@clisp.org>
102468         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
102469         assuming that they are closed. Needed on HP-UX 11.
102471 2007-05-29  Bruno Haible  <bruno@clisp.org>
102473         Fix a problem with #include_next.
102474         * lib/dirent_.h: Split the double-inclusion guard.
102475         * lib/fcntl_.h: Likewise.
102476         * lib/float_.h: Likewise.
102477         * lib/iconv_.h: Likewise.
102478         * lib/inttypes_.h: Likewise.
102479         * lib/locale_.h: Likewise.
102480         * lib/math_.h: Likewise.
102481         * lib/netinet_in_.h: Likewise.
102482         * lib/search_.h: Likewise.
102483         * lib/signal_.h: Likewise.
102484         * lib/stdint_.h: Likewise.
102485         * lib/stdio_.h: Likewise.
102486         * lib/stdlib_.h: Likewise.
102487         * lib/string_.h: Likewise.
102488         * lib/sys_select_.h: Likewise.
102489         * lib/sys_socket_.h: Likewise.
102490         * lib/sys_stat_.h: Likewise.
102491         * lib/sys_time_.h: Likewise.
102492         * lib/sysexits_.h: Likewise.
102493         * lib/time_.h: Likewise.
102494         * lib/unistd_.h: Likewise.
102495         * lib/wchar_.h: Likewise.
102496         * lib/wctype_.h: Likewise.
102498 2007-05-29  Bruno Haible  <bruno@clisp.org>
102500         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
102501         for the moment.
102503 2007-05-29  Bruno Haible  <bruno@clisp.org>
102505         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
102506         invocation.
102507         Reported by Eric Blake.
102509 2007-05-29  Bruno Haible  <bruno@clisp.org>
102511         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
102512         compiling case.
102514 2007-05-29  Eric Blake  <ebb9@byu.net>
102515             Bruno Haible  <bruno@clisp.org>
102517         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
102518         cross compiles.
102520 2007-05-28  Eric Blake  <ebb9@byu.net>
102522         * modules/closein-tests (test_closein_LDADD): Support test on
102523         cygwin with libtool.
102525 2007-05-28  Bruno Haible  <bruno@clisp.org>
102527         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
102528         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
102529         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
102530         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
102531         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
102532         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
102533         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
102534         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
102535         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
102537 2007-05-28  Eric Blake  <ebb9@byu.net>
102539         Unconditionally include <config.h> in unit tests.
102540         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
102541         * tests/test-allocsa.c, tests/test-arcfour.c,
102542         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
102543         tests/test-array_list.c, tests/test-array_oset.c,
102544         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
102545         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
102546         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
102547         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
102548         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
102549         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
102550         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
102551         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
102552         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
102553         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
102554         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
102555         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
102556         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
102557         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
102558         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
102559         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
102560         test-md5.c, test-memmem.c, test-printf-posix.c,
102561         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
102562         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
102563         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
102564         test-strcasestr.c, test-striconv.c, test-striconveh.c,
102565         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
102566         test-vasnprintf-posix2.c, test-vasnprintf.c,
102567         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
102568         test-vfprintf-posix.c, test-vprintf-posix.c,
102569         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
102570         test-xvasprintf.c: Likewise.
102572 2007-05-28  Bruno Haible  <bruno@clisp.org>
102574         * gnulib-tool (func_import): Remember the --with-tests command-line
102575         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
102576         Reported by Eric Blake.
102578 2007-05-28  Bruno Haible  <bruno@clisp.org>
102580         * modules/ftell-tests: New file.
102581         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
102582         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
102584         * lib/ftell.c: New file.
102585         * modules/ftell: New file.
102586         * m4/ftell.m4: New file.
102587         * doc/functions/ftell.texi: Update.
102588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
102589         REPLACE_FTELL.
102590         * lib/stdio_.h (rpl_ftell): New declaration.
102591         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
102592         REPLACE_FTELL.
102594 2007-05-28  Eric Blake  <ebb9@byu.net>
102596         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
102598 2007-05-28  Bruno Haible  <bruno@clisp.org>
102600         * modules/fseek-tests: New file.
102601         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
102602         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
102604         * lib/fseek.c: New file.
102605         * modules/fseek: New file.
102606         * m4/fseek.m4: New file.
102607         * doc/functions/fseek.texi: Update.
102608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
102609         REPLACE_FSEEK.
102610         * lib/stdio_.h (rpl_fseek): New declaration.
102611         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
102612         REPLACE_FSEEK.
102614 2007-05-28  Bruno Haible  <bruno@clisp.org>
102616         * lib/stdio_.h (fflush): More comments.
102618 2007-05-28  Bruno Haible  <bruno@clisp.org>
102620         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
102621         runtime test.
102623 2007-05-28  Eric Blake  <ebb9@byu.net>
102625         Improve lseek module.
102626         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
102627         * lib/unistd_.h (lseek): Scale back link warning message.
102628         * tests/test-lseek.c: Beef up test.
102629         * tests/test-lseek.sh: Exercise more facets of lseek.
102630         Reported by Bruno Haible.
102632 2007-05-28  Bruno Haible  <bruno@clisp.org>
102634         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
102635         to define.
102637 2007-05-27  Bruno Haible  <bruno@clisp.org>
102639         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
102641 2007-05-27  Bruno Haible  <bruno@clisp.org>
102643         * modules/openmp: New file.
102644         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
102645         Noah Misch.
102647 2007-05-26  Bruno Haible  <bruno@clisp.org>
102649         * modules/chdir-long (Depends-on): Add fchdir.
102650         * modules/chdir-safer (Depends-on): Likewise.
102651         * modules/fts (Depends-on): Likewise.
102652         * modules/fts-lgpl (Depends-on): Likewise.
102653         * modules/openat (Depends-on): Likewise.
102654         * modules/savewd (Depends-on): Likewise.
102656 2007-05-24  Eric Blake  <ebb9@byu.net>
102658         Fix lseek on mingw.
102659         * modules/lseek: New module.
102660         * m4/lseek.m4: New file.
102661         * lib/lseek.c: New file.
102662         * modules/lseek-tests: New file.
102663         * tests/test-lseek.c: New file.
102664         * tests/test-lseek.sh: New file.
102665         * MODULES.html.sh: Document lseek module.
102666         * modules/fflush (Depends-on): Add lseek, fseeko.
102667         * modules/fseeko (Depends-on): Likewise.
102668         * modules/ftello (Depends-on): Likewise.
102669         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
102670         broken.
102671         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
102672         broken.
102673         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
102674         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
102675         * lib/ftello.c (rpl_ftello): Likewise.
102676         * tests/test-fseeko.c (main): Test this.
102677         * tests/test-fseeko.sh: Likewise.
102678         * tests/test-ftello.c (main): Likewise.
102679         * tests/test-ftello.sh: Likewise.
102680         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
102681         implies replacing fseek.
102682         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
102683         HAVE_FTELLO.
102684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
102685         * modules/unistd (Makefile.am): Likewise.
102686         * lib/unistd_.h (lseek): Declare a replacement.
102687         * doc/functions/lseek.texi (lseek): Document this fix.
102688         * doc/functions/fseek.texi (fseek): Likewise.
102689         * doc/functions/ftell.texi (ftell): Likewise.
102691 2007-05-24  Bruno Haible  <bruno@clisp.org>
102693         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
102694         in the printed representation of a NaN.
102695         * tests/test-vasprintf-posix.c (test_function): Likewise.
102696         * tests/test-snprintf-posix.h (test_function): Likewise.
102697         * tests/test-sprintf-posix.h (test_function): Likewise.
102698         Reported by Eric Blake.
102700 2007-05-23  Eric Blake  <ebb9@byu.net>
102702         Fix fseeko/ftello on cygwin 1.5.24.
102703         * doc/functions/fseeko.texi (fseeko): Document the fix.
102704         * doc/functions/ftello.texi (ftello): Document the fix.
102705         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
102706         * doc/functions/stdout.text (stdout): New file.
102707         * doc/functions/stderr.text (stderr): New file.
102708         * doc/gnulib.texi (Function Substitutes): Use new files.
102709         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
102710         prior to 1.7.0.
102711         * tests/test-ftello.c (main): Likewise for ftello.
102712         * tests/test-fseeko.sh: New file.
102713         * tests/test-ftello.sh: New file.
102714         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
102715         with seekable stdin.
102716         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
102717         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
102718         (gl_REPLACE_FSEEKO): New macro.
102719         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
102720         * modules/fseeko (Files): Distribute fseeko.c.
102721         * modules/ftello (Files): Distribute ftello.c.
102722         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
102723         mode.
102724         * lib/ftello.c (rpl_ftello): New file.
102725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
102726         fseeko, ftello.
102727         (gl_STDIN_LARGE_OFFSET): New macro.
102728         * modules/stdio (Makefile.am): Perform the replacement.
102729         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
102731 2007-05-23  Bruno Haible  <bruno@clisp.org>
102733         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
102734         GNULIB_POSIXCHECK is defined.
102736 2007-05-21  Bruno Haible  <bruno@clisp.org>
102738         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
102739         Check also the output for NaN arguments. When cross-compiling, guess
102740         no on IRIX.
102741         * lib/vasnprintf.c: Update comments.
102742         * tests/test-vasnprintf-posix.c (strisnan): New function.
102743         (test_function): Use it.
102744         * tests/test-vasprintf-posix.c (strisnan): New function.
102745         (test_function): Use it.
102746         * tests/test-snprintf-posix.h (strisnan): New function.
102747         (test_function): Use it.
102748         * tests/test-sprintf-posix.h (strisnan): New function.
102749         (test_function): Use it.
102750         Reported by Eric Blake.
102752 2007-05-20  Bruno Haible  <bruno@clisp.org>
102754         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
102755         numbers that fails on BeOS.
102756         * doc/functions/frexpl.texi: Update.
102758 2007-05-20  Jim Meyering  <jim@meyering.net>
102760         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
102761         forced upon us by glibc-2.6.
102763 2007-05-20  Bruno Haible  <bruno@clisp.org>
102765         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
102766         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
102767         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
102768         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
102769         NEED_PRINTF_INFINITE.
102770         (is_infinitel): New function.
102771         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
102772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
102773         gl_PREREQ_VASNPRINTF_INFINITE.
102774         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
102775         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102776         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
102777         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
102778         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
102779         gl_PREREQ_VASNPRINTF_INFINITE.
102780         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102781         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102782         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102783         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102784         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102785         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102786         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102787         * doc/functions/fprintf.texi: Update.
102788         * doc/functions/printf.texi: Update.
102789         * doc/functions/snprintf.texi: Update.
102790         * doc/functions/sprintf.texi: Update.
102791         * doc/functions/vfprintf.texi: Update.
102792         * doc/functions/vprintf.texi: Update.
102793         * doc/functions/vsnprintf.texi: Update.
102794         * doc/functions/vsprintf.texi: Update.
102796 2007-05-20  Bruno Haible  <bruno@clisp.org>
102798         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
102799         was not found in libc.
102800         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
102802 2007-05-20  Bruno Haible  <bruno@clisp.org>
102804         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
102805         printed as "-nan" instead of "nan".
102806         * tests/test-vasprintf-posix.c (test_function): Likewise.
102807         * tests/test-snprintf-posix.h (test_function): Likewise.
102808         * tests/test-sprintf-posix.h (test_function): Likewise.
102809         Needed for HP-UX 11.
102811 2007-05-20  Jim Meyering  <jim@meyering.net>
102813         Fix buggy test for the fchownat-deref bug.
102814         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
102815         symlink required for the run-test.  Without it, this test would
102816         always declare that fchownat doesn't work, and client code would
102817         unnecessarily use the replacement function with fixed libc.
102818         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
102819         Reported by Greg Schafer.
102821 2007-05-19  Bruno Haible  <bruno@clisp.org>
102823         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
102824         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
102825         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
102826         Needed for IRIX 6.5 and Solaris 2.5.1.
102828 2007-05-19  Bruno Haible  <bruno@clisp.org>
102830         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
102831         (test_function): Skip tests involving -0.0 on platforms where
102832         -0.0 = 0.0.
102833         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
102834         (test_function): Skip tests involving -0.0 on platforms where
102835         -0.0 = 0.0.
102836         * tests/test-snprintf-posix.h (have_minus_zero): New function.
102837         (test_function): Skip tests involving -0.0 on platforms where
102838         -0.0 = 0.0.
102839         * tests/test-sprintf-posix.h (have_minus_zero): New function.
102840         (test_function): Skip tests involving -0.0 on platforms where
102841         -0.0 = 0.0.
102842         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
102843         tests.
102844         * tests/test-printf-posix.h (test_function): Likewise.
102845         * tests/test-printf-posix.output: Remove all -0.0 related results.
102846         Needed for IRIX 6.5.
102848 2007-05-19  Bruno Haible  <bruno@clisp.org>
102850         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
102851         printed as "nan0x7fffffff" instead of "nan".
102852         * tests/test-vasprintf-posix.c (test_function): Likewise.
102853         * tests/test-snprintf-posix.h (test_function): Likewise.
102854         * tests/test-sprintf-posix.h (test_function): Likewise.
102855         * tests/test-fprintf-posix.h (NaN): Remove macro.
102856         (test_function): Remove all NaN related tests.
102857         * tests/test-printf-posix.h (NaN): Remove macro.
102858         (test_function): Remove all NaN related tests.
102859         * tests/test-printf-posix.output: Remove all NaN related results.
102860         Needed for IRIX 6.5.
102862 2007-05-19  Bruno Haible  <bruno@clisp.org>
102864         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
102865         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
102867 2007-05-19  Bruno Haible  <bruno@clisp.org>
102869         * lib/float_.h: New file.
102870         * m4/float_h.m4: New file.
102871         * modules/float: New file.
102872         * modules/isnanl (Dependencies): Add float.
102873         * modules/isnanl-nolibm (Dependencies): Likewise.
102874         * modules/mathl (Dependencies): Likewise.
102875         * modules/printf-frexpl (Dependencies): Likewise.
102876         * modules/signbit (Dependencies): Likewise.
102877         * modules/vasnprintf (Dependencies): Likewise.
102878         * doc/headers/float.texi: Update.
102880 2007-05-19  Jim Meyering  <jim@meyering.net>
102882         * lib/utimens.c (gl_futimens): Rename from futimens,
102883         now that glibc-2.6 declares futimens.
102884         * lib/utimens.h: Likewise.
102886 2007-05-19  Bruno Haible  <bruno@clisp.org>
102888         Avoid test failures on mingw.
102889         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
102890         * tests/test-printf-posix.sh: Likewise.
102891         * tests/test-vfprintf-posix.sh: Likewise.
102892         * tests/test-vprintf-posix.sh: Likewise.
102894 2007-05-19  Bruno Haible  <bruno@clisp.org>
102896         Fix *printf result for NaN, Inf, -0.0 on mingw.
102897         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
102898         * lib/vasnprintf.c: Include math.h and isnan.h.
102899         (is_infinite_or_zero): New function.
102900         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
102901         values in the %f, %F, %e, %E, %g, %G directives.
102902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
102903         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102904         gl_PRINTF_INFINITE and test its result. Invoke
102905         gl_PREREQ_VASNPRINTF_INFINITE.
102906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102910         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102912         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102913         * doc/functions/fprintf.texi: Update.
102914         * doc/functions/printf.texi: Update.
102915         * doc/functions/snprintf.texi: Update.
102916         * doc/functions/sprintf.texi: Update.
102917         * doc/functions/vfprintf.texi: Update.
102918         * doc/functions/vprintf.texi: Update.
102919         * doc/functions/vsnprintf.texi: Update.
102920         * doc/functions/vsprintf.texi: Update.
102922 2007-05-19  Bruno Haible  <bruno@clisp.org>
102924         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
102925         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
102926         Instead of multiplying with 10^k, set extra_zeroes to k.
102927         (scale10_round_long_double): Remove function.
102929 2007-05-18  Bruno Haible  <bruno@clisp.org>
102931         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
102932         introduced on 2007-05-06.
102934 2007-05-18  Bruno Haible  <bruno@clisp.org>
102936         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
102937         %g directives.
102938         * tests/test-vasprintf-posix.c (test_function): Likewise.
102939         * tests/test-snprintf-posix.h (test_function): Likewise.
102940         * tests/test-sprintf-posix.h (test_function): Likewise.
102942 2007-05-18  Bruno Haible  <bruno@clisp.org>
102944         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
102945         (strmatch): New function.
102946         (test_function): Test the %f directive on numbers of various exponents.
102947         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
102948         (strmatch): New function.
102949         (test_function): Test the %f directive on numbers of various exponents.
102950         * tests/test-snprintf-posix.h (strmatch): New function.
102951         (test_function): Test the %f directive on numbers of various exponents.
102952         * tests/test-sprintf-posix.h (strmatch): New function.
102953         (test_function): Test the %f directive on numbers of various exponents.
102954         * tests/test-snprintf-posix.c (SIZEOF): New macro.
102955         * tests/test-sprintf-posix.c (SIZEOF): New macro.
102956         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
102957         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
102959 2007-05-18  Bruno Haible  <bruno@clisp.org>
102961         Add support for 'long double' number output.
102962         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
102963         * lib/vasnprintf.c: Include math.h and float+.h.
102964         (mp_limb_t): New type.
102965         (GMP_LIMB_BITS): New macro.
102966         (mp_twolimb_t): New type.
102967         (GMP_TWOLIMB_BITS): New macro.
102968         (mpn_t): New type.
102969         (multiply, divide, convert_to_decimal, decode_long_double,
102970         scale10_round_long_double, scale10_round_decimal_long_double,
102971         floorlog10l): New functions.
102972         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
102973         for the %f, %F, %e, %E, %g, %G directives.
102974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
102975         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102976         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
102977         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
102978         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102985         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
102986         * modules/snprintf-posix (Depends-on): Likewise.
102987         * modules/sprintf-posix (Depends-on): Likewise.
102988         * modules/vasnprintf-posix (Depends-on): Likewise.
102989         * modules/vasprintf-posix (Depends-on): Likewise.
102990         * modules/vfprintf-posix (Depends-on): Likewise.
102991         * modules/vsnprintf-posix (Depends-on): Likewise.
102992         * modules/vsprintf-posix (Depends-on): Likewise.
102993         * modules/vasnprintf (Files): Add lib/float+.h.
102994         * doc/functions/fprintf.texi: Update.
102995         * doc/functions/printf.texi: Update.
102996         * doc/functions/snprintf.texi: Update.
102997         * doc/functions/sprintf.texi: Update.
102998         * doc/functions/vfprintf.texi: Update.
102999         * doc/functions/vprintf.texi: Update.
103000         * doc/functions/vsnprintf.texi: Update.
103001         * doc/functions/vsprintf.texi: Update.
103003 2007-05-18  Bruno Haible  <bruno@clisp.org>
103005         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
103007 2007-05-18  Bruno Haible  <bruno@clisp.org>
103009         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
103010         for printing 64-bit integers. Needed for mingw.
103012 2007-05-18  Bruno Haible  <bruno@clisp.org>
103014         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
103015         gl_FUNC_FREXPL_WORKS.
103016         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
103018 2007-05-18  Bruno Haible  <bruno@clisp.org>
103020         * modules/frexpl-nolibm-tests: New file.
103022         * modules/frexpl-nolibm: New file.
103023         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
103025 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103027         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
103028         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103029         GCC 4.2, which otherwise issues a lot of warnings.
103030         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
103031         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
103032         Likewise.
103033         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
103034         * modules/iconv_open (iconv.h): Likewise.
103035         * modules/locale (locale.h): Likewise.
103036         * modules/netinet_in (netinet/in.h): Likewise.
103037         * modules/sys_select (sys_select.h): Likewise.
103038         * modules/sys_socket (sys/socket.h): Likewise.
103039         * modules/sys_stat (sys/stat.h): Likewise.
103040         * modules/sysexits (sysexits.h): Likewise.
103041         * modules/unistd (unistd.h): Likewise.
103043 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103045         * modules/closein-tests (Makefile.am): Distribute
103046         `test-closein.sh'.
103048 2007-05-17  Bruno Haible  <bruno@clisp.org>
103050         * tests/test-printf-posix.output: Renamed from
103051         tests/test-fprintf-posix.out.
103052         * modules/fprintf-posix-tests: Update.
103053         * modules/printf-posix-tests: Update.
103054         * modules/vfprintf-posix-tests: Update.
103055         * modules/vprintf-posix-tests: Update.
103056         * tests/test-fprintf-posix.sh: Update.
103057         * tests/test-printf-posix.sh: Update.
103058         * tests/test-vfprintf-posix.sh: Update.
103059         * tests/test-vprintf-posix.sh: Update.
103060         Reported by Ralf Wildenhues.
103062 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103064         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
103065         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103066         GCC 4.2, which otherwise issues a lot of warnings.
103067         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
103068         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
103069         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
103070         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
103071         it should no longer be needed.
103072         * lib/string_.h: Likewise.
103073         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
103074         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
103075         * modules/inttypes (inttypes.h): Likewise.
103076         * modules/math (math.h): Likewise.
103077         * modules/search (search.h): Likewise.
103078         * modules/signal (signal.h): Likewise.
103079         * modules/stdint (stdint.h): Likewise.
103080         * modules/stdio (stdio.h): Likewise.
103081         * modules/stdlib (stdlib.h): Likewise.
103082         * modules/string (string.h): Likewise.
103083         * modules/sys_time (sys/time.h): Likewise.
103084         * modules/time (time.h): Likewise.
103085         * modules/wchar (wchar.h): Likewise.
103086         * modules/wctype (wtype.h): Likewise.
103088 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
103090         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
103092 2007-05-13  Bruno Haible  <bruno@clisp.org>
103094         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
103095         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103096         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
103097         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103098         (gl_PREREQ_STRTOK_R): Don't require it here.
103100 2007-05-13  Bruno Haible  <bruno@clisp.org>
103102         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
103103         when used in C++ mode.
103105 2007-05-12  Bruno Haible  <bruno@clisp.org>
103107         * lib/linebuffer.h: Tweak doc.
103108         * lib/linebuffer.c: Likewise.
103110 2007-05-12  James Youngman  <jay@gnu.org>
103112         * lib/linebuffer.c (readlinebuffer_delim): New function,
103113         like readlinebuffer, but use a caller-specified delimiter.
103114         (readlinebuffer): Just call readlinebuffer_delim with '\n'
103115         as the delimiter.
103116         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
103118 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103120         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
103121         * modules/openat (Files): Remove openat-die.c.
103122         (Depends-on): Add openat-die.
103123         * modules/openat-die: New module.
103125 2007-05-06  Bruno Haible  <bruno@clisp.org>
103127         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
103128         Update with info about Cygwin.
103129         * doc/functions/fprintf.texi: Update.
103130         * doc/functions/printf.texi: Update.
103131         * doc/functions/snprintf.texi: Update.
103132         * doc/functions/sprintf.texi: Update.
103133         * doc/functions/vfprintf.texi: Update.
103134         * doc/functions/vprintf.texi: Update.
103135         * doc/functions/vsnprintf.texi: Update.
103136         * doc/functions/vsprintf.texi: Update.
103137         Reported by Eric Blake.
103139 2007-05-06  Bruno Haible  <bruno@clisp.org>
103141         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
103142         padding ourselves for the floating-point directives.
103143         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
103144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
103145         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103146         gl_PRINTF_FLAG_ZERO and test its result. Invoke
103147         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
103148         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103149         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103151         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103152         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103154         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103155         * tests/test-snprintf-posix.h (test_function): Also check the width
103156         and some flags in the %f directive.
103157         * tests/test-sprintf-posix.h (test_function): Likewise.
103158         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103159         * tests/test-vasprintf-posix.c (test_function): Likewise.
103160         * doc/functions/fprintf.texi: Update.
103161         * doc/functions/printf.texi: Update.
103162         * doc/functions/snprintf.texi: Update.
103163         * doc/functions/sprintf.texi: Update.
103164         * doc/functions/vfprintf.texi: Update.
103165         * doc/functions/vprintf.texi: Update.
103166         * doc/functions/vsnprintf.texi: Update.
103167         * doc/functions/vsprintf.texi: Update.
103169 2007-05-06  Bruno Haible  <bruno@clisp.org>
103171         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
103172         pass the ' flag character to sprintf or snprintf.
103173         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
103174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
103175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103176         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
103177         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
103178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103179         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103185         * tests/test-snprintf-posix.h (test_function): Also check the grouping
103186         flag.
103187         * tests/test-sprintf-posix.h (test_function): Likewise.
103188         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103189         * tests/test-vasprintf-posix.c (test_function): Likewise.
103190         * doc/functions/fprintf.texi: Update.
103191         * doc/functions/printf.texi: Update.
103192         * doc/functions/snprintf.texi: Update.
103193         * doc/functions/sprintf.texi: Update.
103194         * doc/functions/vfprintf.texi: Update.
103195         * doc/functions/vprintf.texi: Update.
103196         * doc/functions/vsnprintf.texi: Update.
103197         * doc/functions/vsprintf.texi: Update.
103199 2007-05-01  Bruno Haible  <bruno@clisp.org>
103201         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
103203 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
103205         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
103206         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
103208 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
103210         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
103211         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
103212         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
103214 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
103216         * lib/argp-help.c (struct hol_entry): New member `ord'.
103217         (HOL_ENTRY_PTRCMP): Use ord for comparison
103218         (hol_sort): Initialize ord.
103220 2007-05-01  Bruno Haible  <bruno@clisp.org>
103222         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
103223         Reported by Eric Blake.
103224         * doc/gnulib.texi (Function Substitutes): Update.
103226 2007-05-01  Bruno Haible  <bruno@clisp.org>
103228         * doc/functions.texi: Remove file, now redundant through
103229         doc/functions/*.texi.
103231 2007-05-01  Bruno Haible  <bruno@clisp.org>
103233         * modules/argp (Depends-on): Add sleep.
103235 2007-05-01  Bruno Haible  <bruno@clisp.org>
103237         * modules/sleep-tests: New file.
103238         * tests/test-sleep.c: New file.
103240         * modules/sleep: New file.
103241         * lib/sleep.c: New file.
103242         * m4/sleep.m4: New file.
103243         * lib/unistd_.h (sleep): New declaration.
103244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
103245         HAVE_SLEEP.
103246         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
103247         * doc/functions/sleep.texi: Document the sleep module.
103249 2007-05-01  Bruno Haible  <bruno@clisp.org>
103251         * lib/sigprocmask.h: Remove file.
103252         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
103253         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
103254         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
103255         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
103256         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
103257         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
103258         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
103259         HAVE_SIGSET_T as a shell variable.
103260         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
103261         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
103262         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
103263         (Depends-on): Add signal. Remove verify.
103264         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
103265         (Include): Mention <signal.h> instead of sigprocmask.h.
103266         * NEWS: Mention the change.
103267         * lib/fatal-signal.c: Don't include sigprocmask.h.
103269 2007-05-01  Bruno Haible  <bruno@clisp.org>
103271         * modules/signal: New file.
103272         * lib/signal_.h: New file.
103273         * m4/signal_h.m4: New file.
103275 2007-05-01  Bruno Haible  <bruno@clisp.org>
103277         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
103278         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
103279         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
103280         HAVE_WCTYPE_CTMP_BUG into wctype.h.
103282 2007-05-01  Bruno Haible  <bruno@clisp.org>
103284         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
103285         configure time.
103286         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
103287         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
103288         * modules/sys_stat (Makefile.am): Substitute their values into
103289         sys/stat.h.
103291 2007-05-01  Bruno Haible  <bruno@clisp.org>
103293         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
103294         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
103295         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
103297 2007-05-01  Bruno Haible  <bruno@clisp.org>
103299         * doc/header/assert.texi: Undo last change: don't mention the gnulib
103300         'assert' module here.
103302 2007-05-01  Bruno Haible  <bruno@clisp.org>
103304         * doc/functions/*.texi: New files.
103305         * doc/functions/google-ranking.txt: New file.
103306         * doc/gnulib.texi (Function Substitutes): New chapter.
103307         (ctime, inet_ntoa): Remove sections.
103308         * doc/ctime.texi: Remove file.
103309         * doc/inet_ntoa.texi: Remove file.
103310         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
103311         dependencies.
103312         (%.info): New rule, specifying a --reference-limit.
103314 2007-05-01  Bruno Haible  <bruno@clisp.org>
103316         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
103318 2007-05-01  Bruno Haible  <bruno@clisp.org>
103320         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
103321         the portability of 'mkdir' to mingw systems.
103323 2007-05-01  Bruno Haible  <bruno@clisp.org>
103325         * doc/headers/google-ranking.txt: New file.
103327 2007-04-30  Eric Blake  <ebb9@byu.net>
103329         Prefer fseeko to fseek.
103330         * modules/getpass (Depends-on): Add fseeko.
103331         * lib/getpass.c (getpass): Use fseeko, not fseek.
103333 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
103335         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
103336         assumes the sorting is stable, while most qsort implementations
103337         are not.  Use argument addresses to ensure they never compare as
103338         equal.
103340         * tests/test-argp-2.sh (usage-indent test): Fix output
103341         (func_compare): Restore diff options
103342         * tests/test-argp.c: Restore #include "progname.h"
103344 2007-04-29  Bruno Haible  <bruno@clisp.org>
103346         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
103347         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103348         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
103349         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103350         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
103351         (configure.ac): Define CHECK_SNPRINTF_POSIX.
103352         (TESTS, check_PROGRAMS): Add test-snprintf.
103353         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
103354         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
103355         (TESTS, check_PROGRAMS): Add test-vsnprintf.
103356         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
103357         assertions that fail on HP-UX, OSF/1, or IRIX.
103358         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
103360 2007-04-29  Bruno Haible  <bruno@clisp.org>
103362         * MODULES.html.sh (posix_functions): Remove 'contents'.
103364 2007-04-29  Karl Berry  <karl@gnu.org>
103366         * config/srclist.txt (gendocs_template_min): new entry.
103368 2007-04-29  Bruno Haible  <bruno@clisp.org>
103370         Work around fpurge bug on BSD systems.
103371         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
103372         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
103373         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
103374         fpurge to rpl_fpurge if the system already has this function.
103375         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
103376         the case where the system already has this function. Correct invariants
103377         on BSD systems.
103378         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
103379         BSD systems.
103381 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
103383         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
103384         proposed by Sven Verdoolaege.
103386         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
103387         options.
103388         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
103389         (usage and help tests): Update
103391 2007-04-29  Bruno Haible  <bruno@clisp.org>
103393         * tests/test-fflush.c (main): Use a file of size 17, not 10.
103394         Print more information in case of failure. Disable a test on BeOS.
103396 2007-04-29  Bruno Haible  <bruno@clisp.org>
103398         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
103399         This helps debugging on systems on which no gdb is available.
103401 2007-04-29  Bruno Haible  <bruno@clisp.org>
103403         * lib/freading.h: Improve comments.
103404         * lib/fwriting.h: Likewise.
103405         * tests/test-freading.c (main): Don't check freading immediately after
103406         repositioning. Needed for glibc.
103408 2007-04-29  Bruno Haible  <bruno@clisp.org>
103410         * lib/freading.c (freading): Trivial simplification.
103412 2007-04-28  Bruno Haible  <bruno@clisp.org>
103414         * tests/test-fwriting.c (main): Also test the interaction between
103415         fflush and fwriting.
103416         * modules/fwriting-tests (Depends-on): Add fflush.
103418         * tests/test-freading.c (main): Also test the interaction between
103419         fflush and freading.
103420         * modules/freading-tests (Depends-on): Add fflush.
103422 2007-04-28  Bruno Haible  <bruno@clisp.org>
103424         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
103425         fseeko and ftello.
103426         Suggested by Eric Blake.
103428 2007-04-28  Jim Meyering  <jim@meyering.net>
103430         Avoid false-negative in gl_STDINT_H's C99 conformance test.
103431         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
103432         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
103434 2007-04-27  Eric Blake  <ebb9@byu.net>
103436         * doc/headers/assert.texi (assert.h): Document assert module use.
103438 2007-04-27  Bruno Haible  <bruno@clisp.org>
103440         * doc/headers/*.texi: New files.
103441         * doc/gnulib.texi (Header File Substitutes): New chapter.
103442         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
103443         dependencies.
103444         (standards.info ,standards.html, standards.dvi): Update dependencies.
103445         (mostlyclean, clean): New targets.
103447 2007-04-27  Bruno Haible  <bruno@clisp.org>
103449         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
103450         * modules/sysexits (Files, Makefile.am): Update.
103452         * lib/sys_socket_.h: Renamed from lib/socket_.h.
103453         * modules/sys_socket (Files, Makefile.am): Update.
103455         * lib/sys_stat_.h: Renamed from lib/stat_.h.
103456         * modules/sys_stat (Files, Makefile.am): Update.
103458 2007-04-27  Eric Blake  <ebb9@byu.net>
103460         * lib/freading.h: Improve comments.
103461         * lib/fwriting.h: Likewise.
103462         * lib/fflush.c: Likewise.
103464         Fix closein for mingw.
103465         * modules/closein-tests: Add tests for closein.
103466         * tests/test-closein.c: New file.
103467         * tests/test-closein.sh: Likewise.
103468         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
103469         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
103471 2007-04-27  Bruno Haible  <bruno@clisp.org>
103473         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
103474         version is < 6.
103475         * lib/math_.h [__DECC]: Likewise.
103476         * lib/stdio_.h [__DECC]: Likewise.
103477         * lib/stdlib_.h [__DECC]: Likewise.
103478         * lib/string_.h [__DECC]: Likewise.
103479         * lib/time_.h [__DECC]: Likewise.
103480         * lib/wchar_.h [__DECC]: Likewise.
103481         * lib/wctype_.h [__DECC]: Likewise.
103483 2007-04-27  Bruno Haible  <bruno@clisp.org>
103485         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
103487 2007-04-27  Bruno Haible  <bruno@clisp.org>
103489         * lib/fflush.c: Add comments.
103490         * modules/fpurge-tests (Depends-on): Add fflush.
103491         * modules/freadable-tests (Depends-on): Likewise.
103492         * modules/fwritable-tests (Depends-on): Likewise.
103494 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
103496         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
103497         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
103498         Report by Bruno Haible <bruno@clisp.org>.
103500 2007-04-26  Eric Blake  <ebb9@byu.net>
103502         Fix fflush on mingw.
103503         * modules/fflush (Depends-on): Add freading.
103504         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
103505         but unread data.
103507 2007-04-26  Eric Blake  <ebb9@byu.net>
103508         and Bruno Haible  <bruno@clisp.org>
103510         Implement freading and fwriting.
103511         * lib/freading.c: New file.
103512         * lib/freading.h: Likewise.
103513         * m4/freading.m4: Likewise.
103514         * modules/freading: Likewise.
103515         * modules/freading-tests: Likewise.
103516         * tests/test-freading.c: Likewise.
103517         * lib/fwriting.c: New file.
103518         * lib/fwriting.h: Likewise.
103519         * m4/fwriting.m4: Likewise.
103520         * modules/fwriting: Likewise.
103521         * modules/fwriting-tests: Likewise.
103522         * tests/test-fwriting.c: Likewise.
103523         * MODULES.html.sh (File stream based Input/Output): Mention them.
103525 2007-04-26  Bruno Haible  <bruno@clisp.org>
103527         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
103528         'long' when we assume it.
103529         Suggested by Eric Blake.
103531 2007-04-26  Bruno Haible  <bruno@clisp.org>
103533         Ensure fseeko, ftello are declared on glibc systems.
103534         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
103535         * modules/fseeko (configure.ac-early): Likewise.
103536         * modules/ftello (configure.ac-early): Likewise.
103537         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
103538         AC_FUNC_FSEEKO for this.
103539         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
103540         (gl_CHECK_FSEEKO): Remove macro.
103542 2007-04-26  Bruno Haible  <bruno@clisp.org>
103544         * tests/test-fflush.c (main): Also check the ftell result after
103545         fflush and fseek/fseeko.
103546         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
103547         file descriptor position cache in the stream.
103548         * lib/fseeko.c (rpl_fseeko): Likewise.
103550 2007-04-26  Bruno Haible  <bruno@clisp.org>
103552         * modules/fflush-tests (Depends-on): Add fseeko.
103554 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
103555             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103557         * lib/argz_.h: ensure error_t definition is obtained in same
103558         mechanism system argz.h would have.
103559         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
103560         argz facilities are known bad.  Err on the side of caution if
103561         cross-compiling.
103563 2007-04-25  Eric Blake  <ebb9@byu.net>
103565         * lib/fpurge.c (includes): Use stdlib.h for free.
103566         * tests/test-fflush.c (main): Also test fflush-fseeko.
103568 2007-04-25  Bruno Haible  <bruno@clisp.org>
103570         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
103571         * lib/fseeko.c: New file.
103572         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
103573         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
103574         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
103575         gl_FUNC_FSEEKO.
103576         (gl_FUNC_FSEEKO): Invoke it.
103577         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
103578         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
103579         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
103581 2007-04-25  Bruno Haible  <bruno@clisp.org>
103583         * modules/fflush (Depends-on): Add ftello.
103585 2007-04-25  Bruno Haible  <bruno@clisp.org>
103587         * modules/ftello-tests: New file.
103588         * tests/test-ftello.c: New file.
103590         * modules/ftello: New file.
103591         * m4/ftello.m4: New file.
103592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
103593         HAVE_FTELLO.
103594         * lib/stdio_.h (ftello): New declaration.
103595         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
103596         HAVE_FTELLO.
103598 2007-04-25  Bruno Haible  <bruno@clisp.org>
103600         * modules/fseeko-tests: New file.
103601         * tests/test-fseeko.c: New file.
103603         * modules/fseeko: New file.
103604         * m4/fseeko.m4: New file.
103605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
103606         HAVE_FSEEKO.
103607         * lib/stdio_.h (fseeko): New declaration.
103608         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
103609         HAVE_FSEEKO.
103611 2007-04-25  Bruno Haible  <bruno@clisp.org>
103613         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
103615 2007-04-25  Bruno Haible  <bruno@clisp.org>
103617         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
103618         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
103619         * tests/test-unistd.c: Likewise.
103620         * tests/test-fcntl.c: Likewise.
103622 2007-04-23  Eric Blake  <ebb9@byu.net>
103624         * lib/fflush.c: Fix missing include.
103625         Reported by Bruno Haible.
103627 2007-04-23  Bruno Haible  <bruno@clisp.org>
103629         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
103630         Reported by Eric Blake.
103632 2007-04-23  Bruno Haible  <bruno@clisp.org>
103634         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
103636 2007-04-23  Bruno Haible  <bruno@clisp.org>
103638         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
103640 2007-04-23  Bruno Haible  <bruno@clisp.org>
103642         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
103643         Needed on HP-UX 11.
103645 2007-04-16  Eric Blake  <ebb9@byu.net>
103647         Make fflush rely on fpurge.
103648         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
103649         open coding all variants.
103650         * modules/fflush (Depends-on): Add fpurge and unistd.
103651         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
103652         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
103654         Fix --with-tests compilation on cygwin.
103655         * modules/argmatch-tests (Makefile.am): List gnulib library first
103656         in LDADD.
103657         * modules/argp-tests (Makefile.am): Likewise.
103658         * modules/array-list-tests (Makefile.am): Likewise.
103659         * modules/array-oset-tests (Makefile.am): Likewise.
103660         * modules/avltree-list-tests (Makefile.am): Likewise.
103661         * modules/avltree-oset-tests (Makefile.am): Likewise.
103662         * modules/avltreehash-list-tests (Makefile.am): Likewise.
103663         * modules/carray-list-tests (Makefile.am): Likewise.
103664         * modules/dirname-tests (Makefile.am): Likewise.
103665         * modules/frexp-tests (Makefile.am): Likewise.
103666         * modules/isnanl-tests (Makefile.am): Likewise.
103667         * modules/linked-list-tests (Makefile.am): Likewise.
103668         * modules/linkedhash-list-tests (Makefile.am): Likewise.
103669         * modules/lock-tests (Makefile.am): Likewise.
103670         * modules/rbtree-list-tests (Makefile.am): Likewise.
103671         * modules/rbtree-oset-tests (Makefile.am): Likewise.
103672         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
103673         * modules/tls-tests (Makefile.am): Likewise.
103674         * modules/tsearch-tests (Makefile.am): Likewise.
103675         * modules/xvasprintf-tests (Makefile.am): Likewise.
103677         Fix fpurge for cygwin.
103678         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
103679         value.
103680         * modules/fpurge-tests (Depends-on): Clean up trash.
103682 2007-04-16  Simon Josefsson  <simon@josefsson.org>
103684         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
103686         * m4/autobuild.m4: Re-indent.
103688 2007-04-13  Bruno Haible  <bruno@clisp.org>
103690         * modules/fpurge-tests: New file.
103691         * tests/test-fpurge.c: New file.
103693         * modules/fpurge: New file.
103694         * lib/fpurge.h: New file.
103695         * lib/fpurge.c: New file.
103696         * m4/fpurge.m4: New file.
103698 2007-04-13  Bruno Haible  <bruno@clisp.org>
103700         * modules/fbufmode-tests: New file.
103701         * tests/test-fbufmode.c: New file.
103703         * modules/fbufmode: New file.
103704         * lib/fbufmode.h: New file.
103705         * lib/fbufmode.c: New file.
103706         * m4/fbufmode.m4: New file.
103708 2007-04-13  Bruno Haible  <bruno@clisp.org>
103710         * modules/fwritable-tests: New file.
103711         * tests/test-fwritable.c: New file.
103713         * modules/fwritable: New file.
103714         * lib/fwritable.h: New file.
103715         * lib/fwritable.c: New file.
103716         * m4/fwritable.m4: New file.
103718 2007-04-13  Bruno Haible  <bruno@clisp.org>
103720         * modules/freadable-tests: New file.
103721         * tests/test-freadable.c: New file.
103723         * modules/freadable: New file.
103724         * lib/freadable.h: New file.
103725         * lib/freadable.c: New file.
103726         * m4/freadable.m4: New file.
103728 2007-04-13  Bruno Haible  <bruno@clisp.org>
103730         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
103731         MOSTLYCLEANFILES.
103733 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
103735         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
103736         gzip bootstrap.conf to avoid dragging in i18n machinery.
103737         (gnulib_tool_option): Use it.
103739 2007-04-13  Bruno Haible  <bruno@clisp.org>
103741         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
103742         %F directives.
103743         * tests/test-vasprintf-posix.c (test_function): Likewise.
103744         * tests/test-snprintf-posix.h (test_function): Likewise.
103745         * tests/test-sprintf-posix.h (test_function): Likewise.
103746         * tests/test-fprintf-posix.h (test_function): Likewise.
103747         * tests/test-printf-posix.h (test_function): Likewise.
103748         * tests/test-fprintf-posix.out: Likewise.
103750 2007-04-13  Bruno Haible  <bruno@clisp.org>
103752         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
103753         * modules/tls-tests (configure.ac): Likewise.
103754         Reported by Arto C. Nirkko <anirkko@insel.ch>.
103756 2007-04-13  Bruno Haible  <bruno@clisp.org>
103758         * lib/tls.c (glthread_tls_get): Fix return type.
103759         Patch by Arto C. Nirkko <anirkko@insel.ch>.
103761 2007-04-12  Eric Blake  <ebb9@byu.net>
103763         * modules/gettime (Depends-on): Remove gettime.
103764         Reported by Dmitry V. Levin.
103766 2007-04-12  Bruno Haible  <bruno@clisp.org>
103768         * modules/fflush (Include): Mention <stdio.h>.
103769         * modules/strtoimax (Include): Mention <inttypes.h>.
103770         * modules/strtoumax (Include): Likewise.
103772 2007-04-12  Eric Blake  <ebb9@byu.net>
103774         * .cvsignore: New file.
103775         * .gitignore: Likewise.
103777 2007-04-12  Bruno Haible  <bruno@clisp.org>
103779         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
103780         not before, since $(LDADD) often contains libgnu.a.
103781         * modules/striconv-tests (test_striconv_LDADD): Likewise.
103782         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
103783         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
103784         Needed on Cygwin.
103786 2007-04-12  Eric Blake  <ebb9@byu.net>
103788         Work around glibc's failure to flush stdin on fclose.
103789         * lib/closein.c (close_stdin): Flush stdin before closing.
103791         Work around glibc's failure to reset seekable stdin on exit.
103792         * modules/closein: New module.
103793         * lib/closein.c: New file.
103794         * lib/closein.h: Likewise.
103795         * m4/closein.m4: Likewise.
103796         * MODULES.html.sh (File stream based Input/Output): Document it.
103798 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103800         * gnulib-tool: Rename generated 'autobuild' script to
103801         'do-autobuild' in --create-megatestdir output.
103803         * doc/gnulib.texi (Build robot for gnulib): Fix.
103805 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103807         * modules/sysexits (Depends-on): Add absolute-header.
103809 2007-04-12  Eric Blake  <ebb9@byu.net>
103811         No need to preserve errno on success.
103812         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
103813         Reported by Bruno Haible.
103815 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103817         * MODULES.html.sh (Support for maintaining and releasing
103818         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
103820 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103822         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
103824 2007-04-12  Simon Josefsson  <simon@josefsson.org>
103826         * modules/autobuild: New module.
103828         * m4/autobuild.m4: New file.
103830 2007-04-11  Bruno Haible  <bruno@clisp.org>
103832         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
103833         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
103834         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
103835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
103836         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103837         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103838         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103839         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103840         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103841         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
103843         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103844         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103845         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
103846         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103847         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
103849         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103850         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103851         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
103852         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103853         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
103855         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103856         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103857         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
103858         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
103859         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
103860         Reported by Eric Blake.
103862 2007-04-11  Bruno Haible  <bruno@clisp.org>
103864         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
103866 2007-04-10  Bruno Haible  <bruno@clisp.org>
103868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
103869         for NaN and Infinity. Needed on FreeBSD 6.1.
103870         * tests/test-vasnprintf-posix.c (test_function): Undo last change
103871         regarding results for "%010a" of Infinity and NaN.
103872         * tests/test-vasprintf-posix.c (test_function): Likewise.
103873         * tests/test-snprintf-posix.h (test_function): Likewise.
103874         * tests/test-sprintf-posix.h (test_function): Likewise.
103875         * tests/test-fprintf-posix.h (test_function): Likewise.
103876         * tests/test-printf-posix.h (test_function): Likewise.
103877         * tests/test-fprintf-posix.out: Likewise.
103879 2007-04-10  Bruno Haible  <bruno@clisp.org>
103881         * modules/locale-tests: New file.
103882         * tests/test-locale.c: New file.
103884         * modules/locale: New file.
103885         * lib/locale_.h: New file.
103886         * m4/locale_h.m4: New file.
103888 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
103889             Bruno Haible  <bruno@clisp.org>
103891         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
103892         be determined, test for availability of the copysignf, copysign,
103893         copysignl functions.
103894         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
103895         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
103896         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
103898 2007-04-09  Eric Blake  <ebb9@byu.net>
103900         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
103901         * modules/stdio (Makefile.am): Support fflush.
103902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
103903         * modules/fflush: New file.
103904         * lib/fflush.c: Likewise.
103905         * m4/fflush.m4: Likewise.
103906         * modules/fflush-tests: New test.
103907         * tests/test-fflush.c: Likewise.
103908         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
103910 2007-04-06  Bruno Haible  <bruno@clisp.org>
103912         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
103913         (VASNPRINTF): Use signbit for faster determination whether to print a
103914         minus sign.
103915         * modules/vasnprintf (Files): Remove lib/float+.h.
103916         * modules/fprintf-posix (Depends-on): Add signbit.
103917         * modules/snprintf-posix (Depends-on): Likewise.
103918         * modules/sprintf-posix (Depends-on): Likewise.
103919         * modules/vasnprintf-posix (Depends-on): Likewise.
103920         * modules/vasprintf-posix (Depends-on): Likewise.
103921         * modules/vfprintf-posix (Depends-on): Likewise.
103922         * modules/vsnprintf-posix (Depends-on): Likewise.
103923         * modules/vsprintf-posix (Depends-on): Likewise.
103925 2007-04-06  Bruno Haible  <bruno@clisp.org>
103927         * tests/test-frexp.c (main): Test also the sign bit of zero results.
103928         * tests/test-frexpl.c (main): Likewise.
103929         * tests/test-ldexpl.c (main): Likewise.
103930         * modules/frexp-tests (Depends-on): Add signbit.
103931         * modules/frexpl-tests (Depdends-on): Likewise.
103932         * modules/ldexpl-tests (Depdends-on): Likewise.
103934 2007-04-06  Bruno Haible  <bruno@clisp.org>
103936         * modules/signbit-tests: New file.
103937         * tests/test-signbit.c: New file.
103939         * modules/signbit: New file.
103940         * lib/signbitf.c: New file.
103941         * lib/signbitd.c: New file.
103942         * lib/signbitl.c: New file.
103943         * m4/signbit.m4: New file.
103944         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
103945         (signbit): New macro.
103946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
103947         REPLACE_SIGNBIT.
103948         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
103949         REPLACE_FREXPL into math.h.
103951 2007-04-06  Bruno Haible  <bruno@clisp.org>
103953         * modules/isnanf-nolibm-tests: New file.
103954         * tests/test-isnanf.c: New file.
103956         * modules/isnanf-nolibm: New file.
103957         * lib/isnanf.h: New file.
103958         * lib/isnanf.c: New file.
103959         * lib/isnan.c: Consider the USE_FLOAT macro.
103960         * m4/isnanf.m4: New file.
103962 2007-04-06  Bruno Haible  <bruno@clisp.org>
103964         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
103965         (Link): New section.
103967         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
103969 2007-04-06  Bruno Haible  <bruno@clisp.org>
103971         Assume the 'long double' type.
103972         * m4/longdouble.m4: Remove file.
103973         * config/srclist.txt: Don't mention longdouble.m4.
103974         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
103975         * lib/float+.h: Likewise.
103976         * lib/frexp.c: Likewise.
103977         * lib/printf-args.h: Likewise.
103978         * lib/printf-args.c: Likewise.
103979         * lib/printf-frexp.c: Likewise.
103980         * lib/printf-parse.c: Likewise.
103981         * lib/vasnprintf.c: Likewise.
103982         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
103983         * m4/intl.m4: Likewise.
103984         * m4/isnanl.m4: Likewise.
103985         * m4/printf.m4: Likewise.
103986         * m4/printf-frexpl.m4: Likewise.
103987         * m4/vasnprintf.m4: Likewise.
103988         * modules/allocsa (Files): Remove m4/longdouble.m4.
103989         * modules/gettext (Files): Likewise.
103990         * modules/relocatable-prog-wrapper (Files): Likewise.
103991         * modules/vasnprintf (Files): Likewise.
103992         * modules/isnanl (Files): Likewise.
103993         (Include): Simplify.
103994         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
103995         (Include): Simplify.
103996         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
103997         (Include): Simplify.
103998         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
103999         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104000         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
104001         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104002         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104003         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104004         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
104005         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104006         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104007         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104008         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
104009         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104010         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
104011         * tests/test-isnanl.c: Likewise.
104012         * tests/test-snprintf-posix.h: Likewise.
104013         * tests/test-sprintf-posix.h: Likewise.
104014         * tests/test-vasnprintf-posix.c: Likewise.
104015         * tests/test-vasnprintf-posix2.c: Likewise.
104016         * tests/test-vasprintf-posix.c: Likewise.
104018 2007-04-06  Bruno Haible  <bruno@clisp.org>
104020         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
104021         * lib/math_.h [__DECC]: Include the overridden include file through
104022         #include_next, outside the double-inclusion guard.
104023         * lib/stdio_.h [__DECC]: Likewise.
104024         * lib/stdlib_.h [__DECC]: Likewise.
104025         * lib/string_.h [__DECC]: Likewise.
104026         * lib/time_.h [__DECC]: Likewise.
104027         * lib/wchar_.h [__DECC]: Likewise.
104028         * lib/wctype_.h [__DECC]: Likewise.
104029         * lib/inttypes_.h [__DECC]: Likewise.
104030         Reported by Albert Chin <china@thewrittenword.com> in
104031         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
104033 2007-04-04  Eric Blake  <ebb9@byu.net>
104035         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
104036         1.5.x.
104038 2007-04-04  Bruno Haible  <bruno@clisp.org>
104040         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
104041         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
104043 2007-04-04  Bruno Haible  <bruno@clisp.org>
104045         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
104046         results for "%010a" of Infinity and NaN.
104047         * tests/test-vasprintf-posix.c (test_function): Likewise.
104048         * tests/test-snprintf-posix.h (test_function): Likewise.
104049         * tests/test-sprintf-posix.h (test_function): Likewise.
104050         * tests/test-fprintf-posix.h (test_function): Remove these tests.
104051         * tests/test-printf-posix.h (test_function): Likewise.
104052         * tests/test-fprintf-posix.out: Update.
104053         Needed for FreeBSD 6.1.
104055 2007-04-04  Bruno Haible  <bruno@clisp.org>
104057         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
104058         directly used by the gnulib modules nor by gnulib-tool.
104060 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104062         * DEPENDENCIES: Give overall description of version dependency
104063         desirability.  Use more-typical names for apps.
104064         Add shell, coreutils, diffutils, grep, tar, gzip.
104066 2007-04-04  Simon Josefsson  <simon@josefsson.org>
104068         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
104070 2007-04-04  Karl Berry  <karl@gnu.org>
104072         * MODULES.html.sh (func_module): missing '.
104074 2007-04-03  Bruno Haible  <bruno@clisp.org>
104076         * modules/argmatch-tests (Makefile.am): New variable
104077         test_argmatch_LDADD.
104078         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
104079         * modules/array-list-tests (Makefile.am): New variable
104080         test_array_list_LDADD.
104081         * modules/array-oset-tests (Makefile.am): New variable
104082         test_array_oset_LDADD.
104083         * modules/avltree-list-tests (Makefile.am): New variable
104084         test_avltree_list_LDADD.
104085         * modules/avltree-oset-tests (Makefile.am): New variable
104086         test_avltree_oset_LDADD.
104087         * modules/avltreehash-list-tests (Makefile.am): New variable
104088         test_avltreehash_list_LDADD.
104089         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
104090         test_canonicalize_lgpl_LDADD.
104091         * modules/carray-list-tests (Makefile.am): New variable
104092         test_carray_list_LDADD.
104093         * modules/dirname-tests (Makefile.am): New variable
104094         test_dirname_LDADD.
104095         * modules/linked-list-tests (Makefile.am): New variable
104096         test_linked_list_LDADD.
104097         * modules/linkedhash-list-tests (Makefile.am): New variable
104098         test_linkedhash_list_LDADD.
104099         * modules/rbtree-list-tests (Makefile.am): New variable
104100         test_rbtree_list_LDADD.
104101         * modules/rbtree-oset-tests (Makefile.am): New variable
104102         test_rbtree_oset_LDADD.
104103         * modules/rbtreehash-list-tests (Makefile.am): New variable
104104         test_rbtreehash_list_LDADD.
104105         * modules/xvasprintf-tests (Makefile.am): New variable
104106         test_xvasprintf_LDADD.
104107         Reported by Eric Blake.
104109 2007-04-03  Eric Blake  <ebb9@byu.net>
104111         * DEPENDENCIES: Weaken m4 requirements.
104113 2007-04-03  Bruno Haible  <bruno@clisp.org>
104115         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
104116         * modules/isnanl-tests (configure.ac): Likewise.
104118 2007-04-03  Ben Pfaff  <blp@gnu.org>
104120         * modules/iconv_open: Add $(srcdir)/ to source directory
104121         references in Makefile fragments that call gperf, to fix VPATH
104122         builds.
104124 2007-04-03  Bruno Haible  <bruno@clisp.org>
104126         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
104127         * lib/ldexpl.c: Undo last change.
104129 2007-04-03  Bruno Haible  <bruno@clisp.org>
104131         * modules/printf-frexpl (Depends-on): Undo last change.
104132         (Files): Add m4/ldexpl.m4.
104134 2007-04-03  Bruno Haible  <bruno@clisp.org>
104136         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
104137         * modules/isnanl (Link): New section.
104139         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
104140         * modules/frexp (Link): New section.
104142         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
104143         * modules/frexpl (Link): New section.
104145         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
104146         * modules/ldexpl (Link): New section.
104148 2007-04-03  Bruno Haible  <bruno@clisp.org>
104150         * modules/TEMPLATE-EXTENDED: New file.
104151         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
104153 2007-04-03  Bruno Haible  <bruno@clisp.org>
104155         * DEPENDENCIES: New file.
104156         Suggested by Simon Josefsson.
104158 2007-04-03  Bruno Haible  <bruno@clisp.org>
104160         * doc/gnulib.texi: Escape @.
104162 2007-04-03  James Youngman  <jay@gnu.org>
104163         and Paul Eggert  <eggert@cs.ucla.edu>
104165         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
104166         birthtime on all systems that have birthtime, not just those which
104167         use st_birthtimensec rather than st_birthtim.  Putting zero in
104168         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
104169         that the birth time is not available for files on an NFS mount.
104171 2007-04-03  Simon Josefsson  <simon@josefsson.org>
104173         * modules/memxor: Move back from crypto/, suggested by Bruno.
104174         * modules/crypto/hmac-sha1: Fix memxor dependency.
104176         * modules/crypto/gc: Moved from ../.
104178 2007-04-02  Eric Blake  <ebb9@byu.net>
104180         * lib/ldexpl.c (includes): Avoid libm.
104182         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
104184 2007-04-02  Bruno Haible  <bruno@clisp.org>
104186         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
104187         on IRIX.
104189 2007-04-02  Bruno Haible  <bruno@clisp.org>
104191         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
104192         x86 or x86_64 platforms running MacOS X.
104193         Reported by Ryan Schmidt <@ryandesign.com>.
104195 2007-04-02  Bruno Haible  <bruno@clisp.org>
104197         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
104198         i386.
104200 2007-04-01  Simon Josefsson  <simon@josefsson.org>
104202         * modules/crypto/arcfour: Moved from ../.
104203         * modules/crypto/arcfour-tests: Moved from ../.
104204         * modules/crypto/arctwo: Moved from ../.
104205         * modules/crypto/arctwo-tests: Moved from ../.
104206         * modules/crypto/des: Moved from ../.
104207         * modules/crypto/des-tests: Moved from ../.
104208         * modules/crypto/gc-arcfour: Moved from ../.
104209         * modules/crypto/gc-arcfour-tests: Moved from ../.
104210         * modules/crypto/gc-arctwo: Moved from ../.
104211         * modules/crypto/gc-arctwo-tests: Moved from ../.
104212         * modules/crypto/gc-des: Moved from ../.
104213         * modules/crypto/gc-des-tests: Moved from ../.
104214         * modules/crypto/gc-hmac-md5: Moved from ../.
104215         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
104216         * modules/crypto/gc-hmac-sha1: Moved from ../.
104217         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
104218         * modules/crypto/gc-md2: Moved from ../.
104219         * modules/crypto/gc-md2-tests: Moved from ../.
104220         * modules/crypto/gc-md4: Moved from ../.
104221         * modules/crypto/gc-md4-tests: Moved from ../.
104222         * modules/crypto/gc-md5: Moved from ../.
104223         * modules/crypto/gc-md5-tests: Moved from ../.
104224         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
104225         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
104226         * modules/crypto/gc-random: Moved from ../.
104227         * modules/crypto/gc-rijndael: Moved from ../.
104228         * modules/crypto/gc-rijndael-tests: Moved from ../.
104229         * modules/crypto/gc-sha1: Moved from ../.
104230         * modules/crypto/gc-sha1-tests: Moved from ../.
104231         * modules/crypto/gc-tests: Moved from ../.
104232         * modules/crypto/hmac-md5: Moved from ../.
104233         * modules/crypto/hmac-md5-tests: Moved from ../.
104234         * modules/crypto/hmac-sha1: Moved from ../.
104235         * modules/crypto/hmac-sha1-tests: Moved from ../.
104236         * modules/crypto/md2: Moved from ../.
104237         * modules/crypto/md2-tests: Moved from ../.
104238         * modules/crypto/md4: Moved from ../.
104239         * modules/crypto/md4-tests: Moved from ../.
104240         * modules/crypto/md5: Moved from ../.
104241         * modules/crypto/md5-tests: Moved from ../.
104242         * modules/crypto/memxor: Moved from ../.
104243         * modules/crypto/rijndael: Moved from ../.
104244         * modules/crypto/rijndael-tests: Moved from ../.
104245         * modules/crypto/sha1: Moved from ../.
104247 2007-03-30  James Youngman  <jay@gnu.org>
104249         * tests/test-stat-time.c (prepare_test): use chmod() rather than
104250         rename() to change the ctime of a file (because ctime is unaffected
104251         by rename on jfs2 on AIX 5.1).
104252         (main): Start by doing cleanup, in case a previous run failed leaving
104253         test files behind.
104255 2007-03-31  Bruno Haible  <bruno@clisp.org>
104257         Support old proprietary implementations of iconv.
104258         * modules/iconv_open: New file.
104259         * lib/iconv_.h: New file.
104260         * m4/iconv_h.m4: New file.
104261         * lib/iconv_open.c: New file.
104262         * lib/iconv_open-aix.gperf: New file.
104263         * lib/iconv_open-hpux.gperf: New file.
104264         * lib/iconv_open-irix.gperf: New file.
104265         * lib/iconv_open-osf.gperf: New file.
104266         * m4/iconv_open.m4: New file.
104267         * modules/linebreak (Depends-on): Add iconv_open.
104268         * modules/striconv (Depends-on): Likewise.
104269         * modules/striconveh (Depends-on): Likewise.
104270         * modules/unicodeio (Depends-on): Likewise.
104271         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
104272         (iconv_t)(-1).
104273         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
104274         conversion if cd is (iconv_t)(-1).
104275         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
104276         is not possible.
104278 2007-03-31  Bruno Haible  <bruno@clisp.org>
104280         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104281         work on Solaris either. Protect also second use of "autodetect_jp".
104283 2007-03-31  Bruno Haible  <bruno@clisp.org>
104285         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
104286         the function is not present.
104288 2007-03-31  Bruno Haible  <bruno@clisp.org>
104290         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
104291         the function is not present.
104293 2007-03-31  Bruno Haible  <bruno@clisp.org>
104295         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
104296         a bug in HP-UX iconv_open().
104298 2007-03-31  Bruno Haible  <bruno@clisp.org>
104300         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
104301         (Mathematics <math.h>): New section, add fpieee.
104302         (Input/output <stdio.h>): Add fseterr.
104303         (Mathematics <math.h>): New section, add printf-frexp.
104304         (Container data structures): Add sublist.
104305         (Core language properties): Add fpucw, inline.
104306         (Functions for greatest-width integer types <inttypes.h>): Add
104307         imaxabs, imaxdiv, inttypes.
104308         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
104309         isnanl-nolibm, ldexp.
104310         (Mathematics <math.h>): New section, add printf-frexpl.
104311         (Support for systems lacking POSIX:2001): Add fprintf-posix,
104312         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
104313         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
104314         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
104315         (Unicode string functions): Add unistr/u*-mbtoucr.
104316         (Java): Add javacomp-script, javaexec-script.
104317         (C#): Add csharpcomp-script, csharpexec-script.
104318         (Support for building libraries and executables): Add havelib,
104319         relocatable-*.
104320         (Support for maintaining and releasing projects): Renamed from
104321         'Support for maintaining and release projects'. Add announce-gen.
104323 2007-03-31  Bruno Haible  <bruno@clisp.org>
104325         * README: Talk primarily about git.
104326         (git and CVS): Renamed from CVS.
104327         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
104328         gnulib is available through git.
104329         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
104331 2007-03-30  Bruno Haible  <bruno@clisp.org>
104333         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
104334         * lib/poll_.h: Likewise.
104335         * lib/stat_.h: Likewise.
104336         * lib/sys_time_.h: Likewise.
104337         * lib/sysexit_.h: Likewise.
104338         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
104339         * lib/stdbool_.h: Likewise.
104340         * lib/byteswap_.h: Add double-inclusion guard.
104342 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
104344         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
104346 2007-03-30  Karl Berry  <karl@gnu.org>
104348         * config/srclist-update: double space after USA in the license
104349         substitution, since that's how it's usually (?) written.
104351 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
104353         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
104354         reported by Bruno Haible.
104356 2007-03-29  Bruno Haible  <bruno@clisp.org>
104358         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
104359         a bug in AIX iconv().
104361 2007-03-29  Bruno Haible  <bruno@clisp.org>
104363         * modules/ldexpl-tests: New file.
104364         * tests/test-ldexpl.c: New file.
104366 2007-03-29  Bruno Haible  <bruno@clisp.org>
104368         * lib/ldexpl.c: Include fpucw.h.
104369         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
104370         multiplication.
104371         * modules/ldexpl (Depends-on): Add fpucw.
104373 2007-03-29  Bruno Haible  <bruno@clisp.org>
104375         * modules/ldexpl: New file.
104376         * m4/ldexpl.m4: New file.
104377         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
104378         set.
104379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
104380         REPLACE_LDEXPL.
104381         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
104382         REPLACE_LDEXPL.
104383         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104384         gl_FUNC_LDEXPL_WORKS.
104385         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
104386         * modules/mathl (Files): Remove lib/ldexpl.c.
104387         (Depends-on): Add ldexpl.
104389 2007-03-29  Bruno Haible  <bruno@clisp.org>
104391         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
104393 2007-03-29  Bruno Haible  <bruno@clisp.org>
104395         * tests/test-striconveh.c (main): Don't assume that a direct conversion
104396         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
104397         and possibly also HP-UX.
104398         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104399         work on AIX, IRIX, HP-UX, OSF/1.
104400         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
104401         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
104402         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
104403         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
104404         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
104405         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
104407 2007-03-29  Bruno Haible  <bruno@clisp.org>
104409         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
104411 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104413         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
104414         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
104416 2007-03-29  Eric Blake  <ebb9@byu.net>
104418         * lib/acl-internal.h: Remove redundant include.
104419         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
104420         Cygwin when a file is locked.
104422 2007-03-29  Bruno Haible  <bruno@clisp.org>
104424         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
104425         file.
104426         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
104428 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104430         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
104431         try to remove a parent directory if the child couldn't be removed
104432         (except for the first rmdir, which could fail because the child
104433         doesn't exist).  Problem reported by Jeff Blaine in
104434         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
104436 2007-03-28  Bruno Haible  <bruno@clisp.org>
104438         * lib/striconveh.c (utf8conv_carefully): New function.
104439         (mem_cd_iconveh_internal): Invoke it.
104441 2007-03-28  Bruno Haible  <bruno@clisp.org>
104443         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
104444         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
104445         input.
104446         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
104447         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
104448         unistr/u8-uctomb.
104450 2007-03-28  Bruno Haible  <bruno@clisp.org>
104452         * modules/unistr/u8-mbtoucr: New file.
104453         * lib/unistr/u8-mbtoucr.c: New file.
104454         * modules/unistr/u16-mbtoucr: New file.
104455         * lib/unistr/u16-mbtoucr.c: New file.
104456         * modules/unistr/u16-mbtoucr: New file.
104457         * lib/unistr/u16-mbtoucr.c: New file.
104458         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
104460 2007-03-27  Simon Josefsson  <simon@josefsson.org>
104461             Bruno Haible  <bruno@clisp.org>
104463         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
104464         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
104465         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
104467         * m4/stdio_h.m4: Add stubs for vasprintf too.
104469         * modules/stdio: Support vasprintf in sed command.
104471         * modules/vasprintf: Depend on stdio for prototypes.  Remove
104472         vasprintf.h.  Add stdio module indicator.
104474         * lib/stdio_.h: Declare asprintf and vasprintf, based on
104475         vasprintf.h.
104477         * lib/vasprintf.h: File removed.
104479         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
104480         * lib/vasprintf.c: Ditto.
104481         * lib/xvasprintf.c: Ditto.
104482         * tests/test-vasprintf-posix.c: Ditto.
104483         * tests/test-vasprintf.c: Ditto.
104485 2007-03-27  Bruno Haible  <bruno@clisp.org>
104487         Make vasnprintf multithread-safe.
104488         * lib/vasnprintf.c (decimal_point_char): New function.
104489         (VASNPRINTF): Use it.
104490         Suggested by Simon Josefsson.
104492 2007-03-27  Eric Blake  <ebb9@byu.net>
104494         Support sub-second birthtime on cygwin.
104495         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
104496         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
104497         (get_stat_birthtime): Also work with st_birthtim.
104499 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
104501         * lib/stat-time.h (USE_BIRTHTIME): Remove.
104502         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
104503         (get_stat_birthtime_ns): Do not try to use "spare" fields.
104504         (get_stat_birthtime_ns): Simplify compile-time tests.
104505         (get_stat_birthtime): Change the API to look like
104506         get_stat_mtime etc., except return a negative tv_nsec on error.
104507         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
104508         Don't check for "spare" fields.
104509         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
104510         or for struct stat.st_birthtime, as these tests aren't used.
104511         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
104513 2007-03-27  Bruno Haible  <bruno@clisp.org>
104515         * lib/stat-time.h: Include <sys/stat.h>.
104517 2007-03-27  James Youngman  <jay@gnu.org>
104519         * lib/stat-time.h (get_stat_birthtime): New function for
104520           retrieving st_birthtime as provided by UFS2 (hence *BSD).
104521         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
104522           and its variants.
104523         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
104524         * modules/stat-time-test: New file.
104525         * tests/test-stat-time.c: New test, devised by Bruno Haible.
104527 2007-03-26  Bruno Haible  <bruno@clisp.org>
104529         Better support of signalling NaNs.
104530         * lib/atanl.c: Include isnanl.h.
104531         (atanl): Perform test for NaN at the beginning of the function and
104532         through a call to isnanl.
104533         * lib/cosl.c: Include isnanl.h.
104534         (cosl): Perform test for NaN at the beginning of the function and
104535         through a call to isnanl.
104536         * lib/ldexpl.c: Include isnanl.h.
104537         (ldexpl): Perform test for NaN through a call to isnanl.
104538         * lib/logl.c: Include isnanl.h.
104539         (logl): Perform test for NaN at the beginning of the function and
104540         through a call to isnanl.
104541         * lib/sinl.c: Include isnanl.h.
104542         (sinl): Perform test for NaN at the beginning of the function and
104543         through a call to isnanl.
104544         * lib/sqrtl.c: Include isnanl.h.
104545         (sqrtl): Perform test for NaN at the beginning of the function and
104546         through a call to isnanl.
104547         * lib/tanl.c: Include isnanl.h.
104548         (tanl): Perform test for NaN at the beginning of the function and
104549         through a call to isnanl.
104550         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
104551         * modules/mathl (Depends-on): Add isnanl.
104553 2007-03-26  Eric Blake  <ebb9@byu.net>
104555         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
104556         regression in logic sense of previous patch.
104558 2007-03-26  Bruno Haible  <bruno@clisp.org>
104560         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
104561         unportable shell command "if ! ...".
104562         Reported by Ralf Wildenhues.
104564 2007-03-25  Bruno Haible  <bruno@clisp.org>
104566         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
104567         <sysexits.h> file, and only add EX_CONFIG.
104568         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
104569         absolute file name and whether it is sufficient. Substitute also
104570         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
104571         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
104572         ABSOLUTE_SYSEXITS_H into sysexits.h.
104574 2007-03-25  Bruno Haible  <bruno@clisp.org>
104576         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
104577         hints is NULL.
104579 2007-03-25  Bruno Haible  <bruno@clisp.org>
104581         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
104582         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
104584 2007-03-25  Bruno Haible  <bruno@clisp.org>
104586         * lib/vasnprintf.c: Include langinfo.h.
104587         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
104588         multithread-safe.
104589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
104590         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
104591         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104595         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104596         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
104597         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104598         Reported by Simon Josefsson.
104600 2007-03-25  Bruno Haible  <bruno@clisp.org>
104602         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
104603         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
104604         * modules/vasnprintf (Depends-on): Add stdint.
104606 2007-03-25  Bruno Haible  <bruno@clisp.org>
104608         * modules/fpieee: New file.
104609         * m4/fpieee.m4: New file.
104610         * modules/isnan-nolibm (Depends-on): Add fpieee.
104611         * modules/isnanl-nolibm (Depends-on): Add fpieee.
104612         * modules/isnanl (Depends-on): Add fpieee.
104614 2007-03-25  Bruno Haible  <bruno@clisp.org>
104616         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
104618 2007-03-25  Bruno Haible  <bruno@clisp.org>
104620         Avoid test failures on IRIX 6.5.
104621         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
104622         (main): Use it.
104623         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
104624         macros.
104625         (main): Use them.
104627 2007-03-25  Bruno Haible  <bruno@clisp.org>
104629         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
104630         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
104631         exists but doesn't work.
104632         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
104633         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
104634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
104635         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
104636         math.h.
104638 2007-03-25  Bruno Haible  <bruno@clisp.org>
104640         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
104641         returns inf. Needed on IRIX 6.5.
104643 2007-03-25  Bruno Haible  <bruno@clisp.org>
104645         * tests/test-frexpl.c: Include isnanl-nolibm.h.
104646         (main): Use isnanl instead of x != x idiom.
104647         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
104649         * tests/test-frexp.c: Include isnan.h.
104650         (main): Use isnan instead of x != x idiom.
104651         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
104653 2007-03-25  Bruno Haible  <bruno@clisp.org>
104655         * tests/test-frexp.c (NaN): New function/macro.
104656         (main): Use it instead of 0.0 / 0.0.
104657         * tests/test-isnan.c (NaN): New function/macro.
104658         (main): Use it instead of 0.0 / 0.0.
104659         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
104660         (test_function): Use it instead of 0.0 / 0.0.
104661         * tests/test-vasprintf-posix.c (NaN): New function/macro.
104662         (test_function): Use it instead of 0.0 / 0.0.
104663         * tests/test-snprintf-posix.h (NaN): New function/macro.
104664         (test_function): Use it instead of 0.0 / 0.0.
104665         * tests/test-sprintf-posix.h (NaN): New function/macro.
104666         (test_function): Use it instead of 0.0 / 0.0.
104667         * tests/test-fprintf-posix.h (NaN): New function/macro.
104668         (test_function): Use it instead of 0.0 / 0.0.
104669         * tests/test-printf-posix.h (NaN): New function/macro.
104670         (test_function): Use it instead of 0.0 / 0.0.
104672         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
104674 2007-03-25  Bruno Haible  <bruno@clisp.org>
104676         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
104678 2007-03-25  Bruno Haible  <bruno@clisp.org>
104680         * lib/regexec.c (merge_state_with_log): Make static.
104682 2007-03-25  Bruno Haible  <bruno@clisp.org>
104684         * lib/trigl.c (kernel_rem_pio2): Make static.
104686 2007-03-25  Bruno Haible  <bruno@clisp.org>
104688         * lib/sincosl.c (sincosl_table): Make static.
104690 2007-03-25  Bruno Haible  <bruno@clisp.org>
104692         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
104693         if the compiler does not support C99.
104695 2007-03-25  Bruno Haible  <bruno@clisp.org>
104697         * modules/time (Makefile.am): Ensure all rule action lines start with a
104698         tab.
104700 2007-03-24  Bruno Haible  <bruno@clisp.org>
104702         * modules/tsearch-tests: New file.
104703         * tests/test-tsearch.sh: New file.
104704         * tests/test-tsearch.c: New file, mostly copied from glibc.
104706         * modules/search-tests: New file.
104707         * tests/test-search.c: New file.
104709         * modules/search: New file.
104710         * lib/search_.h: New file, incorporating lib/tsearch.h.
104711         * m4/search_h.m4: New file.
104712         * lib/tsearch.h: Remove file.
104713         * lib/tsearch.c: Include search.h instead of tsearch.h.
104714         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
104715         HAVE_TSEARCH.
104716         * modules/tsearch (Files): Remove lib/tsearch.h.
104717         (Depends-on): Add search.
104718         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
104719         (Include): Change tsearch.h into search.h.
104721 2007-03-24  Bruno Haible  <bruno@clisp.org>
104723         * modules/fpucw: New file.
104724         * lib/fpucw.h: New file.
104725         * lib/frexp.c: Include fpucw.h.
104726         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
104727         (FUNC): Use them.
104728         * lib/printf-frexp.c: Include fpucw.h.
104729         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
104730         (FUNC): Use them.
104731         * lib/vasnprintf.c: Include fpucw.h.
104732         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
104733         'long double' calculations.
104734         * tests/test-frexpl.c: Include fpucw.h.
104735         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
104736         * tests/test-printf-frexpl.c: Include fpucw.h.
104737         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
104738         * modules/frexpl (Depends-on): Add fpucw.
104739         * modules/printf-frexpl (Depends-on): Likewise.
104740         * modules/fprintf-posix (Depends-on): Likewise.
104741         * modules/snprintf-posix (Depends-on): Likewise.
104742         * modules/sprintf-posix (Depends-on): Likewise.
104743         * modules/vasnprintf-posix (Depends-on): Likewise.
104744         * modules/vasprintf-posix (Depends-on): Likewise.
104745         * modules/vfprintf-posix (Depends-on): Likewise.
104746         * modules/vsnprintf-posix (Depends-on): Likewise.
104747         * modules/vsprintf-posix (Depends-on): Likewise.
104748         * modules/frexpl-tests (Depends-on): Likewise.
104749         * modules/printf-frexpl-tests (Depends-on): Likewise.
104751 2007-03-24  Bruno Haible  <bruno@clisp.org>
104753         * lib/float+.h: New file.
104754         * lib/isnan.c: Include float+.h.
104755         (SIZE): New macro.
104756         (FUNC): Compare only SIZE bytes of the value.
104757         * lib/vasnprintf.c: Include float+.h.
104758         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
104759         SIZEOF_LDBL or SIZEOF_DBL bytes.
104760         * modules/isnan-nolibm (Files): Add lib/float+.h.
104761         * modules/isnanl-nolibm (Files): Add lib/float+.h.
104762         * modules/isnanl (Files): Add lib/float+.h.
104763         * modules/vasnprintf (Files): Add lib/float+.h.
104765 2007-03-24  Bruno Haible  <bruno@clisp.org>
104767         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
104768         include isnanl-nolibm.h.
104770 2007-03-24  Bruno Haible  <bruno@clisp.org>
104772         * tests/test-read-file.c (main): Don't produce spurious output for
104773         expected situations. Make the test fail if it encountered unexpected
104774         results.
104776 2007-03-24  Bruno Haible  <bruno@clisp.org>
104778         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
104779         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
104781 2007-03-24  Bruno Haible  <bruno@clisp.org>
104783         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
104785 2007-03-24  Bruno Haible  <bruno@clisp.org>
104787         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
104788         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
104790         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
104791         * modules/utf8-ucs4: Turn into a symbolic link to module
104792         unistr/u8-mbtouc.
104794         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
104795         utf8-ucs4-unsafe.
104796         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
104797         unistr/u8-mbtouc-unsafe.
104799         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
104800         * modules/utf16-ucs4: Turn into a symbolic link to module
104801         unistr/u16-mbtouc.
104803         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
104804         utf16-ucs4-unsafe.
104805         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
104806         unistr/u16-mbtouc-unsafe.
104808         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
104809         * modules/ucs4-utf8: Turn into a symbolic link to module
104810         unistr/u8-ubtomb.
104812         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
104813         * modules/ucs4-utf16: Turn into a symbolic link to module
104814         unistr/u16-ubtomb.
104816 2007-03-24  Bruno Haible  <bruno@clisp.org>
104818         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
104819         Enable the function only if HAVE_INLINE.
104820         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
104821         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
104822         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
104823         Enable the function only if HAVE_INLINE.
104824         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
104825         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
104826         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
104827         Enable the function only if HAVE_INLINE.
104828         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
104829         Enable the function only if HAVE_INLINE.
104830         * modules/utf8-ucs4: Update.
104831         * modules/utf8-ucs4-unsafe: Update.
104832         * modules/utf16-ucs4: Update.
104833         * modules/utf16-ucs4-unsafe: Update.
104834         * modules/ucs4-utf8: Update.
104835         * modules/ucs4-utf16: Update.
104837 2007-03-24  Bruno Haible  <bruno@clisp.org>
104839         * lib/utf8-ucs4.h: Remove file.
104840         * lib/utf8-ucs4-unsafe.h: Remove file.
104841         * lib/utf16-ucs4.h: Remove file.
104842         * lib/utf16-ucs4-unsafe.h: Remove file.
104843         * lib/ucs4-utf8.h: Remove file.
104844         * lib/ucs4-utf16.h: Remove file.
104845         * lib/unistr.h: Include their previous contents.
104846         * m4/utf-ucs4.m4: Remove file.
104847         * m4/ucs4-utf.m4: Remove file.
104848         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
104849         (Depends-on): Add unistr/base.
104850         (configure.ac): Remove gl_UTF_UCS4.
104851         (Makefile.am): Update.
104852         (Include): Change to unistr.h.
104853         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
104854         (Depends-on): Add unistr/base.
104855         (configure.ac): Remove gl_UTF_UCS4.
104856         (Makefile.am): Update.
104857         (Include): Change to unistr.h.
104858         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
104859         (Depends-on): Add unistr/base.
104860         (configure.ac): Remove gl_UTF_UCS4.
104861         (Makefile.am): Update.
104862         (Include): Change to unistr.h.
104863         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
104864         (Depends-on): Add unistr/base.
104865         (configure.ac): Remove gl_UTF_UCS4.
104866         (Makefile.am): Update.
104867         (Include): Change to unistr.h.
104868         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
104869         (Depends-on): Add unistr/base.
104870         (configure.ac): Remove gl_UCS4_UTF.
104871         (Makefile.am): Update.
104872         (Include): Change to unistr.h.
104873         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
104874         (Depends-on): Add unistr/base.
104875         (configure.ac): Remove gl_UCS4_UTF.
104876         (Makefile.am): Update.
104877         (Include): Change to unistr.h.
104878         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
104879         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
104880         utf8-ucs4-unsafe.h.
104881         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
104882         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
104883         utf16-ucs4-unsafe.h.
104884         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
104885         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
104886         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
104887         * lib/unistr/u8-strchr.c: Likewise.
104888         * lib/unistr/u8-strrchr.c: Likewise.
104889         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
104890         * lib/unistr/u16-strchr.c: Likewise.
104891         * lib/unistr/u16-strrchr.c: Likewise.
104892         * lib/striconveh.c: Update.
104893         * lib/linebreak.c: Update.
104895 2007-03-24  Bruno Haible  <bruno@clisp.org>
104897         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
104898         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
104900 2007-03-22  Bruno Haible  <bruno@clisp.org>
104902         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
104904 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
104906         * MODULES.html.sh (File system functions): New module write-any-file.
104907         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
104908         * m4/write-any-file.m4: New files.
104910 2007-03-23  Eric Blake  <ebb9@byu.net>
104912         * gnulib-tool: Rearrange space-tab sequences, since some editors
104913         like to eat them.
104915 2007-03-23  Eric Blake  <ebb9@byu.net>
104917         * lib/version-etc.c (version_etc_va): Update license wording to
104918         be more concise.  Recommended by Richard Stallman.
104920 2007-03-22  Bruno Haible  <bruno@clisp.org>
104922         * lib/poll.c (MSG_PEEK): New fallback definition.
104924 2007-03-22  Bruno Haible  <bruno@clisp.org>
104926         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
104927         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
104928         (main): Update.
104929         Fixes a compilation error on BeOS.
104931 2007-03-22  Bruno Haible  <bruno@clisp.org>
104933         * modules/frexpl-tests: New file.
104934         * tests/test-frexpl.c: New file.
104936         * modules/frexpl: New file.
104937         * m4/frexpl.m4: New file.
104938         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
104939         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
104940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
104941         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
104942         (Depends-on): Add frexpl. Remove isnanl-nolibm.
104943         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
104945 2007-03-22  Bruno Haible  <bruno@clisp.org>
104947         * lib/frexpl.c: Share code with lib/frexp.c.
104948         * modules/mathl (Files): Add lib/frexp.c.
104949         (Depends-on): Add isnanl-nolibm.
104951 2007-03-22  Bruno Haible  <bruno@clisp.org>
104953         * modules/printf-frexp (Files): Add m4/frexp.m4.
104954         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
104955         only if the found frexp function actually works.
104957 2007-03-22  Bruno Haible  <bruno@clisp.org>
104959         * lib/frexp.c: Remove older implementation that uses divisions.
104961 2007-03-21  Bruno Haible  <bruno@clisp.org>
104963         * modules/frexp-tests: New file.
104964         * tests/test-frexp.c: New file.
104966         * modules/frexp: New file.
104967         * lib/frexp.c: New file.
104968         * m4/frexp.m4: New file.
104969         * lib/math_.h (frexp): New declaration.
104970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
104971         REPLACE_FREXP.
104972         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
104974 2007-03-21  Bruno Haible  <bruno@clisp.org>
104976         * modules/isnanl-tests: New file.
104977         * tests/test-isnanl.c: New file.
104979         * modules/isnanl: New file.
104980         * lib/isnanl.h: New file.
104981         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
104982         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
104983         gl_FUNC_ISNANL_WORKS.
104984         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
104985         New macros.
104987 2007-03-21  Bruno Haible  <bruno@clisp.org>
104989         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
104990         lib/isnanl.h.
104991         (Include): Update.
104992         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
104993         * lib/vasnprintf.c: Update.
104994         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
104995         tests/test-isnanl.h, remove tests/test-isnanl.c.
104996         (Makefile.am): Update.
104997         * tests/test-isnanl-nolibm.c: New file.
104998         * tests/test-isnanl.h: New file.
104999         * tests/test-isnanl.c: Remove file.
105001 2007-03-21  Jim Meyering  <jim@meyering.net>
105003         When trying to open ".", treat ESTALE like EACCES.
105004         * lib/savewd.c (savewd_save): Resort to forking not just upon
105005         failure with EACCES, but also when errno is ESTALE.
105007 2007-03-20  Bruno Haible  <bruno@clisp.org>
105009         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
105010         Needed on AIX 5.1. Reported by Matthew Woehlke.
105012 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105014         Suggestions by Bruno Haible:
105015         * lib/acl-internal.h: Include "gettext.h" rather than rolling
105016         our own.
105017         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
105018         * modules/acl (Depends-on): Add gettext.
105020 2007-03-19  Bruno Haible  <bruno@clisp.org>
105022         * modules/iconvme: Remove file.
105023         * lib/iconvme.h: Remove file.
105024         * lib/iconvme.c: Remove file.
105025         * m4/iconvme.m4: Remove file.
105027 2007-03-19  Bruno Haible  <bruno@clisp.org>
105029         * doc/relocatable-maint.texi: Break long shell script line.
105030         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105032 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105034         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
105035         handle file_has_acl.
105036         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
105037         * lib/acl.c: Move header inclusions and related macro defns into
105038         lib/acl-internal.h.
105039         (S_ISLNK): Remove defn, since that's now done for us.
105040         (file_has_acl): Move to lib/file-has-acl.c.
105041         Call acl_trivial if available.  This is the crucial part of the fix.
105042         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
105043         shared within the library.  Rewrite a bit, partly to make it compatible
105044         with the GNU coding style.
105045         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
105046         Remove unnecessary double-quotes.
105047         Don't test for acl_to_text; the build will catch that.
105048         Replace acl_entries if it doesn't exist and it is needed.
105049         Check for -lsec and acl_trivial (as used on Solaris 10).
105050         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
105051         lib/file-has-acl.c.
105052         (Depends-on): Add sys_stat, for S_ISLNK.
105054 2007-03-19  Ben Pfaff  <blp@gnu.org>
105056         * doc/gnulib.texi: Fix typos.
105057         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105059 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105061         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
105062         If size is zero here, buf must be zero.
105064 2007-03-19  Simon Josefsson  <simon@josefsson.org>
105066         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
105067         <bruno@clisp.org>.
105069 2007-03-18  Bruno Haible  <bruno@clisp.org>
105071         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
105072         Suggested by Eric Blake.
105074 2007-03-18  Ben Pfaff  <blp@gnu.org>
105076         * doc/relocatable.texi: Recommend using as prefix a directory
105077         that does not exist and will never be created.  Based on
105078         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
105079         and others.
105081 2007-03-17  Bruno Haible  <bruno@clisp.org>
105083         * lib/fchownat.c: Include lchown.h.
105085 2007-03-17  Bruno Haible  <bruno@clisp.org>
105087         Fix endless loop when the given allocated size was > INT_MAX.
105088         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
105089         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
105090         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
105091         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
105092         * lib/sprintf.c (sprintf): Likewise.
105094 2007-03-17  Bruno Haible  <bruno@clisp.org>
105096         * tests/test-argp-2.sh (func_compare): Output a context diff.
105098 2007-03-17  Bruno Haible  <bruno@clisp.org>
105100         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
105101         locale's decimal-point character.
105103 2007-03-17  Bruno Haible  <bruno@clisp.org>
105105         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
105106         before comparing it. Needed because on some platforms (e.g. x86) a
105107         'long double' occupies less bytes than sizeof (long double).
105109 2007-03-17  Bruno Haible  <bruno@clisp.org>
105111         * tests/test-crc.c (main): Make printf statements 64-bit clean.
105112         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
105113         * tests/test-getaddrinfo.c (simple): Likewise.
105114         * tests/test-read-file.c (main): Likewise.
105116 2007-03-17  Bruno Haible  <bruno@clisp.org>
105118         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
105120 2007-03-17  Bruno Haible  <bruno@clisp.org>
105122         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
105123         unused variable.
105125 2007-03-17  Bruno Haible  <bruno@clisp.org>
105127         * tests/test-c-strcasecmp.c: Include c-strcase.h.
105128         * tests/test-c-strncasecmp.c: Likewise.
105130 2007-03-17  Bruno Haible  <bruno@clisp.org>
105132         * modules/stdlib (Depends-on): Add unistd.
105133         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
105134         Needed for MacOS X 10.3.
105136 2007-03-17  Bruno Haible  <bruno@clisp.org>
105138         * lib/unistr/u-strdup.h: Include <stdlib.h>.
105140 2007-03-17  Bruno Haible  <bruno@clisp.org>
105142         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
105144 2007-03-17  Bruno Haible  <bruno@clisp.org>
105146         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
105147         to reflect files copied from gnulib (with or without modifications).
105148         Suggested by Jim Meyering.
105150 2007-03-17  Eric Blake  <ebb9@byu.net>
105152         * NEWS: Document stdlib change from 2007-02-18.
105154 2007-03-17  Jim Meyering  <jim@meyering.net>
105156         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
105157         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
105158         someone uses a name containing shell meta-characters.
105159         Reported by Alfred M. Szmidt.
105161         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
105163 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105165         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
105166         and copy gettext configuration files only if configure.ac contains
105167         a use of AM_GNU_GETTEXT_VERSION.
105169 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105171         * build-aux/bootstrap (gnulib_name): New variable.
105172         (gnulib_tool_options): Use it.
105174 2007-03-13  Simon Josefsson  <simon@josefsson.org>
105176         * tests/test-des.c: Use new namespace.
105178 2007-03-15  Bruno Haible  <bruno@clisp.org>
105180         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
105181         Reported by James Youngman <jay@gnu.org>.
105183 2007-03-15  Bruno Haible  <bruno@clisp.org>
105185         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
105186         declared prototype. Needed with cc on OSF/1 5.1.
105188 2007-03-15  Bruno Haible  <bruno@clisp.org>
105190         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
105191         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
105192         (struct gl_list_implementation): Add dispose_fn argument to the
105193         'create_empty', 'create' methods.
105194         (struct gl_list_impl_base): Add field 'dispose_fn'.
105195         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
105196         argument.
105197         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
105198         dispose_fn argument.
105199         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
105200         dispose_fn on the dropped values.
105201         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
105202         dispose_fn argument.
105203         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
105204         dropped values.
105205         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
105206         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105207         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
105208         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105209         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
105210         argument.
105211         (gl_tree_list_free): Call dispose_fn on the dropped values.
105212         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
105213         the dropped values.
105214         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
105215         Add dispose_fn argument.
105216         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
105217         Call dispose_fn on the dropped values.
105218         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
105219         Add dispose_fn argument.
105220         (gl_sublist_create): Initialize the 'dispose_fn' field.
105221         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
105222         * tests/test-array_list.c (main): Update.
105223         * tests/test-carray_list.c (main): Update.
105224         * tests/test-avltree_list.c (main): Update.
105225         * tests/test-rbtree_list.c (main): Update.
105226         * tests/test-avltreehash_list.c (main): Update.
105227         * tests/test-rbtreehash_list.c (main): Update.
105228         * tests/test-linked_list.c (main): Update.
105229         * tests/test-linkedhash_list.c (main): Update.
105230         * tests/test-array_oset.c (main): Update.
105232 2007-03-15  Bruno Haible  <bruno@clisp.org>
105234         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
105235         (gl_oset_create_empty): Add dispose_fn argument.
105236         (struct gl_oset_implementation): Add dispose_fn argument to
105237         'create_empty' method.
105238         (struct gl_oset_impl_base): Add dispose_fn field.
105239         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
105240         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
105241         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
105242         values.
105243         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
105244         (gl_tree_oset_free): Call dispose_fn on the dropped values.
105245         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105246         dropped value.
105247         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105248         dropped value.
105249         * tests/test-array_oset.c (main): Update.
105250         * tests/test-avltree_oset.c (main): Update.
105251         * tests/test-rbtree_oset.c (main): Update.
105252         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
105254 2007-03-13  Bruno Haible  <bruno@clisp.org>
105256         * tests/test-stdbool.c (i): Update after last patch.
105258 2007-03-12  Bruno Haible  <bruno@clisp.org>
105260         * lib/quotearg.c: Include <wctype.h> early, before the definition of
105261         the iswprint macro. Needed on Solaris 2.5.1.
105263 2007-03-12  Bruno Haible  <bruno@clisp.org>
105265         * tests/test-printf-frexp.c (main): Declare x as volatile.
105267 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105269         * doc/gnulib.texi (Build robot for gnulib): New section.
105271 2007-03-12  Jim Meyering  <jim@meyering.net>
105273         * build-aux/bootstrap: New file.
105274         * build-aux/bootstrap.conf: New file, from coreutils.
105276 2007-03-11  Bruno Haible  <bruno@clisp.org>
105278         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
105280 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105282         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
105283         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
105284         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
105286 2007-03-11  Bruno Haible  <bruno@clisp.org>
105288         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
105289         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
105291 2007-03-11  Bruno Haible  <bruno@clisp.org>
105293         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
105294         formula. Needed for SunPRO C 5.0.
105296 2007-03-11  Bruno Haible  <bruno@clisp.org>
105298         * modules/long-options (Depends-on): Add getopt.
105300 2007-03-11  Bruno Haible  <bruno@clisp.org>
105302         * modules/modechange (Depends-on): Add stdbool.
105304 2007-03-11  Bruno Haible  <bruno@clisp.org>
105306         * modules/i-ring (Depends-on): Add stdbool.
105308 2007-03-11  Bruno Haible  <bruno@clisp.org>
105310         * modules/gc-des (Depends-on): Add stdbool.
105312 2007-03-11  Bruno Haible  <bruno@clisp.org>
105314         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
105316 2007-03-11  Bruno Haible  <bruno@clisp.org>
105318         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
105320 2007-03-11  Bruno Haible  <bruno@clisp.org>
105322         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
105324 2007-03-11  Bruno Haible  <bruno@clisp.org>
105326         * lib/vasnprintf.c (sprintf): Undefine.
105328 2007-03-11  Bruno Haible  <bruno@clisp.org>
105330         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
105331         initializers in SunPRO C and Compaq C compilers.
105333 2007-03-11  Bruno Haible  <bruno@clisp.org>
105335         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
105336         decrementing code ANSI C compliant.
105338 2007-03-11  Bruno Haible  <bruno@clisp.org>
105340         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
105341         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
105343 2007-03-11  Bruno Haible  <bruno@clisp.org>
105345         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
105346         <stdbool.h> substitute doesn't pass.
105348 2007-03-11  Bruno Haible  <bruno@clisp.org>
105350         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
105352 2007-03-11  Bruno Haible  <bruno@clisp.org>
105354         * gnulib-tool (func_create_megatestdir): Create also an autobuild
105355         script, for submission to autobuild.josefsson.org.
105357 2007-03-10  Bruno Haible  <bruno@clisp.org>
105359         * modules/canonicalize-lgpl-tests: New file.
105360         * tests/test-canonicalize-lgpl.sh: New file.
105361         * tests/test-canonicalize-lgpl.c: New file.
105363         * modules/c-strcase-tests: New file.
105364         * tests/test-c-strcase.sh: New file.
105365         * tests/test-c-strcasecmp.c: New file.
105366         * tests/test-c-strncasecmp.c: New file.
105368         * modules/atexit-tests: New file.
105369         * tests/test-atexit.sh: New file.
105370         * tests/test-atexit.c: New file.
105372 2007-03-10  Bruno Haible  <bruno@clisp.org>
105374         * tests/test-binary-io.sh: Use temporary filenames that are not so
105375         likely to clash with those of other tests (in a parallel make).
105376         * tests/test-binary-io.c: Likewise.
105378 2007-03-10  Bruno Haible  <bruno@clisp.org>
105380         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
105381         fallback; use #error instead.
105382         Suggested by Simon Josefsson.
105384 2007-03-10  Bruno Haible  <bruno@clisp.org>
105386         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
105387         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
105388         first and the last.
105390 2007-03-10  Bruno Haible  <bruno@clisp.org>
105392         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
105394 2007-03-10  Bruno Haible  <bruno@clisp.org>
105396         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
105397         "make distcheck".
105398         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
105399         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
105400         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
105402 2007-03-10  Bruno Haible  <bruno@clisp.org>
105404         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
105405         variable.
105406         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
105407         variable.
105409 2007-03-09  Eric Blake  <ebb9@byu.net>
105410         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
105412         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
105413         types are not being provided by gnulib.
105414         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
105415         types are supported.
105417 2007-03-10  Bruno Haible  <bruno@clisp.org>
105419         * lib/stdio_.h (__attribute__): New macro.
105420         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
105421         vsprintf): Specify __attribute__ __format__ for GCC.
105422         Suggested by Eric Blake.
105424 2007-03-09  Bruno Haible  <bruno@clisp.org>
105426         * modules/printf-posix-tests: New file.
105427         * tests/test-printf-posix.sh: New file.
105428         * tests/test-printf-posix.c: New file.
105430         * modules/printf-posix: New file.
105431         * lib/printf.c: New file.
105432         * m4/printf-posix-rpl.m4: New file.
105433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
105434         REPLACE_PRINTF.
105435         * lib/stdio_.h (printf): New declaration.
105436         (format, __format__, ____printf____, ____scanf____, ____strftime____,
105437         ____strfmon____): New macros.
105438         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
105439         REPLACE_PRINTF.
105441 2007-03-09  Bruno Haible  <bruno@clisp.org>
105443         * tests/test-vasnprintf-posix2.sh: New file.
105444         * tests/test-vasnprintf-posix2.c: New file.
105445         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
105446         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
105447         (Makefile.am): Activate test-vasnprintf-posix2.sh.
105449         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
105450         a locale dependent decimal point, rather than always '.'.
105452 2007-03-09  Eric Blake  <ebb9@byu.net>
105454         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
105455         spite of platforms like Tandem/NSK that define it to -1.
105457 2007-03-08  Bruno Haible  <bruno@clisp.org>
105459         * modules/vprintf-posix-tests: New file.
105460         * tests/test-vprintf-posix.sh: New file.
105461         * tests/test-vprintf-posix.c: New file.
105462         * tests/test-printf-posix.h: New file.
105464         * modules/vprintf-posix: New file.
105465         * lib/vprintf.c: New file.
105466         * m4/vprintf-posix.m4: New file.
105467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
105468         REPLACE_VPRINTF.
105469         * lib/stdio_.h (vprintf): New declaration.
105470         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
105471         REPLACE_VPRINTF.
105473 2007-03-08  Bruno Haible  <bruno@clisp.org>
105475         * modules/fprintf-posix-tests: New file.
105476         * tests/test-fprintf-posix.sh: New file.
105477         * tests/test-fprintf-posix.c: New file.
105479         * modules/fprintf-posix: New file.
105480         * lib/fprintf.c: New file.
105481         * m4/fprintf-posix.m4: New file.
105482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
105483         REPLACE_FPRINTF.
105484         * lib/stdio_.h (fprintf): New declaration.
105485         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
105486         REPLACE_FPRINTF.
105488 2007-03-08  Bruno Haible  <bruno@clisp.org>
105490         * modules/vfprintf-posix-tests: New file.
105491         * tests/test-vfprintf-posix.sh: New file.
105492         * tests/test-vfprintf-posix.c: New file.
105493         * tests/test-fprintf-posix.h: New file.
105494         * tests/test-fprintf-posix.out: New file.
105496         * modules/vfprintf-posix: New file.
105497         * lib/vfprintf.c: New file.
105498         * m4/vfprintf-posix.m4: New file.
105499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
105500         REPLACE_VFPRINTF.
105501         * lib/stdio_.h (vfprintf): New declaration.
105502         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
105503         REPLACE_VFPRINTF.
105505 2007-03-08  Bruno Haible  <bruno@clisp.org>
105507         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
105509 2007-03-08  Bruno Haible  <bruno@clisp.org>
105511         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
105512         instead of 'expr' invocations.
105513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105516         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105517         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105518         Suggested by Paul Eggert.
105520 2007-03-08  Bruno Haible  <bruno@clisp.org>
105522         * modules/fseterr-tests: New file.
105523         * tests/test-fseterr.c: New file.
105525         * modules/fseterr: New file.
105526         * lib/fseterr.h: New file.
105527         * lib/fseterr.c: New file.
105529 2007-03-08  Bruno Haible  <bruno@clisp.org>
105531         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
105532         * lib/getopt_.h: Likewise.
105533         * lib/mbswidth.h: Likewise.
105534         * lib/setenv.h: Likewise.
105535         * lib/vasnprintf.h: Likewise.
105536         * lib/vasprintf.h: Likewise.
105537         * lib/verror.h: Likewise.
105538         * lib/xsetenv.h: Likewise.
105539         * lib/xvasprintf.h: Likewise.
105541 2007-03-08  Jim Meyering  <jim@meyering.net>
105543         * users.txt: Add parted.
105545         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
105547 2007-03-07  Bruno Haible  <bruno@clisp.org>
105549         * m4/printf.m4: Make the shell script snippets copy&pastable.
105551 2007-03-02  Bruno Haible  <bruno@clisp.org>
105553         * lib/netinet_in_.h: New file.
105554         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
105555         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
105556         * modules/netinet_in (Files): Add lib/netinet_in_.h.
105557         (Depends-on): Add absolute-header.
105558         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
105559         into netinet/in.h.
105561 2007-03-03  Bruno Haible  <bruno@clisp.org>
105563         * lib/sys_select_.h: New file.
105564         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
105565         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
105566         * modules/sys_select (Files): Add lib/sys_select_.h.
105567         (Depends-on): Add absolute-header.
105568         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
105569         into sys/select.h.
105571 2007-03-02  Bruno Haible  <bruno@clisp.org>
105573         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
105574         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
105575         values.
105576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
105577         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
105578         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
105579         * modules/sys_socket (Depends-on): Add absolute-header.
105580         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
105581         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
105582         (Include): Remove requirement of inclusion of <sys/types.h>.
105584 2007-03-02  Bruno Haible  <bruno@clisp.org>
105586         * lib/byteswap_.h (bswap_32): Fix formula.
105588 2007-03-06  Bruno Haible  <bruno@clisp.org>
105590         * modules/sprintf-posix-tests: New file.
105591         * tests/test-sprintf-posix.c: New file.
105593         * modules/sprintf-posix: New file.
105594         * lib/sprintf.c: New file.
105595         * m4/sprintf-posix.m4: New file.
105596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
105597         REPLACE_SPRINTF.
105598         * lib/stdio_.h (sprintf): New declaration.
105599         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
105600         REPLACE_SPRINTF.
105602 2007-03-06  Bruno Haible  <bruno@clisp.org>
105604         * modules/vsprintf-posix-tests: New file.
105605         * tests/test-vsprintf-posix.c: New file.
105606         * tests/test-sprintf-posix.h: New file.
105608         * modules/vsprintf-posix: New file.
105609         * lib/vsprintf.c: New file.
105610         * m4/vsprintf-posix.m4: New file.
105611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
105612         REPLACE_VSPRINTF.
105613         * lib/stdio_.h (vsprintf): New declaration.
105614         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
105615         REPLACE_VSPRINTF.
105617 2007-03-06  Bruno Haible  <bruno@clisp.org>
105619         * modules/vsnprintf (Depend-on): Remove minmax.
105621 2007-03-06  Bruno Haible  <bruno@clisp.org>
105623         * modules/snprintf-posix-tests: New file.
105624         * tests/test-snprintf-posix.c: New file.
105626         * modules/snprintf-posix: New file.
105627         * m4/snprintf-posix.m4: New file.
105628         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
105629         gl_FUNC_SNPRINTF.
105630         (gl_FUNC_SNPRINTF): Invoke it.
105631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
105632         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
105633         is set.
105634         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
105636 2007-03-06  Bruno Haible  <bruno@clisp.org>
105638         * modules/vsnprintf-posix-tests: New file.
105639         * tests/test-vsnprintf-posix.c: New file.
105640         * tests/test-snprintf-posix.h: New file.
105642         * modules/vsnprintf-posix: New file.
105643         * m4/vsnprintf-posix.m4: New file.
105644         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
105645         gl_FUNC_VSNPRINTF.
105646         (gl_FUNC_VSNPRINTF): Invoke it.
105647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
105648         * lib/stdio_.h (vsnprintf): Define as a replacement if
105649         REPLACE_VSNPRINTF is set.
105650         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
105652 2007-03-06  Bruno Haible  <bruno@clisp.org>
105654         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
105655         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
105657 2007-03-06  Bruno Haible  <bruno@clisp.org>
105659         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
105660         (asinl): Declare also if HAVE_DECL_ASINL is set.
105661         (atanl): Declare also if HAVE_DECL_ATANL is set.
105662         (ceill): Declare also if HAVE_DECL_CEILL is set.
105663         (cosl): Declare also if HAVE_DECL_COSL is set.
105664         (expl): Declare also if HAVE_DECL_EXPL is set.
105665         (floorl): Declare also if HAVE_DECL_FLOORL is set.
105666         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
105667         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
105668         (logl): Declare also if HAVE_DECL_LOGL is set.
105669         (sinl): Declare also if HAVE_DECL_SINL is set.
105670         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
105671         (tanl): Declare also if HAVE_DECL_TANL is set.
105672         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
105673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
105674         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
105675         declaration of frexpl, ldexpl.
105676         * modules/printf-frexpl (Depends-on): Add math.
105677         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
105679 2007-03-05  Bruno Haible  <bruno@clisp.org>
105681         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
105682         frexpl and ldexpl are declared.
105683         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
105685 2007-03-05  Bruno Haible  <bruno@clisp.org>
105687         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
105688         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
105690 2007-03-05  Bruno Haible  <bruno@clisp.org>
105692         * lib/stdio_.h: Include <stddef.h>.
105694 2007-03-05  Bruno Haible  <bruno@clisp.org>
105696         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
105698 2007-03-05  Bruno Haible  <bruno@clisp.org>
105700         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
105701         NetBSD 4, from Ralf Wildenhues.
105703 2007-03-04  Bruno Haible  <bruno@clisp.org>
105705         * lib/vasprintf.h: Update #if logic for the case when the functions
105706         exist but are overridden.
105708 2007-03-04  Bruno Haible  <bruno@clisp.org>
105710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
105711         implementations: glibc-2.4 and MacOS X 10.3.
105712         * tests/test-vasnprintf-posix.c (test_function): Test also the case
105713         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
105714         * tests/test-vasprintf-posix.c (test_function): Likewise.
105716 2007-03-04  Bruno Haible  <bruno@clisp.org>
105718         * modules/vasprintf-posix-tests: New file.
105719         * tests/test-vasprintf-posix.c: New file.
105721         * modules/vasprintf-posix: New file.
105722         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
105723         defined.
105724         * m4/vasprintf-posix.m4: New file.
105725         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
105726         gl_FUNC_VASPRINTF.
105727         (gl_FUNC_VASPRINTF): Invoke it.
105728         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
105729         here.
105730         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
105732 2007-03-04  Bruno Haible  <bruno@clisp.org>
105734         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
105735         REPLACE_GETTIMEOFDAY.
105736         * modules/sys_time (Makefile.am): Likewise.
105737         * m4/sys_time_h.m4: Likewise.
105738         * m4/gettimeofday.m4: Likewise.
105740 2007-03-04  Bruno Haible  <bruno@clisp.org>
105742         * modules/vasnprintf-posix-tests: New file.
105743         * tests/test-vasnprintf-posix.c: New file.
105745         * modules/vasnprintf-posix: New file.
105746         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
105747         printf-frexpl.h.
105748         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
105749         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
105750         REPLACE_VASNPRINTF is defined.
105751         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
105752         gl_FUNC_VASNPRINTF.
105753         (gl_FUNC_VASNPRINTF): Invoke it.
105754         * m4/vasnprintf-posix.m4: New file.
105755         * m4/printf.m4: New file.
105757 2007-03-04  Bruno Haible  <bruno@clisp.org>
105759         Compile progreloc.c only if --enable-relocatable is specified.
105760         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
105761         if --enable-relocatable was specified.
105762         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
105763         lib_SOURCES.
105765 2007-03-04  Jim Meyering  <jim@meyering.net>
105767         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
105768         Use it consistently, rather than enumerating errno constants.
105770 2007-03-04  Bruno Haible  <bruno@clisp.org>
105772         * modules/xvasprintf-tests: New file.
105773         * tests/test-xvasprintf.c: New file.
105775         * modules/vasprintf-tests: New file.
105776         * tests/test-vasprintf.c: New file.
105778         * modules/vasnprintf-tests: New file.
105779         * tests/test-vasnprintf.c: New file.
105781         * modules/vsnprintf-tests: New file.
105782         * tests/test-vsnprintf.c: New file.
105784         * modules/snprintf-tests: New file.
105785         * tests/test-snprintf.c: New file.
105787 2007-03-04  Bruno Haible  <bruno@clisp.org>
105789         Compile relocatable.c only if --enable-relocatable is specified.
105790         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
105791         gl_RELOCATABLE_LIBRARY.
105792         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
105793         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
105794         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
105795         gl_RELOCATABLE_LIBRARY.
105796         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
105797         (Makefile.am): Remove lib_SOURCES.
105798         * modules/relocatable-lib-lgpl (configure.ac): Invoke
105799         gl_RELOCATABLE_LIBRARY.
105800         (Makefile.am): Remove lib_SOURCES.
105801         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
105802         always.
105803         * modules/relocatable-prog-wrapper (configure.ac): Invoke
105804         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
105806 2007-03-04  Bruno Haible  <bruno@clisp.org>
105808         * modules/argmatch-tests: New file.
105809         * tests/test-argmatch.c: New file.
105811         * tests/test-allocsa.c (main): Halve the number of loop runs.
105813         * modules/alloca-opt-tests: New file.
105814         * tests/test-alloca-opt.c: New file.
105816 2007-03-04  Jim Meyering  <jim@meyering.net>
105818         Work around difference between Linux ACLs and Solaris 10 ZFS.
105819         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
105820         for EINVAL.
105822 2007-03-03  Bruno Haible  <bruno@clisp.org>
105824         * modules/relocatable-prog (Depends-on): Add back progreloc's
105825         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
105827 2007-03-03  Bruno Haible  <bruno@clisp.org>
105829         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
105830         * modules/relocatable-lib: New file.
105832 2007-03-03  Bruno Haible  <bruno@clisp.org>
105834         * modules/relocatable-prog: Renamed from modules/relocatable.
105835         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
105837 2007-03-03  Bruno Haible  <bruno@clisp.org>
105839         * modules/relocatable-script (Files): Add doc/relocatable.texi,
105840         m4/relocatable-lib.m4.
105841         (Depends-on): Remove 'relocatable'.
105842         (configure.ac): Add gl_RELOCATABLE_NOP.
105844 2007-03-03  Bruno Haible  <bruno@clisp.org>
105846         * modules/relocatable-prog-wrapper: New file.
105847         * modules/relocatable (Depends-on): Add it. Remove all other
105848         dependencies except progname.
105849         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
105851         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
105852         (gl_FUNC_STRERROR): Nop.
105853         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
105855         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
105856         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
105858         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
105859         (gl_FUNC_READLINK): Update.
105861         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
105863 2007-03-03  Bruno Haible  <bruno@clisp.org>
105865         * lib/xreadlink.c: Include <unistd.h> unconditionally.
105866         * modules/xreadlink (Depends-on): Add unistd.
105867         * modules/xreadlink-with-size (Depends-on): Likewise.
105869 2007-03-03  Bruno Haible  <bruno@clisp.org>
105871         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
105872         extracted from gt_FUNC_SETENV.
105873         (gt_FUNC_SETENV): Remove macro.
105874         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
105875         remove gt_FUNC_SETENV.
105877 2007-03-03  Bruno Haible  <bruno@clisp.org>
105879         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
105880         ENABLE_RELOCATABLE here.
105881         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
105883 2007-03-03  Bruno Haible  <bruno@clisp.org>
105885         * modules/rbtreehash-list-tests (Depends-on): Add progname.
105886         * tests/test-rbtreehash_list.c: Include progname.h.
105887         (main): Call set_program_name.
105889         * modules/rbtree-oset-tests (Depends-on): Add progname.
105890         * tests/test-rbtree_oset.c: Include progname.h.
105891         (main): Call set_program_name.
105893         * modules/rbtree-list-tests (Depends-on): Add progname.
105894         * tests/test-rbtree_list.c: Include progname.h.
105895         (main): Call set_program_name.
105897         * modules/linked-list-tests (Depends-on): Add progname.
105898         * tests/test-linked_list.c: Include progname.h.
105899         (main): Call set_program_name.
105901 2007-03-03  Bruno Haible  <bruno@clisp.org>
105903         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
105904         All uses of __restrict changed to _Restrict_.
105905         * lib/glob_.h (__restrict): Remove macro.
105907 2007-03-02  Bruno Haible  <bruno@clisp.org>
105909         * modules/gettext (configure.ac): Require gettext infrastructure
105910         from version 0.16.1.
105912 2007-03-02  Bruno Haible  <bruno@clisp.org>
105914         * modules/linkedhash-list-tests (Depends-on): Add progname.
105915         * tests/test-linkedhash_list.c: Include progname.h.
105916         (main): Call set_program_name.
105918         * modules/carray-list-tests (Depends-on): Add progname.
105919         * tests/test-carray_list.c: Include progname.h.
105920         (main): Call set_program_name.
105922         * modules/avltreehash-list-tests (Depends-on): Add progname.
105923         * tests/test-avltreehash_list.c: Include progname.h.
105924         (main): Call set_program_name.
105926         * modules/avltree-oset-tests (Depends-on): Add progname.
105927         * tests/test-avltree_oset.c: Include progname.h.
105928         (main): Call set_program_name.
105930         * modules/avltree-list-tests (Depends-on): Add progname.
105931         * tests/test-avltree_list.c: Include progname.h.
105932         (main): Call set_program_name.
105934         * modules/array-oset-tests (Depends-on): Add progname.
105935         * tests/test-array_oset.c: Include progname.h.
105936         (main): Call set_program_name.
105938         * modules/array-list-tests (Depends-on): Add progname.
105939         * tests/test-array_list.c: Include progname.h.
105940         (main): Call set_program_name.
105942         * modules/argp-tests (Depends-on): Add progname.
105943         * tests/test-argp.c: Include argp.h first. Include progname.h.
105944         (main): Call set_program_name.
105946 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
105948         * doc/gnulib-tool.texi (Initial import): Reword description of
105949         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
105950         limited effect even if defined after the first system include.
105952 2007-03-01  Bruno Haible  <bruno@clisp.org>
105954         * build-aux/config.libpath: Update to libtool-1.5.22.
105955         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
105957 2007-03-01  Bruno Haible  <bruno@clisp.org>
105959         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
105960         foo_CFLAGS.
105961         Reported by Ralf Wildenhues.
105963 2007-03-01  Bruno Haible  <bruno@clisp.org>
105965         * build-aux/install-reloc: Remove object files left over by some
105966         compilers.
105967         Reported by Ralf Wildenhues.
105969 2007-03-01  Bruno Haible  <bruno@clisp.org>
105971         * build-aux/install-reloc: Break long lines.
105973 2007-03-01  Bruno Haible  <bruno@clisp.org>
105975         * doc/relocatable.texi: Document that it may not work on OpenBSD.
105976         Reported by Ralf Wildenhues.
105978 2007-03-01  Bruno Haible  <bruno@clisp.org>
105980         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
105981         include ordering constraints.
105983 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
105985         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
105986         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
105987         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
105988         as another example.
105989         * lib/time_.h: Fix misspelling.
105990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105991         Require gl_HEADER_TIME_H_DEFAULTS.
105992         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
105993         * m4/time_r.m4 (gl_TIME_R): Likewise.
105994         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
105996 2007-03-01  Bruno Haible  <bruno@clisp.org>
105998         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
105999         * m4/utimens.m4 (gl_UTIMENS): Likewise.
106001 2007-03-01  Jim Meyering  <jim@meyering.net>
106003         * modules/xreadlink (Maintainer): Add my name.
106004         * modules/xreadlink-with-size (Depends-on): Alphabetize.
106006 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
106007             Bruno Haible  <bruno@clisp.org>
106009         * build-aux/install-reloc: Compile also c-ctype.c.
106010         * build-aux/relocatable.sh.in: New file.
106011         * doc/relocatable.texi: New file.
106012         * doc/relocatable-maint.texi: New file.
106013         * doc/gnulib.texi: Include relocatable-maint.texi.
106014         * lib/progreloc.c: Include unistd.h unconditionally.
106015         * lib/relocwrapper.c: Include unistd.h unconditionally.
106016         Include c-ctype.h.
106017         (add_dotbin): Use c_tolower.
106018         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
106019         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
106020         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
106021         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
106022         to m4/relocatable-lib.m4.
106023         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
106024         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
106025         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
106026         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
106027         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
106028         * modules/relocatable: New file.
106029         * modules/relocatable-lib: New file.
106030         * modules/relocatable-script: New file.
106032 2007-02-28  Bruno Haible  <bruno@clisp.org>
106034         Import --enable-relocatable infrastructure.
106035         * build-aux/config.libpath: New file, from GNU gettext.
106036         * build-aux/install-reloc: New file, from GNU gettext.
106037         * build-aux/reloc-ldflags: New file, from GNU gettext.
106038         * lib/relocatable.h: New file, from GNU gettext.
106039         * lib/relocatable.c: New file, from GNU gettext.
106040         * lib/relocwrapper.c: New file, from GNU gettext.
106041         * m4/relocatable.m4: New file, from GNU gettext.
106043 2007-02-28  Bruno Haible  <bruno@clisp.org>
106045         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
106047         * modules/xreadlink: New file, from GNU gettext with modifications.
106048         * lib/xreadlink.c: New file, from GNU gettext.
106049         * lib/xreadlink.h: Add comments.
106050         (xreadlink): New declaration.
106052         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
106053         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
106054         lib/xreadlink-with-size.c.
106055         (configure.ac): Remove gl_XREADLINK invocation.
106056         (Makefile.am): Augment lib_SOURCES.
106057         * m4/xreadlink.m4: Remove file.
106058         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
106059         (xreadlink_with_size): Renamed from xreadink.
106060         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
106061         * modules/canonicalize (Depends-on): Replace xreadlink with
106062         xreadlink-with-size.
106063         * lib/canonicalize.c (canonicalize_filename_mode): Update.
106065 2007-02-25  Jim Meyering  <jim@meyering.net>
106067         * build-aux/announce-gen: When complaining about excess arguments,
106068         list them.
106070 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106072         * README: Document signed integer overflow situation more
106073         accurately.
106075 2007-02-25  Bruno Haible  <bruno@clisp.org>
106077         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
106078         'a' or 'A' conversion.
106080 2007-02-25  Bruno Haible  <bruno@clisp.org>
106082         * modules/filename: Renamed from modules/pathname.
106083         (Files): Replace lib/pathname.h with lib/filename.h. Replace
106084         lib/concatpath.c with lib/concat-filename.c.
106085         (Makefile.am): Update.
106086         (Include): Replace pathname.h with filename.h.
106087         * lib/filename.h: Renamed from lib/pathname.h.
106088         (concatenated_filename): Renamed from concatenated_pathname.
106089         * lib/concat-filename.c: Renamed from lib/concatpath.c.
106090         (concatenated_filename): Renamed from concatenated_pathname.
106091         * lib/findprog.c: Include filename.h instead of pathname.h.
106092         (find_in_path): Update.
106093         * lib/javacomp.c: Include filename.h instead of pathname.h.
106094         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
106095         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
106096         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
106097         is_oldgcj_14_13_usable, is_javac_usable): Update.
106098         * lib/javaexec.c: Include filename.h instead of pathname.h.
106099         (execute_java_class): Update.
106100         * modules/findprog: Update.
106101         * modules/javacomp: Update.
106102         * modules/javaexec: Update.
106103         * MODULES.html.sh (File system functions): Add 'filename', remove
106104         'pathname'.
106106 2007-02-25  Bruno Haible  <bruno@clisp.org>
106108         * modules/printf-frexpl-tests: New file.
106109         * tests/test-printf-frexpl.c: New file.
106111         * modules/printf-frexpl: New file.
106112         * lib/printf-frexpl.h: New file.
106113         * lib/printf-frexpl.c: New file.
106114         * m4/printf-frexpl.m4: New file.
106116 2007-02-25  Bruno Haible  <bruno@clisp.org>
106118         * modules/printf-frexp-tests: New file.
106119         * tests/test-printf-frexp.c: New file.
106121         * modules/printf-frexp: New file.
106122         * lib/printf-frexp.h: New file.
106123         * lib/printf-frexp.c: New file.
106124         * m4/printf-frexp.m4: New file.
106126 2007-02-25  Bruno Haible  <bruno@clisp.org>
106128         Assume automake >= 1.10 for the tests.
106129         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
106130         * modules/arctwo-tests: Likewise.
106131         * modules/argp-tests: Likewise.
106132         * modules/avltree-list-tests: Likewise.
106133         * modules/avltree-oset-tests: Likewise.
106134         * modules/avltreehash-list-tests: Likewise.
106135         * modules/carray-list-tests: Likewise.
106136         * modules/crc-tests: Likewise.
106137         * modules/des-tests: Likewise.
106138         * modules/gc-arcfour-tests: Likewise.
106139         * modules/gc-arctwo-tests: Likewise.
106140         * modules/gc-des-tests: Likewise.
106141         * modules/gc-hmac-md5-tests: Likewise.
106142         * modules/gc-hmac-sha1-tests: Likewise.
106143         * modules/gc-md2-tests: Likewise.
106144         * modules/gc-md4-tests: Likewise.
106145         * modules/gc-md5-tests: Likewise.
106146         * modules/gc-pbkdf2-sha1-tests: Likewise.
106147         * modules/gc-rijndael-tests: Likewise.
106148         * modules/gc-sha1-tests: Likewise.
106149         * modules/gc-tests: Likewise.
106150         * modules/getaddrinfo-tests: Likewise.
106151         * modules/hmac-md5-tests: Likewise.
106152         * modules/hmac-sha1-tests: Likewise.
106153         * modules/linked-list-tests: Likewise.
106154         * modules/linkedhash-list-tests: Likewise.
106155         * modules/lock-tests: Likewise.
106156         * modules/md2-tests: Likewise.
106157         * modules/md4-tests: Likewise.
106158         * modules/md5-tests: Likewise.
106159         * modules/rbtree-list-tests: Likewise.
106160         * modules/rbtree-oset-tests: Likewise.
106161         * modules/rbtreehash-list-tests: Likewise.
106162         * modules/read-file-tests: Likewise.
106163         * modules/rijndael-tests: Likewise.
106164         * modules/stdint-tests: Likewise.
106165         * modules/tls-tests: Likewise.
106167 2007-02-24  Bruno Haible  <bruno@clisp.org>
106169         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
106170         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
106171         function; instead check whether isnan with a double argument links.
106172         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
106173         function; instead check whether isnan with a 'long double' argument
106174         links.
106175         Reported by Eric Blake <ebb9@byu.net>.
106177 2007-02-24  Bruno Haible  <bruno@clisp.org>
106179         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
106180         defined.
106181         * lib/isnanl.c: Remove all code. Just include isnan.c.
106182         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
106184 2007-02-25  Jim Meyering  <jim@meyering.net>
106186         Avoid conflicting types for 'unsetenv' on FreeBSD.
106187         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
106188         conflicting with FreeBSD's (5.0 and 6.1) function declaration
106189         in stdlib.h.
106191 2007-02-24  Bruno Haible  <bruno@clisp.org>
106193         * modules/isnanl-nolibm-tests: New file.
106194         * tests/test-isnanl.c: New file.
106196         * modules/isnanl-nolibm: New file.
106197         * lib/isnanl.h: New file.
106198         * lib/isnanl.c: New file.
106199         * m4/isnanl.m4: New file.
106201 2007-02-24  Bruno Haible  <bruno@clisp.org>
106203         * modules/isnan-nolibm-tests: New file.
106204         * tests/test-isnan.c: New file.
106206         * modules/isnan-nolibm: New file.
106207         * lib/isnan.h: New file.
106208         * lib/isnan.c: New file.
106209         * m4/isnan.m4: New file.
106211 2007-02-24  Bruno Haible  <bruno@clisp.org>
106213         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
106214         assume that an exponent fits in 20 bits.
106216 2007-02-24  Jim Meyering  <jim@meyering.net>
106218         * m4/regex.m4: Update the description of the configure-time option,
106219         --without-included-regex, to state accurately what the defaults are,
106220         and perhaps to give people an idea why using this option is risky.
106222 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
106224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
106225         loops on small arguments.  This attempts to avoid the problem
106226         Bruno Haible reported for AIX 4.3.2 in
106227         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
106229 2007-02-23  Bruno Haible  <bruno@clisp.org>
106231         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
106232         Needed for help2man.
106234 2007-02-23  Karl Berry  <karl@gnu.org>
106236         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
106237         exists, foo.h should be cvs-ignored, not committed.
106239 2007-02-23  Eric Blake  <ebb9@byu.net>
106241         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
106242         * lib/stat-time.h (includes): Likewise.
106243         * lib/utimecmp.c (includes): Likewise.
106244         * lib/utimens.h (includes): Likewise.
106245         * lib/getdate.y (includes): Also include "timespec.h" for use
106246         internal to the module.
106247         * modules/utimens (Depends-on): Revert yesterday's patch.
106248         * modules/nanosleep (Depends-on): Add missing dependency.
106250 2007-02-22  Bruno Haible  <bruno@clisp.org>
106252         * lib/glob.c: Don't include getlogin_r.h.
106254 2007-02-22  Jim Meyering  <jim@meyering.net>
106256         * modules/utimens (Depends-on): Add timespec, required for
106257         utimens.h's inclusion of timespec.h.
106259 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
106261         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
106262         long unreadable paths in GNU/Linux.  Problem reported by Andreas
106263         Schwab in
106264         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
106265         I'll try to think of a better way to fix the Solaris problem.
106267         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
106268         like glibc; on Solaris 10, it fails with errno == EINVAL.
106269         POSIX says the behavior is unspecified if the first argument is NULL,
106270         so play it safe and never pass NULL to the system getcwd.
106272 2007-02-21  Jim Meyering  <jim@meyering.net>
106274         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
106275         of gettimeofday.  It would conflict with the one now always
106276         provided via sys_time_.h.  Reported by Matthew Woehlke, as
106277         an IRIX 6.5 build failure.
106279 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
106281         Minor fixups to port to Solaris 10 with Sun C 5.8.
106282         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
106283         * modules/getcwd (Depends-on): Add dirfd.
106284         * lib/putenv.c (putenv): #undef it.
106285         (rpl_putenv): New decl.
106286         (malloc, free): Include <stdlib.h> rather than prototyping separately.
106288 2007-02-20  Bruno Haible  <bruno@clisp.org>
106290         * modules/stdio-tests: New file.
106291         * tests/test-stdio.c: New file.
106293         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
106294         (Depends-on): Add stdio.
106295         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106296         (Include): Use <stdio.h> instead of vsnprintf.h.
106297         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106298         HAVE_DECL_VSNPRINTF.
106299         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
106301         * modules/snprintf (Files): Remove lib/snprintf.h.
106302         (Depends-on): Add stdio.
106303         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106304         (Include): Use <stdio.h> instead of snprintf.h.
106305         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106306         HAVE_DECL_SNPRINTF.
106307         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
106308         * lib/getaddrinfo.c: Likewise.
106310         * modules/stdio: New file.
106311         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
106312         * lib/snprintf.h: Remove file.
106313         * lib/vsnprintf.h: Remove file.
106314         * lib/.cppi-disable: Remove snprintf.h.
106315         * m4/stdio_h.m4: New file.
106316         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
106318 2007-02-20  Jim Meyering  <jim@meyering.net>
106320         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
106321         used by e.g., mingw.  From Bruno Haible.
106323 2007-02-19  Bruno Haible  <bruno@clisp.org>
106325         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
106326         warnings.
106327         Reported by Ben Pfaff <blp@cs.stanford.edu>.
106329 2007-02-19  Bruno Haible  <bruno@clisp.org>
106331         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
106332         from mingw users.
106334 2007-02-19  Bruno Haible  <bruno@clisp.org>
106336         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
106337         warnings.
106338         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
106340 2007-02-19  Jim Meyering  <jim@meyering.net>
106342         Don't use FD after a successful "fdopendir (fd)".
106343         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
106344         Reset it by calling dirfd on the just-obtained DIR*.
106346         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
106347         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
106349 2007-02-18  Bruno Haible  <bruno@clisp.org>
106351         * lib/readlink.c: Include <unistd.h>.
106352         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
106353         HAVE_READLINK.
106354         * modules/readlink (Depends-on): Add unistd.
106355         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106356         (Include): Add <unistd.h>.
106358         * lib/getlogin_r.h: Remove file.
106359         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
106360         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
106361         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
106362         HAVE_DECL_GETLOGIN_R.
106363         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
106364         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106365         (Include): Use <unistd.h> instead of getlogin_r.h.
106367         * lib/getcwd.h: Remove file.
106368         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
106369         * lib/xgetcwd.c: Likewise.
106370         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
106371         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
106372         * modules/getcwd (Files): Remove lib/getcwd.h.
106373         (Depends-on): Add unistd.
106374         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106375         (Include): Use <unistd.h> instad of getcwd.h.
106377         * lib/ftruncate.c: Include <unistd.h> first.
106378         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
106379         Set HAVE_FTRUNCATE.
106380         * modules/ftruncate (Depends-on): Add unistd.
106381         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106383         * lib/fchdir.c: Include <unistd.h> first.
106384         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
106385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
106386         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
106387         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106388         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
106390         * lib/dup2.c: Include <unistd.h> first.
106391         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
106392         HAVE_DUP2.
106393         * modules/dup2 (Depends-on): Add unistd.
106394         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106396         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
106397         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
106398         REPLACE_CHOWN. Don't define chown as a macro here.
106399         * modules/chown (Depends-on): Add unistd.
106400         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106402         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
106403         Add definition for GL_LINK_WARNING.
106404         (chown, dup2): New declarations.
106405         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
106406         link warning.
106407         (ftruncate): New declaration.
106408         (getcwd): New declaration, taken from old getcwd.h.
106409         (getlogin_r): New declaration, taken from old getlogin_r.h.
106410         (readlink): New declaration.
106411         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
106412         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
106413         (gl_PREREQ_UNISTD): Remove macro.
106414         (gl_UNISTD_MODULE_INDICATOR): New macro.
106415         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
106416         many new variables. Don't set UNISTD_H.
106417         * modules/unistd (Description): Change.
106418         (Depends-on): Add link-warning.
106419         (configure.ac): Update.
106420         (Makefile.am): Create unistd.h always. Substitute many new variables
106421         into it.
106423 2007-02-18  Bruno Haible  <bruno@clisp.org>
106425         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
106426         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
106427         HAVE_GETSUBOPT.
106428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
106429         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
106430         * lib/getsubopt.h: Remove file.
106431         * modules/getsubopt (Files): Remove lib/getsubopt.h.
106432         (Depends-on): Add stdlib.
106433         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106434         (Includes): Use <stdlib.h> instead of getsubopt.h.
106435         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
106436         Set HAVE_GETSUBOPT.
106437         * lib/getsubopt.c: Don't include getsubopt.h.
106439 2007-02-18  Bruno Haible  <bruno@clisp.org>
106441         * modules/fchdir (Depends-on): Add dup2.
106443 2007-02-18  Bruno Haible  <bruno@clisp.org>
106445         * lib/stdlib_.h: Handle glibc's special invocation convention
106446         specially.
106448 2007-02-18  Bruno Haible  <bruno@clisp.org>
106450         * modules/stdlib-tests: New file.
106451         * tests/test-stdlib.c: New file.
106453         * modules/mkstemp (Files): Remove lib/mkstemp.h.
106454         (Depends-on): Add stdlib.
106455         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106456         (Includes): Use <stdlib.h> instead of mkstemp.h.
106457         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106458         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
106459         * lib/mkstemp.c: Don't include mkstemp.h.
106460         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
106461         * lib/stdlib--.h: Don't include mkstemp.h.
106463         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
106464         (Depends-on): Add stdlib.
106465         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106466         (Includes): Use <stdlib.h> instead of mkdtemp.h.
106467         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106468         HAVE_MKDTEMP.
106469         * lib/mkdtemp.c: Don't include mkdtemp.h.
106470         * lib/clean-temp.c: Don't include mkdtemp.h.
106472         * modules/exit (Files): Remove lib/exit.h.
106473         (Depends-on): Add stdlib.
106474         (Makefile.am): Remove lib_SOURCES.
106475         (Include): Use <stdlib.h> instead of exit.h.
106476         * lib/argmatch.c: Don't include exit.h.
106477         * lib/execute.c: Likewise.
106478         * lib/pagealign_alloc.c: Likewise.
106479         * lib/pipe.c: Likewise.
106480         * lib/wait-process.c: Likewise.
106481         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
106482         * lib/exitfail.c: Likewise.
106483         * lib/savewd.c: Likewise.
106484         * lib/xsetenv.c: Likewise.
106486         * modules/stdlib: New file.
106487         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
106488         and extra comments about mkstemp().
106489         * lib/exit.h: Remove file.
106490         * lib/mkdtemp.h: Remove file.
106491         * lib/mkstemp.h: Remove file.
106492         * m4/stdlib_h.m4: New file.
106493         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
106495 2007-02-18  Bruno Haible  <bruno@clisp.org>
106497         * modules/math-tests: New file.
106498         * tests/test-math.c: New file.
106500         * modules/math: New file.
106501         * modules/mathl (Files): Remove lib/mathl.h.
106502         (Depends-on): Add math.
106503         (Makefile.am): Don't mention mathl.h.
106504         (Include): Use <math.h> instead of mathl.h.
106505         * lib/math_.h: New file.
106506         * lib/mathl.h: Remove file.
106507         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
106508         mathl.h.
106509         * lib/asinl.c: Likewise.
106510         * lib/atanl.c: Likewise.
106511         * lib/ceill.c: Likewise.
106512         * lib/cosl.c: Likewise.
106513         * lib/expl.c: Likewise.
106514         * lib/floorl.c: Likewise.
106515         * lib/frexpl.c: Likewise.
106516         * lib/ldexpl.c: Likewise.
106517         * lib/logl.c: Likewise.
106518         * lib/sincosl.c: Likewise.
106519         * lib/sinl.c: Likewise.
106520         * lib/sqrtl.c: Likewise.
106521         * lib/tanl.c: Likewise.
106522         * lib/trigl.c: Likewise.
106523         * m4/math_h.m4: New file.
106524         * MODULES.html.sh (Mathematics): Add math.
106526 2007-02-17  Bruno Haible  <bruno@clisp.org>
106528         * modules/wctype-tests: New file.
106529         * tests/test-wctype.c: New file.
106531         * modules/wchar-tests: New file.
106532         * tests/test-wchar.c: New file.
106534         * modules/unistd-tests: New file.
106535         * tests/test-unistd.c: New file.
106537         * modules/time-tests: New file.
106538         * tests/test-time.c: New file.
106540         * modules/sysexits-tests: New file.
106541         * tests/test-sysexits.c: New file.
106543         * modules/sys_time-tests: New file.
106544         * tests/test-sys_time.c: New file.
106546         * modules/sys_stat-tests: New file.
106547         * tests/test-sys_stat.c: New file.
106549         * modules/sys_socket-tests: New file.
106550         * tests/test-sys_socket.c: New file.
106552         * modules/sys_select-tests: New file.
106553         * tests/test-sys_select.c: New file.
106555         * modules/string-tests: New file.
106556         * tests/test-string.c: New file.
106558         * modules/stdbool-tests: New file.
106559         * tests/test-stdbool.c: New file.
106561         * modules/netinet_in-tests: New file.
106562         * tests/test-netinet_in.c: New file.
106564         * modules/inttypes-tests: New file.
106565         * tests/test-inttypes.c: New file.
106567         * modules/fcntl-tests: New file.
106568         * tests/test-fcntl.c: New file.
106570         * modules/byteswap-tests: New file.
106571         * tests/test-byteswap.c: New file.
106573         * modules/arpa_inet-tests: New file.
106574         * tests/test-arpa_inet.c: New file.
106576 2007-02-17  Bruno Haible  <bruno@clisp.org>
106578         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
106579         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
106580         if the corresponding module is not enabled. Emit link warnings if
106581         the function is used nevertheless.
106582         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
106583         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
106584         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
106585         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
106586         * modules/inttypes (Depends-on): Add link-warning.
106587         (Makefile.am): Copy the contents of build-aux/link-warning.h into
106588         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
106589         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
106590         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
106591         * modules/imaxdiv (configure.ac): Likewise.
106592         * modules/strtoimax (configure.ac): Likewise.
106593         * modules/strtoumax (configure.ac): Likewise.
106595 2007-02-17  Bruno Haible  <bruno@clisp.org>
106597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
106598         gl_STRING_MODULE_INDICATOR_DEFAULTS.
106599         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
106600         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
106602 2007-02-17  Bruno Haible  <bruno@clisp.org>
106604         * modules/link-warning: New file.
106605         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
106606         * lib/string_.h (GL_LINK_WARNING): Remove definition.
106607         * modules/string (Depends-on): Add link-warning.
106608         (Makefile.am): Copy the contents of build-aux/link-warning.h into
106609         string.h.
106610         * MODULES.html.sh (Support for building libraries and executables): Add
106611         link-warning.
106613 2007-02-17  Bruno Haible  <bruno@clisp.org>
106615         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
106616         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
106617         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
106618         long lines.
106620 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
106621             Bruno Haible  <bruno@clisp.org>
106623         * modules/tmpfile: New file.
106624         * lib/tmpfile.c: New file.
106625         * m4/tmpfile.m4: New file.
106626         * MODULES.html.sh (func_all_modules): New section "Input/output".
106628 2007-02-15  Bruno Haible  <bruno@clisp.org>
106630         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
106631         (supports_delete_on_close): New function.
106632         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
106634 2007-02-14  Bruno Haible  <bruno@clisp.org>
106636         * modules/mbspcasecmp-tests: New file.
106637         * tests/test-mbspcasecmp.sh: New file.
106638         * tests/test-mbspcasecmp.c: New file.
106640         New module mbspcasecmp.
106641         * modules/mbspcasecmp: New file.
106642         * lib/mbspcasecmp.c: New file.
106643         * lib/string_.h (strncasecmp): Change warning message.
106644         (mbspcasecmp): New declaration.
106645         * m4/mbspcasecmp.m4: New file.
106646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106647         GNULIB_MBSPCASECMP.
106648         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
106649         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
106651 2007-02-14  Bruno Haible  <bruno@clisp.org>
106653         * modules/mbsncasecmp-tests: New file.
106654         * tests/test-mbsncasecmp.sh: New file.
106655         * tests/test-mbsncasecmp.c: New file.
106657         New module mbsncasecmp.
106658         * modules/mbsncasecmp: New file.
106659         * lib/mbsncasecmp.c: New file.
106660         * lib/string_.h (mbsncasecmp): New declaration.
106661         * m4/mbsncasecmp.m4: New file.
106662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106663         GNULIB_MBSNCASECMP.
106664         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
106665         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
106667 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
106669         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
106670         Verify that it doesn't overlap with our flags.
106671         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
106672         do not have the desired effect in multibyte locales; instead, use
106673         mbscasecmp.
106674         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
106675         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
106676         we don't require GNU fnmatch ourselves (if our users require it, they
106677         should do so explicitly).
106679         Fix regex code so it doesn't rely on strcasecmp.
106680         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
106681         Otherwise, include gnulib's langinfo.h.
106682         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
106683         undesirable behavior in non-C locales.  Instead, rely on localecharset.
106684         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
106685         * modules/regex (FILES): Remove m4/codeset.m4.
106686         (Depends-on): Add localcharset.  Remove strcase.
106688 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106690         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
106691         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
106693 2007-02-13  Bruno Haible  <bruno@clisp.org>
106695         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
106696         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106698 2007-02-12  Bruno Haible  <bruno@clisp.org>
106700         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
106701         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
106702         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
106703         time warning rather than a link error.
106705 2007-02-12  Bruno Haible  <bruno@clisp.org>
106707         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
106708         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
106709         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106711 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
106713         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
106714         args, not 2.
106716 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
106718         New module 'time', so that apps can include <time.h> as per
106719         POSIX and GNU instead of separate include files like time_r.h
106720         and timegm.h.  This implementation tries out a simpler approach
106721         for replacing decls in standard include files (as compared to
106722         the string module), somewhat as an experiment.
106724         * config/srclist.txt: Comment out mktime.c for now.
106725         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
106726         since it doesn't apply any more.  Use generic wording instead.
106727         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
106728         'time'.
106729         * lib/time_.h, m4/time_h.m4, modules/time: New files.
106730         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
106731         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
106732         Don't include <sys/types.h>; no longer needed since we assume C89.
106733         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
106734         * lib/strftime.c: Likewise.
106735         * lib/time_r.c: Likewise.
106736         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
106737         * lib/nanosleep.c: Include <time.h> first, to check interface.
106738         * lib/strptime.c: Likewise.
106739         * lib/time_r.c: Likewise.
106740         * lib/timegm.c: Likewise.
106741         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
106742         needed.
106743         * lib/timegm.c: Don't include timegm.h; no longer needed.
106744         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
106745         time.h now handles any problems in that area.
106746         (struct timespec, nanosleep): Remove; time.h now arranges for these.
106747         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
106748         that time.h defines struct timespec.
106749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
106750         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
106751         handles that.
106752         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
106753         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
106754         needed.  Set REPLACE_LOCALTIME.
106755         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
106756         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
106757         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
106758         nanosleep; time_h.m4 now does that.  Don't require
106759         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
106760         module handles this now.
106761         * modules/getdate (Depends-on): Remove timespec.  Add time.
106762         * modules/nanosleep (Depends-on): Likewise.
106763         * modules/stat-time (Depends-on): Likewise.
106764         * modules/nanosleep (Include): Include time.h, not timespec.h.
106765         * modules/strptime (Files): Remove lib/strptime.h.
106766         (Depends-on): Add extensions, time.
106767         (Include): Include time.h, not strptime.h.
106768         * modules/time_r (Files): Remove lib/time_r.h.
106769         (Depends-on): Add time.
106770         (Include): Include time.h, not time_r.h.
106771         * modules/timegm: Likewise.
106772         * modules/timespec (Description): Now does timespec-related decls
106773         of our own, instead of struct timespec itself.
106774         (Depends-on): Add time; remove extensions.
106775         (Maintainer): Add self.
106776         * modules/utimecmp (Depends-on): Add time; remove timespec.
106777         * modules/utimens (Depends-on): Likewise.
106778         * modules/xnanosleep (Depends-on): Likewise.
106780 2007-02-11  Bruno Haible  <bruno@clisp.org>
106782         * lib/c-strstr.c: Include allocsa.h.
106783         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
106784         * lib/c-strcasestr.c: Include allocsa.h.
106785         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
106786         * lib/strcasestr.c: Include allocsa.h.
106787         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
106788         * lib/mbsstr.c: Include allocsa.h.
106789         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
106790         allocsa/freesa instead of malloc/free.
106791         * lib/mbscasestr.c: Include allocsa.h.
106792         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
106793         allocsa/freesa instead of malloc/free.
106794         * modules/c-strstr (Depends-on): Add allocsa.
106795         * modules/c-strcasestr (Depends-on): Likewise.
106796         * modules/strcasestr (Depends-on): Likewise.
106797         * modules/mbsstr (Depends-on): Likewise.
106798         * modules/mbscasestr (Depends-on): Likewise.
106800 2007-02-11  Bruno Haible  <bruno@clisp.org>
106802         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
106804         * modules/mbsspn-tests: New file.
106805         * tests/test-mbsspn.sh: New file.
106806         * tests/test-mbsspn.c: New file.
106808 2007-02-11  Bruno Haible  <bruno@clisp.org>
106810         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
106812         * modules/mbspbrk-tests: New file.
106813         * tests/test-mbspbrk.sh: New file.
106814         * tests/test-mbspbrk.c: New file.
106816 2007-02-11  Bruno Haible  <bruno@clisp.org>
106818         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
106819         unneeded cast.
106821         * modules/mbscspn-tests: New file.
106822         * tests/test-mbscspn.sh: New file.
106823         * tests/test-mbscspn.c: New file.
106825 2007-02-11  Bruno Haible  <bruno@clisp.org>
106827         * modules/mbscasecmp-tests: New file.
106828         * tests/test-mbscasecmp.sh: New file.
106829         * tests/test-mbscasecmp.c: New file.
106831 2007-02-11  Bruno Haible  <bruno@clisp.org>
106833         Ensure O(n) worst-case complexity of mbscasestr.
106834         * lib/mbscasestr.c: Include stdbool.h.
106835         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
106836         functions.
106837         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
106838         the bookkeeping indicates that it's worth it.
106839         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
106841         * modules/mbscasestr-tests: New file.
106842         * tests/test-mbscasestr1.c: New file.
106843         * tests/test-mbscasestr2.sh: New file.
106844         * tests/test-mbscasestr2.c: New file.
106845         * tests/test-mbscasestr3.sh: New file.
106846         * tests/test-mbscasestr3.c: New file.
106847         * tests/test-mbscasestr4.sh: New file.
106848         * tests/test-mbscasestr4.c: New file.
106849         * m4/locale-tr.m4: New file.
106851 2007-02-11  Bruno Haible  <bruno@clisp.org>
106853         Ensure O(n) worst-case complexity of mbsstr.
106854         * lib/mbsstr.c: Include stdbool.h.
106855         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
106856         functions.
106857         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
106858         bookkeeping indicates that it's worth it.
106859         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
106861         * modules/mbsstr-tests: New file.
106862         * tests/test-mbsstr1.c: New file.
106863         * tests/test-mbsstr2.sh: New file.
106864         * tests/test-mbsstr2.c: New file.
106865         * tests/test-mbsstr3.sh: New file.
106866         * tests/test-mbsstr3.c: New file.
106867         * m4/locale-fr.m4: New file.
106869 2007-02-11  Bruno Haible  <bruno@clisp.org>
106871         * lib/mbsrchr.c (mbsrchr): Fix bug.
106873         * modules/mbsrchr-tests: New file.
106874         * tests/test-mbsrchr.sh: New file.
106875         * tests/test-mbsrchr.c: New file.
106877 2007-02-11  Bruno Haible  <bruno@clisp.org>
106879         * lib/mbschr.c (mbschr): Fix bug.
106881         * modules/mbschr-tests: New file.
106882         * tests/test-mbschr.sh: New file.
106883         * tests/test-mbschr.c: New file.
106884         * m4/locale-zh.m4: New file.
106886 2007-02-11  Bruno Haible  <bruno@clisp.org>
106888         Support for copying multibyte string iterators.
106889         * lib/mbiter.h: Include <string.h>.
106890         (mbiter_multi_copy): New function.
106891         (mbi_copy): New macro.
106892         * lib/mbuiter.h: Include <string.h>.
106893         (mbuiter_multi_copy): New function.
106894         (mbui_copy): New macro.
106896 2007-02-11  Bruno Haible  <bruno@clisp.org>
106898         New module mbslen.
106899         * modules/mbslen: New file.
106900         * lib/mbslen.c: New file.
106901         * lib/string_.h (mbslen): New declaration.
106902         * m4/mbslen.m4: New file.
106903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106904         GNULIB_MBSLEN.
106905         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
106906         * MODULES.html.sh (Internationalization functions): Add mbslen.
106908 2007-02-11  Bruno Haible  <bruno@clisp.org>
106910         Ensure O(n) worst-case complexity of strcasestr substitute.
106911         * lib/strcasestr.c: Include stdbool.h.
106912         (knuth_morris_pratt): New function.
106913         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
106914         bookkeeping indicates that it's worth it.
106915         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
106917         * modules/strcasestr-tests: New file.
106918         * tests/test-strcasestr.c: New file.
106920 2007-02-11  Bruno Haible  <bruno@clisp.org>
106922         Ensure O(n) worst-case complexity of c_strcasestr.
106923         * lib/c-strcasestr.c: Include stdbool.h, string.h.
106924         (knuth_morris_pratt): New function.
106925         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
106926         the bookkeeping indicates that it's worth it.
106927         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
106929         * modules/c-strcasestr-tests: New file.
106930         * tests/test-c-strcasestr.c: New file.
106932 2007-02-11  Bruno Haible  <bruno@clisp.org>
106934         Ensure O(n) worst-case complexity of c_strstr.
106935         * lib/c-strstr.c: Include stdbool.h, string.h.
106936         (knuth_morris_pratt): New function.
106937         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
106938         bookkeeping indicates that it's worth it.
106939         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
106941         * lib/c-strstr.c: Complete rewrite for maintainability.
106943         * modules/c-strstr-tests: New file.
106944         * tests/test-c-strstr.c: New file.
106946 2007-02-11  Bruno Haible  <bruno@clisp.org>
106948         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
106949         5.2.1 and earlier, whereby \055 was treated just like the range
106950         delimiter '-'.
106951         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
106953 2007-02-08  Bruno Haible  <bruno@clisp.org>
106955         * modules/regex (Depends-on): Add stdbool.
106956         Reported by Dalibor Topic <robilad@kaffe.org>.
106958 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
106960         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
106961         Prefer returning from main to exiting from it.
106962         Remove unnecessary parens after sizeof.
106964 2007-02-05  Bruno Haible  <bruno@clisp.org>
106966         New module mbssep.
106967         * modules/mbssep: New file.
106968         * lib/mbssep.c: New file.
106969         * lib/string_.h (strsep): Add a conditional link warning.
106970         (mbssep): New declaration.
106971         * m4/mbssep.m4: New file.
106972         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106973         GNULIB_MBSSEP.
106974         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
106975         * MODULES.html.sh (Internationalization functions): Add mbssep.
106977 2007-02-05  Bruno Haible  <bruno@clisp.org>
106979         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
106980         Optimize search in case of 1 delimiter.
106982 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
106984         * lib/acl.h: Include sys/types.h before sys/acl.h.
106986 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
106988         Merge upstream fix for glibc bugzilla #3957:
106990         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
106992         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
106993         bit for RE_HAT_LISTS_NOT_NEWLINE.
106994         (build_charclass_op): Remove bogus comment.
106996 2007-02-05  Simon Josefsson  <simon@josefsson.org>
106998         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
107000 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107002         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
107003         * lib/memmem.c [!defined _LIBC]: Include config.h.
107005 2007-02-04  Bruno Haible  <bruno@clisp.org>
107007         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
107008         warning message.
107010 2007-02-04  Bruno Haible  <bruno@clisp.org>
107012         New module mbstok_r.
107013         * modules/mbstok_r: New file.
107014         * lib/mbstok_r.c: New file.
107015         * lib/string_.h (strtok_r): Change argument names to match the
107016         comments. Add a conditional link warning.
107017         (mbstok_r): New declaration.
107018         * m4/mbstok_r.m4: New file.
107019         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107020         GNULIB_MBSTOK_R.
107021         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
107022         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
107024 2007-02-04  Bruno Haible  <bruno@clisp.org>
107026         New module mbsspn.
107027         * modules/mbsspn: New file.
107028         * lib/mbsspn.c: New file.
107029         * lib/string_.h (strspn): Add a conditional link warning.
107030         (mbsspn): New declaration.
107031         * m4/mbsspn.m4: New file.
107032         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107033         GNULIB_MBSSPN.
107034         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
107035         * MODULES.html.sh (Internationalization functions): Add mbsspn.
107037 2007-02-04  Bruno Haible  <bruno@clisp.org>
107039         New module mbspbrk.
107040         * modules/mbspbrk: New file.
107041         * lib/mbspbrk.c: New file.
107042         * lib/string_.h (strpbrk): Add a conditional link warning.
107043         (mbspbrk): New declaration.
107044         * m4/mbspbrk.m4: New file.
107045         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107046         GNULIB_MBSPBRK.
107047         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
107048         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
107050 2007-02-04  Bruno Haible  <bruno@clisp.org>
107052         New module mbscspn.
107053         * modules/mbscspn: New file.
107054         * lib/mbscspn.c: New file.
107055         * lib/string_.h (strcspn): Add a conditional link warning.
107056         (mbscspn): New declaration.
107057         * m4/mbscspn.m4: New file.
107058         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107059         GNULIB_MBSCSPN.
107060         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
107061         * MODULES.html.sh (Internationalization functions): Add mbscspn.
107063 2007-02-04  Bruno Haible  <bruno@clisp.org>
107065         New module mbscasestr, reduced goal of strcasestr.
107066         * modules/mbscasestr: New file.
107067         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
107068         (mbscasestr): Renamed from strcasestr.
107069         * lib/strcasestr.c: Don't include mbuiter.h.
107070         (strcasestr): Remove support for multibyte locales.
107071         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
107072         Change the conditional link warning.
107073         (mbscasestr): New declaration.
107074         * m4/mbscasestr.m4: New file.
107075         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
107076         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
107077         REPLACE_STRCASESTR.
107078         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
107079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107080         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107081         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
107082         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
107083         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107084         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
107085         (Depends-on): Remove mbuiter.
107086         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
107088 2007-02-04  Bruno Haible  <bruno@clisp.org>
107090         Simplify handling of strncasecmp.
107091         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
107092         the conditional link warning.
107093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107094         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
107095         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
107096         * modules/strcase (configure.ac): Don't invoke
107097         gl_STRING_MODULE_INDICATOR.
107098         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
107100 2007-02-04  Bruno Haible  <bruno@clisp.org>
107102         New module mbscasecmp, reduced goal of strcasecmp.
107103         * modules/mbscasecmp: New file.
107104         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
107105         (mbscasecmp): Renamed from strcasecmp.
107106         * lib/strcasecmp.c: Don't include mbuiter.h.
107107         (strcasecmp): Remove support for multibyte locales.
107108         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
107109         Change the conditional link warning.
107110         (mbscasecmp): New declaration.
107111         * m4/mbscasecmp.m4: New file.
107112         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
107113         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
107114         REPLACE_STRCASECMP.
107115         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
107116         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107117         GNULIB_MBSCASECMP.
107118         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
107119         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
107120         * modules/strcase (Files): Remove m4/mbrtowc.m4.
107121         (Depends-on): Remove mbuiter.
107122         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
107124 2007-02-04  Bruno Haible  <bruno@clisp.org>
107126         New module mbsstr. Remove module strstr.
107127         * modules/mbsstr: New file.
107128         * modules/strstr: Remove file.
107129         * lib/mbsstr.c: Renamed from lib/strstr.c.
107130         (mbsstr): Renamed from strstr.
107131         * lib/string_.h (strstr): Remove declaration. Change the conditional
107132         link warning.
107133         (mbsstr): New declaration.
107134         * m4/mbsstr.m4: New file.
107135         * m4/strstr.m4: Remove file.
107136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
107137         REPLACE_STRSTR.
107138         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
107139         Don't initialize GNULIB_STRSTR.
107140         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
107141         substitute GNULIB_STRSTR and REPLACE_STRSTR.
107142         * MODULES.html.sh (Internationalization functions): Add mbsstr.
107143         (Support for systems lacking ANSI C 89): Remove strstr.
107145 2007-02-04  Bruno Haible  <bruno@clisp.org>
107147         New module mbsrchr.
107148         * modules/mbsrchr: New file.
107149         * lib/mbsrchr.c: New file.
107150         * lib/string_.h (strrchr): Add a conditional link warning.
107151         (mbsrchr): New declaration.
107152         * m4/mbsrchr.m4: New file.
107153         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107154         GNULIB_MBSRCHR.
107155         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
107156         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
107158 2007-02-04  Bruno Haible  <bruno@clisp.org>
107160         New module mbschr.
107161         * modules/mbschr: New file.
107162         * lib/mbschr.c: New file.
107163         * lib/string_.h (strchr): Add a conditional link warning.
107164         (mbschr): New declaration.
107165         * m4/mbschr.m4: New file.
107166         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107167         GNULIB_MBSCHR.
107168         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
107169         * MODULES.html.sh (Internationalization functions): Add mbschr.
107171 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107173         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
107175         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
107177 2007-02-04  Bruno Haible  <bruno@clisp.org>
107179         New module description section 'configure.ac-early'.
107180         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
107181         (func_get_autoconf_early_snippet): New function.
107182         (func_import, func_create_testdir): Use it. Remove special cases for
107183         modules 'extensions' and 'lock'.
107184         * modules/extensions (configure.ac-early): Require
107185         gl_USE_SYSTEM_EXTENSIONS.
107186         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
107188 2007-02-04  Bruno Haible  <bruno@clisp.org>
107190         Make use of gcj-4.3's -fsource and -ftarget option.
107191         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
107192         and if so try the options -fsource and -ftarget.
107193         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
107194         source_version, ftarget_option, target_version arguments.
107195         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
107196         (is_envjavac_oldgcj_14_14_usable): Renamed from
107197         is_envjavac_gcj_14_14_usable.
107198         (is_envjavac_oldgcj_14_13_usable): Renamed from
107199         is_envjavac_gcj_14_13_usable.
107200         (is_gcj_present): Update.
107201         (is_gcj_43, is_gcj43_usable): New functions.
107202         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
107203         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
107204         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
107205         try the options -fsource and -ftarget.
107207 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107209         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
107210         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
107211         larger value.
107213 2007-02-03  Jim Meyering  <jim@meyering.net>
107215         Give tools a better chance to allocate space for very large buffers.
107216         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
107218         Make pwd and readlink work also when run with an unreadable parent dir
107219         on systems with openat support.
107220         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
107221         provided getcwd function, even when we have openat support.
107222         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
107224 2007-02-02  Bruno Haible  <bruno@clisp.org>
107226         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107227         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
107228         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
107229         portability problems if one of these functions is only used on specific
107230         platforms.
107231         Reported by Paul Eggert.
107233 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
107235         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
107236         is causing more trouble than it's curing.
107237         * lib/regex_internal.h (__mempcpy): Remove.
107238         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
107239         (and make the code a tad smaller to boot).
107240         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
107242 2007-02-02  Jim Meyering  <jim@meyering.net>
107244         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
107245         section, not in the Makefile.am: one.
107247 2007-02-02  Eric Blake  <ebb9@byu.net>
107249         * lib/strchrnul.c: Always include config.h first.
107251         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
107252         gnulib strstr is not necessary here.
107254 2007-02-02  Simon Josefsson  <simon@josefsson.org>
107256         * m4/socklen.m4: Fix typo.
107258 2007-02-02  Eric Blake  <ebb9@byu.net>
107260         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
107261         * modules/netinet_in (Makefile.am): Likewise.
107263 2007-02-01  Bruno Haible  <bruno@clisp.org>
107265         * lib/string_.h (GL_LINK_WARNING): New macro.
107266         (strcasecmp, strstr, strcasestr): If provided by the system,
107267         conditionally define as a macro that leads to a warning instead of to
107268         an error.
107269         (strncasecmp): Conditionally define as a macro that leads to a warning.
107271 2007-02-01  Karl Berry  <karl@gnu.org>
107273         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
107275 2007-02-01  Bruno Haible  <bruno@clisp.org>
107277         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
107278         renamings.
107280 2007-02-01  Eric Blake  <ebb9@byu.net>
107282         * modules/regex (Depends-on): Revert dependence on mempcpy.
107283         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
107284         module's definition of mempcpy.
107285         Reported by Paul Eggert.
107287 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107289         * lib/string_.h: If the gnulib module XYZ is not present, undefine
107290         the symbol XYZ before redefining it.  This fixes a problem with
107291         programs that don't use XYZ, when compiled on systems that define
107292         XYZ to something else.
107294 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
107296         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
107297         occurs when "mkdir -m foo" creates a setgid directory that is (1)
107298         writeable to group or other and (2) is intended to have a special
107299         mode bit that is set or cleared.  In such a case, the directory
107300         should be neither group- nor other-writeable until the special
107301         mode bits are right.
107303 2007-01-31  Eric Blake  <ebb9@byu.net>
107305         * modules/mountlist (Depends-on): Add strstr.
107307         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
107308         bug.
107309         * modules/string (Makefile.am): Remove redundant replacement.
107310         * modules/regex (Depends-on): Add mempcpy.
107312 2007-01-31  Bruno Haible  <bruno@clisp.org>
107314         New module description field 'Link'.
107315         * gnulib-tool (func_usage): Document --extract-link-directive.
107316         (sed_extract_prog): Recognize 'Link' directive.
107317         (func_get_link_directive): New function.
107318         (func_import): Show summary of link directives.
107319         Handle --extract-link-directive option.
107320         * modules/acl (Link): New section.
107321         * modules/clock-time (Link): New section.
107322         * modules/euidaccess (Link): New section.
107323         * modules/gettext (Link): New section.
107324         * modules/iconv (Link): New section.
107325         * modules/lock (Link): New section.
107326         * modules/nanosleep (Link): New section.
107327         * modules/readline (Link): New section.
107329 2007-01-27  Bruno Haible  <bruno@clisp.org>
107331         Enforce the use of gnulib modules for unportable <string.h> functions.
107332         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
107333         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
107334         (gl_HEADER_STRING_H_BODY): Require it.
107335         * lib/string_.h: If the gnulib module XYZ is not present, redefine
107336         the symbol XYZ to one that gives a link error.
107337         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
107338         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
107339         * modules/mempcpy (configure.ac): Likewise.
107340         * modules/memrchr (configure.ac): Likewise.
107341         * modules/stpcpy (configure.ac): Likewise.
107342         * modules/stpncpy (configure.ac): Likewise.
107343         * modules/strcase (configure.ac): Likewise.
107344         * modules/strcasestr (configure.ac): Likewise.
107345         * modules/strchrnul (configure.ac): Likewise.
107346         * modules/strdup (configure.ac): Likewise.
107347         * modules/strndup (configure.ac): Likewise.
107348         * modules/strnlen (configure.ac): Likewise.
107349         * modules/strpbrk (configure.ac): Likewise.
107350         * modules/strsep (configure.ac): Likewise.
107351         * modules/strstr (configure.ac): Likewise.
107352         * modules/strtok_r (configure.ac): Likewise.
107354 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
107356         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
107358 2007-01-30  Jim Meyering  <jim@meyering.net>
107360         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
107362 2007-01-29  Bruno Haible  <bruno@clisp.org>
107364         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
107365         * lib/execute.c: Likewise.
107366         * lib/pipe.c: Likewise.
107367         * lib/printf-args.h: Likewise.
107368         * lib/printf-args.c: Likewise.
107369         * lib/printf-parse.c: Likewise.
107370         * lib/vasnprintf.c: Likewise.
107372 2007-01-29  Eric Blake  <ebb9@byu.net>
107374         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
107375         declaration.
107377 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
107379         * lib/strptime.h (strptime): Use 'restrict' for args where
107380         POSIX requires this.
107381         * lib/strptime.c (strptime): Likewise.
107382         Change license notice from LGPL to GPL, since gnulib-tool will
107383         change this as needed.
107384         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
107385         defined.
107386         Include "strptime.h" first, to check interface.
107387         Do not #undef _LIBC and _NL_CURRENT.
107388         Do not include <stdlib.h>; no longer needed.
107389         Include "time_r.h" and declare ptime_locale_status
107390         only if _LIBC is not defined.
107391         (__P): Remove unused macro.
107392         (match_string): Bring back glibc version, but use it only if _LIBC
107393         is defined.
107394         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
107395         Remove unnecessary assertion and abort() call.
107396         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
107397         * m4/strptime.m4: Fix serial number comment.
107398         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
107399         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
107400         (Depends-on): Add time_r.
107402 2007-01-29  Bruno Haible  <bruno@clisp.org>
107404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107405         strptime.
107406         * modules/strptime (Depends-on): Add stdbool.
107407         * lib/strptime.h: Include <time.h> always. Add comments.
107409 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107411         * modules/strptime: New file.
107412         * lib/strptime.h: New file.
107413         * lib/strptime.c: New file.
107414         * m4/strptime.m4: New file.
107416 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107418         * MODULES.html.sh: New module mpsort.
107419         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
107421         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
107422         a circularity problem with HP-UX ia64 reported by Bob Proulx in
107423         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
107424         All uses changed.
107425         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
107426         All uses changed.
107427         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
107428         to _Restrict_.
107429         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
107430         the parameter matches the prototype.
107432 2007-01-28  Jim Meyering  <jim@meyering.net>
107434         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
107435         sys/time.h here, reverting that part of the previous patch:
107436         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
107438 2007-01-28  Bruno Haible  <bruno@clisp.org>
107440         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
107441         value of $(SYS_TIME_H).
107442         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
107443         remove it conditionally, too. [added by Jim Meyering]
107444         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
107445         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
107446         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
107447         GETTIMEOFDAY_REPLACEMENT to 1.
107449 2007-01-28  Bruno Haible  <bruno@clisp.org>
107451         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
107452         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
107453         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
107454         Set UNISTD_H instead of UNISTD_H2.
107455         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
107457 2007-01-28  Bruno Haible  <bruno@clisp.org>
107459         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
107460         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
107462 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107464         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
107465         (func_create_testdir): Ensure C locale for `grep' and `tr'
107466         character ranges.
107467         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
107468         ACLOCAL_AMFLAGS parsing state machine.
107470 2007-01-27  Bruno Haible  <bruno@clisp.org>
107472         * modules/unistr/base: Update.
107474 2007-01-27  Bruno Haible  <bruno@clisp.org>
107476         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
107477         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
107478         * modules/unistr/u32-mbtouc-unsafe: Renamed from
107479         modules/unistr/u32-mbtouc.
107480         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
107481         * lib/unistr.h: Update.
107482         * lib/linebreak.c: Update.
107483         * modules/unistr/u32-mbtouc: Renamed from
107484         modules/unistr/u32-mbtouc-safe.
107485         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
107486         * lib/unistr.h: Update.
107487         * lib/unistr/u32-to-u8.c: Update.
107488         * lib/unistr/u32-to-u16.c: Update.
107490 2007-01-27  Bruno Haible  <bruno@clisp.org>
107492         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
107493         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
107494         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
107495         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
107496         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
107497         * modules/unistr/u16-mbtouc-unsafe: Renamed from
107498         modules/unistr/u16-mbtouc.
107499         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
107500         * lib/unistr.h: Update.
107501         * lib/linebreak.c: Update.
107502         * modules/linebreak: Update.
107503         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
107504         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
107505         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
107506         * modules/unistr/u16-mbtouc: Renamed from
107507         modules/unistr/u16-mbtouc-safe.
107508         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
107509         * lib/unistr.h: Update.
107510         * lib/unistr/u16-to-u8.c: Update.
107511         * modules/unistr/u16-to-u8: Update.
107512         * lib/unistr/u16-to-u32.c: Update.
107513         * modules/unistr/u16-to-u32: Update.
107515 2007-01-27  Bruno Haible  <bruno@clisp.org>
107517         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
107518         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
107519         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
107520         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
107521         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
107522         * modules/unistr/u8-mbtouc-unsafe: Renamed from
107523         modules/unistr/u8-mbtouc.
107524         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
107525         * lib/unistr.h: Update.
107526         * lib/striconveh.c: Update.
107527         * modules/striconveh: Update.
107528         * lib/linebreak.c: Update.
107529         * modules/linebreak: Update.
107530         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
107531         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
107532         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
107533         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
107534         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
107535         * lib/unistr.h: Update.
107536         * lib/striconveh.c: Update.
107537         * modules/striconveh: Update.
107538         * lib/unistr/u8-to-u16.c: Update.
107539         * modules/unistr/u8-to-u16: Update.
107540         * lib/unistr/u8-to-u32.c: Update.
107541         * modules/unistr/u8-to-u32: Update.
107543 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107545         Sync from Libtool.
107546         * lib/argz.c: Do not include strings.h nor memory.h, include
107547         string.h unconditionally.  Patch by Simon Josefsson.
107549 2007-01-27  Bruno Haible  <bruno@clisp.org>
107551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
107552         from gl_HEADER_STRING_H_BODY.
107553         (gl_HEADER_STRING_H_BODY): Require it.
107554         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
107555         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
107556         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
107557         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
107558         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
107559         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
107560         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
107561         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
107562         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
107563         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
107564         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
107565         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
107566         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
107567         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
107568         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
107570 2007-01-27  Bruno Haible  <bruno@clisp.org>
107572         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
107573         check_PROGRAMS into noinst_PROGRAMS.
107574         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
107575         check_PROGRAMS in this case.
107576         (func_import): Set for_test to false.
107577         (func_create_testdir): Set for_test to true.
107579 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107580             Bruno Haible  <bruno@clisp.org>
107582         * modules/strcasestr (Files): Remove lib/strcasestr.h.
107583         (Depends-on): Add string.
107584         (Includes): Use <string.h> instead of strcasestr.h.
107585         * modules/string (Makefile.am): Also substitute the value of
107586         REPLACE_STRCASESTR.
107587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
107588         assume strcasestr is declared in <string.h> not <strings.h>. Also
107589         set REPLACE_STRCASESTR.
107590         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
107591         REPLACE_STRCASESTR.
107592         * lib/strcasestr.h: Remove file.
107593         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
107594         * lib/string_.h (strcasestr): New declaration.
107596 2007-01-27  Bruno Haible  <bruno@clisp.org>
107598         * lib/string_.h: Use 'extern'.
107600 2007-01-27  Jim Meyering  <jim@meyering.net>
107602         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
107603         of set-but-not-used local, "q".
107605         * lib/mempcpy.c: Include <config.h> before <string.h>.
107606         This fixes a compilation error on HP-UX, due to the system's
107607         "restrict"-using mempcpy prototype.
107609 2007-01-26  Bruno Haible  <bruno@clisp.org>
107611         Small optimization.
107612         * lib/javacomp.c: Include c-strstr.h.
107613          (is_envjavac_gcj): Use c_strstr instead of strstr.
107614         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
107616 2007-01-26  Bruno Haible  <bruno@clisp.org>
107618         * MODULES.html.sh (Unicode string functions): Add the new modules.
107620         * modules/uniconv/u32-strconv-to-locale: New file.
107621         * lib/uniconv/u32-strconv-to-locale.c: New file.
107623         * modules/uniconv/u16-strconv-to-locale: New file.
107624         * lib/uniconv/u16-strconv-to-locale.c: New file.
107626         * modules/uniconv/u8-strconv-to-locale: New file.
107627         * lib/uniconv/u8-strconv-to-locale.c: New file.
107629         * modules/uniconv/u32-strconv-from-locale: New file.
107630         * lib/uniconv/u32-strconv-from-locale.c: New file.
107632         * modules/uniconv/u16-strconv-from-locale: New file.
107633         * lib/uniconv/u16-strconv-from-locale.c: New file.
107635         * modules/uniconv/u8-strconv-from-locale: New file.
107636         * lib/uniconv/u8-strconv-from-locale.c: New file.
107638         * modules/uniconv/u32-strconv-to-enc: New file.
107639         * lib/uniconv/u32-strconv-to-enc.c: New file.
107640         * modules/uniconv/u32-strconv-to-enc-tests: New file.
107641         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
107643         * modules/uniconv/u16-strconv-to-enc: New file.
107644         * lib/uniconv/u16-strconv-to-enc.c: New file.
107645         * lib/uniconv/u-strconv-to-enc.h: New file.
107646         * modules/uniconv/u16-strconv-to-enc-tests: New file.
107647         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
107649         * modules/uniconv/u8-strconv-to-enc: New file.
107650         * lib/uniconv/u8-strconv-to-enc.c: New file.
107651         * modules/uniconv/u8-strconv-to-enc-tests: New file.
107652         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
107654         * modules/uniconv/u32-strconv-from-enc: New file.
107655         * lib/uniconv/u32-strconv-from-enc.c: New file.
107656         * modules/uniconv/u32-strconv-from-enc-tests: New file.
107657         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
107659         * modules/uniconv/u16-strconv-from-enc: New file.
107660         * lib/uniconv/u16-strconv-from-enc.c: New file.
107661         * modules/uniconv/u16-strconv-from-enc-tests: New file.
107662         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
107664         * modules/uniconv/u8-strconv-from-enc: New file.
107665         * lib/uniconv/u8-strconv-from-enc.c: New file.
107666         * lib/uniconv/u-strconv-from-enc.h: New file.
107667         * modules/uniconv/u8-strconv-from-enc-tests: New file.
107668         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
107670         * modules/uniconv/u32-conv-from-enc: New file.
107671         * lib/uniconv/u32-conv-from-enc.c: New file.
107672         * modules/uniconv/u32-conv-from-enc-tests: New file.
107673         * tests/uniconv/test-u32-conv-from-enc.c: New file.
107675         * modules/uniconv/u16-conv-from-enc: New file.
107676         * lib/uniconv/u16-conv-from-enc.c: New file.
107677         * lib/uniconv/u-conv-from-enc.h: New file.
107678         * modules/uniconv/u16-conv-from-enc-tests: New file.
107679         * tests/uniconv/test-u16-conv-from-enc.c: New file.
107681         * modules/uniconv/u8-conv-from-enc: New file.
107682         * lib/uniconv/u8-conv-from-enc.c: New file.
107683         * modules/uniconv/u8-conv-from-enc-tests: New file.
107684         * tests/uniconv/test-u8-conv-from-enc.c: New file.
107686         * modules/uniconv/base: New file.
107687         * lib/uniconv.h: New file.
107689 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
107691         * doc/gnulib-tool.texi (Initial import): Update to match current
107692         behavior with strdup module.
107693         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
107694         * lib/memmem.h: Remove; all uses removed.  This is now done
107695         by <string.h>.
107696         * lib/mempcpy.h: Likewise.
107697         * lib/memrchr.h: Likewise.
107698         * lib/stpcpy.h: Likewise.
107699         * lib/stpncpy.h: Likewise.
107700         * lib/strcase.h: Likewise.
107701         * lib/strchrnul.h: Likewise.
107702         * lib/strdup.h: Likewise.
107703         * lib/strndup.h: Likewise.
107704         * lib/strnlen.h: Likewise.
107705         * lib/strpbrk.h: Likewise.
107706         * lib/strsep.h: Likewise.
107707         * lib/strstr.h: Likewise.
107708         * lib/strtok_r.h: Likewise.
107709         * lib/string_.h: New file.
107710         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
107711         Rely on <string.h> instead.
107712         * lib/canon-host.c: Likewise.
107713         * lib/chdir-long.c: Likewise.
107714         * lib/concatpath.c: Likewise.
107715         * lib/exclude.c: Likewise.
107716         * lib/fchdir.c: Likewise.
107717         * lib/getaddrinfo.c: Likewise.
107718         * lib/getcwd.c: Likewise.
107719         * lib/getsubopt.c: Likewise.
107720         * lib/glob.c: Likewise.
107721         * lib/hard-locale.c: Likewise.
107722         * lib/iconvme.c: Likewise.
107723         * lib/javacomp.c: Likewise.
107724         * lib/mempcpy.c: Likewise.
107725         * lib/memrchr.c: Likewise.
107726         * lib/regex_internal.h: Likewise.
107727         * lib/stpncpy.c: Likewise.
107728         * lib/strcasecmp.c: Likewise.
107729         * lib/strchrnul.c: Likewise.
107730         * lib/strdup.c: Likewise.
107731         * lib/striconv.c: Likewise.
107732         * lib/striconveh.c: Likewise.
107733         * lib/striconveha.c: Likewise.
107734         * lib/strncasecmp.c: Likewise.
107735         * lib/strndup.c: Likewise.
107736         * lib/strnlen.c: Likewise.
107737         * lib/strsep.c: Likewise.
107738         * lib/strstr.c: Likewise.
107739         * lib/strtok_r.c: Likewise.
107740         * lib/userspec.c: Likewise.
107741         * lib/w32spawn.h: Likewise.
107742         * lib/xstrndup.c: Likewise.
107743         * lib/mountlist.c (strstr): Remove decl.
107744         * m4/string_h.m4: New file.
107745         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
107746         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
107747         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
107748         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
107749         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
107750         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
107751         Set REPLACE_STRCASECMP if necessary.
107752         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
107753         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
107754         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
107755         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
107756         HAVE_DECL_STRDUP if necessary.
107757         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
107758         since gl_FUNC_STRNDUP does that now.
107759         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
107760         Check for decl here...
107761         (gl_PREREQ_STRNLEN): ... not here.
107762         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
107763         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
107764         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
107765         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
107766         necessary.
107767         * modules/string: New file.
107768         * modules/memmem (Files): Remove special-purpose include file.
107769         (Depends-on): Add string.
107770         (Include): Include <string.h>, not the removed file.
107771         * modules/mempcpy: Likewise.
107772         * modules/memrchr: Likewise.
107773         * modules/stpcpy: Likewise.
107774         * modules/stpncpy: Likewise.
107775         * modules/strcase: Likewise.
107776         * modules/strchrnul: Likewise.
107777         * modules/strdup: Likewise.
107778         * modules/strndup: Likewise.
107779         * modules/strnlen: Likewise.
107780         * modules/strpbrk: Likewise.
107781         * modules/strsep: Likewise.
107782         * modules/strstr: Likewise.
107783         * modules/strtok_r: Likewise.
107784         * tests/test-dirname.c: Don't include "strdup.h", since
107785         <string.h> now suffices.
107786         * tests/test-memmem.c: Don't include "memmem.h", since
107787         <string.h> now suffices.
107789 2007-01-25  Bruno Haible  <bruno@clisp.org>
107791         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
107792         *resultp is 0.
107794         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
107795         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
107796         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
107797         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
107799         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
107800         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
107801         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
107802         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
107803         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
107804         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
107806 2007-01-24  Bruno Haible  <bruno@clisp.org>
107808         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
107809         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
107810         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
107811         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
107812         gl_FUNC_FTS_CORE.
107813         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
107814         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
107815         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
107816         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
107817         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
107818         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
107819         gl_FUNC_FCHOWNAT.
107820         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
107821         gl_FUNC_STRFTIME.
107822         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
107823         Reported by Ralf Wildenhues.
107825 2007-01-24  Bruno Haible  <bruno@clisp.org>
107827         Drop AC_REQUIRE calls that are redundant with the module dependencies.
107828         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
107829         gl_GETADDRINFO.
107830         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
107831         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
107832         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
107834 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
107836         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
107837         Don't use 'exit'; just return from 'main'.
107838         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
107840         * lib/fnmatch_.h: Readjust white space and comments to match
107841         glibc, to avoid spurious diffs.
107843 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107845         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
107846         2004-12-01 change by Jakub Jelinek, since this code won't compile
107847         if !LIBC.  Problem reported by Bob Proulx.
107849 2007-01-23  Bruno Haible  <bruno@clisp.org>
107851         * lib/striconveh.c: Include c-strcaseeq.h.
107852         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
107853         * modules/striconveh (Depends-on): Add c-strcaseeq.
107855 2007-01-23  Bruno Haible  <bruno@clisp.org>
107857         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
107859         * modules/c-strcaseeq: New file.
107860         * lib/c-strcaseeq.h: New file.
107862         * modules/streq: New file.
107863         * lib/streq.h: New file.
107865 2007-01-23  Bruno Haible  <bruno@clisp.org>
107867         * modules/striconveha-tests: New file.
107868         * tests/test-striconveha.c: New file.
107870         * lib/striconveha.h: Include <stdbool.h>.
107871         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
107872         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
107873         (mem_iconveha_notranslit): Renamed from mem_iconveha.
107874         (mem_iconveha): New function.
107875         (str_iconveha_notranslit): Renamed from str_iconveha.
107876         (str_iconveha): New function.
107877         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
107878         c-strcase.
107880 2007-01-23  Bruno Haible  <bruno@clisp.org>
107882         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
107883         encodings without forgiving before trying any encoding with handler.
107884         (str_iconveha): Try all encodings without forgiving before trying any
107885         encoding with handler.
107887 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107889         Import the following changes from libc.
107891         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
107893         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
107895         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107897         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
107898         normal_bracket label.
107900         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
107902         [BZ #361]
107903         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
107904         to normal_bracket after fetching the next character.
107906 2007-01-22  Bruno Haible  <bruno@clisp.org>
107908         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
107909         argument.
107910         * lib/striconveh.c (iconv_carefully_1): New function.
107911         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
107912         argument.
107913         (str_cd_iconveh): Update.
107914         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
107915         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
107916         * tests/test-striconveh.c (MAGIC): New macro.
107917         (new_offsets): New function.
107918         (main): Test call with and without offsets.
107920 2007-01-22  Bruno Haible  <bruno@clisp.org>
107922         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
107923         * modules/sys_select (Makefile.am): Likewise.
107924         * modules/sys_socket (Makefile.am): Likewise.
107925         * modules/sys_time (Makefile.am): Likewise.
107927 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
107929         * modules/gettimeofday (License): Change from GPL to LGPL, since
107930         gettimeofday is a library function.
107932 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107934         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
107936 2007-01-21  Bruno Haible  <bruno@clisp.org>
107938         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
107940 2007-01-21  Bruno Haible  <bruno@clisp.org>
107942         * modules/striconveha: New file.
107943         * lib/striconveha.h: New file.
107944         * lib/striconveha.c: New file.
107945         * MODULES.html.sh (Internationalization functions): Add striconveha.
107946         * lib/striconv.c (str_iconv): Optimize the case of an empty input
107947         string.
107948         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
107950 2007-01-21  Bruno Haible  <bruno@clisp.org>
107952         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
107953         * lib/striconveh.c (str_iconveh): Likewise.
107955 2007-01-21  Bruno Haible  <bruno@clisp.org>
107957         * lib/striconveh.h (mem_iconveh): New declaration.
107958         * lib/striconveh.c (mem_iconveh): New function.
107959         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
107961 2007-01-21  Bruno Haible  <bruno@clisp.org>
107963         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
107965         * lib/striconveh.h (mem_cd_iconveh): Change specification.
107966         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
107967         original result buffer.
107968         (str_cd_iconveh): Update.
107969         * tests/test-striconveh.c (main): Update.
107971         * lib/striconv.h (mem_cd_iconv): Change specification.
107972         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
107973         result buffer.
107974         (str_cd_iconv): Update.
107975         * tests/test-striconv.c (main): Update.
107977 2007-01-21  Bruno Haible  <bruno@clisp.org>
107979         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
107981 2007-01-20  Jim Meyering  <jim@meyering.net>
107983         * lib/userspec.c (parse_with_separator): If a user or group string
107984         starts with "+", skip the corresponding name-to-ID look-up, since
107985         such a look-up must fail: user and group names may not include "+".
107987 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107989         * lib/poll.c: Include sys/time.h and time.h unconditionally,
107990         since we now assume the sys_time module.
107991         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
107992         check for sys/time.h; no longer needed.
107993         * modules/poll (Depends-on): Depend on sys_time.
107995 2007-01-18  Bruno Haible  <bruno@clisp.org>
107997         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
107998         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108000         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
108001         gettimeofday.
108003         * tests/test-gettimeofday.c: Include <time.h>.
108004         (dummy): Remove variable.
108006         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
108007         gl_HEADER_SYS_TIME_H.
108008         (gl_HEADER_SYS_TIME_H): New macro.
108010         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
108011         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108012         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
108013         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
108014         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108015         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
108016         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
108017         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108018         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
108019         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
108020         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108022         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
108023         last change; it caused a compilation error when cross-compiling to
108024         Cygwin.
108026 2007-01-18  Jim Meyering  <jim@meyering.net>
108028         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
108029         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
108030         than the race-prone "test -d sys || mkdir sys".
108031         (configure.ac): Use AC_PROG_MKDIR_P.
108032         * modules/sys_select: Likewise.
108033         * modules/sys_socket: Likewise.
108034         * modules/sys_time: Likewise.
108036 2007-01-18  Eric Blake  <ebb9@byu.net>
108038         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
108039         replace gettimeofday.
108040         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
108041         name, to avoid infinite recursion.
108043 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
108045         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
108046         module sys_time.
108047         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
108048         assume timespec.h defines struct timeval.
108049         * lib/settime.c: Likewise.
108050         * lib/utimens.c: Likewise.
108051         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
108052         since we now assume the gettimeofday module.
108053         * lib/tempname.c (__gen_tempname): Likewise.
108054         * lib/gettimeofday.h: Remove.
108055         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
108056         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
108057         Include <time.h>, for 'time()'.
108058         (localtime_buffer_addr): Also use this workaround if
108059         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
108060         to simplify the uses.  All uses changed.
108061         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
108062         that #undef is inside {}, and 'const' follows type name consistently.
108063         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
108064         (gettimeofday): Do not use the maximum possible value for
108065         tv->tv_usec, since that might break usages other than ls.c.
108066         Instead, we'll leave ls.c alone.  This undoes today's patch
108067         by Bruno.  Add a compile-time warning for 1s-clock resolution;
108068         we've never observed the problem but might as well keep the
108069         canary.
108070         * lib/nanosleep.c: Include timespec.h first, for interface check.
108071         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
108072         now assume the sys_time module.
108073         * lib/tempname.c: Likewise.
108074         * lib/timespec.h: Likewise.
108075         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
108076         needed.
108077         * lib/strftime.c: Likewise.
108078         * lib/timespec.h: Likewise.
108079         * lib/posixtm.c: Include posixtm.h first, for interface check.
108080         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
108081         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
108082         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
108083         * lib/sys_time_.h: New file.
108084         * lib/timespec.h (struct timespec): Use long int, not long.
108085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108086         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
108087         Remove obsolescent call to AC_HEADER_TIME.
108088         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
108089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108090         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108091         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
108092         Likewise.
108093         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
108094         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
108095         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
108096         into the sys_time module.  Check for gettimeofday just once.
108097         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
108098         for gettimeofday signature to just check the signature.  Merely
108099         compile it, since linking doesn't test signature.  Improve test for
108100         whether gettimeofday.o is actually needed.
108101         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
108102         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
108103         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
108104         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108105         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
108106         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
108107         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
108108         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
108109         than worrying about sys/time.h.
108110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108111         Don't bother worrying about TIME_WITH_SYS_TIME.
108112         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
108113         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
108114         * m4/sys_time_h.m4: New file.
108115         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
108116         Don't include sys/time.h.  Return from main rather than exiting.
108117         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
108118         all uses changed.
108119         * modules/gethrxtime (Depends-on): Add sys_time.
108120         * modules/gettime (Depends-on): Likewise.
108121         * modules/gettimeofday (Depends-on): Likewise.
108122         * modules/nanosleep (Depends-on): Likewise.
108123         * modules/settime (Depends-on): Likewise.
108124         * modules/tempname (Depends-on): Likewise.
108125         * modules/utimens (Depends-on): Likewise.
108126         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
108127         (Include): Change back to <sys/time.h>.
108128         (Maintainer): Add self.
108129         * modules/sys_time: New file.
108130         * modules/tempname (Depends-on): Add gettimeofday.
108131         * tests/test-gettimeofday.c: Include <sys/time.h>
108132         rather than gettimeofday.h.
108134 2007-01-17  Bruno Haible  <bruno@clisp.org>
108136         * gnulib-tool (func_get_license): Revert last patch. Instead, let
108137         the license default to GPL.
108138         (func_create_testdir): Don't complain if a module is LGPL and its
108139         tests module depends on GPLed modules.
108141 2007-01-17  Bruno Haible  <bruno@clisp.org>
108143         * lib/gettimeofday.c (gettimeofday): Add code for the case
108144         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
108145         maximum possible value for tv->tv_usec, rather than the minimum one.
108147 2005-10-08  Martin Lambers  <marlam@marlam.de>
108148 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108149 2007-01-16  Bruno Haible  <bruno@clisp.org>
108151         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
108152         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
108153         gl_FUNC_GETTIMEOFDAY.
108154         (Include): Add gettimeofday.h.
108155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
108156         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
108157         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
108158         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
108159         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
108160         * lib/gettimeofday.h: New file.
108161         * lib/gettimeofday.c: Include <sys/timeb.h>.
108162         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
108163         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108164         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
108165         fall back on time().
108167         * tests/test-gettimeofday.c: New file.
108168         * modules/gettimeofday-tests: New file.
108170 2007-01-16  Eric Blake  <ebb9@byu.net>
108172         * modules/fnmatch (Depends-on): Depend on wchar.
108173         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
108174         * m4/fnmatch.m4: Likewise.
108175         * modules/mbchar (Makefile.am): Assume <wchar.h>.
108176         * m4/mbchar.m4: Likewise.
108177         * modules/mbswidth (Depends-on): Depend on wchar.
108178         * lib/mbswidth.c: Assume <wchar.h>.
108179         * m4/mbswidth.m4: Likewise.
108180         * modules/quotearg (Depends-on): Depend on wchar.
108181         * lib/quotearg.c: Assume <wchar.h>.
108182         * m4/quotearg.m4: Likewise.
108183         * modules/regex (Depends-on): Depend on wchar.
108184         * lib/regex_internal.h: Assume <wchar.h>.
108185         * m4/regex.m4: Likewise.
108186         * modules/stdint (Depends-on): Depend on wchar.
108187         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
108188         * m4/stdint.m4: Likewise.
108189         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
108190         * modules/strftime (Depends-on): Depend on wchar.
108191         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
108192         * modules/strtol (Depends-on): Depend on wchar.
108193         * lib/strtol.c: Assume <wchar.h>.
108194         * modules/wcwidth (Depends-on): Depend on wchar.
108195         * lib/wcwidth.h: Assume <wchar.h>.
108196         * m4/wcwidth.m4: Likewise.
108198 2007-01-16  Bruno Haible  <bruno@clisp.org>
108200         * modules/csharpexec-script: New, created from...
108201         * modules/csharpexec: ... this.
108203 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
108205         * modules/javaexec-script: New, created from...
108206         * modules/javaexec: ... this.
108208 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108210         * modules/poll (Dependencies): Add sys_select.
108212 2007-01-15  Jim Meyering  <jim@meyering.net>
108214         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
108215         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
108216         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
108217         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
108219 2007-01-15  Bruno Haible  <bruno@clisp.org>
108221         * modules/striconveh: New file.
108222         * lib/striconveh.h: New file.
108223         * lib/striconveh.c: New file.
108224         * MODULES.html.sh (Internationalization functions): Add striconveh.
108226         * modules/striconveh-tests: New file.
108227         * tests/test-striconveh.c: New file.
108229 2007-01-15  Bruno Haible  <bruno@clisp.org>
108231         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
108232         not from GNU libiconv or GNU libc.
108234 2007-01-15  Bruno Haible  <bruno@clisp.org>
108236         * doc/gnulib-intro.texi (Copyright): Explain the different license
108237         terms for module descriptions, autoconf macros, tests, documentation.
108239 2007-01-14  Bruno Haible  <bruno@clisp.org>
108241         * modules/striconv-tests: New file.
108242         * tests/test-striconv.c: New file.
108244 2007-01-14  Bruno Haible  <bruno@clisp.org>
108246         * modules/iconv-tests: New file.
108247         * tests/test-iconv.c: New file.
108249 2007-01-14  Bruno Haible  <bruno@clisp.org>
108251         * gnulib-tool (func_get_license): For test modules, use the license of
108252         the main module.
108254 2007-01-14  Bruno Haible  <bruno@clisp.org>
108256         * modules/iconv (Include): Clarify that <iconv.h> can only be included
108257         if iconv is found to exist.
108259 2007-01-14  Bruno Haible  <bruno@clisp.org>
108261         * modules/c-ctype-tests: New file.
108262         * tests/test-c-ctype.c: New file.
108264 2007-01-14  Bruno Haible  <bruno@clisp.org>
108266         * modules/binary-io-tests: New file.
108267         * tests/test-binary-io.sh: New file.
108268         * tests/test-binary-io.c: New file.
108270 2007-01-14  Bruno Haible  <bruno@clisp.org>
108272         * modules/array-oset-tests: New file.
108273         * tests/test-array_oset.c: New file.
108275 2007-01-14  Bruno Haible  <bruno@clisp.org>
108277         * modules/array-list-tests: New file.
108278         * tests/test-array_list.c: New file.
108280 2007-01-14  Bruno Haible  <bruno@clisp.org>
108282         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
108283         and make.
108284         Reported by Simon Josefsson in
108285         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
108287 2007-01-14  Bruno Haible  <bruno@clisp.org>
108289         * modules/allocsa-tests: New file.
108290         * tests/test-allocsa.c: New file.
108292 2007-01-14  Bruno Haible  <bruno@clisp.org>
108294         * modules/fchdir (Depends-on): Add absolute-header.
108295         * modules/unistd (Depends-on): Likewise.
108297 2006-12-30  Bruno Haible  <bruno@clisp.org>
108299         * modules/fchdir: New file.
108300         * modules/unistd (Files): Add lib/unistd_.h.
108301         (Makefile.am): Generate unistd.h from unistd_.h.
108302         * lib/fchdir.c: New file.
108303         * lib/dirent_.h: New file.
108304         * lib/unistd_.h: New file.
108305         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
108306         * m4/fchdir.m4: New file.
108307         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
108308         (gl_HEADER_UNISTD): Invoke it.
108309         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
108310         function.
108311         * lib/backupfile.c (opendir, closedir): Undefine.
108312         * lib/chown.c (open, close): Undefine.
108313         * lib/clean-temp.c (open, close): Undefine.
108314         * lib/copy-file.c (open, close): Undefine.
108315         * lib/execute.c (open, close): Undefine.
108316         * lib/fsusage.c (open, close): Undefine.
108317         * lib/gc-gnulib.c (open, close): Undefine.
108318         * lib/getcwd.c (opendir, closedir): Undefine.
108319         * lib/glob.c (opendir, closedir): Undefine.
108320         * lib/javacomp.c (open, close): Undefine.
108321         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
108322         * lib/openat-proc.c (open, close): Undefine.
108323         * lib/pagealign_alloc.c (open, close): Undefine.
108324         * lib/pipe.c (open, close): Undefine.
108325         * lib/progreloc.c (open, close): Undefine.
108326         * lib/savedir.c (opendir, closedir): Undefine.
108327         * lib/utime.c (open, close): Undefine.
108328         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
108330 2007-01-10  Bruno Haible  <bruno@clisp.org>
108332         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
108334 2007-01-12  Eric Blake  <ebb9@byu.net>
108336         Provide a robust <wchar.h>.  Further simplifications are now
108337         possible in other modules, but not included here.
108338         * modules/wchar: New module.
108339         * m4/wchar.m4: New file.
108340         * lib/wchar_.h: Likewise.
108341         * modules/mbchar (Depends-on): Depend on wchar, as the first use
108342         of the new module.
108343         * MODULES.html.sh (Extended multibyte and wide character utilities):
108344         New section.
108346 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
108348         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
108349         to a reasonable default for memory allocation.
108350         (xreadlink): Don't allocate a huge buffer, to work around a buggy
108351         file system that reports garbage st_size values for symlinks.
108352         Problem reported by Liyang Hu.
108354 2007-01-11  Simon Josefsson  <simon@josefsson.org>
108356         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
108357         Emacs .#* auto-save files).
108359 2007-01-11  Bruno Haible  <bruno@clisp.org>
108361         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
108362         directory.
108364 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
108366         Use @...@ consistently in lib/wctype_.h.
108367         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
108368         on it being set to 1 or 0.
108369         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
108370         go back to AC_SUBSTing it.
108371         * modules/wctype (Makefile.am): Undo previous change.
108373 2007-01-10  Eric Blake  <ebb9@byu.net>
108375         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
108376         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
108377         * modules/wctype (Makefile.am): Likewise.
108378         Reported by Chris McGuire.
108380 2007-01-10  Jim Meyering  <jim@meyering.net>
108382         fts.c: a small readability/maintainability improvement
108383         * lib/fts.c (fts_read): Make this code slightly more readable and
108384         maintainable by hoisting the "sp->fts_cur = p" assignments to
108385         immediately follow the statements that set P.  Derived from
108386         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
108388 2007-01-10  Eric Blake  <ebb9@byu.net>
108390         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
108391         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
108392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
108393         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
108394         Reported by Chris McGuire.
108396 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108398         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
108399         in sed script.
108401 2007-01-09  Bruno Haible  <bruno@clisp.org>
108403         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
108404         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
108405         variables.
108406         (func_module): Use them.
108408 2007-01-09  Bruno Haible  <bruno@clisp.org>
108410         * modules/unistr/base: New file.
108411         * lib/unistr.h: New file.
108413         * modules/unistr/u8-to-u16: New file.
108414         * lib/unistr/u8-to-u16.c: New file.
108416         * modules/unistr/u8-to-u32: New file.
108417         * lib/unistr/u8-to-u32.c: New file.
108419         * modules/unistr/u16-to-u8: New file.
108420         * lib/unistr/u16-to-u8.c: New file.
108422         * modules/unistr/u16-to-u32: New file.
108423         * lib/unistr/u16-to-u32.c: New file.
108425         * modules/unistr/u32-to-u8: New file.
108426         * lib/unistr/u32-to-u8.c: New file.
108428         * modules/unistr/u32-to-u16: New file.
108429         * lib/unistr/u32-to-u16.c: New file.
108431         * modules/unistr/u8-check: New file.
108432         * modules/unistr/u16-check: New file.
108433         * modules/unistr/u32-check: New file.
108434         * lib/unistr/u8-check.c: New file.
108435         * lib/unistr/u16-check.c: New file.
108436         * lib/unistr/u32-check.c: New file.
108438         * modules/unistr/u8-chr: New file.
108439         * modules/unistr/u16-chr: New file.
108440         * modules/unistr/u32-chr: New file.
108441         * lib/unistr/u8-chr.c: New file.
108442         * lib/unistr/u16-chr.c: New file.
108443         * lib/unistr/u32-chr.c: New file.
108445         * modules/unistr/u8-cmp: New file.
108446         * modules/unistr/u16-cmp: New file.
108447         * modules/unistr/u32-cmp: New file.
108448         * lib/unistr/u8-cmp.c: New file.
108449         * lib/unistr/u16-cmp.c: New file.
108450         * lib/unistr/u32-cmp.c: New file.
108452         * modules/unistr/u8-cpy: New file.
108453         * modules/unistr/u16-cpy: New file.
108454         * modules/unistr/u32-cpy: New file.
108455         * lib/unistr/u8-cpy.c: New file.
108456         * lib/unistr/u16-cpy.c: New file.
108457         * lib/unistr/u32-cpy.c: New file.
108458         * lib/unistr/u-cpy.h: New file.
108460         * modules/unistr/u8-cpy-alloc: New file.
108461         * modules/unistr/u16-cpy-alloc: New file.
108462         * modules/unistr/u32-cpy-alloc: New file.
108463         * lib/unistr/u8-cpy-alloc.c: New file.
108464         * lib/unistr/u16-cpy-alloc.c: New file.
108465         * lib/unistr/u32-cpy-alloc.c: New file.
108466         * lib/unistr/u-cpy-alloc.h: New file.
108468         * modules/unistr/u8-endswith: New file.
108469         * modules/unistr/u16-endswith: New file.
108470         * modules/unistr/u32-endswith: New file.
108471         * lib/unistr/u8-endswith.c: New file.
108472         * lib/unistr/u16-endswith.c: New file.
108473         * lib/unistr/u32-endswith.c: New file.
108474         * lib/unistr/u-endswith.h: New file.
108476         * modules/unistr/u8-mblen: New file.
108477         * modules/unistr/u16-mblen: New file.
108478         * modules/unistr/u32-mblen: New file.
108479         * lib/unistr/u8-mblen.c: New file.
108480         * lib/unistr/u16-mblen.c: New file.
108481         * lib/unistr/u32-mblen.c: New file.
108483         * modules/unistr/u8-mbtouc: New file.
108484         * modules/unistr/u16-mbtouc: New file.
108485         * modules/unistr/u32-mbtouc: New file.
108486         * lib/unistr/u8-mbtouc.c: New file.
108487         * lib/unistr/u16-mbtouc.c: New file.
108488         * lib/unistr/u32-mbtouc.c: New file.
108490         * modules/unistr/u8-mbtouc-safe: New file.
108491         * modules/unistr/u16-mbtouc-safe: New file.
108492         * modules/unistr/u32-mbtouc-safe: New file.
108493         * lib/unistr/u8-mbtouc-safe.c: New file.
108494         * lib/unistr/u16-mbtouc-safe.c: New file.
108495         * lib/unistr/u32-mbtouc-safe.c: New file.
108497         * modules/unistr/u8-move: New file.
108498         * modules/unistr/u16-move: New file.
108499         * modules/unistr/u32-move: New file.
108500         * lib/unistr/u8-move.c: New file.
108501         * lib/unistr/u16-move.c: New file.
108502         * lib/unistr/u32-move.c: New file.
108503         * lib/unistr/u-move.h: New file.
108505         * modules/unistr/u8-next: New file.
108506         * modules/unistr/u16-next: New file.
108507         * modules/unistr/u32-next: New file.
108508         * lib/unistr/u8-next.c: New file.
108509         * lib/unistr/u16-next.c: New file.
108510         * lib/unistr/u32-next.c: New file.
108512         * modules/unistr/u8-prev: New file.
108513         * modules/unistr/u16-prev: New file.
108514         * modules/unistr/u32-prev: New file.
108515         * lib/unistr/u8-prev.c: New file.
108516         * lib/unistr/u16-prev.c: New file.
108517         * lib/unistr/u32-prev.c: New file.
108519         * modules/unistr/u8-set: New file.
108520         * modules/unistr/u16-set: New file.
108521         * modules/unistr/u32-set: New file.
108522         * lib/unistr/u8-set.c: New file.
108523         * lib/unistr/u16-set.c: New file.
108524         * lib/unistr/u32-set.c: New file.
108525         * lib/unistr/u-set.h: New file.
108527         * modules/unistr/u8-startswith: New file.
108528         * modules/unistr/u16-startswith: New file.
108529         * modules/unistr/u32-startswith: New file.
108530         * lib/unistr/u8-startswith.c: New file.
108531         * lib/unistr/u16-startswith.c: New file.
108532         * lib/unistr/u32-startswith.c: New file.
108533         * lib/unistr/u-startswith.h: New file.
108535         * modules/unistr/u8-stpcpy: New file.
108536         * modules/unistr/u16-stpcpy: New file.
108537         * modules/unistr/u32-stpcpy: New file.
108538         * lib/unistr/u8-stpcpy.c: New file.
108539         * lib/unistr/u16-stpcpy.c: New file.
108540         * lib/unistr/u32-stpcpy.c: New file.
108541         * lib/unistr/u-stpcpy.h: New file.
108543         * modules/unistr/u8-stpncpy: New file.
108544         * modules/unistr/u16-stpncpy: New file.
108545         * modules/unistr/u32-stpncpy: New file.
108546         * lib/unistr/u8-stpncpy.c: New file.
108547         * lib/unistr/u16-stpncpy.c: New file.
108548         * lib/unistr/u32-stpncpy.c: New file.
108549         * lib/unistr/u-stpncpy.h: New file.
108551         * modules/unistr/u8-strcat: New file.
108552         * modules/unistr/u16-strcat: New file.
108553         * modules/unistr/u32-strcat: New file.
108554         * lib/unistr/u8-strcat.c: New file.
108555         * lib/unistr/u16-strcat.c: New file.
108556         * lib/unistr/u32-strcat.c: New file.
108557         * lib/unistr/u-strcat.h: New file.
108559         * modules/unistr/u8-strchr: New file.
108560         * modules/unistr/u16-strchr: New file.
108561         * modules/unistr/u32-strchr: New file.
108562         * lib/unistr/u8-strchr.c: New file.
108563         * lib/unistr/u16-strchr.c: New file.
108564         * lib/unistr/u32-strchr.c: New file.
108566         * modules/unistr/u8-strcmp: New file.
108567         * modules/unistr/u16-strcmp: New file.
108568         * modules/unistr/u32-strcmp: New file.
108569         * lib/unistr/u8-strcmp.c: New file.
108570         * lib/unistr/u16-strcmp.c: New file.
108571         * lib/unistr/u32-strcmp.c: New file.
108573         * modules/unistr/u8-strcpy: New file.
108574         * modules/unistr/u16-strcpy: New file.
108575         * modules/unistr/u32-strcpy: New file.
108576         * lib/unistr/u8-strcpy.c: New file.
108577         * lib/unistr/u16-strcpy.c: New file.
108578         * lib/unistr/u32-strcpy.c: New file.
108579         * lib/unistr/u-strcpy.h: New file.
108581         * modules/unistr/u8-strcspn: New file.
108582         * modules/unistr/u16-strcspn: New file.
108583         * modules/unistr/u32-strcspn: New file.
108584         * lib/unistr/u8-strcspn.c: New file.
108585         * lib/unistr/u16-strcspn.c: New file.
108586         * lib/unistr/u32-strcspn.c: New file.
108587         * lib/unistr/u-strcspn.h: New file.
108589         * modules/unistr/u8-strdup: New file.
108590         * modules/unistr/u16-strdup: New file.
108591         * modules/unistr/u32-strdup: New file.
108592         * lib/unistr/u8-strdup.c: New file.
108593         * lib/unistr/u16-strdup.c: New file.
108594         * lib/unistr/u32-strdup.c: New file.
108595         * lib/unistr/u-strdup.h: New file.
108597         * modules/unistr/u8-strlen: New file.
108598         * modules/unistr/u16-strlen: New file.
108599         * modules/unistr/u32-strlen: New file.
108600         * lib/unistr/u8-strlen.c: New file.
108601         * lib/unistr/u16-strlen.c: New file.
108602         * lib/unistr/u32-strlen.c: New file.
108603         * lib/unistr/u-strlen.h: New file.
108605         * modules/unistr/u8-strmblen: New file.
108606         * modules/unistr/u16-strmblen: New file.
108607         * modules/unistr/u32-strmblen: New file.
108608         * lib/unistr/u8-strmblen.c: New file.
108609         * lib/unistr/u16-strmblen.c: New file.
108610         * lib/unistr/u32-strmblen.c: New file.
108612         * modules/unistr/u8-strmbtouc: New file.
108613         * modules/unistr/u16-strmbtouc: New file.
108614         * modules/unistr/u32-strmbtouc: New file.
108615         * lib/unistr/u8-strmbtouc.c: New file.
108616         * lib/unistr/u16-strmbtouc.c: New file.
108617         * lib/unistr/u32-strmbtouc.c: New file.
108619         * modules/unistr/u8-strncat: New file.
108620         * modules/unistr/u16-strncat: New file.
108621         * modules/unistr/u32-strncat: New file.
108622         * lib/unistr/u8-strncat.c: New file.
108623         * lib/unistr/u16-strncat.c: New file.
108624         * lib/unistr/u32-strncat.c: New file.
108625         * lib/unistr/u-strncat.h: New file.
108627         * modules/unistr/u8-strncmp: New file.
108628         * modules/unistr/u16-strncmp: New file.
108629         * modules/unistr/u32-strncmp: New file.
108630         * lib/unistr/u8-strncmp.c: New file.
108631         * lib/unistr/u16-strncmp.c: New file.
108632         * lib/unistr/u32-strncmp.c: New file.
108634         * modules/unistr/u8-strncpy: New file.
108635         * modules/unistr/u16-strncpy: New file.
108636         * modules/unistr/u32-strncpy: New file.
108637         * lib/unistr/u8-strncpy.c: New file.
108638         * lib/unistr/u16-strncpy.c: New file.
108639         * lib/unistr/u32-strncpy.c: New file.
108640         * lib/unistr/u-strncpy.h: New file.
108642         * modules/unistr/u8-strnlen: New file.
108643         * modules/unistr/u16-strnlen: New file.
108644         * modules/unistr/u32-strnlen: New file.
108645         * lib/unistr/u8-strnlen.c: New file.
108646         * lib/unistr/u16-strnlen.c: New file.
108647         * lib/unistr/u32-strnlen.c: New file.
108648         * lib/unistr/u-strnlen.h: New file.
108650         * modules/unistr/u8-strpbrk: New file.
108651         * modules/unistr/u16-strpbrk: New file.
108652         * modules/unistr/u32-strpbrk: New file.
108653         * lib/unistr/u8-strpbrk.c: New file.
108654         * lib/unistr/u16-strpbrk.c: New file.
108655         * lib/unistr/u32-strpbrk.c: New file.
108656         * lib/unistr/u-strpbrk.h: New file.
108658         * modules/unistr/u8-strrchr: New file.
108659         * modules/unistr/u16-strrchr: New file.
108660         * modules/unistr/u32-strrchr: New file.
108661         * lib/unistr/u8-strrchr.c: New file.
108662         * lib/unistr/u16-strrchr.c: New file.
108663         * lib/unistr/u32-strrchr.c: New file.
108665         * modules/unistr/u8-strspn: New file.
108666         * modules/unistr/u16-strspn: New file.
108667         * modules/unistr/u32-strspn: New file.
108668         * lib/unistr/u8-strspn.c: New file.
108669         * lib/unistr/u16-strspn.c: New file.
108670         * lib/unistr/u32-strspn.c: New file.
108671         * lib/unistr/u-strspn.h: New file.
108673         * modules/unistr/u8-strstr: New file.
108674         * modules/unistr/u16-strstr: New file.
108675         * modules/unistr/u32-strstr: New file.
108676         * lib/unistr/u8-strstr.c: New file.
108677         * lib/unistr/u16-strstr.c: New file.
108678         * lib/unistr/u32-strstr.c: New file.
108679         * lib/unistr/u-strstr.h: New file.
108681         * modules/unistr/u8-strtok: New file.
108682         * modules/unistr/u16-strtok: New file.
108683         * modules/unistr/u32-strtok: New file.
108684         * lib/unistr/u8-strtok.c: New file.
108685         * lib/unistr/u16-strtok.c: New file.
108686         * lib/unistr/u32-strtok.c: New file.
108687         * lib/unistr/u-strtok.h: New file.
108689         * modules/unistr/u8-uctomb: New file.
108690         * modules/unistr/u16-uctomb: New file.
108691         * modules/unistr/u32-uctomb: New file.
108692         * lib/unistr/u8-uctomb.c: New file.
108693         * lib/unistr/u16-uctomb.c: New file.
108694         * lib/unistr/u32-uctomb.c: New file.
108696         * MODULES.html.sh (Unicode string functions): Add the new modules.
108698 2007-01-08  Bruno Haible  <bruno@clisp.org>
108700         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
108701         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
108702         subdirectories.
108704 2007-01-08  Karl Berry  <karl@gnu.org>
108706         * doc/error.texi: mention that main() fns must set program_name
108707         when progname is used.
108709 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
108711         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
108712         WCTYPE_H is empty, for the benefit of builds from non-distclean
108713         directories.  Problem reported by Eric Blake in
108714         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
108716 2007-01-08  Bruno Haible  <bruno@clisp.org>
108718         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
108719         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
108720         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
108721         PROVIDE_CANONICALIZE_FILENAME_MODE.
108722         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
108724 2007-01-08  Bruno Haible  <bruno@clisp.org>
108726         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
108727         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
108728         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
108729         * lib/fts.c: Likewise.
108730         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
108732 2006-12-25  Bruno Haible  <bruno@clisp.org>
108734         * modules/utf8-ucs4-safe: New file.
108735         * lib/utf8-ucs4-safe.h: New file.
108736         * lib/unistr/utf8-ucs4-safe.c: New file.
108738         * modules/utf16-ucs4-safe: New file.
108739         * lib/utf16-ucs4-safe.h: New file.
108740         * lib/unistr/utf16-ucs4-safe.c: New file.
108742         * MODULES.html.sh (Unicode string functions): Add the new modules.
108744 2007-01-08  Bruno Haible  <bruno@clisp.org>
108746         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
108747         (Depends-on): Add unitypes.
108748         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
108749         (u8_mbtouc_aux): Move out to separate file.
108750         (u8_mbtouc): Use ucs4_t, uint8_t types.
108751         * lib/unistr/utf8-ucs4.c: New file.
108753         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
108754         (Depends-on): Add unitypes.
108755         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
108756         (u16_mbtouc_aux): Move out to separate file.
108757         (u16_mbtouc): Use ucs4_t, uint16_t types.
108758         * lib/unistr/utf16-ucs4.c: New file.
108760         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
108761         (Depends-on): Add unitypes.
108762         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
108763         (u8_uctomb_aux): Move out to separate file.
108764         (u8_uctomb): Use ucs4_t, uint8_t types.
108765         * lib/unistr/ucs4-utf8.c: New file.
108767         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
108768         (Depends-on): Add unitypes.
108769         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
108770         (u16_uctomb_aux): Move out to separate file.
108771         (u16_uctomb): Use ucs4_t, uint16_t types.
108772         * lib/unistr/ucs4-utf16.c: New file.
108774 2006-12-25  Bruno Haible  <bruno@clisp.org>
108776         * modules/unitypes: New file.
108777         * lib/unitypes.h: New file.
108778         * MODULES.html.sh (func_all_modules): New section "Unicode string
108779         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
108780         this section. Add unitypes.
108782 2007-01-08  Bruno Haible  <bruno@clisp.org>
108784         Avoid variable names that conflict with those from libtool.
108785         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
108786         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
108787         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
108788         library_names_spec to acl_library_names_spec, hardcode_* to
108789         acl_hardcode_*.
108790         Reported by Ralf Wildenhues.
108792 2007-01-08  Bruno Haible  <bruno@clisp.org>
108794         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
108795         definition.
108796         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
108797         definition.
108798         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
108799         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
108800         definition.
108801         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
108802         definition.
108803         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
108804         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
108805         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
108806         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
108807         definition.
108808         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
108809         definition.
108810         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
108811         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
108812         GC_USE_<algorithm>.
108813         * lib/gc-libgcrypt.c: Likewise.
108814         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
108815         * modules/gc-arctwo (configure.ac): Likewise.
108816         * modules/gc-des (configure.ac): Likewise.
108817         * modules/gc-hmac-md5 (configure.ac): Likewise.
108818         * modules/gc-hmac-sha1 (configure.ac): Likewise.
108819         * modules/gc-md2 (configure.ac): Likewise.
108820         * modules/gc-md4 (configure.ac): Likewise.
108821         * modules/gc-md5 (configure.ac): Likewise.
108822         * modules/gc-random (configure.ac): Likewise.
108823         * modules/gc-rijndael (configure.ac): Likewise.
108824         * modules/gc-sha1 (configure.ac): Likewise.
108826 2007-01-08  Bruno Haible  <bruno@clisp.org>
108828         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
108829         macro definition.
108830         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
108831         definition.
108832         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
108833         definition.
108834         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
108835         * modules/fcntl-safer (configure.ac): Likewise.
108836         * modules/fopen-safer (configure.ac): Likewise.
108837         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
108838         GNULIB_FWRITEERROR macro definition.
108840 2007-01-08  Bruno Haible  <bruno@clisp.org>
108842         * m4/gnulib-common.m4: New file.
108843         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
108844         (func_get_filelist): Add m4/gnulib-common.m4.
108846 2007-01-08  Bruno Haible  <bruno@clisp.org>
108848         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
108849         command.
108851 2007-01-08  Jim Meyering  <jim@meyering.net>
108853         Use a more robust test for a "can't happen" condition.
108854         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
108855         narrowed the st_size value.  Presuming the "can't happen" condition
108856         is true, that narrowing could conceivably convert an invalid st_size
108857         value into a valid one.  Instead, use a change based on Matthew
108858         Woehlke's original patch.
108860         Slight readability improvement: use an assert-like macro
108861         in place of literal "abort ()" uses.
108862         * lib/fts.c (fts_assert): Define.
108863         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
108864         Use this macro instead of a bare 'abort'.
108866 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
108868         Don't worry about using IRIX 5.3's wctype.h broken definitions;
108869         simply work around them.
108870         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
108871         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
108872         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
108873         declaring.
108874         Don't bother to define as macros, since the standard doesn't require it.
108875         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
108876         longer worry about IRIX 5.3.
108877         (HAVE_WCTYPE_CTMP_BUG): Remove.
108879 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
108881         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
108882         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
108883         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
108884         Problems reported by Georg Schwarz for IRIX 5.3.
108886         * gnulib-tool (autoconf_minversion): Take the maximum version number
108887         found, not the minimum.  Problem reported by James Youngman.
108889 2007-01-03  Karl Berry  <karl@gnu.org>
108891         * doc/error.texi: new file, explaining interaction with progname.
108892         * doc/gnulib.texi: include it.  Update copyright.
108894 2007-01-03  Simon Josefsson  <simon@josefsson.org>
108896         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
108897         AC_CANONICAL_HOST, to improve autobuild outputs.
108899 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
108900             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
108902         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
108903         sockets, server sockets, and other file descriptors.  Count errors
108904         to compute the return value.  Reorder the code a bit to be easier
108905         to follow.  Don't set event bits that were not requested (except
108906         POLLERR and POLLHUP).
108908 2007-01-01  Bruno Haible  <bruno@clisp.org>
108910         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
108912 2007-01-03  Jim Meyering  <jim@meyering.net>
108914         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
108916 2007-01-02  Bruno Haible  <bruno@clisp.org>
108918         * modules/settime (Include): Require timespec.h.
108919         * modules/nanosleep (Include): Likewise.
108921 2007-01-01  Bruno Haible  <bruno@clisp.org>
108923         * gnulib-tool (func_emit_copyright_notice): Bump year.
108924         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
108926 2007-01-01  Bruno Haible  <bruno@clisp.org>
108928         Improve support for OpenBSD.
108929         * build-aux/config.rpath (libname_spec): Export.
108930         (library_names_spec): New variable. Export.
108931         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
108932         library_names_spec from the config.rpath output. Locate shared library
108933         through the name pattern in library_names_spec.
108935 2007-01-01  Eric Blake  <ebb9@byu.net>
108937         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
108939 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
108941         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
108942         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
108943         assume the C locale, and avoid an "eval" that could cause trouble.
108944         Problem with SORT reported by Bob Proulx.
108946         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
108947         Define.  Trivial patch from Henning Nielsen Lund, originally
108948         sent to bug-grep@gnu.org today.
108950 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
108952         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
108953         struct stat.  Problem reported by Henning Nielsen Lund.
108954         * lib/acl.c: Include acl.h first, to check interface.  Don't
108955         bother to include sys/types.h and sys/stat.h again.
108957 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
108959         Import the following change from libc; problem reported by
108960         Sven Verdoolaege.
108962         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
108964         [BZ #1373]
108965         * lib/argp.h: Remove __NTH for __argp_usage inline function.
108967 2006-12-28  Jim Meyering  <jim@meyering.net>
108969         * build-aux/announce-gen: Do not assume that the package
108970         builds any of tar.gz, tar.bz2, and .xdelta files.
108971         Suggestion from Simon Josefsson.
108973 2006-12-28  Simon Josefsson  <simon@josefsson.org>
108975         * modules/announce-gen: New file.
108977 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
108979         * lib/mbchar.h: Just include <wctype.h>; the wctype module
108980         handles its gotchas now.
108981         * lib/mbswidth.c: Likewise.
108982         * lib/wcwidth.h: Likewise.
108983         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
108984         and iswcntrl; the wctype module does this stuff now.
108985         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
108986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
108987         * modules/mbchar (Depends-on): Add wctype.
108988         * modules/mbswidth (Depends-on): Likewise.
108989         * modules/wcwidth (Depends-on): Likewise.
108991 2006-12-27  Eric Blake  <ebb9@byu.net>
108993         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
108994         module uses more than what <wctype.h> is required to provide.
108996 2006-12-26  Eric Blake  <ebb9@byu.net>
108998         * gnulib-tool (sed_extract_prog): Avoid space-tab.
109000 2006-12-26  Eric Blake  <ebb9@byu.net>
109002         * modules/absolute-header: New module.
109003         * modules/fcntl (Depends-on): Depend on it.
109004         * modules/inttypes (Depends-on): Likewise.
109005         * modules/stdint (Depends-on): Likewise.
109006         * modules/sys_stat (Depends-on): Likewise.
109007         * modules/wctype (Depends-on): Likewise.
109008         * MODULES.html.sh (Support for building libraries and
109009         executables): Document it.
109011 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
109013         * gnulib-tool (SED): Remove, undoing previous change.
109014         The problem was that it broke coreutils on Solaris, because
109015         "sed --posix" leaked into a makefile.
109016         (sed): New alias, if 'alias' and GNU sed.
109018 2006-12-24  Jim Meyering  <jim@meyering.net>
109020         Work around an fchownat bug in glibc-2.4:
109021         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
109022         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
109023         in spite of the -P option.
109024         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
109025         New macros.
109026         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
109027         * modules/openat (Files): Add lib/fchownat.c.
109028         * lib/openat.c (fchownat): Don't define here.  Move to...
109029         * lib/fchownat.c: ...this new file.
109031 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
109033         Fix bug reported by Bruno Haible in
109034         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
109035         where quotearg.c didn't compile on Mac OS X 10.2 because it
109036         lacks <wchar.h> and wint_t.
109037         * lib/wctype_.h (__wctype_wint_t): New type.
109038         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
109039         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
109040         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
109041         Arg is now of type __wctype_wint_t, not wint_t.
109042         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
109043         substitute HAVE_WINT_T.
109044         * modules/wctype (Files): Add m4/wint_t.m4.
109045         (wctype.h): Substitute HAVE_WINT_T.
109047 2006-12-23  Bruno Haible  <bruno@clisp.org>
109049         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
109051 2006-12-23  Bruno Haible  <bruno@clisp.org>
109053         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
109054         S_ISLNK.
109055         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
109056         mingw.
109058 2006-12-22  Bruno Haible  <bruno@clisp.org>
109060         * lib/copy-file.c: Include acl.h.
109061         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
109062         Close the file descriptors only after being done with copy_acl.
109063         * modules/copy-file (Depends-on): Add acl.
109065 2006-12-22  Bruno Haible  <bruno@clisp.org>
109067         * gnulib-tool (SED): New variable.
109068         Use $SED instead of sed everywhere.
109070 2006-12-22  Bruno Haible  <bruno@clisp.org>
109072         * modules/no-c++: New file.
109073         * m4/no-c++.m4: New file.
109074         * MODULES.html.sh (Support for building libraries and executables):
109075         Add no-c++.
109077 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
109079         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109080         Include <limits.h>, and use its INT_MAX to rewrite the
109081         j loop so that it does not overflow 'int'.  Problem reported by
109082         Ralf Wildenhues in
109083         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
109084         Play it safe by shifting left by 1 rather than multiplying by 2,
109085         as GCC is less likely to optimize this away when the value
109086         is signed (when it assumes overflow leads to undefined behavior).
109087         Also, don't assume time_t uses two's complement.
109089 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
109091         * MODULES.html.sh: New module wctype.
109092         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
109093         * lib/fnmatch.c: Don't bother to include <wchar.h> before
109094         <wctype.h>, since the new wctype module should fix this.
109095         * lib/quotearg.c: Include <wctype.h> unconditionally, since
109096         the wctype module should arrange for it.
109097         * lib/regex_internal.h: Likewise.
109098         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
109099         since the wctype module should handle this now.
109100         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
109101         * modules/fnmatch (Depends-on): Add wctype.
109102         * modules/quotearg (Depends-on): Likewise.
109103         * modules/regex (Depends-on): Likewise.
109105 2006-12-19  Bruno Haible  <bruno@clisp.org>
109107         * lib/strdup.h [C++]: Wrap definitions in extern "C".
109108         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
109110 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109112         * modules/savewd (Depends-on): Fix dependency on fcntl.
109114 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109116         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
109117         conforms to C99, rather than relying on the user's environment
109118         setting of STDINT_H.
109120 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109121         and Eric Blake  <ebb9@byu.net>
109123         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
109124         This is more consistent with the other defines here.
109125         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
109126         Port to z/OS.  Problem reported by Paul Gilmartin.
109127         Change local vars to use gl_ prefix rather than ac_.
109128         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
109129         with other defines.
109130         * modules/double-slash-root: New module.
109131         * modules/dirname (Files): Remove m4/double-slash-root.m4.
109132         (Depends-on): Add double-slash-root.
109133         * MODULES.html.sh (File system functions): Mention new module.
109135 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
109137         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
109138         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
109139         This is for the benefit of gzip, which doesn't do i18n.
109141 2006-12-12  Jim Meyering  <jim@meyering.net>
109143         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
109144         Reported by Andreas Schwab <schwab@suse.de>.
109146 2006-12-12  Bruno Haible  <bruno@clisp.org>
109148         Merge these changes.
109149         2006-09-05  Bruno Haible  <bruno@clisp.org>
109150         * lib/iconvme.c (iconv_string): No need to save and restore errno when
109151         iconv_alloc succeeded.
109152         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
109153         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
109154         test for " && dest " at the end - dest is always != NULL there. Call
109155         iconv with 4xNULL arguments initially, to reset the state. Call iconv
109156         with 2xNULL arguments, also to flush the state storage. Handle the
109157         IRIX iconv behaviour. Realloc the final result, to throw away unused
109158         memory.
109160 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
109162         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
109163         and fchmodat unconditionally, since glibc 2.4 has them.
109164         Problem reported by Arkadiusz Miskiewicz.
109166 2006-12-10  Bruno Haible  <bruno@clisp.org>
109168         * gnulib-tool (func_import): Show the include files only for those
109169         modules that are copied and specified.
109170         Reported by Karl Berry.
109172 2006-12-08  Jim Meyering  <jim@meyering.net>
109174         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
109175         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
109177         * build-aux/announce-gen: Add two new options, both optional:
109178         --bootstrap-tools=TOOL_LIST
109179               a comma-separated list of tools, e.g.,
109180               autoconf,automake,bison,gnulib
109181         --gnulib-snapshot-date=DATE
109182               if gnulib is in the bootstrap tool list,
109183               then report this as the snapshot date.
109184               If not specified, use the current date/time.
109185               If you specify a date here, be sure it's UTC.
109187 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109189         * tests/test-argp-2.sh: Fix test to match actual output.
109190         (func_compare): Fix sed script to be portable.
109192 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
109194         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
109195         workaround for this case.  It is not autoconfigured now; offhand
109196         it's hard to see how to autoconfigure it.
109198 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
109200         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
109201         a directory that is about to be chowned.  Such a directory's
109202         initial file permissions should permit the owner only and this
109203         should not be changed until after the chown, since the group and
109204         other bits would be incorrect if they granted permission before
109205         the chown.
109207         Fix porting problem for iswctype reported by Georg Schwarz in:
109208         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
109209         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
109210         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
109211         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
109212         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
109214 2006-12-03  Jim Meyering  <jim@meyering.net>
109216         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
109217         p->fts_statp may not yet be defined.
109218         (fts_read): Instead, set it in the caller, once p->fts_statp is
109219         sure to be defined, and corresponds to a top-level directory.
109220         This bug made du -x fail.  Here's the coreutils test case:
109221         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
109222         Reported by Mike Frysinger.
109224 2006-12-01  Jim Meyering  <jim@meyering.net>
109226         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
109227         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
109228         Reported by Simon Josefsson.
109230 2006-11-30  Jim Meyering  <jim@meyering.net>
109232         * m4/warning.m4: Use the all-permissive copyright notice
109233         recommended by RMS (rather than LGPL).
109234         * m4/vararrays.m4: Likewise.
109235         * m4/flexmember.m4: Likewise.
109237 2006-11-29  Bruno Haible  <bruno@clisp.org>
109239         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109240         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
109241         using +=.
109242         Reported by Simon Josefsson <simon@josefsson.org>.
109244 2006-11-28  James Youngman  <jay@gnu.org>
109246         * README: Advise users that they might find the bug-gnulib@gnu.org
109247         and autotools-announce@gnu.org mailing lists useful.
109249 2006-11-28  Bruno Haible  <bruno@clisp.org>
109251         * m4/ptrdiff_max.m4: Remove file.
109253 2006-11-21  Bruno Haible  <bruno@clisp.org>
109255         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
109256         _AC_COMPUTE_INT.
109257         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109258         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
109259         _AC_COMPUTE_INT.
109260         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109261         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
109262         _AC_COMPUTE_INT.
109263         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109265 2006-11-28  Jim Meyering  <jim@meyering.net>
109267         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
109268         warning from "gcc -Wshadow" about shadowing the builtin.
109270 2006-11-27  Bruno Haible  <bruno@clisp.org>
109272         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
109273         _AC_COMPUTE_INT.
109274         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109276 2006-11-27  Bruno Haible  <bruno@clisp.org>
109277             Paul Eggert  <eggert@cs.ucla.edu>
109279         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
109281 2006-11-26  Bruno Haible  <bruno@clisp.org>
109283         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109284         noinst_LTLIBRARIES.
109286 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
109287             Bruno Haible  <bruno@clisp.org>
109289         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
109290         if compiling with "gcc -ansi".
109292 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
109294         Fix some incompatibilities with gcc -ansi -pedantic.
109295         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
109296         if compiling pedantically with GCC, unless it's C99 or later.
109297         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
109298         it mishandles gcc -ansi -pedantic as well.
109299         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
109300         if gcc -pedantic.
109301         * lib/regexec.c (check_node_accept_bytes): Don't use auto
109302         initializers for struct if -pedantic, unless it's C99 or later.
109304 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
109306         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
109307         Don't close an fd more than once. Identical atimes indicate
109308         success, not failure.
109310 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
109312         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
109314 2006-11-23  Jim Meyering  <jim@meyering.net>
109316         * build-aux/announce-gen: New file.  From coreutils.
109318 2006-11-22  Jim Meyering  <jim@meyering.net>
109320         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
109321         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
109322         (fts_read): Use a temporary to narrow the overused st_size member
109323         before using it in a switch statement.  Reported by Matthew Woehlke.
109325         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
109326         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
109328 2006-11-20  Bruno Haible  <bruno@clisp.org>
109330         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
109331         changequote instead of pairs of brackets.
109332         Reported by Andreas Schwab <schwab@suse.de>.
109334 2006-11-21  Jim Meyering  <jim@meyering.net>
109336         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
109337         so as to remain compatible with older compilers.
109338         Patch from Michael Deutschmann.
109340 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
109342         * MODULES.html.sh (File system functions): Add openat.
109344         * lib/openat.h (rpl_fstatat): New macro, if
109345         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
109346         (fstatat): Define to rpl_fstatat under the same conditions,
109347         unless COMPILING_FSTATAT.
109348         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
109349         seems to have the bug.
109350         * lib/fstatat.c: New file.
109351         * modules/openat (Files): Add it.
109353 2006-11-20  Bruno Haible  <bruno@clisp.org>
109355         * Makefile: New file.
109357 2006-11-20  Jim Meyering  <jim@meyering.net>
109359         The beginnings of syntax-related checks for gnulib.
109360         * lib/Makefile: New file.
109361         * lib/t-idcache: New script.  Ensure that the two halves of
109362         idcache.c stay in sync.
109364         * lib/idcache.c: Adjust comments in user- and group- portions to
109365         be more accurate, and to be consistent with one another.
109367 2006-11-20  Jim Meyering  <jim@meyering.net>
109369         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
109370         continue using the flexible array member (thus, this module performs
109371         half as many malloc calls), with the addition that...
109372         (getgroup, getuser): Consistently record a non-match via an empty
109373         "name" string, and map an empty string match to a NULL return value.
109374         * modules/idcache (Depends-on): Re-add flexmember.
109376         * lib/idcache.c (getuser): Remove all uses of the register keyword.
109377         (getuidbyname, getgroup, getgidbyname): Likewise.
109379         Use cleaner syntax: NULL rather than 0.
109380         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
109382 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
109384         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
109385         It mishandled the case where the group was missing.
109386         Problem reported by Greg Schafer.
109387         * modules/idcache: Likewise.
109389 2006-11-18  Jim Meyering  <jim@meyering.net>
109391         * check-module (%exempt_header): Add exception for some
109392         conditionally-included headers.
109394         * modules/i-ring (Depends-on): Add verify.
109395         (License): Change to LGPL.
109397 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
109399         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
109400         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
109401         and inttostr.h.  Use snprintf rather than uinttostr, so that
109402         LGPLed code doesn't depend on GPLed.
109404 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
109406         * modules/inline (License): Change from GPL to LGPL.
109408 2006-11-17  Jim Meyering  <jim@meyering.net>
109410         * modules/d-type (License): Switch to LGPL.
109412 2006-11-15  Bruno Haible  <bruno@clisp.org>
109414         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
109416 2006-11-15  Eric Blake  <ebb9@byu.net>
109418         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
109419         the module dependency.
109421 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109422             Bruno Haible  <bruno@clisp.org>
109424         * gnulib-tool (func_create_testdir): Add license consistency check.
109426 2006-11-15  Eric Blake  <ebb9@byu.net>
109428         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
109429         random "(cached)" in configure output.
109431 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109433         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
109434         test for conforming inttypes.h is both announced and cached.
109436         * MODULES.html.sh (seen_modules, seen_files): New variables.
109437         (func_module): Rewrite to use a few less gnulib-tool and sed
109438         invocations.  Avoid a couple of quadratic algorithms for ...
109439         (missed_modules, missed_files): ... these, with ...
109440         (func_append, func_tmpdir): ... these new functions, from
109441         gnulib-tool.  Analogously, install traps for cleanup.
109443         * tests/test-gc.c (main): Remove unused variables.
109444         * tests/test-read-file.c: Include stdlib.h, for 'free'.
109446 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
109448         * modules/inttostr (License): Change to LGPL.
109450 2006-11-14  Eric Blake  <ebb9@byu.net>
109452         * modules/tempname (License): Change to LGPL.
109454 2006-11-14  Eric Blake  <ebb9@byu.net>
109456         * doc/functions.texi (Function Portability): *printf functions on
109457         Cygwin now understand all POSIX size specifiers.
109459 2006-11-14  Bruno Haible  <bruno@clisp.org>
109461         * modules/c-ctype (License): Change to LGPL.
109463 2006-11-12  Bruno Haible  <bruno@clisp.org>
109465         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
109466         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
109467         for GNOME libraries, for which the include files are installed in
109468         subdirectories of $prefix/include.
109470 2006-11-12  Bruno Haible  <bruno@clisp.org>
109472         * m4/lib-link.m4: Require at least autoconf-2.54.
109473         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
109474         name to underscores for the --with option.
109476 2006-11-13  Bruno Haible  <bruno@clisp.org>
109478         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
109479         the tests directory.
109480         Reported by Ralf Wildenhues.
109482 2006-11-13  Bruno Haible  <bruno@clisp.org>
109484         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
109485         (func_emit_initmacro_end): Undo the override here.
109486         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
109487         Works around the famous automake error in coreutils.
109489 2006-11-13  Eric Blake  <ebb9@byu.net>
109491         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
109492         element, not its node.
109494 2006-11-12  Bruno Haible  <bruno@clisp.org>
109496         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
109497         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
109499 2006-11-12  Bruno Haible  <bruno@clisp.org>
109501         * gnulib-tool: New option --local-symlink.
109502         (func_usage): Document it.
109503         (lsymbolic): New variable.
109504         (func_import, func_create_testdir): If --symlink was not specified,
109505         test whether --local-symlink was specified and the file comes from
109506         the local_gnulib_dir.
109508 2006-11-12  Bruno Haible  <bruno@clisp.org>
109510         * gnulib-tool (func_ln): New function.
109511         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
109513 2006-11-12  Bruno Haible  <bruno@clisp.org>
109515         Finish support for source files in subdirectories.
109516         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
109517         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
109518         AUTOMAKE_OPTIONS.
109519         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
109521 2006-11-12  Bruno Haible  <bruno@clisp.org>
109523         * gnulib-tool (func_get_automake_snippet): Synthesize also an
109524         EXTRA_lib_SOURCES augmentation.
109525         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
109527 2006-11-12  Jim Meyering  <jim@meyering.net>
109529         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
109530         file descriptors.  This also averts a failure on systems with
109531         native openat support when a traversed directory lacks "x" access.
109532         * lib/fts_.h: Include "i-ring.h"
109533         (struct FTS) [fts_fd_ring]: New member.
109534         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
109535         (FCHDIR): Add parentheses.
109536         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
109537         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
109538         When descending, rather than simply closing the previous
109539         fts_cwd_fd value, push that file descriptor onto the ring.
109540         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
109541         (fts_open): Initialize the new fd_ring member.
109542         (fts_close): Clear the ring.
109543         (fts_safe_changedir): When possible, use our new fd_ring to skip
109544         the diropen and fstat and dev/ino comparison that would normally
109545         accompany a virtual `chdir ("..")'.
109547         * modules/fts (Depends-on): Add i-ring.
109548         * modules/i-ring: New module.
109549         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
109550         * m4/i-ring.m4: New file.
109552 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109554         * gnulib-tool (func_create_testdir): Fix replacement of
109555         `build-aux' in configure.ac.  Run autotools in gltests
109556         subdirectory.
109557         (func_create_testdir, func_create_megatestdir, test): There is
109558         no need for '--force' in most autotool invocations in a new
109559         tree.  Actually fail the whole test if any of the tools, or the
109560         configure or make stages fail.
109562         Sync from Automake.
109563         * build-aux/gnupload: Revert last change.  Add pointer to upload
109564         instructions of the GNU Maintenance Instructions.
109565         Suggestion by Karl Berry.
109567 2006-11-10  Jim Meyering  <jim@meyering.net>
109569         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
109571 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
109573         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
109574         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
109575         (bind_textdomain_codeset) [! ENABLE_NLS]:
109576         Evaluate all the arguments.  That way, callers get compatible behavior
109577         if the arguments have side effects.  Also, it avoids some GCC
109578         diagnostics in some cases; Joel E. Denny reported problems when Bison
109579         was configured with --enable-gcc-warnigs.
109581 2006-11-10  Jim Meyering  <jim@meyering.net>
109583         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
109584         relevant options in CFLAGS (like -O, -fno-inline) are taken into
109585         account.
109587 2006-11-10  Jim Meyering  <jim@meyering.net>
109589         * modules/inline: New file/module.
109590         * modules/xalloc (Files): Remove m4/inline.m4.
109591         (Depends-on): Add inline, instead.
109592         * modules/oset: Likewise.
109593         * modules/list: Likewise.
109595 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
109597         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
109598         Problem reported by Matthew Woehlke.
109600 2006-11-09  Bruno Haible  <bruno@clisp.org>
109602         * lib/tempname.c (gen_tempname): Remove variant that invokes
109603         __gen_tempname.
109604         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
109605         __gen_tempname.
109607 2006-11-08  Bruno Haible  <bruno@clisp.org>
109609         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
109610         to 'yes' instead of 'cross-compiling'.
109612 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
109614         * lib/quotearg.h (quotearg_free): New decl.
109615         * lib/quotearg.c (quotearg_free): New function.
109616         (slot0, nslots, slotvec0, slotvec):
109617         Now file-scope so that quotearg_free can get at them.
109619 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109621         Sync from Automake.
109622         * build-aux/gnupload: Add missing 'gnu' to example URL.
109623         Report by Karl Berry.
109625 2006-11-08  Bruno Haible  <bruno@clisp.org>
109627         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
109628         Suggested by Paul Eggert.
109630 2006-11-08  Jim Meyering  <jim@meyering.net>
109632         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
109633         It's already included if !_LIBC.
109634         (fts_safe_changedir): Add a comment.
109636 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
109638         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
109639         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
109640         Matthew Woehlke.
109642         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
109643         definitions up, to avoid colliding with change below.
109644         (static_inline) [HAVE_INLINE]: New macro.
109645         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
109646         Provide extern decls when !HAVE_INLINE.  Do not define unless
109647         static_inline is defined, either by us or by xmalloc.c.  Use
109648         static_inline rather than static inline.
109649         (XCALLOC): Optimize sizeof(T) = 1 case.
109650         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
109652 2006-11-07  Bruno Haible  <bruno@clisp.org>
109654         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
109655         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
109656         AC_C_INLINE.
109657         * modules/xalloc (Files): Add m4/inline.m4.
109659 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109661         * README: Fix typo.
109662         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
109663         (Miscellanous Notes): ...from this.
109665 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
109667         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
109668         Mention that offsetof should be used instead of sizeof.
109669         From Bruno Haible.
109671 2006-11-07  Bruno Haible  <bruno@clisp.org>
109673         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
109675 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
109677         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
109678         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
109679         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
109680         (gl_tree_add_before, gl_tree_add_after):
109681         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
109682         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
109683         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
109684         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
109685         (gl_linked_add_after, gl_linked_add_at): Likewise.
109686         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
109687         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
109688         (gl_tree_add_before, gl_tree_add_after): Likewise.
109689         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
109690         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
109691         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
109693 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109695         * lib/gl_oset.h: Use C comment style, not C++ comment style.
109697 2006-11-06  Bruno Haible  <bruno@clisp.org>
109699         * m4/inline.m4: New file.
109700         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
109701         * modules/list (Files): Add m4/inline.m4.
109702         * modules/oset (Files): Likewise.
109704 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
109706         * lib/idcache.c: Include <stddef.h>, for offsetof.
109707         (struct userid.name): Change from char * to a flexible array member.
109708         All uses changed.
109709         * modules/idcache (Depends-on): Add flexmember.
109711         * MODULES.html.sh (Core language properties): New module flexmember.
109712         * modules/flexmember, m4/flexmember.m4: New files.
109714         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
109715         inline functions that are identical with the old xnmalloc_inline,
109716         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
109717         that we can avoid some unnecessary integer multiplications and
109718         divisions in the common case where the element size is known at
109719         compile time.
109720         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
109721         needed.
109722         (xnboundedmalloc): Remove.
109723         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
109724         arguments, for consistency with rest of this header.
109725         (xcharalloc): Rewrite using XNMALLOC.
109726         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
109727         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
109728         versions have been moved to lib/xalloc.h and renamed to be the
109729         non-*_inline versions.
109730         (xmalloc, xrealloc): Implement without reference to the xnmalloc
109731         and xnrealloc functions, since those functions are now inline and
109732         now call us.
109733         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
109734         renaming described above.
109735         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
109736         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
109737         captures the dependency in AC_C_INLINE.
109739         New module canonicalize-lgpl, proposed by Charles Wilson in
109740         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
109741         with a few small changes afterwards.
109742         * MODULES.html.sh (File system functions): New module
109743         canonicalize-lgpl.
109744         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
109745         and canonicalize_file_name.
109746         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
109747         * modules/canonicalize-lgpl: New files.
109749 2006-11-05  Bruno Haible  <bruno@clisp.org>
109751         * gnulib-tool (func_import, func_create_testdir): Create directories
109752         also for files in subdirectories of lib/.
109754 2006-11-05  Bruno Haible  <bruno@clisp.org>
109756         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
109757         ANSI C compliant.
109759 2006-11-03  Bruno Haible  <bruno@clisp.org>
109761         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
109762         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
109763         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
109764         (xnboundedmalloc): New inline function.
109765         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
109766         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
109767         xmalloc.
109768         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
109769         xmalloc.
109770         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
109771         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
109772         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
109773         xmalloc.
109774         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
109775         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
109776         xmalloc.
109777         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
109778         gl_tree_add_after): Use XMALLOC instead of xmalloc.
109779         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
109780         xmalloc.
109781         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
109782         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
109783         gl_tree_add_after): Use XMALLOC instead of xmalloc.
109784         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
109785         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
109786         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
109787         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
109789 2006-11-03  Bruno Haible  <bruno@clisp.org>
109791         * lib/c-ctype.h [C++]: Define functions without name mangling.
109792         * lib/fwriteerror.h [C++]: Likewise.
109793         * lib/gcd.h [C++]: Likewise.
109794         * lib/linebreak.h [C++]: Likewise.
109796 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
109798         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
109799         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
109800         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
109801         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
109802         Check for functions and headers just once.
109803         Check for declaration of canonicalize_file_name.
109804         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
109806 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
109808         * gnulib-tool (func_import): Fix typo in actioncmd.
109810 2006-11-02  Bruno Haible  <bruno@clisp.org>
109812         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
109813         newline sequence in the Makefile.am snippet as a space, like "make"
109814         does.
109815         Reported by Roger Persson <perrog@gmail.com>.
109817 2006-11-01  Bruno Haible  <bruno@clisp.org>
109819         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
109820         already declared in <string.h>.
109821         * lib/strcase.h (strncasecmp): Don't declare it if yes.
109823 2006-11-01  Bruno Haible  <bruno@clisp.org>
109825         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
109826         * lib/strcase.h: Include <string.h>.
109827         (strcasecmp): Define to rpl_strcasecmp here.
109829 2006-11-01  Bruno Haible  <bruno@clisp.org>
109831         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
109833 2006-11-01  Eric Blake  <ebb9@byu.net>
109835         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
109837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
109839 2006-10-29  Bruno Haible  <bruno@clisp.org>
109841         Make it compile in C++ mode.
109842         * lib/full-write.c (full_rw): Add a cast.
109844 2006-11-01  Bruno Haible  <bruno@clisp.org>
109846         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
109847         be POSIX compliant.
109848         Reported by Roger Persson <perrog@gmail.com>.
109850 2006-11-01  Eric Blake  <ebb9@byu.net>
109852         * lib/getopt_.h: Fix comments.
109854 2006-10-31  Eric Blake  <ebb9@byu.net>
109856         * modules/tmpdir (Depends-on): Add sys_stat.
109857         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
109858         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
109859         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
109860         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
109861         tempname.
109863 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
109865         Avoid some C++ diagnostics reported by Bruno Haible.
109866         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
109867         xmalloc.
109868         (quotearg_alloc): Use xcharalloc rather than xmalloc.
109869         (struct slotvec): Move to top level.
109870         (quotearg_n_options): Rewrite to avoid xmalloc.
109871         * lib/xalloc.h (xcharalloc): New function.
109872         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
109873         [defined __cplusplus]: Add function template that provides result
109874         type propagation.  This part of the change is from Bruno Haible.
109876 2006-10-29  Bruno Haible  <bruno@clisp.org>
109878         Make it compile in C++ mode.
109879         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
109880         * lib/strnlen1.c (strnlen1): Cast memchr result.
109881         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
109882         * lib/clean-temp.c (string_equals, string_hash): Add casts.
109883         (create_temp_dir): Rename local variable 'template'.
109884         (compile_csharp_using_sscli): Add cast.
109885         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
109886         * lib/findprog.c (find_in_path): Likewise.
109887         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
109888         * lib/wait-process.c (register_slave_subprocess): Likewise.
109890 2006-10-22  Bruno Haible  <bruno@clisp.org>
109892         * modules/tsearch: New file.
109893         * lib/tsearch.h: New file.
109894         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
109895         * m4/tsearch.m4: New file.
109896         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
109898 2006-10-29  Eric Blake  <ebb9@byu.net>
109900         * lib/arcfour.c: Assume config.h.
109901         * lib/arctwo.c: Likewise.
109902         * lib/base64.c: Likewise.
109903         * lib/check-version.c: Likewise.
109904         * lib/crc.c: Likewise.
109905         * lib/des.c: Likewise.
109906         * lib/gc-gnulib.c: Likewise.
109907         * lib/gc-libgcrypt.c: Likewise.
109908         * lib/gc-pbkdf2-sha1.c: Likewise.
109909         * lib/getaddrinfo.c: Likewise.
109910         * lib/getdelim.c: Likewise.
109911         * lib/getline.c: Likewise.
109912         * lib/hmac-md5.c: Likewise.
109913         * lib/hmac-sha1.c: Likewise.
109914         * lib/iconvme.c: Likewise.
109915         * lib/md2.c: Likewise.
109916         * lib/md4.c: Likewise.
109917         * lib/memxor.c: Likewise.
109918         * lib/read-file.c: Likewise.
109919         * lib/readline.c: Likewise.
109920         * lib/rijndael-alg-fst.c: Likewise.
109921         * lib/rijndael-api-fst.c: Likewise.
109922         * lib/xgetdomainname.c: Likewise.
109924 2006-10-28  Eric Blake  <ebb9@byu.net>
109926         * lib/xstrndup.c: Assume config.h.
109928 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
109930         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
109931         stat-macros.h is now for our own macros, whereas stat_h is for
109932         macros in the <sys/stat.h> name space.
109933         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
109934         (STAT_MACROS_H): Remove.
109935         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
109936         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
109937         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
109938         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
109939         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
109940         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
109941         Move these macros to ...
109942         * lib/stat_.h: here.  Don't include stat-macros.h.
109943         * lib/canonicalize.c: Don't include stat-macros.h.
109944         * lib/chown.c: Likewise.
109945         * lib/euidaccess.c: Likewise.
109946         * lib/file-type.c: Likewise.
109947         * lib/filemode.c: Likewise.
109948         * lib/glob.c: Likewise.
109949         * lib/isapipe.c: Likewise.
109950         * lib/lchown.c: Likewise.
109951         * lib/lstat.c: Likewise.
109952         * lib/mkdir-p.c: Likewise.
109953         * lib/rmdir.c: Likewise.
109954         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
109955         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
109956         unless mkdir isn't declared, to speed up 'configure'.
109957         Always create sys/stat.h, since it's unlikely any real sys/stat.h
109958         would define all the S_* symbols.
109959         * modules/canonicalize (Depends-on):
109960         Depend on sys_stat, not stat-macros.
109961         * modules/chown: Likewise.
109962         * modules/euidaccess: Likewise.
109963         * modules/filemode: Likewise.
109964         * modules/file-type: Likewise.
109965         * modules/glob: Likewise.
109966         * modules/isapipe: Likewise.
109967         * modules/lchown: Likewise.
109968         * modules/lstat: Likewise.
109969         * modules/mkancesdirs: Likewise.
109970         * modules/rmdir: Likewise.
109971         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
109972         * modules/modechange: Likewise.
109973         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
109974         (configure.ac): Remove gl_STAT_MACROS.
109975         * modules/sys_stat (Depends-on): Remove stat-macros.
109977 2006-10-27  Bruno Haible  <bruno@clisp.org>
109979         * m4/signed.m4: Remove file.
109980         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
109981         invocation.
109982         * modules/vasnprintf (Files): Remove m4/signed.m4.
109984 2006-10-27  Bruno Haible  <bruno@clisp.org>
109986         Update to GNU gettext 0.16.
109987         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
109988         m4/inttypes-h.m4, m4/signed.m4.
109989         * m4/gettext.m4: Update to GNU gettext 0.16.
109990         * m4/intl.m4: New file, from GNU gettext.
109991         * m4/intldir.m4: New file, from GNU gettext.
109992         * config/srclist.txt: Update
109994 2006-10-27  Eric Blake  <ebb9@byu.net>
109996         * MODULES.html.sh: Document tempname.
109997         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
109998         dependencies.
109999         (Files): Move lib/tempname.c...
110000         * modules/tempname: ...to this new module.
110001         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
110002         (gl_PREREQ_TEMPNAME): Move...
110003         * m4/tempname.m4: ...to this new file.
110004         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
110005         * modules/sys_stat (Depends-on): Add stat-macros.
110006         * lib/stat_.h (includes): Pick up stat macros.
110007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
110008         if stat macros are broken.
110009         * lib/tempname.c (includes): No need to include "stat-macros.h".
110010         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
110011         (direxists, __path_search) [!_LIBC]: Don't compile these in
110012         gnulib; the tmpdir module covers that.
110013         * lib/tempname.h: New file.
110015 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
110017         * COPYING: Explain how gnulib-tool converts licence headers.
110018         Almost all wording by Eric Blake.
110020 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
110022         * lib/mbchar.h (is_basic_table): Make read-only.
110023         * lib/mbchar.c (is_basic_table): Likewise.
110024         Reported by John Darrington.
110026 2006-10-25  Bruno Haible  <bruno@clisp.org>
110028         * lib/progname.h (set_program_name): Undefine before defining.
110030 2006-10-25  Bruno Haible  <bruno@clisp.org>
110032         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
110033         false for non-gcc C++ compilers.
110034         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
110036 2006-10-24  Bruno Haible  <bruno@clisp.org>
110038         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
110039         iconv implementations like Irix iconv.
110041 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110043         * modules/vararrays: New file.
110044         * m4/vararrays.m4: New file, taken from diffutils.
110045         * MODULES.html.sh: New module vararrays.
110047 2006-10-24  Karl Berry  <karl@gnu.org>
110049         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
110050         Don't call GNU Unix.
110052 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110054         * users.txt: Add Libtool.
110056         Sync from Libtool:
110058         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110060         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
110061         to gnulib's policy of including config.h unconditionally.
110063 2006-10-24  Bruno Haible  <bruno@clisp.org>
110065         * modules/wcwidth (Files): Add m4/wint_t.m4.
110066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
110067         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
110069 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110071         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
110072         to pacify GCC with some -W flags enabled.  Problem reported by
110073         Bruno Haible.
110075 2006-10-24  Jim Meyering  <jim@meyering.net>
110077         * MODULES.html.sh: Remove uinttostr.  It's not a module.
110078         Reported by Karl Berry.
110080 2006-10-23  Bruno Haible  <bruno@clisp.org>
110082         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
110084 2006-10-24  Bruno Haible  <bruno@clisp.org>
110086         * lib/gl_list.h: Use C comment style, not C++ comment style.
110088 2006-10-23  Eric Blake  <ebb9@byu.net>
110090         * lib/getaddrinfo.c (includes): Add missing include.
110092 2006-10-23  Bruno Haible  <bruno@clisp.org>
110093             Paul Eggert  <eggert@cs.ucla.edu>
110095         Ability to rename obstack_free.
110096         * lib/obstack.h (__obstack_free): New macro. Declare instead of
110097         obstack_free.
110098         (obstack_free): Invoke the __obstack_free macro.
110099         * lib/obstack.c (obstack_free): Use __obstack_free macro.
110101 2006-10-23  Bruno Haible  <bruno@clisp.org>
110102             Paul Eggert  <eggert@cs.ucla.edu>
110104         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
110105         __argc, __argv from the declaration. (They are defined as macros on
110106         mingw.)
110108 2006-10-22  Bruno Haible  <bruno@clisp.org>
110110         * doc/gnulib-intro.texi: New file.
110111         * doc/gnulib.texi: Include it.
110113 2006-10-21  Bruno Haible  <bruno@clisp.org>
110115         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
110116         "Introduction", "Miscellanous Notes", "Particular Modules".
110118 2006-10-21  Bruno Haible  <bruno@clisp.org>
110120         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110121         Change mostlyclean-local rule to avoid sh syntax error from bash
110122         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
110124 2006-10-23  Jim Meyering  <jim@meyering.net>
110126         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
110127         in place of snprintf.
110129         * modules/inttostr (Files): Add lib/uinttostr.c.
110130         * lib/uinttostr.c (inttostr): New file/function.
110131         * lib/inttostr.h (uinttostr): Declare.
110132         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
110133         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
110134         Add uinttostr.
110135         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
110137 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110139         * lib/canonicalize.c (ELOOP): Define if not already defined.
110140         Problem reported by Bruno Haible in
110141         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
110143 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110145         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
110146         Problem reported by Perry Smith and Ville Laurikari.
110148         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
110149         uses.
110151 2006-10-19  Bruno Haible  <bruno@clisp.org>
110153         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
110154         for mingw.
110156 2006-10-19  Bruno Haible  <bruno@clisp.org>
110158         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
110159         Needed for mingw.
110161 2006-10-19  Bruno Haible  <bruno@clisp.org>
110163         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
110165 2006-10-19  Bruno Haible  <bruno@clisp.org>
110167         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
110168         it.
110170 2006-10-19  Bruno Haible  <bruno@clisp.org>
110172         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
110173         invocation.
110175 2006-10-19  Bruno Haible  <bruno@clisp.org>
110177         * gnulib-tool (func_create_testdir): Don't include ftruncate and
110178         mountlist by default.
110180 2006-10-16  Bruno Haible  <bruno@clisp.org>
110182         * lib/c-strstr.c: Include c-strstr.h.
110184 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110186         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
110187         in a slash.
110189 2006-10-18  Bruno Haible  <bruno@clisp.org>
110191         * lib/lock.h [C++]: Wrap definitions in extern "C".
110193 2006-10-18  Bruno Haible  <bruno@clisp.org>
110195         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
110196         gl_LIBOBJS list.
110198 2006-10-18  Bruno Haible  <bruno@clisp.org>
110200         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
110202 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
110204         * lib/xstrtol.h: Include gettext.h.
110205         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
110206         Problem reported by Eric Blake.
110207         * modules/xstrtol (Depends-on): Add gettext-h.
110209 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
110211         * lib/strftime.c (advance): New macro.
110212         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
110213         incomplete type, so you can't add 0 to it.  Problem and patch
110214         reported by Eelco Dolstra for dietlibc.
110216 2006-10-18  Jim Meyering  <jim@meyering.net>
110218         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
110219         type for a local, and rename it: s/up/user_proc/.
110221 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
110223         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
110224         READ_UTMP_USER_PROCESS.
110225         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
110227 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
110229         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
110230         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
110232 2006-10-17  Eric Blake  <ebb9@byu.net>
110234         * lib/sigprocmask.c (sigprocmask): Fix typo.
110236         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
110238         * modules/clean-temp (Makefile.am): Don't add to make output...
110239         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
110240         config.h.
110242 2006-10-17  Bruno Haible  <bruno@clisp.org>
110244         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
110245         differently if DEFAULT_TEXT_DOMAIN is set.
110247 2006-10-16  Bruno Haible  <bruno@clisp.org>
110249         * lib/clean-temp.c: Include fwriteerror.h.
110251 2006-10-16  Bruno Haible  <bruno@clisp.org>
110253         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
110255 2006-10-16  Bruno Haible  <bruno@clisp.org>
110257         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
110258         * lib/sigprocmask.h: Include <sys/types.h>.
110259         (sigset_t): Use the system's definition if present.
110261 2006-10-17  Eric Blake  <ebb9@byu.net>
110263         * lib/xvasprintf.c (includes): Assume config.h.
110264         * lib/xasprintf.c (includes): Likewise.
110266 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
110268         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
110269         at least as wide as intmax_t.
110271 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
110273         (Imported from Automake.)
110274         * build-aux/gnupload: Update to version 1.1 of directive file.
110276 2006-10-16  Eric Blake  <ebb9@byu.net>
110278         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
110279         match Automake 1.10a.
110281 2006-10-14  Bruno Haible  <bruno@clisp.org>
110283         * modules/sigprocmask: New file.
110284         * lib/sigprocmask.h: New file.
110285         * lib/sigprocmask.c: New file.
110286         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
110287         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
110288         request sigprocmask.o.
110289         (gl_PREREQ_SIGPROCMASK): New macro.
110290         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
110291         (Depends-on): Add sigprocmask.
110292         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
110293         gt_SIGNALBLOCKING. Test for 'raise' only once.
110294         * lib/fatal-signal.c: Include sigprocmask.h.
110295         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
110296         unblock_fatal_signals): Define always.
110297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
110298         sigprocmask.
110300 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110302         Sync from Automake.
110303         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
110304         which incorrectly sets the mode of an existing destination
110305         directory.  In some cases the unpatched install-sh could do the
110306         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
110307         system.  We hope this is rare in practice, but it's clearly worth
110308         fixing.  Problem reported by Alex Unleashed in
110309         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
110310         Also, don't bother to check for -m bugs unless we're using -m;
110311         suggested by Stepan Kasal.
110313 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110315         Sync from Automake.
110316         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
110317         `-c' flag, so they appear at the same position as in %FASTDEP%
110318         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
110319         which ignores unknown options only after the first non-option.
110320         Bug report against M4 by Nelson H. F. Beebe.
110322 2006-10-13  Jim Meyering  <jim@meyering.net>
110324         Fix a bug in yesterday's change.
110325         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
110326         p->fts_statp->st_dev would be used uninitialized.
110327         Ensures that we always call fts_stat on the very first entry.
110328         Miklos Szeredi reported that find -xdev stopped working.
110330 2006-10-12  Bruno Haible  <bruno@clisp.org>
110332         * gnulib-tool (func_get_automake_snippet): Append an automatically
110333         computed EXTRA_DIST augmentation.
110334         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
110335         * modules/alloca-opt (Makefile.am): Likewise.
110336         * modules/allocsa (Makefile.am): Likewise.
110337         * modules/arcfour (Makefile.am): Likewise.
110338         * modules/arctwo (Makefile.am): Likewise.
110339         * modules/argmatch (Makefile.am): Likewise.
110340         * modules/argz (Makefile.am): Likewise.
110341         * modules/atexit (Makefile.am): Likewise.
110342         * modules/backupfile (Makefile.am): Likewise.
110343         * modules/byteswap (Makefile.am): Likewise.
110344         * modules/c-strtod (Makefile.am): Likewise.
110345         * modules/c-strtold (Makefile.am): Likewise.
110346         * modules/calloc (Makefile.am): Likewise.
110347         * modules/canon-host (Makefile.am): Likewise.
110348         * modules/canonicalize (Makefile.am): Likewise.
110349         * modules/chdir-long (Makefile.am): Likewise.
110350         * modules/chdir-safer (Makefile.am): Likewise.
110351         * modules/check-version (Makefile.am): Likewise.
110352         * modules/chown (Makefile.am): Likewise.
110353         * modules/cloexec (Makefile.am): Likewise.
110354         * modules/close-stream (Makefile.am): Likewise.
110355         * modules/closeout (Makefile.am): Likewise.
110356         * modules/crc (Makefile.am): Likewise.
110357         * modules/csharpexec (Makefile.am): Likewise.
110358         * modules/cycle-check (Makefile.am): Likewise.
110359         * modules/des (Makefile.am): Likewise.
110360         * modules/dev-ino (Makefile.am): Likewise.
110361         * modules/dirfd (Makefile.am): Likewise.
110362         * modules/dirname (Makefile.am): Likewise.
110363         * modules/dup2 (Makefile.am): Likewise.
110364         * modules/eealloc (Makefile.am): Likewise.
110365         * modules/error (Makefile.am): Likewise.
110366         * modules/euidaccess (Makefile.am): Likewise.
110367         * modules/exclude (Makefile.am): Likewise.
110368         * modules/exitfail (Makefile.am): Likewise.
110369         * modules/fcntl-safer (Makefile.am): Likewise.
110370         * modules/fcntl (Makefile.am): Likewise.
110371         * modules/file-type (Makefile.am): Likewise.
110372         * modules/fileblocks (Makefile.am): Likewise.
110373         * modules/filemode (Makefile.am): Likewise.
110374         * modules/filenamecat (Makefile.am): Likewise.
110375         * modules/fnmatch (Makefile.am): Likewise.
110376         * modules/fopen-safer (Makefile.am): Likewise.
110377         * modules/fpending (Makefile.am): Likewise.
110378         * modules/fprintftime (Makefile.am): Likewise.
110379         * modules/free (Makefile.am): Likewise.
110380         * modules/fsusage (Makefile.am): Likewise.
110381         * modules/ftruncate (Makefile.am): Likewise.
110382         * modules/fts (Makefile.am): Likewise.
110383         * modules/gc-arcfour (Makefile.am): Likewise.
110384         * modules/gc-des (Makefile.am): Likewise.
110385         * modules/gc-hmac-md5 (Makefile.am): Likewise.
110386         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
110387         * modules/gc-md4 (Makefile.am): Likewise.
110388         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
110389         * modules/gc-sha1 (Makefile.am): Likewise.
110390         * modules/gc (Makefile.am): Likewise.
110391         * modules/getaddrinfo (Makefile.am): Likewise.
110392         * modules/getcwd (Makefile.am): Likewise.
110393         * modules/getdelim (Makefile.am): Likewise.
110394         * modules/getdomainname (Makefile.am): Likewise.
110395         * modules/getgroups (Makefile.am): Likewise.
110396         * modules/gethostname (Makefile.am): Likewise.
110397         * modules/gethrxtime (Makefile.am): Likewise.
110398         * modules/getline (Makefile.am): Likewise.
110399         * modules/getloadavg (Makefile.am): Likewise.
110400         * modules/getlogin_r (Makefile.am): Likewise.
110401         * modules/getndelim2 (Makefile.am): Likewise.
110402         * modules/getopt (Makefile.am): Likewise.
110403         * modules/getpagesize (Makefile.am): Likewise.
110404         * modules/getpass-gnu (Makefile.am): Likewise.
110405         * modules/getpass (Makefile.am): Likewise.
110406         * modules/getsubopt (Makefile.am): Likewise.
110407         * modules/gettime (Makefile.am): Likewise.
110408         * modules/gettimeofday (Makefile.am): Likewise.
110409         * modules/getugroups (Makefile.am): Likewise.
110410         * modules/getusershell (Makefile.am): Likewise.
110411         * modules/glob (Makefile.am): Likewise.
110412         * modules/group-member (Makefile.am): Likewise.
110413         * modules/hard-locale (Makefile.am): Likewise.
110414         * modules/hash (Makefile.am): Likewise.
110415         * modules/hmac-md5 (Makefile.am): Likewise.
110416         * modules/hmac-sha1 (Makefile.am): Likewise.
110417         * modules/human (Makefile.am): Likewise.
110418         * modules/idcache (Makefile.am): Likewise.
110419         * modules/imaxabs (Makefile.am): Likewise.
110420         * modules/imaxdiv (Makefile.am): Likewise.
110421         * modules/inet_ntop (Makefile.am): Likewise.
110422         * modules/inet_pton (Makefile.am): Likewise.
110423         * modules/intprops (Makefile.am): Likewise.
110424         * modules/inttostr (Makefile.am): Likewise.
110425         * modules/inttypes (Makefile.am): Likewise.
110426         * modules/isapipe (Makefile.am): Likewise.
110427         * modules/javaversion (Makefile.am): Likewise.
110428         * modules/lchmod (Makefile.am): Likewise.
110429         * modules/lchown (Makefile.am): Likewise.
110430         * modules/localcharset (Makefile.am): Likewise.
110431         * modules/long-options (Makefile.am): Likewise.
110432         * modules/lstat (Makefile.am): Likewise.
110433         * modules/malloc (Makefile.am): Likewise.
110434         * modules/mathl (Makefile.am): Likewise.
110435         * modules/mbchar (Makefile.am): Likewise.
110436         * modules/md2 (Makefile.am): Likewise.
110437         * modules/md4 (Makefile.am): Likewise.
110438         * modules/md5 (Makefile.am): Likewise.
110439         * modules/memcasecmp (Makefile.am): Likewise.
110440         * modules/memchr (Makefile.am): Likewise.
110441         * modules/memcmp (Makefile.am): Likewise.
110442         * modules/memcoll (Makefile.am): Likewise.
110443         * modules/memcpy (Makefile.am): Likewise.
110444         * modules/memmem (Makefile.am): Likewise.
110445         * modules/memmove (Makefile.am): Likewise.
110446         * modules/mempcpy (Makefile.am): Likewise.
110447         * modules/memrchr (Makefile.am): Likewise.
110448         * modules/memset (Makefile.am): Likewise.
110449         * modules/memxor (Makefile.am): Likewise.
110450         * modules/mkancesdirs (Makefile.am): Likewise.
110451         * modules/mkdir-p (Makefile.am): Likewise.
110452         * modules/mkdir (Makefile.am): Likewise.
110453         * modules/mkdtemp (Makefile.am): Likewise.
110454         * modules/mkstemp (Makefile.am): Likewise.
110455         * modules/mktime (Makefile.am): Likewise.
110456         * modules/modechange (Makefile.am): Likewise.
110457         * modules/mountlist (Makefile.am): Likewise.
110458         * modules/nanosleep (Makefile.am): Likewise.
110459         * modules/obstack (Makefile.am): Likewise.
110460         * modules/openat (Makefile.am): Likewise.
110461         * modules/pagealign_alloc (Makefile.am): Likewise.
110462         * modules/pathmax (Makefile.am): Likewise.
110463         * modules/physmem (Makefile.am): Likewise.
110464         * modules/poll (Makefile.am): Likewise.
110465         * modules/posixtm (Makefile.am): Likewise.
110466         * modules/posixver (Makefile.am): Likewise.
110467         * modules/putenv (Makefile.am): Likewise.
110468         * modules/quote (Makefile.am): Likewise.
110469         * modules/quotearg (Makefile.am): Likewise.
110470         * modules/raise (Makefile.am): Likewise.
110471         * modules/read-file (Makefile.am): Likewise.
110472         * modules/readline (Makefile.am): Likewise.
110473         * modules/readlink (Makefile.am): Likewise.
110474         * modules/readtokens (Makefile.am): Likewise.
110475         * modules/readutmp (Makefile.am): Likewise.
110476         * modules/realloc (Makefile.am): Likewise.
110477         * modules/regex (Makefile.am): Likewise.
110478         * modules/rename-dest-slash (Makefile.am): Likewise.
110479         * modules/rename (Makefile.am): Likewise.
110480         * modules/rijndael (Makefile.am): Likewise.
110481         * modules/rmdir (Makefile.am): Likewise.
110482         * modules/rpmatch (Makefile.am): Likewise.
110483         * modules/safe-read (Makefile.am): Likewise.
110484         * modules/safe-write (Makefile.am): Likewise.
110485         * modules/same-inode (Makefile.am): Likewise.
110486         * modules/same (Makefile.am): Likewise.
110487         * modules/save-cwd (Makefile.am): Likewise.
110488         * modules/savedir (Makefile.am): Likewise.
110489         * modules/setenv (Makefile.am): Likewise.
110490         * modules/settime (Makefile.am): Likewise.
110491         * modules/sha1 (Makefile.am): Likewise.
110492         * modules/sig2str (Makefile.am): Likewise.
110493         * modules/snprintf (Makefile.am): Likewise.
110494         * modules/stat-macros (Makefile.am): Likewise.
110495         * modules/stat-time (Makefile.am): Likewise.
110496         * modules/stdbool (Makefile.am): Likewise.
110497         * modules/stdint (Makefile.am): Likewise.
110498         * modules/stdlib-safer (Makefile.am): Likewise.
110499         * modules/stpcpy (Makefile.am): Likewise.
110500         * modules/stpncpy (Makefile.am): Likewise.
110501         * modules/strcase (Makefile.am): Likewise.
110502         * modules/strcasestr (Makefile.am): Likewise.
110503         * modules/strchrnul (Makefile.am): Likewise.
110504         * modules/strcspn (Makefile.am): Likewise.
110505         * modules/strdup (Makefile.am): Likewise.
110506         * modules/strerror (Makefile.am): Likewise.
110507         * modules/strftime (Makefile.am): Likewise.
110508         * modules/strndup (Makefile.am): Likewise.
110509         * modules/strnlen (Makefile.am): Likewise.
110510         * modules/strpbrk (Makefile.am): Likewise.
110511         * modules/strsep (Makefile.am): Likewise.
110512         * modules/strstr (Makefile.am): Likewise.
110513         * modules/strtod (Makefile.am): Likewise.
110514         * modules/strtoimax (Makefile.am): Likewise.
110515         * modules/strtok_r (Makefile.am): Likewise.
110516         * modules/strtol (Makefile.am): Likewise.
110517         * modules/strtoll (Makefile.am): Likewise.
110518         * modules/strtoul (Makefile.am): Likewise.
110519         * modules/strtoull (Makefile.am): Likewise.
110520         * modules/strtoumax (Makefile.am): Likewise.
110521         * modules/strverscmp (Makefile.am): Likewise.
110522         * modules/sys_socket (Makefile.am): Likewise.
110523         * modules/sys_stat (Makefile.am): Likewise.
110524         * modules/sysexits (Makefile.am): Likewise.
110525         * modules/time_r (Makefile.am): Likewise.
110526         * modules/timegm (Makefile.am): Likewise.
110527         * modules/timespec (Makefile.am): Likewise.
110528         * modules/tmpfile-safer (Makefile.am): Likewise.
110529         * modules/trim (Makefile.am): Likewise.
110530         * modules/unistd-safer (Makefile.am): Likewise.
110531         * modules/unlinkdir (Makefile.am): Likewise.
110532         * modules/unlocked-io (Makefile.am): Likewise.
110533         * modules/userspec (Makefile.am): Likewise.
110534         * modules/utime (Makefile.am): Likewise.
110535         * modules/utimecmp (Makefile.am): Likewise.
110536         * modules/utimens (Makefile.am): Likewise.
110537         * modules/vasnprintf (Makefile.am): Likewise.
110538         * modules/vasprintf (Makefile.am): Likewise.
110539         * modules/vsnprintf (Makefile.am): Likewise.
110540         * modules/xalloc (Makefile.am): Likewise.
110541         * modules/xgetcwd (Makefile.am): Likewise.
110542         * modules/xnanosleep (Makefile.am): Likewise.
110543         * modules/xreadlink (Makefile.am): Likewise.
110544         * modules/xstrtod (Makefile.am): Likewise.
110545         * modules/xstrtol (Makefile.am): Likewise.
110546         * modules/xstrtold (Makefile.am): Likewise.
110547         * modules/yesno (Makefile.am): Likewise.
110548         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
110550 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
110552         * modules/error (Makefile.am): Distribute files through
110553         EXTRA_DIST, not lib_SOURCES.
110555 2006-10-12  Eric Blake  <ebb9@byu.net>
110557         * modules/error (Makefile.am): Distribute files in /lib.
110558         * modules/obstack (Makefile.am): Likewise.
110560 2006-10-12  Bruno Haible  <bruno@clisp.org>
110562         * modules/acl (Makefile.am): Distribute all files in lib/ through
110563         EXTRA_DIST.
110564         * modules/arcfour (Makefile.am): Likewise.
110565         * modules/arctwo (Makefile.am): Likewise.
110566         * modules/argmatch (Makefile.am): Likewise.
110567         * modules/argz (Makefile.am): Likewise.
110568         * modules/atexit (Makefile.am): Likewise.
110569         * modules/backupfile (Makefile.am): Likewise.
110570         * modules/c-strtod (Makefile.am): Likewise.
110571         * modules/c-strtold (Makefile.am): Likewise.
110572         * modules/calloc (Makefile.am): Likewise.
110573         * modules/canon-host (Makefile.am): Likewise.
110574         * modules/canonicalize (Makefile.am): Likewise.
110575         * modules/chdir-long (Makefile.am): Likewise.
110576         * modules/chdir-safer (Makefile.am): Likewise.
110577         * modules/check-version (Makefile.am): Likewise.
110578         * modules/chown (Makefile.am): Likewise.
110579         * modules/cloexec (Makefile.am): Likewise.
110580         * modules/close-stream (Makefile.am): Likewise.
110581         * modules/closeout (Makefile.am): Likewise.
110582         * modules/crc (Makefile.am): Likewise.
110583         * modules/cycle-check (Makefile.am): Likewise.
110584         * modules/des (Makefile.am): Likewise.
110585         * modules/dirfd (Makefile.am): Likewise.
110586         * modules/dirname (Makefile.am): Likewise.
110587         * modules/dup2 (Makefile.am): Likewise.
110588         * modules/euidaccess (Makefile.am): Likewise.
110589         * modules/exclude (Makefile.am): Likewise.
110590         * modules/exitfail (Makefile.am): Likewise.
110591         * modules/fcntl-safer (Makefile.am): Likewise.
110592         * modules/file-type (Makefile.am): Likewise.
110593         * modules/fileblocks (Makefile.am): Likewise.
110594         * modules/filemode (Makefile.am): Likewise.
110595         * modules/filenamecat (Makefile.am): Likewise.
110596         * modules/fnmatch (Makefile.am): Likewise.
110597         * modules/fopen-safer (Makefile.am): Likewise.
110598         * modules/fpending (Makefile.am): Likewise.
110599         * modules/fprintftime (Makefile.am): Likewise.
110600         * modules/free (Makefile.am): Likewise.
110601         * modules/fsusage (Makefile.am): Likewise.
110602         * modules/ftruncate (Makefile.am): Likewise.
110603         * modules/fts (Makefile.am): Likewise.
110604         * modules/gc (Makefile.am): Likewise.
110605         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
110606         * modules/getaddrinfo (Makefile.am): Likewise.
110607         * modules/getcwd (Makefile.am): Likewise.
110608         * modules/getdelim (Makefile.am): Likewise.
110609         * modules/getdomainname (Makefile.am): Likewise.
110610         * modules/getgroups (Makefile.am): Likewise.
110611         * modules/gethostname (Makefile.am): Likewise.
110612         * modules/gethrxtime (Makefile.am): Likewise.
110613         * modules/getline (Makefile.am): Likewise.
110614         * modules/getloadavg (Makefile.am): Likewise.
110615         * modules/getlogin_r (Makefile.am): Likewise.
110616         * modules/getopt (Makefile.am): Likewise.
110617         * modules/getpass (Makefile.am): Likewise.
110618         * modules/getpass-gnu (Makefile.am): Likewise.
110619         * modules/getsubopt (Makefile.am): Likewise.
110620         * modules/gettime (Makefile.am): Likewise.
110621         * modules/gettimeofday (Makefile.am): Likewise.
110622         * modules/getugroups (Makefile.am): Likewise.
110623         * modules/getusershell (Makefile.am): Likewise.
110624         * modules/glob (Makefile.am): Likewise.
110625         * modules/group-member (Makefile.am): Likewise.
110626         * modules/hard-locale (Makefile.am): Likewise.
110627         * modules/hash (Makefile.am): Likewise.
110628         * modules/hmac-md5 (Makefile.am): Likewise.
110629         * modules/hmac-sha1 (Makefile.am): Likewise.
110630         * modules/human (Makefile.am): Likewise.
110631         * modules/idcache (Makefile.am): Likewise.
110632         * modules/imaxabs (Makefile.am): Likewise.
110633         * modules/imaxdiv (Makefile.am): Likewise.
110634         * modules/inet_ntop (Makefile.am): Likewise.
110635         * modules/inet_pton (Makefile.am): Likewise.
110636         * modules/inttostr (Makefile.am): Likewise.
110637         * modules/isapipe (Makefile.am): Likewise.
110638         * modules/lchown (Makefile.am): Likewise.
110639         * modules/long-options (Makefile.am): Likewise.
110640         * modules/lstat (Makefile.am): Likewise.
110641         * modules/malloc (Makefile.am): Likewise.
110642         * modules/mathl (Makefile.am): Likewise.
110643         * modules/mbchar (Makefile.am): Likewise.
110644         * modules/md2 (Makefile.am): Likewise.
110645         * modules/md4 (Makefile.am): Likewise.
110646         * modules/md5 (Makefile.am): Likewise.
110647         * modules/memcasecmp (Makefile.am): Likewise.
110648         * modules/memchr (Makefile.am): Likewise.
110649         * modules/memcmp (Makefile.am): Likewise.
110650         * modules/memcoll (Makefile.am): Likewise.
110651         * modules/memcpy (Makefile.am): Likewise.
110652         * modules/memmem (Makefile.am): Likewise.
110653         * modules/memmove (Makefile.am): Likewise.
110654         * modules/mempcpy (Makefile.am): Likewise.
110655         * modules/memrchr (Makefile.am): Likewise.
110656         * modules/memset (Makefile.am): Likewise.
110657         * modules/memxor (Makefile.am): Likewise.
110658         * modules/mkancesdirs (Makefile.am): Likewise.
110659         * modules/mkdir (Makefile.am): Likewise.
110660         * modules/mkdir-p (Makefile.am): Likewise.
110661         * modules/mkdtemp (Makefile.am): Likewise.
110662         * modules/mkstemp (Makefile.am): Likewise.
110663         * modules/mktime (Makefile.am): Likewise.
110664         * modules/modechange (Makefile.am): Likewise.
110665         * modules/mountlist (Makefile.am): Likewise.
110666         * modules/nanosleep (Makefile.am): Likewise.
110667         * modules/openat (Makefile.am): Likewise.
110668         * modules/pagealign_alloc (Makefile.am): Likewise.
110669         * modules/physmem (Makefile.am): Likewise.
110670         * modules/poll (Makefile.am): Likewise.
110671         * modules/posixtm (Makefile.am): Likewise.
110672         * modules/posixver (Makefile.am): Likewise.
110673         * modules/putenv (Makefile.am): Likewise.
110674         * modules/quote (Makefile.am): Likewise.
110675         * modules/quotearg (Makefile.am): Likewise.
110676         * modules/raise (Makefile.am): Likewise.
110677         * modules/read-file (Makefile.am): Likewise.
110678         * modules/readline (Makefile.am): Likewise.
110679         * modules/readlink (Makefile.am): Likewise.
110680         * modules/readtokens (Makefile.am): Likewise.
110681         * modules/readutmp (Makefile.am): Likewise.
110682         * modules/realloc (Makefile.am): Likewise.
110683         * modules/regex (Makefile.am): Likewise.
110684         * modules/rename (Makefile.am): Likewise.
110685         * modules/rename-dest-slash (Makefile.am): Likewise.
110686         * modules/rijndael (Makefile.am): Likewise.
110687         * modules/rmdir (Makefile.am): Likewise.
110688         * modules/rpmatch (Makefile.am): Likewise.
110689         * modules/safe-read (Makefile.am): Likewise.
110690         * modules/safe-write (Makefile.am): Likewise.
110691         * modules/same (Makefile.am): Likewise.
110692         * modules/save-cwd (Makefile.am): Likewise.
110693         * modules/savedir (Makefile.am): Likewise.
110694         * modules/setenv (Makefile.am): Likewise.
110695         * modules/settime (Makefile.am): Likewise.
110696         * modules/sha1 (Makefile.am): Likewise.
110697         * modules/sig2str (Makefile.am): Likewise.
110698         * modules/snprintf (Makefile.am): Likewise.
110699         * modules/stdlib-safer (Makefile.am): Likewise.
110700         * modules/stpcpy (Makefile.am): Likewise.
110701         * modules/stpncpy (Makefile.am): Likewise.
110702         * modules/strcase (Makefile.am): Likewise.
110703         * modules/strcasestr (Makefile.am): Likewise.
110704         * modules/strchrnul (Makefile.am): Likewise.
110705         * modules/strcspn (Makefile.am): Likewise.
110706         * modules/strdup (Makefile.am): Likewise.
110707         * modules/strerror (Makefile.am): Likewise.
110708         * modules/strftime (Makefile.am): Likewise.
110709         * modules/strndup (Makefile.am): Likewise.
110710         * modules/strnlen (Makefile.am): Likewise.
110711         * modules/strpbrk (Makefile.am): Likewise.
110712         * modules/strsep (Makefile.am): Likewise.
110713         * modules/strstr (Makefile.am): Likewise.
110714         * modules/strtod (Makefile.am): Likewise.
110715         * modules/strtoimax (Makefile.am): Likewise.
110716         * modules/strtok_r (Makefile.am): Likewise.
110717         * modules/strtol (Makefile.am): Likewise.
110718         * modules/strtoll (Makefile.am): Likewise.
110719         * modules/strtoul (Makefile.am): Likewise.
110720         * modules/strtoull (Makefile.am): Likewise.
110721         * modules/strtoumax (Makefile.am): Likewise.
110722         * modules/strverscmp (Makefile.am): Likewise.
110723         * modules/time_r (Makefile.am): Likewise.
110724         * modules/timegm (Makefile.am): Likewise.
110725         * modules/tmpfile-safer (Makefile.am): Likewise.
110726         * modules/unistd-safer (Makefile.am): Likewise.
110727         * modules/unlinkdir (Makefile.am): Likewise.
110728         * modules/userspec (Makefile.am): Likewise.
110729         * modules/utime (Makefile.am): Likewise.
110730         * modules/utimecmp (Makefile.am): Likewise.
110731         * modules/utimens (Makefile.am): Likewise.
110732         * modules/vasnprintf (Makefile.am): Likewise.
110733         * modules/vasprintf (Makefile.am): Likewise.
110734         * modules/vsnprintf (Makefile.am): Likewise.
110735         * modules/xalloc (Makefile.am): Likewise.
110736         * modules/xgetcwd (Makefile.am): Likewise.
110737         * modules/xnanosleep (Makefile.am): Likewise.
110738         * modules/xreadlink (Makefile.am): Likewise.
110739         * modules/xstrtod (Makefile.am): Likewise.
110740         * modules/xstrtol (Makefile.am): Likewise.
110741         * modules/xstrtold (Makefile.am): Likewise.
110742         * modules/yesno (Makefile.am): Likewise.
110744 2006-10-12  Jim Meyering  <jim@meyering.net>
110746         * m4/getloadavg.m4: Revert the change below.
110748         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
110749         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
110750         fail with a symlink, which is what coreutils' ./bootstrap now
110751         creates by default.
110753 2006-10-12  Bruno Haible  <bruno@clisp.org>
110755         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
110756         mingw.
110757         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
110758         MSVC and mingw explicitly.
110760 2006-10-11  Simon Josefsson  <jas@extundo.com>
110761             Bruno Haible  <bruno@clisp.org>
110763         Add support for multiple gnulib-tool invocations in the scope of a
110764         single configure.ac file.
110765         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
110766         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
110767         with the same contents as the _LIBADD variable.
110768         (func_emit_initmacro_start, func_emit_initmacro_end,
110769         func_emit_initmacro_done): New functions.
110770         (func_import, func_create_testdir): Invoke them. Allow the identifiers
110771         gl_LIBOBJS and gl_LTLIBOBJS.
110773 2006-10-11  Bruno Haible  <bruno@clisp.org>
110775         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
110776         (func_create_testdir): Don't create po/Makefile.am, don't invoke
110777         autoreconf. Instead, invoke autopoint explicitly but move back the
110778         *.m4 files from gnulib.
110780 2006-10-11  Bruno Haible  <bruno@clisp.org>
110782         * gnulib-tool (func_usage): Make module names after --create-testdir
110783         optional.
110784         (func_create_testdir): If no module was specified, use nearly all
110785         modules.
110787 2006-10-12  Jim Meyering  <jim@meyering.net>
110789         Big performance improvement for fts-based tools that use FTS_NOSTAT.
110790         Avoid spurious inode-mismatch problems on non-POSIX file systems.
110791         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
110792         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
110793         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
110794         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
110795         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
110796         (fts_set_stat_required): New function.
110797         (fts_open): Defer the calls to fts_stat, if possible or requested.
110798         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
110799         into fts_stat itself.
110800         (fts_read): Perform any required (deferred) fts_stat call.
110801         (fts_build): Likewise, for the directory we're about to open and read.
110802         In the readdir loop, carefully decide whether each entry will require
110803         an eventual call to fts_stat, using dirent.d_type info if available.
110804         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
110805         a command line argument into this function.  Update all callers.
110806         Map a return value of FTS_DOT to FTS_D for a command line argument.
110807         * modules/fts (Depends-on): Add d-type.  Alphabetize.
110808         Thanks to Miklos Szeredi for his tenacity and for the initial
110809         bug report about "find" failing on a FUSE-based file system.
110811         * lib/fts.c (fts_open): Use consistent indentation.
110813 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
110815         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
110816         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
110817         reported by Jim Meyering.  All uses of cache variables renamed
110818         to match Autoconf's.
110819         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
110820         the other one.
110822         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
110823         Fix misspelling in diagnostic.
110825 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
110827         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
110828         defined.  Problem reported by Matthew Woehlke.
110830         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
110831         Add support for Tandem NonStop R series.
110832         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
110833         Use new macro.
110835         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
110836         (has_trailing_slash): Omit size arg; all callers changed.
110837         Omit 'inline', since it doesn't help performance and we'd
110838         need to configure it.
110839         Don't count //, ///, etc. as having a trailing slash.
110840         As a side effect, this removes a C99ism reported by Matthew Woehlke.
110841         (rpl_rename_dest_slash): On failure, use rename's errno rather
110842         than (in some cases) an incorrect or junk errno.
110843         Simplify code by removing need to compute length; this does
110844         cause it to make two passes instead of one over the file name,
110845         but it's worth it.
110847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
110848         change, since Autoconf's version may no longer be appropriate now
110849         that we are using CVS Autoconf's version.  Add support for Tandem.
110851 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
110852             Bruno Haible  <bruno@clisp.org>
110854         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
110855         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
110856         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
110857         gl_AC_TYPE_LONG_LONG.
110859         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
110860         instead of HAVE_LONG_LONG.
110861         * lib/printf-args.c (printf_fetchargs): Likewise.
110862         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
110863         * lib/vasnprintf.c (VASNPRINTF): Likewise.
110864         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
110865         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
110866         gl_AC_TYPE_LONG_LONG.
110868 2006-10-11  Bruno Haible  <bruno@clisp.org>
110870         * m4/longlong.m4: Add comments.
110871         * m4/ulonglong.m4: Likewise.
110873 2006-10-10  Bruno Haible  <bruno@clisp.org>
110875         Make it possible to #define stpcpy, strdup to aliases.
110876         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
110877         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
110879 2006-10-10  Bruno Haible  <bruno@clisp.org>
110881         Make it possible to #define gcd to an alias.
110882         * lib/gcd.c: Include config.h.
110884 2006-10-10  Bruno Haible  <bruno@clisp.org>
110886         Make it possible to #define c_isascii to an alias.
110887         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
110888         defined. Undefine the macros before defining them, to avoid gcc
110889         warnings.
110890         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
110891         define NO_C_CTYPE_MACROS early.
110893 2006-10-10  Bruno Haible  <bruno@clisp.org>
110895         Make it possible to #define set_program_name to an alias.
110896         * lib/progname.c: Don't undefine set_program_name; instead, undefine
110897         ENABLE_RELOCATABLE early.
110899 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
110901         Port to Tandem NSK OSS, which has 64-bit signed int but at most
110902         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
110903         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
110904         More generally, don't assume that 64-bit signed int is available
110905         if unsigned int is, and vice versa.
110906         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
110907         unsigned symbols, not on their signed counterparts.
110908         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
110909         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
110910         (UINT64_C, UINTMAX_C):
110911         Likewise.
110912         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
110913         unsigned counterparts.
110914         (Have_long_long, Unsigned): New macros.
110915         (Int): Renamed from INT.
110916         (strtoimax): Use the new macros.
110917         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
110918         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
110919         * modules/inttypes (inttypes.h): Substitute
110920         HAVE_UNSIGNED_LONG_LONG_INT.
110921         * modules/stdint (stdint.h): Likewise.
110922         (Files): Add m4/ulonglong.m4.
110924 2006-10-10  Bruno Haible  <bruno@clisp.org>
110926         Fix a gcc -Wshadow warning.
110927         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
110928         to 'bucket'.
110929         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
110930         gl_linked_indexof_from_to): Likewise.
110931         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
110932         Likewise.
110933         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
110934         Likewise.
110935         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
110936         Reported by Eric Blake.
110938 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
110940         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
110941         for NetBSD.  Problem reported by Bruno Haible.
110943 2006-10-09  Jim Meyering  <jim@meyering.net>
110945         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
110946         Patch from Bruno Haible.
110948 2006-10-09  Jim Meyering  <jim@meyering.net>
110950         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
110951         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
110952         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
110954 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
110956         Don't include <config.h> twice; this doesn't work in some cases,
110957         e.g., when config.h has "#define intmax_t long long int" and
110958         we include <config.h>, <inttypes.h>, <config.h> in that order.
110959         Problem reported by Matthew Woehlke in:
110960         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
110961         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
110962         * lib/fts-cycle.c: Don't include config.h.
110963         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
110964         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
110965         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
110966         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
110967         inttypes.h.
110968         * lib/xstrtoumax.c: Likewise.
110969         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
110970         __strtol and the like, so that this module is more like its siblings.
110971         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
110972         Remove; no longer needed now that we assume gnulib inttypes.h.
110974 2006-10-08  Bruno Haible  <bruno@clisp.org>
110976         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
110977         option.
110979 2006-10-07  Jim Meyering  <jim@meyering.net>
110981         * modules/inttypes (inttypes.h): Revert what seems to have been
110982         an inadvertent part of today's change: use "|", not "/" in the
110983         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
110985 2006-10-07  Bruno Haible  <bruno@clisp.org>
110987         * modules/sublist: New file.
110989 2006-10-07  Bruno Haible  <bruno@clisp.org>
110991         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
110992         * modules/argz (argz.h): Likewise.
110993         * modules/arpa_inet (arpa/inet.h): Likewise.
110994         * modules/byteswap (byteswap.h): Likewise.
110995         * modules/configmake (configmake.h): Likewise.
110996         * modules/fcntl (fcntl.h): Likewise.
110997         * modules/fnmatch (fnmatch.h): Likewise.
110998         * modules/getopt (getopt.h): Likewise.
110999         * modules/glob (glob.h): Likewise.
111000         * modules/inttypes (inttypes.h): Likewise.
111001         * modules/netinet_in (netinet/in.h): Likewise.
111002         * modules/poll (poll.h): Likewise.
111003         * modules/stdbool (stdbool.h): Likewise.
111004         * modules/stdint (stdint.h): Likewise.
111005         * modules/sys_select (sys/select.h): Likewise.
111006         * modules/sys_socket (sys/socket.h): Likewise.
111007         * modules/sys_stat (sys/stat.h): Likewise.
111008         * modules/sysexits (sysexits.h): Likewise.
111009         * modules/unistd (unistd.h): Likewise.
111010         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111011         Add a "DO NOT EDIT" comment to the generated file.
111012         (func_import): Likewise for gnulib-comp.m4.
111014 2006-10-07  Bruno Haible  <bruno@clisp.org>
111016         * lib/gl_sublist.h: New file.
111017         * lib/gl_sublist.c: New file.
111019 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111021         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
111022         name (relative to the original working directory) and the file
111023         name component (relative to the temporary working directory).  All
111024         callers changed.
111025         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
111026         * lib/mkdir-p.c (make_dir_parents): Likewise.
111027         * lib/mkdir-p.h (make_dir_parents): Likewise.
111029 2006-10-06  Eric Blake  <ebb9@byu.net>
111031         Define several macros for use by the clean-temp module.
111032         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
111033         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
111034         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
111036         * lib/clean-temp.h (close_stream_temp): New declaration.
111037         * lib/clean-temp.c (includes): Pull in headers according to what
111038         other modules are in use.
111039         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
111041 2006-10-06  Bruno Haible  <bruno@clisp.org>
111043         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
111044         instead of fopen, fwriteerror.
111046 2006-10-06  Bruno Haible  <bruno@clisp.org>
111048         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
111049         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
111050         int.
111051         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
111052         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
111053         Return an error indicator.
111054         Suggested by Eric Blake.
111056 2006-10-06  Bruno Haible  <bruno@clisp.org>
111058         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
111059         Reported by Eric Blake.
111061 2006-10-06  Bruno Haible  <bruno@clisp.org>
111063         * modules/closeout (Description): Mention stderr too.
111065 2006-10-06  Bruno Haible  <bruno@clisp.org>
111066         and Paul Eggert  <eggert@cs.ucla.edu>
111068         * lib/closeout.c (close_stdout): Also close stderr.
111069         * lib/closeout.h: Update comment.
111071 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111073         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
111074         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
111075         * lib/dirchownmod.c: Include lchown.h.
111076         * lib/lchown.c: Don't include files that lchown.h now includes.
111077         Don't declare chown, since lchown.h now does that.
111078         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
111079         (lchown): Define to rpl_chown if lchown is declared but
111080         does not exist.  Declare using a prototype if lchown is not
111081         declared.  Add a copyright notice.
111082         * lib/mkstemp.h: Include <unistd.h>.
111083         * lib/openat.c: Include lchown.h.
111085         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
111086         we now test for that separately.
111087         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
111088         rather than O_NOFOLLOW, when testing whether it's possible to
111089         avoid a race condition reliably.
111090         * lib/savewd.c (savewd_chdir): Likewise.
111092         Remove macros that are no longer needed now that stdint.h is
111093         reliable.
111094         * lib/fsusage.c (UINTMAX_MAX): Remove.
111095         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
111096         * lib/utimecmp.c (SIZE_MAX): Remove.
111098         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
111100         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
111101         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
111102         O_NOATIME works.
111104 2006-10-05  Bruno Haible  <bruno@clisp.org>
111106         * lib/gl_list.h (gl_sortedlist_search_from_to,
111107         gl_sortedlist_indexof_from_to): New declarations.
111108         (gl_list_implementation): New fields sortedlist_search_from_to,
111109         sortedlist_indexof_from_to.
111110         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
111111         inline functions.
111112         * lib/gl_list.c (gl_sortedlist_search_from_to,
111113         gl_sortedlist_indexof_from_to): New functions.
111114         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
111115         function.
111116         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
111117         (gl_array_sortedlist_search_from_to): New function.
111118         (gl_array_list_implementation): Update.
111119         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
111120         function.
111121         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
111122         (gl_carray_sortedlist_search_from_to): New function.
111123         (gl_carray_list_implementation): Update.
111124         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
111125         gl_linked_sortedlist_indexof_from_to): New functions.
111126         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111127         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111128         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
111129         gl_tree_sortedlist_indexof_from_to): New functions.
111130         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111131         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111132         Update.
111133         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111134         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
111135         Update.
111137 2006-10-05  Bruno Haible  <bruno@clisp.org>
111139         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
111140         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
111141         (struct gl_list_implementation): Add fields search_from_to,
111142         indexof_from_to. Remove fields search, indexof.
111143         (gl_list_search): Use the search_from_to method.
111144         (gl_list_search_from, gl_list_search_from_to): New functions.
111145         (gl_list_indexof): Use the indexof_from_to method.
111146         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111147         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
111148         (gl_list_search_from, gl_list_search_from_to): New functions.
111149         (gl_list_indexof): Use the indexof_from_to method.
111150         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111151         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
111152         gl_array_indexof. Add start_index, end_index arguments.
111153         (gl_array_search_from_to): Renamed from gl_array_search. Add
111154         start_index, end_index arguments.
111155         (gl_array_remove, gl_array_list_implementation): Update.
111156         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
111157         gl_carray_indexof. Add start_index, end_index arguments.
111158         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
111159         start_index, end_index arguments.
111160         (gl_carray_remove, gl_carray_list_implementation): Update.
111161         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
111162         gl_linked_search. Add start_index, end_index arguments.
111163         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
111164         start_index, end_index arguments.
111165         (gl_linked_remove): Update.
111166         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111167         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111168         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
111169         field to 'size_t'.
111170         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
111171         gl_tree_search. Add start_index, end_index arguments.
111172         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111173         start_index, end_index arguments.
111174         (gl_tree_remove): Update.
111175         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111176         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111177         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
111178         function.
111179         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
111180         gl_tree_search. Add start_index, end_index arguments.
111181         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111182         start_index, end_index arguments.
111183         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111184         Update.
111185         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
111187 2006-10-05  Bruno Haible  <bruno@clisp.org>
111189         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
111191         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
111192         fwriteerror_temp): New declarations.
111193         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
111194         (descriptors): New variable.
111195         (cleanup): First, close the descriptors.
111196         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
111197         fclose_temp, fwriteerror_temp): New functions.
111199 2006-10-04  Jim Meyering  <jim@meyering.net>
111201         * lib/fts.c (fts_open): Tiny comment change.
111203 2006-10-04  Bruno Haible  <bruno@clisp.org>
111205         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
111206         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
111207         gl_LOCK_BODY.
111208         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
111209         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
111210         gl_LOCK_EARLY_BODY.
111211         (gl_LOCK): Require gl_LOCK_BODY.
111213 2006-10-04  Bruno Haible  <bruno@clisp.org>
111215         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
111216         (gl_oset_search_atleast): New declaration.
111217         (struct gl_oset_implementation): Add field 'search_atleast'.
111218         (gl_oset_search_atleast): New inline function.
111219         * lib/gl_oset.c (gl_oset_search_atleast): New function.
111220         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
111221         (gl_array_oset_implementation): Update.
111222         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
111223         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
111224         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
111226 2006-10-04  Bruno Haible  <bruno@clisp.org>
111228         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
111230 2006-10-03  Bruno Haible  <bruno@clisp.org>
111232         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
111233         from gl_avltreehash_list_implementation.
111235 2006-10-03  Bruno Haible  <bruno@clisp.org>
111237         * lib/gl_oset.c (gl_oset_add): Fix return type.
111239 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
111241         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
111243 2006-10-02  Eric Blake  <ebb9@byu.net>
111245         * modules/strnlen (Depends-on): Add extensions.
111247 2006-10-02  Eric Blake  <ebb9@byu.net>
111249         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
111250         definition in 2.60+.
111252 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
111254         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
111255         checks.
111257 2006-10-02  Bruno Haible  <bruno@clisp.org>
111259         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
111260         to the AUTOMAKE_OPTIONS.
111261         Reported by Jim Meyering.
111263 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
111265         Work around bug in Solaris 10 /proc file system:
111266         /proc/self/fd/NNN/.. isn't the parent directory of
111267         the directory whose file descriptor is NNN.  This needs to
111268         be worked around at run time, not compile time, since a
111269         program might be built on Solaris 8, where things work, and
111270         run on Solaris 10.
111271         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
111272         to use the following interface instead:
111273         (OPENAT_BUFFER_SIZE): New macro.
111274         (openat_proc_name): New function.
111275         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
111276         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
111277         Likewise.
111278         * lib/openat-proc.c: New file.
111279         * modules/openat (Files): Add lib/openat-proc.c.
111280         (Depends-on): Add same-inode, stdbool.
111281         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
111283 2006-09-29  Bruno Haible  <bruno@clisp.org>
111285         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
111286         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
111287         argument. Set stdout_closed before testing for ferror, not after.
111288         (fwriteerror, fwriteerror_no_ebadf): New functions.
111290 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111292         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
111294 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
111296         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
111297         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
111299 2006-09-28  Jim Meyering  <jim@meyering.net>
111301         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
111302         Include <unistd.h>.
111304 2006-09-28  Bruno Haible  <bruno@clisp.org>
111306         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
111307         * modules/linkedhash-list (Depends-on): Likewise.
111308         * modules/rbtreehash-list (Depends-on): Likewise.
111310 2006-09-28  Bruno Haible  <bruno@clisp.org>
111312         * lib/strndup.h: Simplify the redefinition of strndup.
111313         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
111314         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
111316 2006-09-28  Bruno Haible  <bruno@clisp.org>
111318         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
111319         * lib/gl_linkedhash_list.c: Likewise.
111320         * lib/gl_rbtreehash_list.c: Likewise.
111322 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
111324         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
111325         getaddrinfo.
111327         * lib/__fpending.h: Don't include <stdio_ext.h> unless
111328         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
111329         it causes <stdio_ext.h> to cause a compile-time error.
111330         Problem reported by Nelson H. F. Beebe.
111331         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
111332         of HAVE_DECL___PENDING.
111334         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
111335         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
111336         declaration.
111338 2006-09-27  Jim Meyering  <jim@meyering.net>
111340         This file could end up with a definition for a function
111341         named __strndup, rather than rpl_strndup on a system with
111342         incomplete weak_alias support.
111343         * lib/strndup.c (strndup): Rename from __strndup.
111344         Remove #defines that used to map __strndup to strndup.
111345         Don't use K&R prototypes.
111346         Remove LIBC-related code, since this file is not sync'd with glibc.
111347         * lib/strndup.h: Revamp, accordingly.
111348         * m4/strndup.m4: Modernize.
111350 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
111352         * modules/savewd (Depends-on): Add 'raise'.
111353         * lib/savewd.c: Include <signal.h>, for 'raise'.
111355 2006-09-26  Jim Meyering  <jim@meyering.net>
111357         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
111358         when we detect Darwin 8.7.0's acl_get_file bug.
111359         Rearrange to perform the new (below) run-test while $LIBS
111360         contains any acl-related library.  Set USE_ACL at the end.
111361         (gl_ACL_GET_FILE): New function.
111363 2006-09-26  Eric Blake  <ebb9@byu.net>
111365         * lib/verror.c: Include <config.h> unconditionally.
111367 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
111369         * modules/clock-time (Maintainer): Add self.
111370         * modules/getlogin_r (Depends-on): Add extensions.
111372 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111374         * modules/clock-time: New module.
111375         * modules/nanosleep (Depends-on): Add clock-time.
111376         * modules/gethrxtime (Depends-on): Likewise.
111377         * modules/gettime (Depends-on): Likewise.
111378         * modules/settime (Depends-on): Likewise.
111380         * modules/fts-lgpl: Depend on openat.
111381         * modules/mkancesdirs: Depend on savewd.
111382         * modules/mkdir-p: Likewise.
111384 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111386         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
111388         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
111389         `gl_have_arbitrary_file_name_length_limit' to
111390         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
111391         actually works between configure runs.
111393 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111394             Bruno Haible  <bruno@clisp.org>
111396         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
111398 2006-09-25  Jim Meyering  <jim@meyering.net>
111400         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
111401         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
111403 2006-09-25  Eric Blake  <ebb9@byu.net>
111405         * gnulib-tool (func_import, func_create_testdir): Fix typos in
111406         exec's in 2006-09-18 patch when shuffling fds.
111408 2006-09-25  Bruno Haible  <bruno@clisp.org>
111410         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
111411         Reported by Jim Meyering.
111413 2006-09-24  Jim Meyering  <jim@meyering.net>
111415         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
111416         compare a pointer against a literal "0".  That caused failures with
111417         at least HP-UX's hpcc.
111419 2006-09-22  Simon Josefsson  <jas@extundo.com>
111421         * modules/gc-sha1:
111422         * modules/gc-md4:
111423         * modules/gc-hmac-sha1:
111424         * modules/gc-hmac-md5:
111425         * modules/gc-des:
111426         * modules/gc-arcfour: Distribute more files.
111428 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111430         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
111431         (gl_linked_iterator_from_to): Initialize struct completely.
111432         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
111433         (gl_tree_iterator_from_to): Likewise
111434         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
111435         * lib/gl_array_list.c [lint] (gl_array_iterator)
111436         (gl_array_iterator_from_to): Likewise.
111437         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
111438         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
111439         (gl_carray_iterator_from_to): Likewise.
111441         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
111442         * lib/md4.c (md4_process_block): Remove unused variable.
111443         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
111444         parentheses for clarity.
111446 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111448         * modules/bison-i18n (Depends-on): Add gettext.
111450 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111452         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
111453         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
111454         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
111455         also add missing comma that caused broken test.
111456         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
111457         stdlib.h, for `abort'.
111458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
111459         variables.
111460         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
111461         include unistd.h if present, for `rmdir'.
111462         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
111463         variables.
111464         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
111465         in the process include standard headers for prototypes.
111466         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
111467         gets declared on GNU/Linux.
111468         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
111469         unistd.h, for `rmdir'.
111470         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
111472         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
111473         always true.
111474         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
111476         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
111478 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111480         * gnulib-tool (func_version): Create output all at once.  This
111481         may help avoid triggering unnecessary SIGPIPEs, and at any
111482         rate it doesn't hurt.
111484 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111485             Bruno Haible  <bruno@clisp.org>
111487         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
111488         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
111489         * m4/signed.m4 (bh_C_SIGNED): Likewise.
111491         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
111492         (gl_FUNC_VASPRINTF): Invoke it.
111494 2006-09-22  Bruno Haible  <bruno@clisp.org>
111496         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
111497         getloadavg.c as first argument.
111499 2006-09-22  Bruno Haible  <bruno@clisp.org>
111501         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
111502         at the beginning of the gl_INIT macro.
111503         * modules/getloadavg (configure.ac): Pass $gl_source_base to
111504         gl_GETLOADAVG.
111506 2006-09-22  Bruno Haible  <bruno@clisp.org>
111508         * gnulib-tool (func_create_megatestdir): Don't include the config-h
111509         module.
111510         Suggested by Ralf Wildenhues.
111512 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
111514         Import this patch from libc:
111516         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
111518         * lib/regex_internal.c (re_string_reconstruct): Handle
111519         offset < pstr->valid_raw_len && pstr->offsets_needed case.
111520         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
111521         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
111522         re_string_context_at.
111524         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
111525         now requires it.
111526         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
111527         gl_REGEX now does it for us.
111528         (gl_REGEX): Add test taken from
111529         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
111531         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
111532         Check that large offsets work.  Modernize Autoconf usages.
111533         Prefer "yes" to mean a good thing rather than a bad.
111534         Don't put "#define mkstemp" in config.h, as this might interfere
111535         with standard system headers that "#define mkstemp mkstemp64".
111537         * modules/mkstemp (Depends-on): Add extensions, so that
111538         mkstemp is visible on some platforms.
111539         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
111540         (Include): Change to "mkstemp.h" from <stdlib.h>.
111541         (Files): Add mkstemp.h.
111543         * lib/mkstemp.h: New file, since some standard headers
111544         #define mkstemp.
111545         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
111546         Include "mkstemp.h".
111547         Make the _LIBC code resemble glibc original more,
111548         e.g., use K&R style.
111549         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
111550         (mkstemp): Remove, since mkstemp.h does this for us.
111551         * lib/stdlib--.h: Include mkstemp.h.
111553         Import this patch from libc:
111555         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
111557         * lib/tempname.c (__gen_tempname): Change attempts_min
111558         into a macro.  Use preprocessor to decide how to initialize
111559         attempts [Coverity CID 67].
111561 2006-09-20  Bruno Haible  <bruno@clisp.org>
111563         * lib/mkdtemp.c: Import from libc.
111564         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
111565                 * sysdeps/posix/tempname.c (__gen_tempname): Change
111566                 attempts_min into a macro.  Use preprocessor to decide how to
111567                 initialize attempts [Coverity CID 67].
111568         2001-11-27  Paul Eggert  <eggert@twinsun.com>
111569                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
111570                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
111572 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111574         * gnulib-tool (func_exit): New function, to allow to pass the
111575         exit status portably through the trap.  Use everywhere.
111576         (--help, --version): Signal a write error.
111577         (trap): catch SIGPIPE, for write errors.
111578         Exit at the end of the trap, with the correct exit status.
111580 2006-09-19  Karl Berry  <karl@gnu.org>
111582         * doc/gnulib.texi: note about the license texinfo files.
111584 2006-09-19  Eric Blake  <ebb9@byu.net>
111586         * gnulib-tool: Avoid space-tab.
111588 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
111590         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
111591         that prevented coreutils 6.1 from building.  Problem reported
111592         by Petter Reinholdtsen.
111594 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
111596         * gnulib-tool (avoidlist): Fix typo that broke options like
111597         --avoid=lock that are used by coreutils bootstrap.
111599 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
111601         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
111602         more systematically.
111604 2006-09-18  Jim Meyering  <jim@meyering.net>
111606         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
111608 2006-09-18  Bruno Haible  <bruno@clisp.org>
111610         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
111612 2006-09-18  Bruno Haible  <bruno@clisp.org>
111614         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
111615         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
111616         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
111617         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
111618         * m4/gettext.m4: Require autoconf >= 2.52.
111619         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
111620         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
111621         of gl_cv_header_inttypes_h.
111623 2006-09-18  Bruno Haible  <bruno@clisp.org>
111625         * lib/javaversion.c: Include configmake.h.
111627 2006-09-18  Bruno Haible  <bruno@clisp.org>
111629         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
111630         avoid that the while loops be executed in a subshell.
111632 2006-09-18  Bruno Haible  <bruno@clisp.org>
111634         * MODULES.html.sh (func_module): Break long lines.
111635         Suggested by Bruce Korb <bkorb@gnu.org>.
111637 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111639         Speed up by a factor of 1.12.
111640         * gnulib-tool (nl): New variable.
111641         (func_import): Rewrite include directive extraction to only read each
111642         directive once.
111644 2006-09-17  Bruno Haible  <bruno@clisp.org>
111646         * modules/javaversion (Makefile.am): Remove DEFS setting.
111647         (Depends-on): Add configmake, for PKGDATADIR definition.
111649 2006-09-17  Bruno Haible  <bruno@clisp.org>
111651         * gnulib-tool (func_create_testdir): Rewrite all files at once.
111653 2006-09-17  Bruno Haible  <bruno@clisp.org>
111655         * gnulib-tool (func_append): New function, stolen from libtool.m4.
111656         (func_modules_transitive_closure, func_modules_add_dummy,
111657         func_modules_to_filelist, func_import, func_create_testdir,
111658         func_create_megatestdir, ...): Use it wherever possible.
111659         Suggested by Ralf Wildenhues.
111661 2006-09-16  Karl Berry  <karl@gnu.org>
111663         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
111664         to avoid sectioning errors.
111665         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
111666         [ifinfo]: blank line after @center-ed titles.
111667         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
111668         Spell FSF address consistently with others.
111669         (These changes approved by rms.)
111671 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111673         Speed up by a factor of 1.61.
111674         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
111675         already checked module names again.
111677 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111679         Speed up by a factor of 1.13.
111680         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
111681         for new_files, and the input to func_add_or_update.
111683 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111685         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
111686         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
111688 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111690         * modules/mkancesdirs (Depends-on): Add fcntl.
111691         * modules/savewd: New file.
111692         * MODULES.html.sh (File system functions): Add savewd.
111694         * modules/configmake (Makefile.am): Add support for the
111695         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
111697 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111699         * m4/savewd.m4: New file.
111701 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111703         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
111704         (dirchownmod): New arg FD.  All callers changed.
111705         Use FD rather than opening the directory ourself, as opening is
111706         now the caller's responsibility.
111707         * lib/dirchownmod.h: Likewise.
111708         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
111709         hosts that require <sys/types.h> before <sys/stat.h>.  Include
111710         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
111711         (test_dir): Remove.
111712         (mkancesdirs): Return length of prefix of FILE that has already
111713         been made, or -2 if there is a child doing the work.  Redo
111714         algorithm so that it is O(N) rather than O(N**2).  Optimize away
111715         ".", and treat ".." specially since it might stray back into
111716         already-created areas.  Use a subprocess if necessary.  New arg
111717         WD; all users changed.  MAKE_DIR function should now return 1
111718         if it creates a directory that is not readable.  Return -2 if
111719         a child process is spun off.
111720         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
111721         Adjust signature to match code.
111722         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
111723         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
111724         all users changed.
111725         * lib/savewd.c, lib/savewd.h: New files.
111727 2006-09-15  Jim Meyering  <jim@meyering.net>
111729         * modules/rename-dest-slash: New module.
111730         * MODULES.html.sh (posix_compat): Add it here.
111732         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
111734 2006-09-15  Jim Meyering  <jim@meyering.net>
111736         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
111737         file.
111739         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
111741 2006-09-15  Jim Meyering  <jim@meyering.net>
111743         * lib/rename-dest-slash.c (has_trailing_slash): Use
111744         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
111745         (rpl_rename_dest_slash): Perform the cheaper trailing slash
111746         test before testing whether SRC is a directory.
111747         Suggestions from Bruno Haible.
111749         Avoid a warning about an unused variable.
111750         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
111751         into the #ifdef block where it's used.
111753         * lib/rename-dest-slash.c: New file.
111755 2006-09-14  Bruno Haible  <bruno@clisp.org>
111757         * lib/allocsa.c: Include <config.h> unconditionally.
111758         * lib/asnprintf.c: Likewise.
111759         * lib/asprintf.c: Likewise.
111760         * lib/c-strcasecmp.c: Likewise.
111761         * lib/c-strcasestr.c: Likewise.
111762         * lib/c-strncasecmp.c: Likewise.
111763         * lib/c-strstr.c: Likewise.
111764         * lib/classpath.c: Likewise.
111765         * lib/clean-temp.c: Likewise.
111766         * lib/concatpath.c: Likewise.
111767         * lib/copy-file.c: Likewise.
111768         * lib/csharpcomp.c: Likewise.
111769         * lib/csharpexec.c: Likewise.
111770         * lib/execute.c: Likewise.
111771         * lib/fatal-signal.c: Likewise.
111772         * lib/findprog.c: Likewise.
111773         * lib/fwriteerror.c: Likewise.
111774         * lib/gl_array_list.c: Likewise.
111775         * lib/gl_array_oset.c: Likewise.
111776         * lib/gl_avltree_list.c: Likewise.
111777         * lib/gl_avltree_oset.c: Likewise.
111778         * lib/gl_avltreehash_list.c: Likewise.
111779         * lib/gl_carray_list.c: Likewise.
111780         * lib/gl_linked_list.c: Likewise.
111781         * lib/gl_linkedhash_list.c: Likewise.
111782         * lib/gl_list.c: Likewise.
111783         * lib/gl_oset.c: Likewise.
111784         * lib/gl_rbtree_list.c: Likewise.
111785         * lib/gl_rbtree_oset.c: Likewise.
111786         * lib/gl_rbtreehash_list.c: Likewise.
111787         * lib/imaxabs.c: Likewise.
111788         * lib/imaxdiv.c: Likewise.
111789         * lib/javacomp.c: Likewise.
111790         * lib/javaexec.c: Likewise.
111791         * lib/javaversion.c: Likewise.
111792         * lib/linebreak.c: Likewise.
111793         * lib/localcharset.c: Likewise.
111794         * lib/lock.c: Likewise.
111795         * lib/mbchar.c: Likewise.
111796         * lib/mbswidth.c: Likewise.
111797         * lib/mkdtemp.c: Likewise.
111798         * lib/pipe.c: Likewise.
111799         * lib/printf-args.c: Likewise.
111800         * lib/printf-parse.c: Likewise.
111801         * lib/progname.c: Likewise.
111802         * lib/progreloc.c: Likewise.
111803         * lib/readlink.c: Likewise.
111804         * lib/sh-quote.c: Likewise.
111805         * lib/stpcpy.c: Likewise.
111806         * lib/stpncpy.c: Likewise.
111807         * lib/strcasecmp.c: Likewise.
111808         * lib/strcasestr.c: Likewise.
111809         * lib/strcspn.c: Likewise.
111810         * lib/striconv.c: Likewise.
111811         * lib/strncasecmp.c: Likewise.
111812         * lib/strnlen1.c: Likewise.
111813         * lib/strstr.c: Likewise.
111814         * lib/strtok_r.c: Likewise.
111815         * lib/tls.c: Likewise.
111816         * lib/tmpdir.c: Likewise.
111817         * lib/unicodeio.c: Likewise.
111818         * lib/unsetenv.c: Likewise.
111819         * lib/vasnprintf.c: Likewise.
111820         * lib/vasprintf.c: Likewise.
111821         * lib/wait-process.c: Likewise.
111822         * lib/xallocsa.c: Likewise.
111823         * lib/xsetenv.c: Likewise.
111824         * lib/xstriconv.c: Likewise.
111826 2006-09-13  Simon Josefsson  <jas@extundo.com>
111828         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
111829         that internally, suggested by Ralf Wildenhues
111830         <Ralf.Wildenhues@gmx.de>.
111832 2006-09-13  Simon Josefsson  <jas@extundo.com>
111834         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
111835         @LIBOBJS@.
111836         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
111838 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
111840         * lib/_fpending.c: Include <config.h> unconditionally, since we no
111841         longer worry about uses that don't define HAVE_CONFIG_H.
111842         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
111843         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
111844         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
111845         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
111846         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
111847         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
111848         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
111849         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
111850         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
111851         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
111852         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
111853         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
111854         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
111855         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
111856         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
111857         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
111858         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
111859         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
111860         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
111861         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
111862         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
111863         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
111864         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
111865         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
111866         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
111867         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
111868         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
111869         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
111870         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
111871         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
111872         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
111873         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
111874         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
111875         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
111876         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
111877         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
111878         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
111879         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
111880         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
111881         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
111882         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
111883         Likewise.
111885 2006-09-13  Eric Blake  <ebb9@byu.net>
111887         * lib/getopt.c: Fix typo in last commit.
111889 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
111891         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
111892         dgettext.
111894 2006-09-12  Jim Meyering  <jim@meyering.net>
111896         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
111897         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
111898         Reported by Nelson H. F. Beebe.
111900 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
111902         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
111903         program_invocation_name and program_invocation_short_name are
111904         initialized.
111905         * lib/argp-namefrob.h: Move declarations of program_invocation_name
111906         and program_invocation_short_name to argp.h, so they are visible
111907         to user programs.
111908         * lib/argp.h: Likewise
111910 2006-09-10  Bruno Haible  <bruno@clisp.org>
111912         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
111913         m4/inttypes_h.m4, m4/uintmax_t.m4.
111915 2006-09-10  Bruno Haible  <bruno@clisp.org>
111917         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
111918         gl_AC_TYPE_UINTMAX_T.
111920 2006-09-10  Bruno Haible  <bruno@clisp.org>
111922         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
111924 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
111926         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
111927         convention.  Text proposed by Bruno Haible.
111928         (struct argp_option): Document the use of N_() wrappers.
111930         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
111931         '\v', and translate the two parts separately, instead of feeding
111932         the whole string to gettext.  This allows to exclude
111933         '\v' from the strings visible to the translator by writing doc
111934         strings as N_("..") "\v" N_("..").
111936 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
111938         * config/srclist.txt: Undo latest change; the bug was fixed.
111940 2006-09-09  Bruno Haible  <bruno@clisp.org>
111942         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
111943         assignments if building a library without libtool.
111944         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
111945         in func_emit_lib_Makefile_am.
111946         (func_import): When building a static library libfoo.a, arrange to
111947         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
111948         (func_create_testdir): Likewise.
111949         * modules/gc (configure.ac, Makefile.am): If building statically,
111950         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
111951         * modules/iconvme (configure.ac, Makefile.am): Likewise.
111952         * modules/striconv (configure.ac, Makefile.am): Likewise.
111953         Based on a suggestion by Ralf Wildenhues.
111955 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111957         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
111958         Check for unistd.h too, since Autoconf doesn't assume POSIX.
111959         Also:
111961         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111962         Add year_2050_test to catch glibc bug 2821
111963         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
111965         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111966         Prefer #ifdef to #if.
111968         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
111969         Return from 'main' instead of calling 'exit'.
111971 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111973         * lib/mktime.c (guess_time_tm): Fix bug where mktime
111974         returned the maximum time_t value rather than (time_t) -1.
111975         Problem originally reported by William Bardwell
111976         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
111978         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
111979         Moved to here ...
111980         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
111981         ... from here.
111983 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111985         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
111986         2821 is fixed.
111988 2006-09-08  Jim Meyering  <jim@meyering.net>
111990         Don't make generated files read-only.  That would bother too many
111991         people.  However, do retain the ability to work when targets are
111992         read-only: remove the destination and temporary files before writing
111993         them (when generated via sed or echo), or by using the -f option for
111994         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
111995         * modules/alloca-opt, modules/argz, modules/arpa_inet:
111996         * modules/byteswap, modules/configmake, modules/fcntl:
111997         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
111998         * modules/localcharset, modules/netinet_in, modules/poll:
111999         * modules/stdbool, modules/stdint, modules/sys_select:
112000         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112002 2006-09-08  Jim Meyering  <jim@meyering.net>
112004         Avoid new build failure on FreeBSD 6.0.
112005         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
112006         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
112007         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
112009 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112011         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
112013 2006-09-07  Jim Meyering  <jim@meyering.net>
112015         Fix global typo in last change: use chmod u-w, not chmod u-x.
112016         Spotted by Paul Eggert and Bruce Korb.
112017         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112018         * modules/byteswap, modules/configmake, modules/fcntl:
112019         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112020         * modules/localcharset, modules/netinet_in, modules/poll:
112021         * modules/stdbool, modules/stdint, modules/sys_select:
112022         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112024 2006-09-06  Jim Meyering  <jim@meyering.net>
112026         Make generated files be read-only.
112027         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
112028         Ensure that each generated file is now read-only.
112029         * modules/argz: Likewise.
112030         * modules/arpa_inet: Likewise.
112031         * modules/byteswap: Likewise.
112032         * modules/configmake: Likewise.
112033         * modules/fcntl: Likewise.
112034         * modules/fnmatch: Likewise.
112035         * modules/getopt: Likewise.
112036         * modules/glob: Likewise.
112037         * modules/inttypes: Likewise.
112038         * modules/netinet_in: Likewise.
112039         * modules/poll: Likewise.
112040         * modules/stdbool: Likewise.
112041         * modules/stdint: Likewise.
112042         * modules/sys_select: Likewise.
112043         * modules/sys_socket: Likewise.
112044         * modules/sys_stat: Likewise.
112045         * modules/sysexits: Likewise.
112046         * modules/localcharset: Same as above, but continue using temporary
112047         file named "t-$@" (why different?) rather than the "$@-t" used
112048         everywhere else.
112050         * modules/sysexits (Makefile.am): Replace literal occurrences
112051         of "sysexit.h" more readable, and more consistent, "$@".
112053 2006-09-06  Bruno Haible  <bruno@clisp.org>
112055         * modules/striconv: New file.
112056         * modules/xstriconv: New file.
112057         * MODULES.html.sh (Internationalization functions): Add striconv,
112058         xstriconv.
112060 2006-09-06  Bruno Haible  <bruno@clisp.org>
112062         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
112063         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
112064         not using libtool correctly.
112066 2006-09-06  Bruno Haible  <bruno@clisp.org>
112068         * lib/striconv.h: New file.
112069         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
112070         iconvstring.c.
112071         * lib/xstriconv.h: New file.
112072         * lib/xstriconv.c: New file.
112074 2006-09-06  Bruno Haible  <bruno@clisp.org>
112076         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
112077         lib_..._LDFLAGS.
112079 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112081         * lib/argz_.h: Sync from Libtool.
112083         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
112084                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112086         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
112088 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112090         * modules/trim: New file.
112092 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112094         * lib/trim.h: New file.
112095         * lib/trim.c: New file.
112097 2006-09-05  Bruno Haible  <bruno@clisp.org>
112099         * MODULES.html.sh (String handling): Add trim.
112101 2006-09-04  Karl Berry  <karl@gnu.org>
112103         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
112104         until next release.
112106 2006-09-03  Bruno Haible  <bruno@clisp.org>
112108         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
112109         correctly.
112111 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112113         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
112114         not gl_GETLOADAVG.  Omit unneeded semicolons.
112115         Problems reported by Ralf Wildenhues in
112116         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112117         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
112118         at the end, which is the usual gnulib style.
112120         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
112121         of doing all the work ourselves.
112122         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
112123         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
112125 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112127         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
112128         Problem reported by Ralf Wildenhues in
112129         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112131         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
112132         HAVE_STRUCT_STATFS_F_FSTYPENAME.
112134 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112136         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
112137         yesterday's patch by changing test -n to test -z.
112139 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112141         * modules/getloadavg (Files): Add m4/getloadavg.m4.
112142         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
112143         the former is now obsolescent.
112145         * modules/chdir-long (Depends-on): Add fcntl.
112147 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112149         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
112150         obsolescent, and programs should use gnulib instead.
112151         * m4/getloadavg.m4: New file, with contents taken from Autoconf
112152         but with prefixes changed.
112154 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112156         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
112157         or stdbool.h, because they might not exist while configuring.
112159         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
112160         Don't include unistd.h or limits.h; not needed, since chdir-long.h
112161         does that for us.
112162         (O_DIRECTORY): Remove.
112164 2006-08-31  Eric Blake  <ebb9@byu.net>
112166         * gnulib-tool: Don't let emacs change spaces to TAB.
112168 2006-08-31  Bruno Haible  <bruno@clisp.org>
112170         * gnulib-tool: When calling func_import more than once, do it in a
112171         subshell.
112172         Reported by Eric Blake <ebb9@byu.net>.
112174 2006-08-31  Bruno Haible  <bruno@clisp.org>
112176         * gnulib-tool (nl): Remove variable.
112177         (sed_transform_lib_file): Use more robust test for config-h module.
112178         (func_import): Fix typo in 2006-08-25 patch.
112180 2006-08-31  Bruno Haible  <bruno@clisp.org>
112182         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
112183         specified, augment Makefile.am variables instead of assigning them.
112185 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112187         Work around a bug in both the Linux and SunOS 64-bit kernels:
112188         nanosleep mishandles sleeps for longer than 2**31 seconds.
112189         Problem reported by Frank v Waveren in
112190         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112191         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
112192         Check for nanosleep bug.
112193         (LIB_NANOSLEEP): Append clock_gettime library if needed.
112195 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112197         Work around a bug in both the Linux and SunOS 64-bit kernels:
112198         nanosleep mishandles sleeps for longer than 2**31 seconds.
112199         Problem reported by Frank v Waveren in
112200         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112201         * lib/nanosleep.c (BILLION): New constant.
112202         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
112203         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
112204         implementation.
112206 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112208         * modules/nanosleep (Depends-on): Add gettime.
112210 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112211         and Simon Josefsson  <jas@extundo.com>
112212         and Oskar Liljeblad  <oskar@osk.mine.nu>
112214         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
112215         * gnulib-tool (func_import): New license type 'unmodifiable license
112216         text'.
112217         * modules/fdl: Use it.  Longer description.
112218         * module/gpl, module/lgpl: New files.
112220 2006-08-30  Jim Meyering  <jim@meyering.net>
112222         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
112223         shadowing the parameter.
112225 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112227         Sync from Libtool:
112229         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112231         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
112232         sharing with gnulib.  Report by Eric Blake.
112234 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112236         * modules/isapipe: New file.
112237         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
112239 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112241         * modules/configmake (Makefile.am): Add a comment, and omit
112242         the CONFIGMAKE_ prefix from generated macro names.  Suggested
112243         by Bruno Haible.
112245 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112247         * m4/isapipe.m4: New file.
112249 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112251         * lib/isapipe.c, lib/isapipe.h: New files.
112253 2006-08-29  Jim Meyering  <jim@meyering.net>
112255         * modules/configmake (Makefile.am): Make configmake.h depend on
112256         Makefile.  Otherwise, a stale configmake.h could hang around.
112258 2006-08-29  Eric Blake  <ebb9@byu.net>
112260         * lib/error.c (error_at_line, print_errno_message): Match libc, after
112261         resolution of upstream bug 3044.
112263 2006-08-29  Bruno Haible  <bruno@clisp.org>
112265         * modules/localcharset (Depends-on): Add configmake.
112266         (Makefile.am): Remove setting of LIBDIR through DEFS.
112268 2006-08-29  Bruno Haible  <bruno@clisp.org>
112270         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
112271         defined.
112273 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112275         * modules/fcntl: New file.
112276         * modules/chdir-safer (Depends-on): Add fcntl.
112277         * modules/fts: Likewise.
112278         * modules/mkdir-p: Likewise.
112280         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
112281         This undoes the most recent change, since we're now addressing the
112282         problem in a different way.
112284         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
112285         into output, since the output might be called Makefile.am even
112286         if $makefile_name is something different.
112287         (func_import): Use $makefile_am rather than
112288         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
112289         empty.
112291         * modules/inttypes (Files): Add m4/inttypes-h.m4.
112293 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112295         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
112296         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
112297         recent change to stdint.m4, since we're now addressing the problem in a
112298         different way.
112300 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112302         * m4/fcntl_h.m4: New file.
112304 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112306         * lib/fcntl_.h: New file.
112307         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
112308         the fcntl module.
112309         * lib/dirchownmod.c: Likewise.
112310         * lib/fts.c: Likewise.
112312         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
112313         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
112314         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
112315         just before including <inttypes.h>, to avoid circular inclusion.
112317 2006-08-28  Jim Meyering  <jim@meyering.net>
112319         * doc/visibility.texi: Actually read and correct the grammar of the
112320         sentence affected by yesterday's change.
112322 2006-08-28  Eric Blake  <ebb9@byu.net>
112324         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
112325         needs wrapper.
112327 2006-08-28  Eric Blake  <ebb9@byu.net>
112329         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
112331 2006-08-28  Eric Blake  <ebb9@byu.net>
112333         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
112335 2006-08-28  Bruno Haible  <bruno@clisp.org>
112337         * modules/c-strstr: New file, from GNU gettext.
112338         * MODULES.html.sh (String handling): Add c-strstr.
112340 2006-08-28  Bruno Haible  <bruno@clisp.org>
112342         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
112343         macros.
112344         Reported by Eric Blake.
112346 2006-08-28  Bruno Haible  <bruno@clisp.org>
112348         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
112349         (VASNPRINTF): Return a string of length > INT_MAX without failing.
112350         * lib/vasprintf.c: Include errno.h, limits.h.
112351         (EOVERFLOW): New fallback definition.
112352         (vasprintf): Test here whether the string length is > INT_MAX.
112353         * lib/vsnprintf.c: Include errno.h, limits.h.
112354         (EOVERFLOW): New fallback definition.
112355         (vsnprintf): Fix bug when generated string was too long for the buffer.
112356         Test here whether the string length is > INT_MAX.
112358 2006-08-28  Bruno Haible  <bruno@clisp.org>
112360         * lib/inttypes_.h (SCNX*): Remove definitions.
112361         Reported by Eric Blake.
112363 2006-08-28  Bruno Haible  <bruno@clisp.org>
112365         * lib/c-strstr.h: New file, from GNU gettext.
112366         * lib/c-strstr.c: New file, from GNU gettext.
112368 2006-08-28  Bruno Haible  <bruno@clisp.org>
112370         * gnulib-tool: Reorder some statements.
112372 2006-08-28  Bruno Haible  <bruno@clisp.org>
112374         * gnulib-tool: New option --makefile-name.
112375         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
112376         $makefile_name.
112377         (func_import): Write $makefile_name to the cache file, and read it from
112378         there unless explicitly specified. Use $makefile_name as file name
112379         instead of Makefile.am. Adjust the recommendations accordingly.
112381 2006-08-28  Bruno Haible  <bruno@clisp.org>
112383         * gnulib-tool (func_verify_module): Check against misapplying patch.
112385 2006-08-28  Bruno Haible  <bruno@clisp.org>
112387         * gnulib-tool (func_relativize, func_relconcat): New functions.
112388         Give an error if --local-dir is given with --update.
112389         Remove trailing slashes from $local_gnulib_dir.
112390         (func_import): Store the relativized $local_gnulib_dir in
112391         gnulib-cache.m4, and read it from there if not specified explicitly.
112393 2006-08-28  Bruno Haible  <bruno@clisp.org>
112395         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
112396         is the current directory. Respect also $local_gnulib_dir.
112398 2006-08-28  Bruno Haible  <bruno@clisp.org>
112399             Simon Josefsson  <jas@extundo.com>
112401         BeOS portability.
112402         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
112404 2006-08-27  Jim Meyering  <jim@meyering.net>
112406         * doc/visibility.texi: Remove duplicate word: "pointer".
112408 2006-08-26  Bruno Haible  <bruno@clisp.org>
112410         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
112411         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
112412         (Makefile.am): Create inttypes.h from inttypes_.h.
112413         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
112415         * modules/imaxabs: New file.
112417         * modules/imaxdiv: New file.
112419 2006-08-26  Bruno Haible  <bruno@clisp.org>
112421         * m4/inttypes.m4: New file.
112422         * m4/_inttypes_h.m4: Remove file.
112423         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
112424         PRI_MACROS_BROKEN.
112425         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
112427         * m4/imaxabs.m4: New file.
112429         * m4/imaxdiv.m4: New file.
112431 2006-08-26  Bruno Haible  <bruno@clisp.org>
112433         * lib/inttypes_.h: New file.
112434         * lib/inttypes.h: Remove file.
112435         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
112437         * lib/imaxabs.c: New file.
112439         * lib/imaxdiv.c: New file.
112441 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112443         New config-h module, so that "make" output needn't be cluttered
112444         by -DHAVE_CONFIG_H.
112445         * MODULES.html.sh (Support for building libraries and executables):
112446         Add config-h.
112447         * modules/config-h: New file.
112448         * gnulib-tool (nl, sed_transform_lib_file): New vars.
112449         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
112450         the config-h module is used.
112452         New configmake module, so that "make" output needn't be cluttered
112453         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
112454         * MODULES.html.sh (Support for building libraries and executables):
112455         Add configmake.
112456         * modules/configmake: New file.
112458 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112460         * m4/config-h.m4: New file.
112462 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112464         * config/srclist.txt: Add elisp-comp.
112466 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112468         * MODULES.html.sh (Support for building libraries and executables):
112469         Add elisp-comp.
112470         * build-aux/elisp-comp: New file.
112471         * modules/elisp-comp: New file.
112473 2006-08-24  Bruno Haible  <bruno@clisp.org>
112475         * gnulib-tool (func_create_testdir): Use non-default values of
112476         sourcebase and m4base.
112478 2006-08-24  Bruno Haible  <bruno@clisp.org>
112480         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
112481         HTML structure.
112483 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112485         * modules/openat (Depends-on): Add lchown.
112487 2006-08-23  Bruno Haible  <bruno@clisp.org>
112489         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
112490         of gl_LOCK_EARLY instead of gl_LOCK.
112492 2006-08-23  Bruno Haible  <bruno@clisp.org>
112494         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
112495         on OSF/1 to no.
112496         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
112498 2006-08-23  Bruno Haible  <bruno@clisp.org>
112500         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
112501         as unusable.
112503         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
112504         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
112505         (gl_LOCK): New macro.
112507 2006-08-22  Simon Josefsson  <jas@extundo.com>
112509         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
112510         to md5 module.
112512 2006-08-22  Simon Josefsson  <jas@extundo.com>
112514         * MODULES.html.sh: Add "Support for maintaining and release
112515         projects".
112517         * build-aux/gnupload: New file, from coreutils.
112519 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112521         Avoid the need for AC_LIBSOURCES in m4 macros.
112522         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
112523         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
112524         * modules/check-version (EXTRA_DIST): Add check-version.h.
112525         * modules/crc (EXTRA_DIST): Add crc.h.
112526         * modules/des (EXTRA_DIST): Add des.h.
112527         * modules/gc (EXTRA_DIST): Add gc.h.
112528         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
112529         * modules/getline (EXTRA_DIST): Add getline.h.
112530         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
112531         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
112532         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
112533         * modules/md2 (EXTRA_DIST): Add md2.h.
112534         * modules/md4 (EXTRA_DIST): Add md4.h.
112535         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
112536         * modules/read-file (EXTRA_DIST): Add read-file.h.
112537         * modules/readline (EXTRA_DIST): Add readline.h.
112538         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
112539         rijndael-api-fst.h.
112541 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112543         * m4/rijndael.m4 (gl_ARCFOUR):
112544         * m4/arctwo.m4 (gl_ARCTWO):
112545         * m4/check-version.m4 (gl_CHECK_VERSION):
112546         * m4/crc.m4 (gl_CRC):
112547         * m4/des.m4 (gl_DES):
112548         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
112549         * m4/gc.m4 (gl_GC):
112550         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
112551         * m4/getline.m4 (gl_FUNC_GETLINE):
112552         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
112553         * m4/hmac-md5.m4 (gl_HMAC_MD5):
112554         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
112555         * m4/md2.m4 (gl_MD2):
112556         * m4/md4.m4 (gl_MD4):
112557         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
112558         * m4/read-file.m4 (gl_FUNC_READ_FILE):
112559         * m4/readline.m4 (gl_FUNC_READLINE):
112560         * m4/rijndael.m4 (gl_RIJNDAEL):
112561         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
112562         to get the necessary .h files and whatnot.
112564 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112566         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
112567         gnulib rather than the other way around.
112568         * config/srclistvars.sh (COREUTILS): Remove.
112570 2006-08-22  Jim Meyering  <jim@meyering.net>
112572         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
112574         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
112576 2006-08-22  Eric Blake  <ebb9@byu.net>
112578         * modules/regexprops-generic: New file.
112579         * MODULES.html.sh (Support for building documentation): List it.
112581 2006-08-22  Eric Blake  <ebb9@byu.net>
112583         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
112584         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
112585         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
112586         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
112588 2006-08-22  Bruno Haible  <bruno@clisp.org>
112590         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
112591         and lib_LTLIBRARIES like the other lib_* variables.
112593 2006-08-22  Bruno Haible  <bruno@clisp.org>
112595         * build-aux/x-to-1.in: New file, from GNU gettext.
112597 2006-08-22  Bruno Haible  <bruno@clisp.org>
112599         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
112600         <utmpx.h> exists.
112602 2006-08-22  Bruno Haible  <bruno@clisp.org>
112604         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
112605         <utmpx.h> exists.
112607 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112609         BeOS portability.
112610         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
112611         exist.
112612         Problem reported by Bruno Haible.
112614 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112616         Avoid the need for AC_LIBSOURCES in m4 macros.
112617         * modules/acl (EXTRA_DIST): Add acl.h.
112618         * modules/argmatch (Files): Add m4/argmatch.m4.
112619         (configure.ac): Add gl_ARGMATCH.
112620         (EXTRA_DIST): Renamed from lib_SOURCES, for
112621         consistency with the other modules.  Remove argmatch.c.
112622         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
112623         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
112624         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
112625         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
112626         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
112627         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
112628         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
112629         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
112630         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
112631         * modules/closeout (EXTRA_DIST): Add closeout.h.
112632         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
112633         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
112634         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
112635         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
112636         dirname.h; remove basename.c and stripslash.c.
112637         * modules/exclude (EXTRA_DIST): Add exclude.h.
112638         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
112639         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
112640         * modules/file-type (EXTRA_DIST): Add file-type.h.
112641         * modules/filemode (EXTRA_DIST): Add filemode.h.
112642         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
112643         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
112644         * modules/fpending (EXTRA_DIST): Add __fpending.h.
112645         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
112646         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
112647         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
112648         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
112649         * modules/getdate (EXTRA_DIST): Add getdate.c.
112650         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
112651         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
112652         * modules/getpass (EXTRA_DIST): Add getpass.h.
112653         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
112654         * modules/group-member (EXTRA_DIST): Add group-member.h.
112655         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
112656         * modules/hash (EXTRA_DIST): Add hash.h.
112657         * modules/human (EXTRA_DIST): Add human.h.
112658         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
112659         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
112660         * modules/lchown (EXTRA_DIST): Add lchown.h.
112661         * modules/long-options (EXTRA_DIST): Add long-options.h.
112662         * modules/lstat (EXTRA_DIST): Add lstat.h.
112663         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
112664         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
112665         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
112666         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
112667         * modules/memxor (EXTRA_DIST): Add memxor.h.
112668         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
112669         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
112670         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
112671         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
112672         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
112673         * modules/physmem (EXTRA_DIST): Add physmem.h.
112674         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
112675         * modules/posixver (EXTRA_DIST): Add posixver.h.
112676         * modules/quote (EXTRA_DIST): Add quote.h.
112677         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
112678         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
112679         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
112680         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
112681         regex_internal.h regexec.c.
112682         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
112683         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
112684         * modules/same (EXTRA_DIST): Add same.h.
112685         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
112686         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
112687         * modules/savedir (EXTRA_DIST): Add savedir.h.
112688         * modules/sha1 (EXTRA_DIST): Add sha1.h.
112689         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
112690         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
112691         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
112692         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
112693         * modules/strdup (EXTRA_DIST): Add strdup.h.
112694         * modules/strftime (EXTRA_DIST): Add strftime.h.
112695         * modules/strndup (EXTRA_DIST): Add strndup.h.
112696         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
112697         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
112698         * modules/time_r (EXTRA_DIST): Add time_r.h.
112699         * modules/timespec (EXTRA_DIST): Add timespec.h.
112700         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
112701         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
112702         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
112703         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
112704         * modules/userspec (EXTRA_DIST): Add userspec.h.
112705         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
112706         * modules/utimens (EXTRA_DIST): Add utimens.h.
112707         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
112708         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
112709         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
112710         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
112711         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
112712         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
112713         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
112714         * modules/yesno (EXTRA_DIST): Add yesno.h.
112716 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112718         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
112720         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
112721         * m4/dev-ino.m4, same-inode.m4: Remove.
112723         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
112724         * m4/acl.m4 (AC_FUNC_ACL):
112725         * m4/backupfile.m4 (gl_BACKUPFILE):
112726         * m4/c-strtod.m4 (gl_C99_STRTOLD):
112727         * m4/canon-host.m4 (gl_CANON_HOST):
112728         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
112729         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
112730         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
112731         * m4/cloexec.m4 (gl_CLOEXEC):
112732         * m4/close-stream.m4 (gl_CLOSE_STREAM):
112733         * m4/closeout.m4 (gl_CLOSEOUT):
112734         * m4/dirfd.m4 (gl_FUNC_DIRFD):
112735         * m4/dirname.m4 (gl_DIRNAME):
112736         * m4/exclude.m4 (gl_EXCLUDE):
112737         * m4/exitfail.m4 (gl_EXITFAIL):
112738         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
112739         * m4/file-type.m4 (gl_FILE_TYPE):
112740         * m4/filemode.m4 (gl_FILEMODE):
112741         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
112742         * m4/fpending.m4 (gl_FUNC_FPENDING):
112743         * m4/fprintftime.m4 (gl_FPRINTFTIME):
112744         * m4/fts.m4 (gl_FUNC_FTS):
112745         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
112746         * m4/getdate.m4 (gl_GETDATE):
112747         * m4/gethrxtime.m4 (gl_GETHRXTIME):
112748         * m4/getpagesize.m4 (gl_GETPAGESIZE):
112749         * m4/getpass.m4 (gl_FUNC_GETPASS):
112750         * m4/gettime.m4 (gl_GETTIME):
112751         * m4/getugroups.m4 (gl_GETUGROUPS):
112752         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
112753         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
112754         * m4/hard-locale.m4 (gl_HARD_LOCALE):
112755         * m4/hash.m4 (gl_HASH):
112756         * m4/idcache.m4 (gl_IDCACHE):
112757         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
112758         * m4/lchown.m4 (gl_FUNC_LCHOWN):
112759         * m4/long-options.m4 (gl_LONG_OPTIONS):
112760         * m4/lstat.m4 (gl_FUNC_LSTAT):
112761         * m4/md5.m4 (gl_MD5):
112762         * m4/memcasecmp.m4 (gl_MEMCASECMP):
112763         * m4/memcoll.m4 (gl_MEMCOLL):
112764         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
112765         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
112766         * m4/memxor.m4 (gl_MEMXOR):
112767         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
112768         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
112769         * m4/modechange.m4 (gl_MODECHANGE):
112770         * m4/mountlist.m4 (gl_MOUNTLIST):
112771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
112772         * m4/openat.m4 (gl_FUNC_OPENAT):
112773         * m4/pathmax.m4 (gl_PATHMAX):
112774         * m4/physmem.m4 (gl_PHYSMEM):
112775         * m4/posixtm.m4 (gl_POSIXTM):
112776         * m4/posixver.m4 (gl_POSIXVER):
112777         * m4/quote.m4 (gl_QUOTE):
112778         * m4/quotearg.m4 (gl_QUOTEARG):
112779         * m4/readtokens.m4 (gl_READTOKENS):
112780         * m4/readutmp.m4 (gl_READUTMP):
112781         * m4/regex.m4 (gl_REGEX):
112782         * m4/safe-read.m4 (gl_SAFE_READ):
112783         * m4/safe-write.m4 (gl_SAFE_WRITE):
112784         * m4/same.m4 (gl_SAME):
112785         * m4/save-cwd.m4 (gl_SAVE_CWD):
112786         * m4/savedir.m4 (gl_SAVEDIR):
112787         * m4/settime.m4 (gl_SETTIME):
112788         * m4/sha1.m4 (gl_SHA1):
112789         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
112790         * m4/stat-macros.m4 (gl_STAT_MACROS):
112791         * m4/stat-time.m4 (gl_STAT_TIME):
112792         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
112793         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
112794         * m4/strdup.m4 (gl_FUNC_STRDUP):
112795         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
112796         * m4/strndup.m4 (gl_FUNC_STRNDUP):
112797         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
112798         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
112799         * m4/time_r.m4 (gl_TIME_R):
112800         * m4/timespec.m4 (gl_TIMESPEC):
112801         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
112802         * m4/unlinkdir.m4 (gl_UNLINKDIR):
112803         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
112804         * m4/userspec.m4 (gl_USERSPEC):
112805         * m4/utimecmp.m4 (gl_UTIMECMP):
112806         * m4/utimens.m4 (gl_UTIMENS):
112807         * m4/xalloc.m4 (gl_XALLOC):
112808         * m4/xgetcwd.m4 (gl_XGETCWD):
112809         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
112810         * m4/xreadlink.m4 (gl_XREADLINK):
112811         * m4/xstrtod.m4 (gl_XSTRTOD):
112812         * m4/yesno.m4 (gl_YESNO):
112813         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
112814         to get the necessary .h files and whatnot.
112816 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
112817             Bruno Haible  <bruno@clisp.org>
112819         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
112820         /bin/sh understanding of '!' conditional negation.
112822 2006-08-21  Jim Meyering  <jim@meyering.net>
112824         * modules/openat (Depends-on): Really alphabetize.
112826         * modules/acl (Depends-on): Add error and quote.
112828         * check-module (find_included_lib_files): Add at-func.c to the
112829         ok-to-include-more-than-once white list.
112831         * modules/openat (Depends-on): Add lstat.  Alphabetize.
112833 2006-08-21  Bruno Haible  <bruno@clisp.org>
112835         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112836         Emit a pkgdata_DATA variable only if some snippets add contents to it.
112837         Reported by Martin Lambers <marlam@marlam.de>.
112839 2006-08-21  Bruno Haible  <bruno@clisp.org>
112841         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
112842         specify an installation location, don't emit a noinst_LIBRARIES or
112843         noinst_LTLIBRARIES assignment.
112845 2006-08-21  Bruno Haible  <bruno@clisp.org>
112847         BeOS portability.
112848         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
112849         BeOS has mbrtowc() but no <wctype.h>.
112851 2006-08-21  Bruno Haible  <bruno@clisp.org>
112853         BeOS portability.
112854         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
112855         exist.
112857 2006-08-21  Bruno Haible  <bruno@clisp.org>
112859         BeOS portability.
112860         * lib/mbchar.h: Include <wctype.h> only if it exists.
112862 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112864         Remove files that are no longer needed by their respective modules.
112865         * m4/obstack.m4: Remove.
112866         * m4/strerror_r.m4: Remove.
112867         * m4/uint32_t.m4: Remove.
112868         * m4/uintptr_t.m4: Remove.
112869         * m4/ullong_max.m4: Remove.
112870         * m4/xstrtoimax.m4: Remove.
112871         * m4/xstrtoumax.m4: Remove.
112873         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
112874         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
112875         dependencies now capture this.
112877         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
112878         Do not use AC_LIBSOURCES, since gnulib modules now do this.
112879         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
112880         * m4/human.m4 (gl_HUMAN): Likewise.
112881         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
112882         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
112884         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
112886         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
112887         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
112888         stdint.
112889         * m4/human.m4 (gl_HUMAN): Likewise.
112890         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
112891         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
112892         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
112893         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
112894         * m4/xstrtol (gl_XSTRTOL): Likewise.
112896         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
112897         AC_TYPE_LONG_LONG_INT.
112898         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
112899         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
112900         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
112901         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
112903         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
112904         on stdbool.
112906         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
112907         (gl_PREREQ_XSTRTOUL): Remove.
112909         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
112911         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
112912         mode.
112914 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112916         Add and change modules to make it easier for coreutils to use
112917         gnulib-tool.
112918         * modules/backupfile (Files): Remove m4/d-ino.m4.
112919         (Depends-on): Add d-ino.
112920         * modules/cycle-check (Depends-on): Add stdint.
112921         (lib_SOURCES): Add cycle-check.h.
112922         * modules/d-ino: New module.
112923         * modules/d-type: New module.
112924         * modules/error (Files): Remove m4/strerror_r.m4.
112925         * modules/filemode (Files): Add m4/st_dm_mode.m4.
112926         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112927         m4/inttypes_h.m4, m4/uintmax_t.m4.
112928         (Depends-on): Add stdint.
112929         (lib_SOURCES): Add fsusage.h.
112930         * modules/getcwd (Files): Remove d-ino.m4.
112931         (Depends-on): Add d-ino.
112932         * modules/getndelim2 (Depends-on): Add stdint.
112933         * modules/glob (Files): Remove m4/d-type.m4.
112934         (Depends-on): Add d-type.
112935         * modules/host-os: New module.
112936         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
112937         m4/inttypes_h.m4, m4/uintmax_t.m4.
112938         * Depends-on: Add stdint.
112939         (lib_SOURCES): Add human.h.
112940         * modules/inttostr (Files): Remove m4/intmax_t.m4,
112941         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
112942         m4/uintmax_t.m4, m4/ulonglong.m4.
112943         (Depends-on): Add stdint.
112944         (EXTRA_DIST): Add inttostr.h.
112945         * modules/lchmod: New module.
112946         * modules/link-follow: New module.
112947         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
112948         (Depends-on): Add lchmod.
112949         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
112950         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
112951         (Depends-on): Add stdint.
112952         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
112953         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
112954         (Depends-on): Add stdint.
112955         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
112956         * modules/perl: New module.
112957         * modules/regex (Depends-on): Add stdint.
112958         * modules/rmdir-errno: New module.
112959         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
112960         m4/intmax_t.m4.
112961         (Depends-on): Add stdint.
112962         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
112963         m4/uintmax_t.m4.
112964         (Depends-on): Add stdint.
112965         * modules/unlink-busy: New module.
112966         * modules/utimecmp (Depends-on): Add stdint.
112967         * modules/uptime: New module.
112968         * modules/winsz-ioctl: New module.
112969         * modules/winsz-termios: New module.
112970         * modules/xnanosleep (Depends-on): Add nanosleep.
112971         * modules/ullong_max: Remove.
112972         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
112973         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
112974         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
112975         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
112976         (Depends-on): Add inttypes.
112977         (lib_SOURCES): Add xstrtol.h.
112978         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
112979         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
112980         * MODULES.html.sh: Move 'assert' into the assert section.
112981         Move 'dummy' into the linking section.
112982         Remove ullong_max.
112983         Add section for compatibility checks for POSIX:2001 functions,
112984         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
112985         winsz-ioctl, and winsz-termios into it.
112986         Add lchmod.
112987         Add top-level Misc section and put host-os, perl, and uptime
112988         into it.
112990 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112992         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
112993         now assume the stdint module.  Do not include inttypes.h.
112994         * lib/fsusage.h: Likewise.
112995         * lib/getndelim2.c: Likewise.
112996         * lib/human.h: Likewise.
112997         * lib/inttostr.h: Likewise.
112998         * lib/obstack.c: Likewise.
112999         * lib/regex_internal.h: Likewise.
113000         * lib/tempname.c: Likewise.
113001         * lib/utimecmp.c: Likewise.
113002         * lib/xstrtol.h: Likewise.
113004         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
113006         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
113007         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
113008         * lib/xtime.h: Likewise.
113010 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113012         * modules/openat (Files): Add lib/fchmodat.c.
113013         Fixes problem reported by Jay Youngman.
113015 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113017         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
113018         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
113020 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
113021             Bruno Haible  <bruno@clisp.org>
113023         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
113024         and is a script that invokes bison. Tighten the code. Add comments.
113026 2006-08-18  Jim Meyering  <jim@meyering.net>
113028         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
113029         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
113030         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
113031         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
113033 2006-08-18  Bruno Haible  <bruno@clisp.org>
113035         * modules/bison-i18n: New file.
113036         * MODULES.html.sh (Internationalization functions): Add it.
113038 2006-08-18  Bruno Haible  <bruno@clisp.org>
113040         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
113041         sys/statvfs.h. When getmntinfo was found, check its declaration and
113042         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
113044 2006-08-18  Bruno Haible  <bruno@clisp.org>
113046         * m4/bison-i18n.m4: New file, from bison.
113048 2006-08-18  Bruno Haible  <bruno@clisp.org>
113050         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
113051         (ME_DUMMY): Treat "kernfs" as a dummy.
113052         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
113054 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113056         Update from coreutils.
113058         2006-08-15  Jim Meyering  <jim@meyering.net>
113060         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
113062         2006-01-17  Jim Meyering  <jim@meyering.net>
113064         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
113066         2006-01-11  Jim Meyering  <jim@meyering.net>
113068         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
113069         Check for the lchmod function.
113071 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113073         Update from coreutils.
113075         * lib/__fpending.h: Add copyright notice.
113076         * lib/fprintftime.h: Likewise.
113077         * lib/savedir.c: Use (C) in copyright notice.
113078         * lib/savedir.h: Likewise.
113080         2006-08-15  Jim Meyering  <jim@meyering.net>
113082         * lib/at-func.c: New file, with the logic of all emulated at-functions.
113083         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
113084         in support of the EXPECTED_ERRNO macro.
113085         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
113086         definitions.  Instead, define the appropriate symbols and include
113087         "at-func.c".
113088         * lib/mkdirat.c (mkdirat): Likewise.
113089         * lib/fchmodat.c (fchmodat): Likewise.
113090         (ENOSYS): Remove definition.
113091         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
113092         it.  Don't include "unistd--.h" -- it wasn't ever used.
113094         2006-01-17  Jim Meyering  <jim@meyering.net>
113096         Rewrite fts.c not to change the current working directory,
113097         by using openat, fstatat, fdopendir, etc..
113099         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
113100         (HAVE_OPENAT_SUPPORT): Define.
113101         [_LIBC] (fchdir): Don't undef or define; no longer used.
113102         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
113103         Now, this `function' always succeeds, and consumes its file descriptor
113104         parameter -- so callers must not close such FDs.  Update callers.
113105         (diropen_fd, opendirat, cwd_advance_fd): New functions.
113106         (diropen): Add parameter, SP.  Adjust all callers.
113107         Implement using diropen_fd, rather than open.
113108         (fts_open): Initialize new member, fts_cwd_fd.
113109         Remove fts_rft-setting code.
113110         (fts_close): Close fts_cwd_fd, if necessary.
113111         (__opendir2): Define in terms of opendir or opendirat,
113112         depending on whether the FST_NOCHDIR flag is set.
113113         (fts_build): Since fts_safe_changedir consumes its FD, and since
113114         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
113115         and close the dup'd file descriptor upon failure.
113116         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
113117         (fts_safe_changedir): Tweak semantics to reflect that this function
113118         now calls cwd_advance_fd and hence consumes its FD argument.
113119         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
113120         [struct FTS] (fts_rft): Remove now-unused member.
113121         [struct FTS] (fts_cycle.state): Improve comment.
113123         * lib/openat.c (openat_needs_fchdir): New function.
113124         * lib/openat.h (openat_needs_fchdir): Declare it.
113126 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
113128         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
113129         Problem and fix reported by Pádraig Brady in
113130         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
113132 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113134         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
113136 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113138         * lib/memcoll.c (memcoll): Optimize for the common case where the
113139         arguments are bytewise equal.
113141 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113143         * doc/regexprops-generic.texi: Add a copyright notice.
113145 2006-08-15  Bruno Haible  <bruno@clisp.org>
113147         * modules/tmpdir (License): Change to LGPL.
113149 2006-08-15  Bruno Haible  <bruno@clisp.org>
113151         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
113152         module.
113154 2006-08-14  Simon Josefsson  <jas@extundo.com>
113156         * config/srclist.txt: Add gnupload.
113158 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113160         Change copyright notice from LGPL 2 to GPL 2, since that's the
113161         standard form used in the gnulib repository.
113162         * tests/test-lock.c: Likewise.
113163         * tests/test-stdint.c: Likewise.
113164         * tests/test-tls.c: Likewise.
113166         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
113167         prelude-manager.  User shorter URLs for GNU projects, without '?'.
113168         Add copyright notice.
113170         * check-module: Add copyright notice.  Output a copyright
113171         notice if "--version" is specified.
113172         * modules/COPYING: New file.
113173         * tests/test-getaddrinfo.c: Add copyright notice.
113174         * tests/test-verify.c: Likewise.
113176 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113178         Change copyright notice from LGPL 2 to GPL 2, since that's the
113179         standard form used in the gnulib repository.
113180         * lib/lock.c: LGPL -> GPL.
113181         * lib/lock.h: Likewise.
113182         * lib/strnlen1.c: Likewise.
113183         * lib/strnlen1.h: Likewise.
113184         * lib/tls.c: Likewise.
113185         * lib/tls.h: Likewise.
113186         * lib/tmpdir.c: Likewise.
113188         * lib/TODO: Remove; this belongs only in coreutils.
113190 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113192         Add copyright notices to long-enough files that lack them, since
113193         otherwise the files aren't clearly free.  Use the same notice that
113194         getdate.texi already uses.
113195         * doc/alloca-opt.texi: Add copyright notice.
113196         * doc/alloca.texi: Likewise.
113197         * doc/ctime.texi: Likewise.
113198         * doc/functions.texi: Likewise.
113199         * doc/gcd.texi: Likewise.
113200         * doc/gnulib-tool.texi: Likewise.
113201         * doc/inet_ntoa.texi: Likewise.
113202         * doc/visibility.texi: Likewise.
113204         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
113205         * doc/quote.texi: Add copyright notice.
113207         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
113208         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
113209         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
113210         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
113211         is now obsolete, and give a pointer to the Sun list.
113212         Add copyright notice.
113214 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113216         * config/srclistvars.sh: Add copyright notice.
113218 2006-08-14  Eric Blake  <ebb9@byu.net>
113220         Import the following change from libc:
113222         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
113224         Upstream bug 2997.
113225         * lib/misc/error.c: Add space between program name and message if file
113226         name is missing.
113228 2006-08-12  Karl Berry  <karl@gnu.org>
113230         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
113231         remove, these originate in gnulib now.
113233 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113235         * doc/Makefile (standards.info standards.html standards.dvi):
113236         Also depend on make-stds.texi.
113238 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113240         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
113241         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
113243         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
113244         in wchar_t.  Problem reported by Eric Blake.
113246         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
113247         LEN is smaller than SIZE.  Suggested by Bruno Haible.
113248         Also, help the compiler to keep LEN in a register.
113250 2006-08-11  Eric Blake  <ebb9@byu.net>
113252         * users.txt: Sort.  Add tar.
113254 2006-08-11  Bruno Haible  <bruno@clisp.org>
113256         * users.txt: New file.
113258 2006-08-11  Bruno Haible  <bruno@clisp.org>
113260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
113261         before <wchar.h>. Needed for OSF/1 and BSD/OS.
113263 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113265         * modules/snprintf (Depends-on): Remove minmax.
113266         (Maintainer): Add self and Bruno.
113268 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113270         * lib/.cppi-disable: Add snprintf.h, socket_.h.
113271         * lib/snprintf.c: Include <errno.h> and <limits.h>.
113272         (EOVERFLOW): Define if the system does not.
113273         Do not include "minmax.h"; it wasn't used.
113274         (snprintf): Don't assume size_t promotes to an unsigned type.
113275         Fix bug when generated string was too long for the buffer: the
113276         buffer's contents are supposed to be the initial prefix of the
113277         output.  Don't assume vasnprintf returns EOVERFLOW if the size
113278         exceeds INT_MAX; do the check ourselves.
113280         Import the following changes from libc:
113282         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
113284         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
113285         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
113286         set wc to the byte which couldn't be converted.
113287         (re_string_reconstruct): Don't clear valid_raw_len before calling
113288         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
113289         tip_context using re_string_context_at.
113291         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
113293         * lib/posix/regex.h: g++ still cannot handled [restrict].
113295         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
113297         * lib/posix/regex.h: Remove special handling for VMS.
113299 2006-08-10  Jim Meyering  <jim@meyering.net>
113301         * modules/same-inode: New module.
113302         * modules/dev-ino: New module.
113303         * modules/cycle-check: Depend on these modules, rather than simply
113304         including their .h files.
113305         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
113306         required via m4/cycle-check.m4.
113307         * modules/same: Depend on new same-inode module, rather than
113308         including same-inode.h.
113309         * modules/chdir-safer: New file.
113311         * modules/chown (Depends-on): Add stat-macros.
113313 2006-08-10  Jim Meyering  <jim@meyering.net>
113315         * m4/cycle-check.m4: New file.
113316         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
113317         * m4/dev-ino.m4, m4/same-inode.m4: New files.
113319 2006-08-10  Eric Blake  <ebb9@byu.net>
113321         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
113322         in from original proposal.
113324 2006-08-10  Eric Blake  <ebb9@byu.net>
113325         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113327         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
113328         namespace.
113330 2006-08-10  Bruno Haible  <bruno@clisp.org>
113332         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
113333         as well.
113335 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113337         Sync from coreutils.
113339         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
113341         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
113342         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
113344 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113346         * modules/restrict: Remove; no longer needed now that we assume
113347         Autoconf 2.59 or later.
113348         * MODULES.html.sh: Remove 'restrict'.
113349         * modules/argp (Depends-on): Remove 'restrict'.
113350         * modules/base64 (Depends-on): Likewise.
113351         * modules/gc (Depends-on): Likewise.
113352         * modules/getaddrinfo (Depends-on): Likewise.
113353         * modules/glob (Depends-on): Likewise.
113354         * modules/inet_ntop (Depends-on): Likewise.
113355         * modules/inet_pton (Depends-on): Likewise.
113356         * modules/memxor (Depends-on): Likewise.
113357         * modules/regex (Depends-on): Likewise.
113358         * modules/strtok_r (Depends-on): Likewise.
113359         * modules/time_r (Depends-on): Likewise.
113361 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113363         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
113364         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
113365         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
113366         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
113367         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
113368         * m4/memxor.m4 (gl_MEMXOR): Likewise.
113369         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
113370         gl_C_RESTRICT replaced by AC_C_RESTRICT.
113372         Merge from coreutils.
113373         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
113374         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
113375         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
113376         * m4/time_r.m4 (gl_TIME_R): Likewise.
113378 2006-08-09  Karl Berry  <karl@gnu.org>
113380         * config/srclist.txt: no more gettext-tools, per Bruno.
113382 2006-08-08  Eric Blake  <ebb9@byu.net>
113384         * modules/verror: New module.
113385         * MODULES.html.sh: Document it.
113387 2006-08-08  Eric Blake  <ebb9@byu.net>
113389         * lib/verror.h, lib/verror.c: New files.
113391 2006-08-08  Eric Blake  <ebb9@byu.net>
113393         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
113394         verror_at_line output complies with GNU Coding Standards even when
113395         file is NULL.
113397 2006-08-07  Bruno Haible  <bruno@clisp.org>
113399         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
113400         versions of AIX.
113401         Reported by Ralf Wildenhues.
113403 2006-08-07  Bruno Haible  <bruno@clisp.org>
113405         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
113406         in an AC_DEFUN. Needed so that the autoconf snippets can use
113407         AC_REQUIRE.
113409 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113411         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113412         Initialize pkgdata_DATA.
113413         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
113414         overriding it.
113416 2006-08-06  Eric Blake  <ebb9@byu.net>
113418         * lib/error.h: Fold in some upstream changes from glibc.
113419         * lib/error.c: Likewise.
113421 2006-08-04  Bruno Haible  <bruno@clisp.org>
113423         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113424         Make the mostlyclean-local rule depend on mostlyclean-generic.
113425         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
113427 2006-07-31  Bruno Haible  <bruno@clisp.org>
113429         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
113430         <stdlib.h>, <string.h>.
113432 2006-07-30  Bruno Haible  <bruno@clisp.org>
113434         * modules/readlink (License): Change to LGPL.
113436 2006-07-30  Bruno Haible  <bruno@clisp.org>
113438         * modules/javaversion (Makefile.am): Distribute javaversion.java and
113439         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
113440         set PKGDATADIR to point to it.
113442 2006-07-30  Bruno Haible  <bruno@clisp.org>
113444         * modules/csharpexec (configure.ac): Comment out macro invocation.
113445         * modules/javaexec (configure.ac): Likewise.
113446         * modules/javacomp-script (configure.ac): Likewise.
113448         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
113450 2006-07-30  Bruno Haible  <bruno@clisp.org>
113452         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
113453         linked-list.
113455 2006-07-30  Bruno Haible  <bruno@clisp.org>
113457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
113459 2006-07-30  Bruno Haible  <bruno@clisp.org>
113461         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113462         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
113463         get removed.
113465 2006-07-29  Bruno Haible  <bruno@clisp.org>
113467         Make it possible for gnulib-tool to work with locally modified or
113468         augmented gnulib repositories.
113469         * gnulib-tool (func_usage): Document --local-dir option.
113470         (local_gnulib_dir): New variable.
113471         Handle --local-dir option.
113472         (func_lookup_file): New function.
113473         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
113474         (func_get_description, func_get_filelist, func_get_description,
113475         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
113476         func_get_automake_snippet, func_get_include_directive,
113477         func_get_license, func_get_maintainer): Use func_lookup_file.
113478         (func_import, func_create_testdir): Use func_lookup_file.
113480 2006-07-29  Bruno Haible  <bruno@clisp.org>
113482         * modules/setenv (Depends-on): Add unistd.
113484 2006-07-29  Bruno Haible  <bruno@clisp.org>
113486         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
113488 2006-07-29  Bruno Haible  <bruno@clisp.org>
113490         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
113492 2006-07-29  Bruno Haible  <bruno@clisp.org>
113494         * gnulib-tool (import, update): If there is no Makefile.am, look at
113495         aclocal.m4, instead of bailing out.
113497 2006-07-29  Bruno Haible  <bruno@clisp.org>
113499         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
113500         Categorize the options by when they are useful.
113502 2006-07-29  Bruno Haible  <bruno@clisp.org>
113504         * gnulib-tool (func_usage): Document option --no-libtool.
113505         Handle option --no-libtool.
113506         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
113507         for changed semantics of $libtool variable.
113508         (func_import): Likewise. If libtool is not used, show this through
113509         an option --no-libtool.
113510         (func_create_testdir): Update.
113512 2006-07-29  Bruno Haible  <bruno@clisp.org>
113514         * gnulib-tool (func_import): Extend error message about missing
113515         --doc-base.
113517 2006-07-29  Bruno Haible  <bruno@clisp.org>
113519         * gnulib-tool (func_import): Don't create the $docbase directory if
113520         there is no file to store there.
113522 2006-07-29  Bruno Haible  <bruno@clisp.org>
113524         * gnulib-tool (autoconf_minversion): If a --dir option is given and
113525         relevant, look for configure.ac there, not in the current directory.
113526         Also use a simple search for AC_PREREQ, not "autoconf --trace".
113528 2006-07-29  Bruno Haible  <bruno@clisp.org>
113530         * gnulib-tool (SORT): New variable.
113531         (func_usage): Undocument --assume-autoconf option.
113532         Remove --assume-autoconf option handling.
113533         (autoconf_minversion): Determine from the contents of configure.ac.
113534         (func_import): Remove autoconf_minversion handling.
113535         Suggested by Eric Blake.
113537 2006-07-29  Bruno Haible  <bruno@clisp.org>
113539         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
113541 2006-07-29  Bruno Haible  <bruno@clisp.org>
113543         * config/srclist.txt (*setenv.[ch]): Remove rules.
113545 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113547         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
113549 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113551         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
113552         arpa/inet.h.
113554 2006-07-28  Simon Josefsson  <jas@extundo.com>
113556         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
113557         * modules/inet_pton (Depends-on): Likewise.
113559 2006-07-28  Simon Josefsson  <jas@extundo.com>
113561         * m4/netinet_in_h.m4: New file.
113563 2006-07-28  Simon Josefsson  <jas@extundo.com>
113565         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
113566         #include's.
113568 2006-07-28  Simon Josefsson  <jas@extundo.com>
113570         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
113571         #include's.
113573 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
113575         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
113576         setgid on directories only if they set these bits.
113577         * lib/modechange.h: Remove obsolete comment about masks.
113579 2006-07-28  Eric Blake  <ebb9@byu.net>
113581         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
113582         macro expansion.
113584 2006-07-28  Bruno Haible  <bruno@clisp.org>
113586         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
113588 2006-07-28  Bruno Haible  <bruno@clisp.org>
113590         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
113592 2006-07-28  Bruno Haible  <bruno@clisp.org>
113594         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
113595         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
113596         Define fallbacks.
113597         Avoids link error on FreeBSD 4.x.
113598         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
113600         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
113601         encoding.
113602         * lib/mbswidth.c (iswcntrl): Likewise.
113604 2006-07-27  Bruno Haible  <bruno@clisp.org>
113606         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
113607         test.
113609 2006-07-27  Bruno Haible  <bruno@clisp.org>
113611         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
113612         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
113613         defined.
113615 2006-07-26  Eric Blake  <ebb9@byu.net>
113617         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
113619 2006-07-26  Eric Blake  <ebb9@byu.net>
113621         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
113622         like mingw that lack mkstemp.
113623         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
113624         avoid compilation warning on mingw.
113626 2006-07-26  Bruno Haible  <bruno@clisp.org>
113628         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
113629         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
113630         INT_FAST*_MIN, INTPTR_MIN.
113632 2006-07-25  Bruno Haible  <bruno@clisp.org>
113634         * modules/version-etc (Depends-on): Add stdarg.
113636 2006-07-25  Bruno Haible  <bruno@clisp.org>
113638         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
113639         complex commands.
113641 2006-07-25  Bruno Haible  <bruno@clisp.org>
113643         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
113644         defined in <stdarg.h> or config.h.
113646 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
113648         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
113649         (gl_STDIO_SAFER): Remove.
113651 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
113653         * MODULES.html.sh (File stream based Input/Output):
113654         Add fopen-safer, tmpfile-safer; remove stdio-safer.
113655         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
113656         * modules/fopen-safer, modules/tmpfile-safer: New files.
113657         * modules/stdio-safer: Remove.
113659 2006-07-24  Bruno Haible  <bruno@clisp.org>
113661         * modules/tmpdir: New file.
113662         * MODULES.html.sh (File system functions): Add it.
113664 2006-07-24  Bruno Haible  <bruno@clisp.org>
113666         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
113667         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
113669 2006-07-24  Bruno Haible  <bruno@clisp.org>
113671         * modules/clean-temp: New file.
113673 2006-07-24  Bruno Haible  <bruno@clisp.org>
113675         * m4/tmpdir.m4: New file, from GNU gettext.
113677 2006-07-24  Bruno Haible  <bruno@clisp.org>
113679         * lib/tmpdir.h: New file, from GNU gettext.
113680         * lib/tmpdir.c: New file, from GNU gettext.
113682 2006-07-24  Bruno Haible  <bruno@clisp.org>
113684         * lib/clean-temp.h: New file, from GNU gettext.
113685         * lib/clean-temp.c: New file, from GNU gettext.
113687 2006-07-23  Eric Blake  <ebb9@byu.net>
113689         * modules/stdio-safer (Files): Add tmpfile-safer.c.
113690         (Depends-on): Add binary-io.
113692 2006-07-23  Eric Blake  <ebb9@byu.net>
113694         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
113696 2006-07-23  Eric Blake  <ebb9@byu.net>
113698         * lib/tmpfile-safer.c: New file.
113699         * lib/stdio-safer.h (fopen_safer): Add prototype.
113700         * lib/stdio--.h (tmpfile): Make safer.
113702 2006-07-23  Bruno Haible  <bruno@clisp.org>
113704         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
113705         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
113706         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
113707         gl_linked_remove_at): Use it.
113709 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113710         and Simon Josefsson <jas@extundo.com>
113712         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
113714         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
113716 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
113718         * modules/close-stream: New file.
113719         * modules/closeout (Description): Make it clear that it exits
113720         with a diagnostic on error.
113721         (Depends-on): Add close-stream.  Remove fpending, stdbool.
113722         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
113724 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
113726         * m4/close-stream.m4: New file.
113728 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
113730         * lib/close-stream.c, lib/close-stream.h: New files.
113732 2006-07-22  Bruno Haible  <bruno@clisp.org>
113734         Merge from GNU gettext 0.15.
113736         2006-05-01  Bruno Haible  <bruno@clisp.org>
113738                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
113740         2006-07-22  Bruno Haible  <bruno@clisp.org>
113742                 * modules/javaversion: New file.
113743                 * MODULES.html.sh (Java): Add javaversion.
113745         2006-03-12  Bruno Haible  <bruno@clisp.org>
113747                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
113749         2005-12-04  Bruno Haible  <bruno@clisp.org>
113751                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
113752                 (untested).
113754         2006-06-21  Bruno Haible  <bruno@clisp.org>
113756                 Avoid warnings from recent versions of mcs.
113757                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
113758                 -o, -L, -r any more. Use options documented since mcs-1.0
113759                 instead. Similarly for -g.
113761         2005-12-04  Bruno Haible  <bruno@clisp.org>
113763                 * build-aux/csharpcomp.sh.in: Suffix for resources is
113764                 .resources, not .resource.
113766         2005-07-09  Bruno Haible  <bruno@clisp.org>
113768                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
113769                 add a .dll suffix.
113770                 Reported by Mark Junker <mjscod@gmx.de>.
113772         2006-07-22  Bruno Haible  <bruno@clisp.org>
113774                 * modules/gettext: Upgrade to gettext-0.15.
113775                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
113776                 m4/visibility.m4.
113777                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
113779 2006-07-22  Bruno Haible  <bruno@clisp.org>
113781         Merge from GNU gettext 0.15.
113783         2006-03-25  Bruno Haible  <bruno@clisp.org>
113785                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
113787         2006-07-21  Bruno Haible  <bruno@clisp.org>
113789                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
113790                 "1.1".
113792         2006-05-09  Bruno Haible  <bruno@clisp.org>
113794                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
113795                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
113796                 for the conftestver execution.
113798         2006-05-01  Bruno Haible  <bruno@clisp.org>
113800                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
113801                 optional target-version argument. Verify that the compiler
113802                 groks source of the specified source-version, or add -source
113803                 option as necessary. Verify that the compiler produces
113804                 bytecode in the specified target-version, or add -target and
113805                 -source options as necessary. Make the result of the test
113806                 available as variable CONF_JAVAC. Also log error output in
113807                 config.log.
113809         2006-03-11  Bruno Haible  <bruno@clisp.org>
113811                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
113813         2006-05-09  Bruno Haible  <bruno@clisp.org>
113815                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
113816                 CLASSPATH_SEPARATOR to a semicolon.
113818         2006-03-12  Bruno Haible  <bruno@clisp.org>
113820                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
113821                 available as variable CONF_JAVA, for subsequent autoconf
113822                 tests. Also log error output in config.log.
113824         2006-07-19  Bruno Haible  <bruno@clisp.org>
113826                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
113827                 that getline works on glibc2 systems. Needed to avoid trouble
113828                 in relocatable.c.
113829                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
113831         2005-12-04  Bruno Haible  <bruno@clisp.org>
113833                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
113834                 launcher (untested).
113836         2005-12-04  Bruno Haible  <bruno@clisp.org>
113838                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
113840         2006-07-22  Bruno Haible  <bruno@clisp.org>
113842                 * gettext.m4: Update from GNU gettext-0.15.
113843                 * nls.m4: Likewise.
113844                 * po.m4: Likewise.
113845                 * inttypes-pri.m4: Likewise.
113846                 * inttypes-h.m4: Renamed from inttypes.m4.
113847                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
113849 2006-07-22  Bruno Haible  <bruno@clisp.org>
113851         Merge from GNU gettext 0.15.
113853         2005-07-05  Bruno Haible  <bruno@clisp.org>
113855                 * printf-args.c (printf_fetchargs): Work around broken
113856                 definition of wint_t on mingw.
113858         2005-02-12  Bruno Haible  <bruno@clisp.org>
113860                 * xallocsa.h: Add extern "C" for C++.
113862         2006-05-17  Bruno Haible  <bruno@clisp.org>
113864                 Cygwin portability.
113865                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
113867         2006-04-30  Bruno Haible  <bruno@clisp.org>
113869                 * progreloc.c: Include <mach-o/dyld.h> if available.
113870                 (find_executable): Use _NSGetExecutablePath when possible.
113872         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
113874                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
113875                 function.
113877         2005-12-29  Bruno Haible  <bruno@clisp.org>
113879                 * progreloc.c (set_program_name_and_installdir): Fix
113880                 compilation error.
113882         2005-12-04  Bruno Haible  <bruno@clisp.org>
113884                 Cygwin portability.
113885                 * progreloc.c: Include <windows.h> also on Cygwin.
113886                 (find_executable): Add support for Cygwin.
113887                 (set_program_name_and_installdir): Handle also platforms with
113888                 nonempty EXEEXT.
113890         2006-07-11  Bruno Haible  <bruno@clisp.org>
113892                 * javacomp.c: Fix a comment.
113893                 Reported by Jim Meyering.
113895         2006-04-30  Bruno Haible  <bruno@clisp.org>
113897                 * javacomp.h (compile_java_class): Add source_version,
113898                 target_version arguments.
113899                 * javacomp.c: Rewritten to choose only a compiler that
113900                 respects the specified source_version and target_version.
113902         2006-06-27  Bruno Haible  <bruno@clisp.org>
113904                 Assume correct S_ISDIR macro.
113905                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
113907         2006-07-22  Bruno Haible  <bruno@clisp.org>
113909                 * javaversion.h: New file, from GNU gettext.
113910                 * javaversion.c: New file, from GNU gettext.
113911                 * javaversion.java: New file, from GNU gettext.
113912                 * javaversion.class: New file, from GNU gettext.
113914         2006-05-17  Bruno Haible  <bruno@clisp.org>
113916                 Cygwin portability.
113917                 * javaexec.c (execute_java_class): Test for jview program
113918                 also on Cygwin.
113920         2006-04-09  Bruno Haible  <bruno@clisp.org>
113922                 * fatal-signal.c: Don't include string.h.
113923                 (at_fatal_signal): Use a copying loop instead of memcpy.
113925         2005-12-04  Bruno Haible  <bruno@clisp.org>
113927                 * csharpexec.c: Add support for 'clix' launcher (untested).
113928                 (execute_csharp_using_sscli): New function.
113929                 (execute_csharp_program): Call it.
113931         2006-06-21  Bruno Haible  <bruno@clisp.org>
113933                 Avoid warnings from recent versions of mcs.
113934                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
113935                 -o, -L, -r any more. Use options documented since mcs-1.0
113936                 instead. Similarly for -g.
113938         2005-07-09  Bruno Haible  <bruno@clisp.org>
113940                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
113941                 add a .dll suffix.
113942                 Reported by Mark Junker <mjscod@gmx.de>.
113944         2006-06-17  Bruno Haible  <bruno@clisp.org>
113946                 * config.charset: Update for NetBSD 3.0.
113948         2006-05-17  Bruno Haible  <bruno@clisp.org>
113950                 Cygwin portability.
113951                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
113953         2006-05-16  Bruno Haible  <bruno@clisp.org>
113955                 * localcharset.c [CYGWIN]: Include <windows.h>.
113956                 (get_charset_aliases): For Cygwin, return the same CPxxx
113957                 aliases list as under WIN32.
113958                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
113959                 the environment variables. Fall back to GetACP().
113961         2006-04-05  Bruno Haible  <bruno@clisp.org>
113963                 * config.charset: Update Juan Manuel Guerrero's address.
113965         2005-02-12  Bruno Haible  <bruno@clisp.org>
113967                 * allocsa.h: Add extern "C" for C++.
113969         2005-02-10  Bruno Haible  <bruno@clisp.org>
113971                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
113972                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
113974         2006-07-22  Bruno Haible  <bruno@clisp.org>
113976                 * gettext.h: Update to GNU gettext-0.15.
113978 2006-07-22  Bruno Haible  <bruno@clisp.org>
113980         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
113981         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
113982         lib-prefix.m4, longdouble.m4, ssize_t.m4.
113984 2006-07-21  Eric Blake  <ebb9@byu.net>
113986         * modules/stdlib-safer: New file.
113987         * MODULES.html.sh (File stream based Input/Output): Add
113988         stdlib-safer.
113990 2006-07-21  Eric Blake  <ebb9@byu.net>
113992         * lib/stdlib-safer.h: New file from coreutils, required by
113993         stdlib--.h.
113995 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
113997         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
113999 2006-07-20  Bruno Haible  <bruno@clisp.org>
114001         * gnulib-tool: Recognize new option --assume-autoconf.
114002         (autoconf_minversion): New variable.
114003         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
114005 2006-07-20  Bruno Haible  <bruno@clisp.org>
114007         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
114009 2006-07-19  Derek R. Price  <derek@ximbiot.com>
114011         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
114012         Reindent and repaginate.
114014 2006-07-19  Derek Price  <derek@ximbiot.com>
114016         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
114017         Correct grammar.
114019 2006-07-17  Bruno Haible  <bruno@clisp.org>
114021         * modules/list: New file.
114022         * modules/array-list: New file.
114023         * modules/carray-list, modules/carray-list-tests: New files.
114024         * modules/linked-list, modules/linked-list-tests: New files.
114025         * modules/avltree-list, modules/avltree-list-tests: New files.
114026         * modules/rbtree-list, modules/rbtree-list-tests: New files.
114027         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
114028         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
114029         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
114030         * modules/oset: New file.
114031         * modules/array-oset: New file.
114032         * modules/avltree-oset, modules/avltree-oset-tests: New files.
114033         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
114034         * tests/test-carray_list.c: New file.
114035         * tests/test-linked_list.c: New file.
114036         * tests/test-avltree_list.c: New file.
114037         * tests/test-rbtree_list.c: New file.
114038         * tests/test-linkedhash_list.c: New file.
114039         * tests/test-avltreehash_list.c: New file.
114040         * tests/test-rbtreehash_list.c: New file.
114041         * tests/test-avltree_oset.c: New file.
114042         * tests/test-rbtree_oset.c: New file.
114043         * MODULES.html.sh (Container data structures): New section.
114045 2006-07-17  Bruno Haible  <bruno@clisp.org>
114047         * m4/gl_list.m4: New file.
114049 2006-07-17  Bruno Haible  <bruno@clisp.org>
114051         * lib/gl_list.h: New file.
114052         * lib/gl_list.c: New file.
114053         * lib/gl_array_list.h: New file.
114054         * lib/gl_array_list.c: New file.
114055         * lib/gl_carray_list.h: New file.
114056         * lib/gl_carray_list.c: New file.
114057         * lib/gl_linked_list.h: New file.
114058         * lib/gl_linked_list.c: New file.
114059         * lib/gl_anylinked_list1.h: New file.
114060         * lib/gl_anylinked_list2.h: New file.
114061         * lib/gl_avltree_list.h: New file.
114062         * lib/gl_avltree_list.c: New file.
114063         * lib/gl_anyavltree_list1.h: New file.
114064         * lib/gl_anyavltree_list2.h: New file.
114065         * lib/gl_rbtree_list.h: New file.
114066         * lib/gl_rbtree_list.c: New file.
114067         * lib/gl_anyrbtree_list1.h: New file.
114068         * lib/gl_anyrbtree_list2.h: New file.
114069         * lib/gl_anytree_list1.h: New file.
114070         * lib/gl_anytree_list2.h: New file.
114071         * lib/gl_linkedhash_list.h: New file.
114072         * lib/gl_linkedhash_list.c: New file.
114073         * lib/gl_anyhash_list1.h: New file.
114074         * lib/gl_anyhash_list2.h: New file.
114075         * lib/gl_avltreehash_list.h: New file.
114076         * lib/gl_avltreehash_list.c: New file.
114077         * lib/gl_rbtreehash_list.h: New file.
114078         * lib/gl_rbtreehash_list.c: New file.
114079         * lib/gl_anytreehash_list1.h: New file.
114080         * lib/gl_anytreehash_list2.h: New file.
114082         * lib/gl_oset.h: New file.
114083         * lib/gl_oset.c: New file.
114084         * lib/gl_array_oset.h: New file.
114085         * lib/gl_array_oset.c: New file.
114086         * lib/gl_avltree_oset.h: New file.
114087         * lib/gl_avltree_oset.c: New file.
114088         * lib/gl_rbtree_oset.h: New file.
114089         * lib/gl_rbtree_oset.c: New file.
114090         * lib/gl_anytree_oset.h: New file.
114092 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114094         * m4/mkancesdirs.m4: New file.
114095         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
114096         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
114097         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
114098         it.
114100 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114102         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
114103         * lib/mkancesdirs.h: New files.
114104         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
114105         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
114106         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
114107         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
114108         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
114109         callers changed.  Revamp internals significantly, by not
114110         attempting to create directories that are temporarily more
114111         permissive than the final results.  Do not attempt to use
114112         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
114113         This removes some race conditions, fixes some bugs, and simplifies
114114         things.  Use new dirchownmod function to do owner and mode changes.
114115         * lib/mkdir-p.h: Likewise.
114116         * lib/modechange.c (octal_to_mode): New function.
114117         (struct mode_change): New member mentioned.
114118         (make_node_op_equals): New arg mentioned.  All callers changed.
114119         (mode_compile): Keep track of which mode bits the user has explicitly
114120         mentioned.
114121         (mode_adjust): New arg DIR, so that we implement the X op correctly.
114122         New arg PMODE_BITS, to keep track of which mode bits the user
114123         mentioned; it treats S_ISUID and S_ISGID speciall.
114124         All callers changed.
114125         * lib/modechange.h: Likewise.
114127 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114129         * MODULES.html.sh: Add mkancestors.
114130         * modules/mkancesdirs: New module.
114131         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
114132         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
114133         The chdir-safer and afs files are now orphans; I'll remove them
114134         unless someone speaks up.
114135         Add lib/dirchownmod.c, lib/dirchownmod.h.
114136         (Depends-on): Remove alloca, chown, save-cwd, dirname.
114137         Add lchown, mkancesdirs.
114138         (Maintainer): Add self.
114140 2006-07-15  Karl Berry  <karl@gnu.org>
114142         * gnulib-tool: help message wording/arrangement.
114144 2006-07-14  Simon Josefsson  <jas@extundo.com>
114146         * doc/gnulib.texi (Libtool and Windows): New section.
114148 2006-07-12  Simon Josefsson  <jas@extundo.com>
114150         * modules/gendocs (License): Fix license, approved by Karl.
114152 2006-07-12  Eric Blake  <ebb9@byu.net>
114154         * MODULES.html.sh: Add gendocs.
114156 2006-07-11  Eric Blake  <ebb9@byu.net>
114158         * modules/fdl: New module, to install doc/fdl.texi.
114159         * MODULES.html.sh: Add new section for documentation modules.
114160         * gnulib-tool: Avoid space-tab.
114161         (--doc-base): New option, to manage files from doc.
114163 2006-07-11  Eric Blake  <ebb9@byu.net>
114165         * m4/absolute-header.m4: Fix comments to match recent change.
114167 2006-07-11  Eric Blake  <ebb9@byu.net>
114169         * gnulib-tool: List --doc-base before --tests-base.
114171 2006-07-11  Derek R. Price  <derek@ximbiot.com>
114173         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
114175 2006-07-11  Bruno Haible  <bruno@clisp.org>
114177         * README: Mention where to put documentation.
114179 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114181         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
114183 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114185         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
114186         to stdint.m4.
114188 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114190         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
114191         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
114192         "no/such/file/stdint.h" when there is no such file, so that
114193         the resulting C code can be parsed by dodgy compilers.
114194         Problems reported by Bob Proulx.
114196 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114198         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
114199         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114200         macros into the GNU _D_EXACT_NAMLEN.
114201         * lib/savedir.c:  Likewise.
114202         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
114204 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114205         and Paul Eggert  <eggert@cs.ucla.edu>
114207         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
114208         * m4/savedir.m4:
114209         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114210         macros into the GNU _D_EXACT_NAMLEN.
114212 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114214         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
114215         around the absolute name, to work around a problem with the HP-UX
114216         11.23 native C compiler, reported by Bob Proulx.
114218 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114220         * doc/maintain.texi, make-stds.texi: Sync from
114221         <http://savannah.gnu.org/projects/gnustandards>.
114223 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114225         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
114227 2006-07-09  Jim Meyering  <jim@meyering.net>
114229         * m4/glob.m4: Remove a doubled word in a comment.
114231 2006-07-09  Jim Meyering  <jim@meyering.net>
114233         * lib/argp-pv.c: Remove a doubled word in a comment.
114234         * lib/check-version.c (check_version): Likewise.
114235         * lib/javacomp.c (compile_java_class): Likewise.
114237 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
114239         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
114240         for the benefit of people using Autoconf 2.60.  If you want to
114241         support older Autoconf versions you can copy m4/onceonly_2_57.m4
114242         (or m4/onceonly.m4, if pre-2.57) manually.
114244 2006-07-08  Jim Meyering  <jim@meyering.net>
114246         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
114247         comment.
114248         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
114249         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
114250         comment.
114252 2006-07-08  Jim Meyering  <jim@meyering.net>
114254         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
114256 2006-07-07  Simon Josefsson  <jas@extundo.com>
114258         * tests/test-crc.c: Change expected crc value, the test vector
114259         were probably computed using the old broken crc.c?
114261 2006-07-06  Simon Josefsson  <jas@extundo.com>
114263         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
114264         now the canonical place for the M4 file).
114266         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
114267         from the sys_socket dependency now.
114269         * modules/inet_pton (Files): Ditto.
114271         * modules/inet_ntop (Files): Ditto.
114273 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114275         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
114276         not gl_PREREQ_GETUSERSHELL.
114278 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114280         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
114281         with only one argument, for Autoconf 2.60.
114282         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
114283         expand to nothing, so add a shell command to avoid syntax error.
114284         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
114286 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114288         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
114290 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114292         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
114293         no longer needed.  Check for isblank decl.
114294         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
114295         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
114296         of existence.
114298 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114300         * lib/getloadavg.c: Use __VMS, not VMS.
114301         * lib/getopt.c: Likewise.
114302         * lib/getpagesize.h: Likewise.
114303         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
114304         and probably does not work.
114306 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114308         * lib/.cppi-disable: Add wcwidth.
114309         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
114310         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
114311         (ISGRAPH): Remove.  All uses changed to isgraph.
114312         (FOLD) [!defined _LIBC]: Remove special case.
114313         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
114314         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
114315         HAVE_ISBLANK.
114316         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
114317         case.
114319 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
114321         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
114322         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
114323         brackets.  Other minor changes to suppress some compiler
114324         warnings.
114326 2006-07-06  Derek R. Price  <derek@ximbiot.com>
114327         and Paul Eggert  <eggert@cs.ucla.edu>
114329         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
114330         of invoking obsolescent AC_HEADER_DIRENT macro.
114331         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
114332         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
114333         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
114334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
114335         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
114336         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114337         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
114338         * m4/readdir.m4: Remove; no longer needed.
114340 2006-07-06  Derek R. Price  <derek@ximbiot.com>
114341         and Paul Eggert  <eggert@cs.ucla.edu>
114343         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
114344         Don't worry about this obsolete case any more.
114345         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
114346         directories.
114347         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
114348         worry about this obsolete case any more.
114349         * lib/fts.c: Likewise.
114350         * lib/getcwd.c: Likewise.
114351         * lib/glob.h: Likewise.
114352         * lib/savedir.c: Likewise.
114354 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114356         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
114357         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
114358         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
114359         needed.
114360         All uses removed.
114361         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114362         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114363         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
114364         needed.
114365         * m4/getdate.m4 (gl_GETDATE): Likewise.
114366         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114367         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114368         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114369         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114370         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114371         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114372         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
114373         needed.
114375 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114377         * lib/memcasecmp.c: Include <limits.h>.
114378         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
114379         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
114380         Don't assume isdigit succeeds only on '0' through '9'.
114382 2006-07-05  Eric Blake  <ebb9@byu.net>
114384         * modules/getaddrinfo (Depends-on): Add snprintf.
114386 2006-07-05  Eric Blake  <ebb9@byu.net>
114388         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
114389         to avoid 'header present but could not be compiled' on cygwin.
114391 2006-07-05  Eric Blake  <ebb9@byu.net>
114393         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
114394         missing from netdb.h.
114395         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
114397 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114399         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
114400         no longer needed.
114401         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
114402         * m4/getdate.m4 (gl_GETDATE): Likewise.
114403         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114404         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114405         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114406         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114407         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114409 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114411         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
114412         All uses of is_space replaced by isspace.
114413         * lib/exit.h: Don't talk about STDC_HEADERS.
114414         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
114415         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
114416         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
114417         replaced by isprint etc.
114418         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
114419         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114420         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
114421         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
114422         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
114423         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114425 2006-07-05  Bruno Haible  <bruno@clisp.org>
114427         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
114428         the function exists, before testing against AIX.
114429         Reported by Martin Lambers <marlam@marlam.de>.
114431 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114433         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
114434         From Mark D. Baushke.
114436 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
114439         to the absolute name, not just one, to bypass Sun C 5.8's
114440         "warning: #include of /usr/include/... may be non-portable".
114442 2006-07-04  Eric Blake  <ebb9@byu.net>
114444         * modules/dirname-tests: New test module.
114445         * tests/test-dirname.c: New file, replacing dirname.c
114446         TEST_DIRNAME section that was recently deleted.
114448 2006-07-04  Bruno Haible  <bruno@clisp.org>
114450         Assume ANSI C header files and <ctype.h> functions.
114451         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
114452         (mbsnwidth): Use isprint, iscntrl instead.
114454 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114456         Merge from coreutils.
114457         * MODULES.html.sh: Add xstrtold.
114458         * modules/xstrtold: New file.
114459         * modules/cycle-check (Files): Add lib/same-inode.h.
114460         * modules/dirname (Files): Add m4/double-slash-root.m4.
114461         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
114462         * modules/mkdir-p (Files): Add lib/same-inode.h.
114463         * modules/same (Files): Add lib/same-inode.h.
114465 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114467         * m4/absolute-header.m4: Renamed from full-header-path.m4.
114468         This is to keep the terminology clean; POSIX talks about
114469         "absolute pathnames", not "full pathnames", but the GNU
114470         Coding Standards say to use "path" for something else;
114471         so use "absolute" to keep both sides happy.
114472         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
114473         Set gl_absolute_header, not gl_full_header_path.
114474         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
114475         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
114476         All uses changed.
114478         Merge from coreutils.
114480         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
114482         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
114483         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
114484         want to require the building of c-strtod.o.
114485         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
114486         needs -lm directly.
114487         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
114489         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
114491         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
114492         --as-needed option if available.  Problem reported by Albert Chin in
114493         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
114494         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
114495         cc merely issues a bunch of annoying warnings for --as-needed
114496         (this problem was reported by Bob Proulx).  Also, try linking with
114497         -lm to detect a bug in binutils 2.16 (this problem was reported
114498         by Ralf Wildenhues).
114500         2006-06-18  Jim Meyering  <jim@meyering.net>
114502         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
114503         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
114504         macro.
114505         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
114506         also check for glibc-2.4's abort-inducing bug.
114508         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
114509         Low-probability clean-up should be to use rmdir to get rid of
114510         the just-created directory, not unlink.
114512         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
114513         configure fail, and request a bug report to inform us about it.
114514         Add a comment that, barring reports to the contrary, in 2007 we'll
114515         assume ftruncate is universally available.
114517         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
114519         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
114521         2006-03-12  Jim Meyering  <jim@meyering.net>
114523         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
114524         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
114525         * m4/same.m4 (gl_SAME): Likewise.
114526         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
114528         2006-03-11  Eric Blake  <ebb9@byu.net>
114530         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
114531         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
114532         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
114533         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
114535 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114537         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
114538         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
114539         reported by Mark D. Baushke, one in
114540         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
114542         Merge from coreutils.
114544         * lib/.cppi-disable: Add stdint_.h.
114545         * lib/.cvsignore: Add stdint.h.
114547         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
114549         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
114550         both double and long double versions.
114551         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
114552         * lib/xstrtold.c: New file.
114553         * lib/xstrtod.h (xstrtold): New decl.
114555         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
114557         * lib/filemode.c (setst): Remove.
114558         (strmode): Rewrite to avoid setst.  This makes the code shorter,
114559         (arguably) clearer, and the generated code is a bit smaller on my
114560         Debian GNU/Linux stable x86 host.
114562         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
114564         * lib/filemode.c: Include "filemode.h" first, to test the interface.
114565         Assume that filemode.h includes sys/types.h and sys/stat.h.
114566         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
114567         (ftypelet): Reorder to put common cases first, for efficiency.
114568         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
114569         to do 'M'.
114570         (strmode): Renamed from mode_string, and now stores 12 bytes instead
114571         of 10, for compatibility with FreeBSD.  All callers changed.
114572         (filemodestring): Now stores 12 bytes instead of 10, and sets file
114573         types that can't be deduced solely from st_mode.  First arg is now a
114574         const pointer.
114575         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
114576         (strmode): Renamed from mode_string.
114577         (filemodestring): New decl.
114578         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
114579         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
114580         needed.
114581         (S_ISPORT, S_ISWHT): New macros, if not already defined.
114583         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
114585         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
114586         fsusage.h now does that.  Include fsusage.h first, to test interface.
114587         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
114588         at most one method (the old code could have generated decls that
114589         didn't conform to C89, not that this was ever exercised).
114590         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
114592         2006-03-19  Jim Meyering  <jim@meyering.net>
114594         Work even in a chroot where d_ino values for entries in "/"
114595         don't match the stat.st_ino values for the same names.
114596         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
114597         number, iterate through all entries again, using lstat instead.
114598         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
114599         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
114601         * lib/getcwd.c (__getcwd): Clarify a comment.
114602         Use memcpy in place of a call to strcpy.
114604         2006-03-12  Jim Meyering  <jim@meyering.net>
114606         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
114607         matches that of the current directory (which we're about to chdir ".."
114608         out of), then save the dev-ino of the parent, instead.
114610         * lib/same-inode.h (SAME_INODE): New file/macro.
114611         * lib/chdir-safer.c (SAME_INODE): Remove definition.
114612         Include "same-inode.h", instead.
114613         * lib/same.c: Likewise.
114614         * lib/cycle-check.h: Include "same-inode.h".
114615         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
114616         * lib/cycle-check.c (SAME_INODE): Remove definition.
114617         * lib/root-dev-ino.h: Include "same-inode.h".
114619         2006-03-11  Eric Blake  <ebb9@byu.net>
114621         * lib/same.c (same_name): s/base_name/last_component/
114622         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
114623         * lib/filenamecat.c (file_name_concat): Likewise.
114625         2006-03-11  Eric Blake  <ebb9@byu.net>,
114626                     Paul Eggert  <eggert@cs.ucla.edu>
114628         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
114629         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
114630         drive prefix.
114631         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
114632         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
114633         (last_component): New method.
114634         * lib/dirname.c (dir_len): Determine when drive letters need a
114635         subsequent slash.  Preserve // when it is special.
114636         (dir_name): Don't append dot when drive letter is absolute.
114637         [TEST_DIRNAME]: Move into a full-blown gnulib test.
114638         * lib/basename.c (base_name): New semantics - malloc the result.
114639         Preserve // when it is special.  Preserve relative files that look
114640         like drive letters.
114641         (base_len): Preserve // when it is special.
114642         (last_component): New method, similar to old base_name semantics.
114643         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
114644         base_name.  Strip redundant slashes from ///.
114646 2006-07-03  Jim Meyering  <jim@meyering.net>
114648         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
114649         macro is used before the first cycle_check call.
114651 2006-07-03  Eric Blake  <ebb9@byu.net>
114653         * modules/dirname (Depends-on): Add xstrndup.
114655 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
114657         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
114658         test cases, so that config.log is a bit easier to follow.
114660 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
114662         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
114663         both are 64 bits, since this seems to be the tradition, and this
114664         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
114665         we ever run into a host that prefers long long to long in this
114666         case, we'll need another configure-time test.  Problem reported by
114667         Jim Meyering.
114669 2006-07-02  Eric Blake  <ebb9@byu.net>
114671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
114673 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
114675         * modules/inttypes (Depends-on): No longer depends on stdint.
114676         * modules/stdint (Description): Say more about assumptions.
114677         Say that the fast types might differ.  Say macros are used.
114678         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
114679         (Makefile.am): Revise list of substituted symbols to match
114680         new stdint.m4.
114681         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
114682         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
114683         * tests/test-stdint.c (verify_same_types)
114684         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
114685         the code conforms to C99/C89.
114686         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
114687         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
114689 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
114691         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
114692         but fix a bug, by requiring at least 64 bits.
114693         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
114694         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
114695         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
114696         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
114698         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
114699         changes.  Make 2.59 a prerequisite.  Check and substitute for
114700         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
114701         inttypes.h.  Do not use special include files; just use the
114702         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
114703         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
114704         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
114705         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
114706         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
114707         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
114708         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
114709         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
114710         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
114711         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
114712         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
114713         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
114714         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
114715         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
114716         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
114717         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
114718         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
114719         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
114720         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
114721         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
114722         WINT_MAX.  Check for C99 conformance more strictly, by detecting
114723         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
114724         not check for things that C99 does not require, e.g., int8_t.  If
114725         a test isn't needed unless <stdint.h> isn't working, and is
114726         unlikely to be needed for any other reason, then don't do it
114727         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
114728         size_t, since we assume C89 freestanding at least.  Do not check
114729         for sig_atomic_t, wchar_t, or wint_t, since the code now does
114730         the right thing even if the types are not defined.  Instead use:
114731         (gl_STDINT_TYPE_PROPERTIES): New macro.
114732         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
114733         testing whether <sys/types.h> clashes, as Autoconf does this for
114734         us now.  All uses removed.
114735         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
114736         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
114737         (gl_CHECK_TYPE_SAME):
114738         Remove; no longer needed.
114739         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
114740         exists, since we'll return 0 anyway in that case.
114741         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
114743 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
114745         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
114746         possible collision with system files.
114747         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
114748         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
114749         WCHAR_MIN and WCHAR_MAX in this case.
114750         (<stddef.h>): Do not include; no longer needed.
114751         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
114752         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
114753         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
114754         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
114755         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
114756         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
114757         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
114758         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
114759         !defined(__c99))]: Include in this case too, since it's harmless
114760         now.
114761         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
114762         dangerous to do so.
114763         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
114764         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
114765         (_STDINT_MIN, _STDINT_MAX): New macros.
114766         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
114767         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
114768         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
114769         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
114770         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
114771         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
114772         macros, not typedefs; this simplifies things quite a bit.
114773         Use long int for all types narrower than int64_t.
114774         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
114775         Define in terms of long long int or int64_t or long int,
114776         not int64_t or int32_t.  This saves some compile-time testing.
114777         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
114778         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
114779         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
114780         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
114781         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
114782         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
114783         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
114784         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
114785         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
114786         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
114787         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
114788         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
114789         undef any previous version and define our own version, for
114790         simplicity and consistency with the new macros for types.
114791         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
114792         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
114793         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
114794         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
114795         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
114796         @WINT_T_SUFFIX@ to keep things simple here.
114797         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
114798         Simplify by assuming typical 8/16/32/64 host, since we're
114799         already doing that elsewhere anyway.
114800         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
114801         and assume long long int is 64 bits if available.  This
114802         speeds up 'configure'.
114804 2006-07-01  Eric Blake  <ebb9@byu.net>
114806         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
114807         Reported by Andreas Buening.
114809 2006-07-01  Eric Blake  <ebb9@byu.net>
114811         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
114813 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
114815         * lib/getaddrinfo.c: fixed typo
114817 2006-06-29  Jim Meyering  <jim@meyering.net>
114819         * modules/strftime (Maintainer): Add my name, since with the
114820         FPRINTFTIME changes strftime.c has forked from glibc.
114822 2006-06-29  Eric Blake  <ebb9@byu.net>
114824         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
114826 2006-06-29  Eric Blake  <ebb9@byu.net>
114828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
114830 2006-06-29  Eric Blake  <ebb9@byu.net>
114832         * lib/stat_.h: New file.
114834 2006-06-29  Eric Blake  <ebb9@byu.net>
114836         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
114837         unused static function.
114839 2006-06-29  Eric Blake  <ebb9@byu.net>
114841         * doc/functions.texi (Function Portability): Document missing lstat
114842         on mingw.
114844 2006-06-29  Eric Blake  <ebb9@byu.net>
114846         * MODULES.html.sh: Add sys_stat.
114847         * modules/sys_stat: New module.
114848         * modules/mkstemp (Depends-on): Add sys_stat.
114850 2006-06-29  Derek R. Price  <derek@ximbiot.com>
114852         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
114854 2006-06-29  Derek R. Price  <derek@ximbiot.com>
114856         * m4/c-bs-a.m4: Removed.
114858 2006-06-29  Derek R. Price  <derek@ximbiot.com>
114860         * lib/strftime.c: Assume strftime() exists.
114862 2006-06-29  Derek Price  <derek@ximbiot.com>
114864         * modules/c-bs-a: Removed - \a is C89.
114865         * MODULES.html.sh: Remove c-bs-a.
114867 2006-06-29  Bruno Haible  <bruno@clisp.org>
114869         * modules/wcwidth (License): Change to LGPL.
114871 2006-06-28  Simon Josefsson  <jas@extundo.com>
114873         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
114874         on _WIN32.
114876         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
114877         getnameinfo.
114879 2006-06-28  Simon Josefsson  <jas@extundo.com>
114881         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
114883 2006-06-28  Simon Josefsson  <jas@extundo.com>
114885         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
114886         functions there.  It will succeed on Windows XP, but on Windows
114887         2000 and (presumably) earlier, it will fail, and use the internal
114888         re-implementation.
114889         (use_win32_p): New function.
114890         (getaddrinfo): Use strtoul on servname, to support numeric ports.
114891         Support AI_NUMERICSERV to disable getservbyname.
114892         (getnameinfo): New function, only supports
114893         NI_NUMERICHOST|NI_NUMERICSERV for now.
114895         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
114896         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
114897         getnameinfo.
114899 2006-06-28  Eric Blake  <ebb9@byu.net>
114901         * modules/wcwidth: New file.
114902         * modules/mbchar (Depends-on): Add wcwidth.
114903         * modules/mbswidth (Depends-on): Add wcwidth.
114904         * MODULES.html.sh: Add wcwidth.
114906 2006-06-28  Eric Blake  <ebb9@byu.net>
114908         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
114909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
114911 2006-06-28  Eric Blake  <ebb9@byu.net>
114913         * lib/xvasprintf.h: Fix comments.
114915 2006-06-28  Eric Blake  <ebb9@byu.net>
114917         * lib/mbchar.h (wcwidth): Include wcwidth.h.
114918         * lib/mbswidth.c (wcwidth): Move from here...
114919         * lib/wcwidth.h: ...to this new file.
114921 2006-06-28  Derek R. Price  <derek@ximbiot.com>
114923         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
114925         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
114926         it's obsolete.
114927         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
114929 2006-06-28  Derek R. Price  <derek@ximbiot.com>
114931         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
114932         Autoconf 2.60 says this stuff was obsolete.
114934 2006-06-28  Bruno Haible  <bruno@clisp.org>
114936         * modules/wcwidth (Files): Add m4/wchar_t.m4.
114938 2006-06-28  Bruno Haible  <bruno@clisp.org>
114940         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
114941         gt_TYPE_WCHAR_T.
114943 2006-06-28  Bruno Haible  <bruno@clisp.org>
114945         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
114946         declaration for wcwidth.
114947         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
114949 2006-06-28  Bruno Haible  <bruno@clisp.org>
114951         * lib/mkdtemp.c [MINGW]: Include <io.h>.
114952         (mkdir): Define using _mkdir.
114954 2006-06-28  Bruno Haible  <bruno@clisp.org>
114956         * lib/getaddrinfo.h: Fix POSIX URL.
114957         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
114958         _WIN32.
114959         (use_win32_p): Make static.
114960         (getaddrinfo): Reject service name if it is empty or does not consist
114961         solely of decimal digits, or if its value is > 65535.
114962         (getnameinfo): Remove useless casts.
114964 2006-06-27  Simon Josefsson  <jas@extundo.com>
114966         * modules/sys_select: New file, suggested by Bruno Haible, Paul
114967         Eggert and Martin Lambers.
114969 2006-06-27  Simon Josefsson  <jas@extundo.com>
114971         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
114972         Eggert and Martin Lambers.
114974 2006-06-27  Bruno Haible  <bruno@clisp.org>
114976         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
114977         result to 0, not to empty.
114978         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
114980 2006-06-27  Bruno Haible  <bruno@clisp.org>
114982         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
114984 2006-06-26  Simon Josefsson  <jas@extundo.com>
114986         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
114987         present.
114989 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
114991         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
114992         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
114993         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
114995 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
114997         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
114999 2006-06-26  Bruno Haible  <bruno@clisp.org>
115001         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
115003 2006-06-26  Bruno Haible  <bruno@clisp.org>
115005         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
115007 2006-06-26  Bruno Haible  <bruno@clisp.org>
115009         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
115010         SGI C compiler in pre-C99 mode.
115011         Suggested by Mark D. Baushke and Larry Jones.
115013 2006-06-26  Bruno Haible  <bruno@clisp.org>
115015         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
115016         WCHAR_MAX.
115017         Reported by Mark D. Baushke and Larry Jones.
115019 2006-06-26  Bruno Haible  <bruno@clisp.org>
115021         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
115022         in pre-C99 mode.
115023         Suggested by Mark D. Baushke and Larry Jones.
115025 2006-06-23  Simon Josefsson  <jas@extundo.com>
115026             Bruno Haible  <bruno@clisp.org>
115028         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
115029         Emit mostlyclean-local rule.
115030         (func_emit_tests_Makefile_am): Likewise.
115031         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
115033 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
115035         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
115037 2006-06-23  Bruno Haible  <bruno@clisp.org>
115039         * tests/test-stdint.c: Update to match ISO C 99 Technical
115040         Corrigendum 1.
115042 2006-06-23  Bruno Haible  <bruno@clisp.org>
115044         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
115046 2006-06-23  Bruno Haible  <bruno@clisp.org>
115048         * lib/stdint_.h: Treat IRIX like OpenBSD.
115050 2006-06-23  Bruno Haible  <bruno@clisp.org>
115052         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
115053         ISO C 99 Technical Corrigendum 1.
115055 2006-06-22  Simon Josefsson  <jas@extundo.com>
115057         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
115058         MinGW.
115060 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115062         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
115063         needed.  Some compiler complained about some of them.  Problem reported
115064         by Larry Jones in
115065         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
115067 2006-06-21  Simon Josefsson  <jas@extundo.com>
115069         * tests/test-getaddrinfo.c: New file.
115071         * modules/getaddrinfo-tests: New file.
115073         * MODULES.html.sh: Add inet_pton.
115075         * modules/inet_pton: New file.
115077 2006-06-21  Simon Josefsson  <jas@extundo.com>
115079         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
115080         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
115081         of using the (limited) gnulib implementation on Windows XP.
115083         * m4/inet_pton.m4: New file.
115085 2006-06-21  Simon Josefsson  <jas@extundo.com>
115087         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
115088         variable.
115090         * lib/socket_.h: Don't define WINVER.
115092         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
115093         slightly modified to work in gnulib.
115095 2006-06-21  Simon Josefsson  <jas@extundo.com>
115097         * doc/gnulib.texi (Windows sockets): Add.
115099 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
115101         * lib/read-file.c (fread_file): Start with buffer allocation of
115102         0 bytes rather than 1 byte; this simplifies the code.
115103         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
115104         code to free buffer and save/restore errno.
115105         (internal_read_file): Remove unused local.
115107 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
115109         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
115110         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
115111         Problem reported by Denis Excoffier in
115112         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
115114 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115116         * modules/sys_socket, modules/socklen: Include sys/types since
115117         FreeBSD 4.x's sys/socket.h needs it.
115119 2006-06-19  Simon Josefsson  <jas@extundo.com>
115121         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
115123 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115125         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
115127 2006-06-19  Bruno Haible  <bruno@clisp.org>
115129         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
115130         and FULL_PATH_INTTYPES_H in angle brackets.
115131         Reported by Mark D. Baushke <mdb@gnu.org>.
115133 2006-06-17  Eric Blake  <ebb9@byu.net>
115135         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
115136         errno.
115138 2006-06-17  Bruno Haible  <bruno@clisp.org>
115140         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
115141         <sys/inttypes.h>.
115143 2006-06-17  Bruno Haible  <bruno@clisp.org>
115145         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
115146         whether errno is declared. Assume <errno.h> declares errno.
115148 2006-06-17  Bruno Haible  <bruno@clisp.org>
115150         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
115152 2006-06-17  Bruno Haible  <bruno@clisp.org>
115154         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
115155         problem on Solaris 2.5.1.
115157 2006-06-16  Eric Blake  <ebb9@byu.net>
115159         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
115160         * lib/unicodeio.c [!defined errno]: Likewise.
115161         * lib/strtol.c [!defined errno]: Likewise.
115162         * lib/strtod.c [!defined errno]: Likewise.
115164 2006-06-15  Eric Blake  <ebb9@byu.net>
115166         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
115168 2006-06-15  Eric Blake  <ebb9@byu.net>
115170         * config/srclist.txt (ssize_t.m4): Lose sync.
115172 2006-06-15  Bruno Haible  <bruno@clisp.org>
115174         * modules/stdint (Files): Include m4/full-header-path.m4,
115175         m4/size_max.m4, m4/wchar_t.m4.
115176         (Makefile.am): Many more substitutions.
115177         * modules/stdint-tests: New file.
115178         * tests/test-stdint.c: New file.
115180 2006-06-15  Bruno Haible  <bruno@clisp.org>
115182         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
115183         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
115184         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
115185         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
115186         gl_CHECK_TYPE_SAME): New macros.
115188 2006-06-15  Bruno Haible  <bruno@clisp.org>
115190         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
115192 2006-06-15  Bruno Haible  <bruno@clisp.org>
115194         * lib/stdint_.h: Rewritten to be fully auto-configured.
115195         Fixes bug on HP-UX/IA64.
115197 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
115199         * lib/getdate.y (__attribute__): Don't define if already defined.
115200         Problem reported by Larry Jones.
115201         * lib/utimens.c (__attribute__): Likewise.
115203 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
115205         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
115206         reported by Andreas Schwab.
115208 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115209             Bruno Haible  <bruno@clisp.org>
115211         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
115212         check for the declaration of strnlen and a run test that exposes the
115213         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
115214         rpl_strndup.
115216 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115217             Bruno Haible  <bruno@clisp.org>
115219         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
115221 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115223         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
115224         compile test, for Tru64 4.0D.
115226 2006-05-28  Karl Berry  <karl@gnu.org>
115228         * config/srclist.txt (printf-args.c): lose sync.
115230 2006-05-26  Martin Lambers  <marlam@marlam.de>
115232         * lib/getpass.c: Updates the test for the native W32 API, and adds
115233         missing includes, thus fixing compilation warnings.
115235 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
115237         * lib/exclude.c (exclude_fnmatch): New function.
115238         (excluded_file_name): Call exclude_fnmatch.
115239         * lib/exclude.h (excluded_file_name): New prototype
115241 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
115243         * lib/tempname.c (small_open, large_open): New macros.
115244         (__open, __open64) [!_LIBC]: Remove.
115245         (__gen_tempname): Use small_open and large_open instead of __open
115246         and __open64.  This fixes a portability bug on HP-UX 11.11i
115247         reported by Simon Wing-Tang in
115248         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
115250 2006-05-24  Bruno Haible  <bruno@clisp.org>
115252         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
115253         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
115254         Reported by Thorsten Maerz <torte@netztorte.de> via
115255         Aaron Stone <aaron@serendipity.cx>.
115257 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
115260         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
115261         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
115262         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
115263         not really conditional on the cache.
115264         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
115266 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115268         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
115269         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
115270         (my_usleep): Don't mishandle maximum value.
115272 2006-05-19  Jim Meyering  <jim@meyering.net>
115274         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
115276 2006-05-17  Bruno Haible  <bruno@clisp.org>
115278         Cygwin portability.
115279         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
115281 2006-05-17  Bruno Haible  <bruno@clisp.org>
115283         * lib/stdint_.h: Fix recognition of Cygwin.
115285 2006-05-15  Bruno Haible  <bruno@clisp.org>
115287         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
115288         on libtool patch by Ralf Wildenhues.
115290 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
115292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
115293         test for C99 conformance; (bool) 0.5 is an integer constant
115294         expression, but (bool) -0.5 is not.  Problem reported by Fedor
115295         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
115297 2006-05-11  Simon Josefsson  <jas@extundo.com>
115299         * m4/xvasprintf.m4: Fix obvious typo.
115301 2006-05-11  Jim Meyering  <jim@meyering.net>
115303         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
115304         James Lemley.
115306 2006-05-10  Simon Josefsson  <jas@extundo.com>
115308         * lib/md4.c: Typo fix, update copyright years.
115309         (K1, K2): Don't use L because it turn computations into 64-bit on
115310         64-bit platforms.
115312 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
115314         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
115315         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
115316         unwanted sign propagation, e.g., on hosts with 64-bit int.
115317         There still are some problems with reeelly weird theoretical hosts
115318         (e.g., 33-bit int) but it's not worth worrying about now.
115319         * lib/sha1.c (rol): Likewise.
115320         (K1, K2, K3, K4): Remove unnecessary L suffix.
115322 2006-05-10  Bruno Haible  <bruno@clisp.org>
115324         * lib/des.c: Cast to avoid warnings.
115326 2006-05-09  Bruno Haible  <bruno@clisp.org>
115328         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
115329         (Depends-on): Depend also on xsize, stdarg.
115330         (configure.ac): Add gl_XVASPRINTF.
115332 2006-05-09  Bruno Haible  <bruno@clisp.org>
115334         * m4/xvasprintf.m4: New file.
115336 2006-05-09  Bruno Haible  <bruno@clisp.org>
115338         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
115339         (EOVERFLOW): Define fallback value.
115340         (xstrcat): New function.
115341         (xvasprintf): Recognize the special case of a string concatenation.
115343 2006-05-08  Eric Blake  <ebb9@byu.net>
115345         * gnulib-tool (func_version): Base copyright year on CVS date.
115346         (func_emit_copyright_notice): New function.
115347         (func_emit_lib_Makefile_am): Use it.
115348         (func_emit_tests_Makefile_am): Likewise.
115349         (func_import): Likewise.
115351 2006-05-08  Bruno Haible  <bruno@clisp.org>
115353         * modules/stdarg: New file.
115354         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
115356 2006-05-08  Bruno Haible  <bruno@clisp.org>
115358         * m4/stdarg.m4: New file, from GNU gettext.
115360 2006-05-08  Bruno Haible  <bruno@clisp.org>
115362         * config/srclist.txt (build-aux/config.rpath): different from latest
115363         release.
115365 2006-05-08  Bruno Haible  <bruno@clisp.org>
115367         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
115369 2006-05-05  Jim Meyering  <jim@meyering.net>
115371         * m4/warning.m4: New file, derived from bison's file by the same name.
115373 2006-05-03  Bruno Haible  <bruno@clisp.org>
115375         * lib/stdint_.h: Shorter URL.
115376         * lib/inttypes.h: Likewise.
115378 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115380         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
115382 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115384         * lib/verify.h: Document the internals better.  Most of this change
115385         was written by Bruno Haible.
115387 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115389         * doc/verify.texi: New file, partly based on a proposal by
115390         Bruno Haible.
115392 2006-05-02  Bruno Haible  <bruno@clisp.org>
115394         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
115395         test from here...
115396         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
115398 2006-04-29  Bruno Haible  <bruno@clisp.org>
115400         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
115401         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
115403 2006-04-29  Bruno Haible  <bruno@clisp.org>
115405         * gnulib-tool: Make --update option actually work.
115407 2006-04-29  Bruno Haible  <bruno@clisp.org>
115409         * doc/gcd.texi: New file.
115410         * doc/gnulib.texi: Include it.
115412 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
115414         * lib/getdate.y (get_date): When adding relative date, start with the
115415         initial time, not with the result of the first mktime call.
115417 2006-04-25  Bruno Haible  <bruno@clisp.org>
115419         * gnulib-tool (func_import): Output the include directives in three
115420         blocks, sorted separately.
115421         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115423 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115425         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
115426         to define main with arguments, for C++.  Reported by Eric Blake.
115427         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
115428         Prefer 'int main ()' to 'int main (void)', for C++.
115429         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
115430         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
115431         for 'main', for C99 and C++.
115433 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
115436         Don't assume that exit status -1 is valid.
115437         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
115438         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
115439         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
115440         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
115441         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
115442         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
115443         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
115444         functions can be used without declaring them, or that you can
115445         exit with status -1.
115446         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
115448 2006-04-24  Karl Berry  <karl@gnu.org>
115450         * config/srclist.txt (longdouble.m4): sync lost.
115452 2006-04-24  Eric Blake  <ebb9@byu.net>
115454         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
115456 2006-04-24  Bruno Haible  <bruno@clisp.org>
115458         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
115459         poll() implementation in AIX.
115460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115462 2006-04-24  Bruno Haible  <bruno@clisp.org>
115464         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
115465         assigned exactly once.
115467 2006-04-23  Claudio Fontana  <claudio@gnu.org>
115468             Bruno Haible  <bruno@clisp.org>
115470         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
115471         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
115472         for AM_CPPFLAGS.
115474 2006-04-23  Bruno Haible  <bruno@clisp.org>
115476         * modules/copy-file: Depend on unistd.
115477         * modules/execute: Likewise.
115478         * modules/fatal-signal: Likewise.
115479         * modules/findprog: Likewise.
115480         * modules/mkdtemp : Likewise.
115481         * modules/pipe: Likewise.
115482         * modules/wait-process: Likewise.
115484 2006-04-23  Bruno Haible  <bruno@clisp.org>
115486         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
115487         condition was already detected.
115488         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115490 2006-04-23  Bruno Haible  <bruno@clisp.org>
115492         * lib/copy-file.c: Include <unistd.h> unconditionally.
115493         * lib/execute.c: Likewise.
115494         * lib/fatal-signal.c: Likewise.
115495         * lib/findprog.c: Likewise.
115496         * lib/mkdtemp.c: Likewise.
115497         * lib/pipe.h: Likewise.
115498         * lib/pipe.c: Likewise.
115499         * lib/wait-process.h: Likewise.
115501 2006-04-23  Bruno Haible  <bruno@clisp.org>
115503         * gnulib-tool (func_usage): Fix --import description. Document
115504         --update.
115505         (func_import): Create temporary file in a temporary directory, if
115506         --dry-run is specified. Silence errors from 'grep' when there are no
115507         m4 files in $m4dir.
115508         (func_create_testdir): Silence errors from 'grep' when there are no
115509         m4 files in $m4dir.
115510         Reported by Karl Berry <karl@freefriends.org>.
115512 2006-04-20  Bruno Haible  <bruno@clisp.org>
115514         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
115515         one argument, so that the code will be portable to Autoconf 2.60.
115516         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
115517         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115518         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
115520 2006-04-19  Derek Price  <derek@ximbiot.com>
115521             Eric Blake  <ebb9@byu.net>
115523         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
115524         rather than "/full/path.h".  Update comment to match.  Shorten &
115525         generalize m4_translit call via AS_TR_CPP.
115527 2006-04-19  Derek Price  <derek@ximbiot.com>
115528             Eric Blake  <ebb9@byu.net>
115530         * lib/inttypes.h: Correct grammar in comment.
115532 2006-04-18  Derek Price  <derek@ximbiot.com>
115533             Paul Eggert  <eggert@cs.ucla.edu>
115535         * modules/inttypes: New file.
115536         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
115538 2006-04-18  Derek Price  <derek@ximbiot.com>
115539             Paul Eggert  <eggert@cs.ucla.edu>
115541         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
115542         New files.
115544 2006-04-18  Derek Price  <derek@ximbiot.com>
115545             Paul Eggert  <eggert@cs.ucla.edu>
115547         * lib/inttypes.h: New file.
115548         * lib/strtoimax.c: Assume <inttypes.h>.
115550 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
115552         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
115553         isn't mounted.  Problem reported by Kir Kolyshkin.
115555 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
115557         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
115558         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
115559         Derek R. Price.
115560         * lib/regex.h (RE_DUP_MAX): Update comment to match current
115561         implementation.
115563 2006-04-12  Eric Blake  <ebb9@byu.net>
115565         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
115566         is now done automatically by the corresponding Autoconf macro.
115568 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
115570         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
115571         time_r.h.
115573 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115575         Merge regex changes from libc, removing some of our
115576         POSIX-conformance changes that were rejected and redoing them in a
115577         less-intrusive way.
115579         * lib/regcomp.c (re_compile_internal, init_dfa):
115580         Length arg is now size_t, not Idx.  All uses changed.
115581         (peek_token): Forward decl now says internal_function.
115582         (__re_error_msgid, __re_error_msgid_idx):
115583         Now static rather than extern with attribute_hidden.
115584         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
115585         For some reason libc prefers K&R style defns for external functions.
115586         (regerror) [!defined _LIBC]: Likewise.
115587         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
115588         (seek_collating_symbol_entry, lookup_collation_sequence_value):
115589         (build_range_exp, build_collating_symbol):
115590         Use K&R-style defn.
115591         (re_compile_fastmap): Use '\0' to memset, not 0.
115592         (utf8_sb_map): Make the calculations more obvious.
115593         (init_dfa, parse_bracket_exp, build_charclass_op):
115594         Call calloc and cast result, as glibc does.
115595         (init_word_char, fetch_token, peek_token, peek_token_bracket):
115596         (build_range_exp, build_collating_symbol):
115597         Now internal functions.
115599         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
115601         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
115602         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
115603         Don't depend on VMS; depend on __VMS instead, for POSIX
115604         namespace cleanness.
115605         (regoff_t): Define to ssize_t, not long int.
115607         Remove the REG_ macros named below.  Instead, make the old names
115608         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
115609         __USE_GNU_REGEX.
115610         (REG_BACKSLASH_ESCAPE_IN_LISTS):
115611         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
115612         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
115613         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
115614         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
115615         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
115616         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
115617         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
115618         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
115619         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
115620         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
115621         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
115622         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
115623         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
115624         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
115625         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
115626         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
115627         (REG_NREGS):
115628         Remove.  All uses replaced by the old RE_* names.
115629         (RE_BACKSLASH_ESCAPE_IN_LISTS):
115630         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
115631         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
115632         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
115633         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
115634         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
115635         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
115636         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
115637         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
115638         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
115639         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
115640         Don't bother having these macros be independent of each others'
115641         values, since they no longer exist in the POSIX name space.
115643         Rename the following member names back to their old names,
115644         unless !__USE_GNU_REGEX.  All uses changed back.
115645         (buffer): Renamed from re_buffer.
115646         (allocated): Renamed from re_allocated.
115647         (used): Renamed from re_used.
115648         (syntax): Renamed from re_syntax.
115649         (fastmap): Renamed from re_fastmap.
115650         (translate): Renamed from re_translate.
115651         (can_be_null): Renamed from re_can_be_null.
115652         (regs_allocated): Renamed from re_regs_allocated.
115653         (fastmap_accurate): Renamed from re_fastmap_accurate.
115654         (no_sub): Renamed from re_no_sub.
115655         (not_bol): Renamed from re_not_bol.
115656         (not_eol): Renamed from re_not_eol.
115657         (newline_anchor): Renamed from re_newline_anchor.
115658         (num_regs): Renamed from rm_num_regs.
115659         (start): Renamed from rm_start.
115660         (end): Renamed from rm_end.
115662         (free_state): Move up a bit.
115664         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
115665         #define to be empty.
115666         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
115667         when that is what is intended.
115668         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
115669         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
115670         (MAX): New macro.
115671         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
115672         All uses changed back to re_malloc, etc.  It's now the caller's
115673         responsibility to check for overflow; all callers changed.
115674         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
115675         (re_x2nrealloc): Remove.
115676         (free_state): Remove decl.
115678         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
115679         (re_set_registers, re_exec):
115680         Use K&R-style defn.
115682         2006-01-31  Roland McGrath  <roland@redhat.com>
115684         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
115685         Reported by Mike Frysinger <vapier@gentoo.org>.
115687         2006-01-15  Andreas Jaeger  <aj@suse.de>
115689         [BZ #1950]
115690         * lib/regex_internal.c (re_string_reconstruct): Adjust for
115691         build_wcs_upper_buffer change.
115692         (build_wcs_upper_buffer): Change return type.
115694         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
115696         * lib/regex_internal.h: Include <stdint.h> if available.
115698         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
115700         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
115702         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
115704         * lib/regcomp.c: Adjust for changed secondary hash function.
115706         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
115708         * lib/regex.h: Pretty printing.
115709         Clean up namespace a bit.
115711         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
115713         * lib/regexec.c (update_cur_sifted_state, check_arrival,
115714         check_arrival_add_next_nodes): Avoid using uninitialized variable.
115716         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115717                     Ulrich Drepper  <drepper@redhat.com>
115719         [BZ #1302]
115720         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
115721         changed.
115722         (bitset_word_t): Renamed from bitset_word.  All uses changed.
115724         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
115726         [BZ #281]
115727         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
115728         * lib/regcomp.c: Remove unnecessary uses of
115729         unsigned RE_TRANSLATE_TYPE.
115730         * lib/regex_internal.h: Likewise.
115731         * lib/regex_internal.c: Likewise.
115732         * lib/regexec.c: Likewise.
115733         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
115735         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
115737         * lib/regexec.c (find_recover_state): Remove unnecessary
115738         initialization.
115739         (transit_state_bkref): Make DFA a const pointer.
115740         (get_subexp): Likewise.
115741         (check_arrival): Likewise.
115742         (update_cur_sifted_state): Likewise.
115743         (re_search_internal): Likewise.
115744         (prune_impossible_nodes): Likewise.
115745         (acquire_init_state_context): Likewise.
115746         (proceed_next_node): Likewise.
115747         (set_regs): Likewise.
115748         (free_fail_stack_return): Likewise.
115749         (check_arrival_expand_ecl): Mark DFA parameter as const.
115750         (check_arrival_expand_ecl_sub): Likewise.
115751         (check_subexp_limits): Likewise.
115752         (sub_epsilon_src_nodes):  Likewise.
115753         (add_epsilon_src_nodes):  Likewise.
115754         (merge_state_array): Likewise.
115755         (update_regs): Likewise.
115756         (build_trtable): Likewise.
115757         (sift_states_backward): Mark MCTX parameter as const.
115758         (build_sifted_states): Likewise.
115759         (update_cur_sifted_state): Likewise.
115760         (sift_states_mkref): Likewise.
115761         (check_arrival_expand_ecl): Mark eclosure as const.
115762         (check_dst_limits_calc_pos_1): Likewise.
115763         * lib/regex_internal.h (re_match_context_t): Make dfa a const
115764         pointer.
115766         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
115768         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
115769         (transit_state_sb): Likewise.
115770         (transit_state_mb): Likewise.
115771         (sift_states_iter_mb): Likewise.
115772         (check_arrival_add_next_nodes): Likewise.
115773         (check_node_accept_bytes): Change first parameter to pointer-to-const.
115774         [_LIBC] (re_search_2_stub): Use mempcpy.
115776         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
115777         mbrtowc for very simple UTF-8 case.
115779         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
115780         a pointer-to-const.
115781         (re_acquire_state_context): Likewise.
115782         * lib/regex_internal.h: Adjust prototypes.
115784         * lib/regex.c: Prevent using C++ compilers.
115786         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
115787         (re_acquire_state_context): Likewise.
115789 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115791         * modules/regex (Depends-on): Add ssize_t.
115793 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115795         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
115796         translation table.
115798 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115800         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
115802 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
115803             Bruno Haible  <bruno@clisp.org>
115805         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
115806         <sys/types.h> and <inttypes.h>.
115808 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115810         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
115811         `__error_t_defined', so argp.h will not typedef the former.
115813 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
115815         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
115816         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
115817         glibc names.  Even if glibc is changed to conform to POSIX, the
115818         traditional names will be available anyway, since regex depends on
115819         the extensions module.  Also, fix a longstanding typo in the
115820         implementation of Spencer ERE test #75 from grep 2.3.  Problems
115821         reported by Emanuele Giaquinta.  Also, change sense of cached
115822         variable, so that the message makes sense.
115824 2006-03-24  Simon Josefsson  <jas@extundo.com>
115826         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
115827         including some doc fixes.
115828         (base64_encode_alloc): Fix +1 bug on allocation failures.
115830 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115832         * lib/base64.c (base64_encode): Do not read past end of array with
115833         unsanitized input on systems with CHAR_BIT > 8.
115835 2006-03-24  Eric Blake  <ebb9@byu.net>
115837         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
115839 2006-03-22  Karl Berry  <karl@gnu.org>
115841         * config/srclist.txt (*setenv.[ch]): get from coreutils.
115842         * config/srclistvars.sh (COREUTILS): new var.
115844 2006-03-17  Jim Meyering  <jim@meyering.net>
115846         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
115847         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
115849 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
115851         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
115852         no longer needs it.  Instead, check that regoff_t is as least
115853         as wide as ptrdiff_t.
115855         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
115856         so that our regex.h stays compatible with the installed regex.
115857         This is helpful for installers who configure --without-included-regex.
115858         Problem reported by Emanuele Giaquinta.
115860 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
115862         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
115863         Typedef to long int, not to off_, as POSIX will likely change
115864         in that direction.
115866 2006-03-15  Eric Blake  <ebb9@byu.net>
115868         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
115870 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
115872         * lib/argp-help.c (validate_uparams): Fix typo
115873         * lib/argp-parse.c (argp_default_options): Consistently begin help
115874         messages with a lowercase letter.
115876 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
115878         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
115879         overrun buffers and shouldn't be used (much as gets shouldn't be
115880         used).
115881         * lib/time_r.c (asctime_r, ctime_r): Likewise.
115883 2006-03-08  Simon Josefsson  <jas@extundo.com>
115885         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
115886         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115888 2006-03-08  Simon Josefsson  <jas@extundo.com>
115890         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
115891         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115893 2006-03-08  Simon Josefsson  <jas@extundo.com>
115895         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
115896         signal that configure disabled the device.
115898 2006-03-08  Simon Josefsson  <jas@extundo.com>
115900         * build-aux/maint.mk: Fix refresh-po, to handle no translated
115901         languages.
115903 2006-03-07  Simon Josefsson  <jas@extundo.com>
115905         * modules/getopt (Depends-on): Add unistd.
115907         * modules/unistd: New file.
115909 2006-03-07  Simon Josefsson  <jas@extundo.com>
115911         * modules/gc-random: New file.
115913 2006-03-07  Simon Josefsson  <jas@extundo.com>
115915         * m4/unistd_h.m4: New file.
115917 2006-03-07  Simon Josefsson  <jas@extundo.com>
115919         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
115920         test to be side-effect free by storing the result in the cache
115921         variable gl_cv_lib_readline, and moving the assignment of
115922         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
115923         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115925 2006-03-07  Simon Josefsson  <jas@extundo.com>
115927         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
115928         error on missing devices (the functions will return an error).
115930         * m4/gc.m4: Move random stuff to gc-random.m4
115932 2006-03-07  Simon Josefsson  <jas@extundo.com>
115934         * lib/unistd_.h: New file.
115936 2006-03-07  Simon Josefsson  <jas@extundo.com>
115938         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
115940 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
115942         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
115943         Problem reported by Juan Manuel Guerrero.
115945 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
115947         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
115948         the unistd module.
115949         * lib/getlogin_r.c: Likewise.
115950         * lib/getlogin_r.h: Likewise.
115951         * lib/glob.c: Likewise.
115952         * lib/pagealign_alloc.c: Likewise.
115953         * lib/unistd_.h: Remove; no longer needed.
115955 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
115957         * MODULES.html.sh (Support for systems lacking POSIX:2001):
115958         Add unistd.
115959         * modules/c-stack (Depends-on): Add unistd.
115960         * modules/getlogin_r: Likewise.
115961         * modules/glob: Likewise.
115962         * modules/pagealign_alloc: Likewise.
115963         * modules/unistd (Files): Remove lib/unistd_.h.
115964         (EXTRA_DIST): Remove.
115965         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
115966         need unistd_.h.
115967         (MOSTLYCLEANFILES): Remove unistd.h-t.
115969 2006-03-03  Simon Josefsson  <jas@extundo.com>
115971         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
115973 2006-03-03  Simon Josefsson  <jas@extundo.com>
115975         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
115976         libidn and bison.
115978 2006-03-03  Simon Josefsson  <jas@extundo.com>
115980         * build-aux/maint.mk: Add indent target.
115982 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
115984         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
115985         our replacement poll.h in any case, to avoid a differing
115986         declaration from a system header.  Seen on AIX.
115988 2006-03-01  Simon Josefsson  <jas@extundo.com>
115990         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
115991         <kasal@ucw.cz>.
115993 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
115995         * modules/gettime (Depends-on): Add extensions module.
115996         * modules/nanosleep (Depends-on): Likewise.
115997         * modules/settime (Depends-on): Likewise.
115999 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116001         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
116002         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
116003         pedantically.
116004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116005         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
116007         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
116008         not "==".  Reported by Ralf Wildenhues.
116010 2006-03-01  Karl Berry  <karl@gnu.org>
116012         * doc/Copyright/request-*: new files, synced from gnuorg.
116014 2006-03-01  Karl Berry  <karl@gnu.org>
116016         * config/srclist.txt (Copyright/*): new entries.
116018 2006-02-28  Simon Josefsson  <jas@extundo.com>
116020         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
116022 2006-02-27  Simon Josefsson  <jas@extundo.com>
116024         * lib/base64.h: Indent #define's.  From Jim Meyering
116025         <jim@meyering.net>.
116027 2006-02-27  Jim Meyering  <jim@meyering.net>
116029         Revert the change of 2006-02-24, so these files can continue
116030         to be sync'd from gettext.
116031         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
116032         of `config.h'.
116034 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
116036         * modules/intprops: New file.
116037         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
116038         Add intprops.
116039         * modules/getloadavg (Files): Remove lib/intprops.h.
116040         (Depends-on): Add intprops.
116041         * modules/human: Likewise.
116042         * modules/inttostr: Likewise.
116043         * modules/openat: Likewise.
116044         * modules/sig2str: Likewise.
116045         * modules/userspec: Likewise.
116046         * modules/utimecmp: Likewise.
116047         * modules/xnanosleep: Likewise.
116048         * modules/xstrtol: Likewise.
116050 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
116052         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
116053         * modules/lock-tests (TESTS): Use $(EXEEXT).
116054         * modules/tls-tests: Likewise.
116055         * modules/argp-tests: Likewise.
116056         (check_PROGRAMS): New var, replacing...
116057         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
116059 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116061         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
116062         `config.h'.
116064 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
116066         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
116068 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116070         Sync from coreutils.
116071         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
116072         gl_CHDIR_SAFER.
116074 2006-02-22  Jim Meyering  <jim@meyering.net>
116076         Sync from coreutils.
116077         * m4/chdir-safer.m4: New file.
116079 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
116081         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
116082         AT_FDCWD exceeds INT_MAX.
116083         * lib/openat.h (AT_FDCWD): Likewise.
116085 2006-02-17  Eric Blake  <address@hidden>
116087         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
116089 2006-02-16  Simon Josefsson  <jas@extundo.com>
116091         * modules/getaddrinfo (Depends-on): Add sys_socket.
116093 2006-02-15  Simon Josefsson  <jas@extundo.com>
116095         * build-aux/maint.mk: Add dsyntax-check rule.
116097 2006-02-15  Eric Blake  <ebb9@byu.net>
116099         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
116100         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
116101         'present but cannot compile' warnings on cygwin.
116102         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
116103         use ws2tcpip.h if sys/socket.h works.
116104         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
116105         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
116107 2006-02-14  Simon Josefsson  <jas@extundo.com>
116109         * modules/maintainer-makefile (Files): Rename.
116111         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
116112         and (the local) Makefile.cfg to maint-cfg.mk.
116114         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
116115         to the latter.
116117         * modules/maintainer-makefile: New module.
116119         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
116120         severaly stripped to make it possible to build it up from scratch
116121         with reliable tests.
116123         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
116124         fixes to permit overriding the default actions when configure and
116125         makefile are not available.
116127 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
116129         Sync from coreutils.
116130         * modules/lstat (Depends-on): Don't depend on xalloc.
116131         (License): Change from GPL to LGPL, since this is now simply a
116132         replacement for a libc function.
116134 2006-02-14  Jim Meyering  <jim@meyering.net>
116136         Sync from coreutils.
116138         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
116139         failure on deficient systems, and simplify gnulib lgpl dependencies.
116140         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
116141         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
116143         * lib/xalloc-die.c: Remove unused definition of N_.
116145 2006-02-14  Jim Meyering  <jim@meyering.net>
116147         Sync from coreutils.
116148         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
116149         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
116150         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
116151         double-quote uses of that variable, to accommodate the rare case in
116152         which getmntent is available in none of the libraries checked.  This
116153         happens at least on FreeBSD 5.0.
116155 2006-02-13  Simon Josefsson  <jas@extundo.com>
116157         * gnulib-tool (Usage): Fix --import, from
116158         karl@freefriends.org (Karl Berry).
116160 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116162         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
116164 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
116166         * lib/argp-namefrob.h: Restore changes accidentally lost during the
116167         "autoupdate" on 2005-12-12.
116169 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116171         * modules/closeout (Depends-on): Remove atexit.
116173 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116175         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
116176         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
116178 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
116180         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
116181         __EXTENSIONS__ if this causes compilation to fail.  Problem
116182         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
116183         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
116185 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
116187         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
116188         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
116189         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
116190         All uses changed.
116192 2006-01-26  Simon Josefsson  <jas@extundo.com>
116194         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
116195         prototype is visible on mingw32.
116197         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
116198         for mingw32.
116200         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
116201         mingw32).
116203 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
116205         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
116206         attempt to open for write; this always fails, at least on POSIX
116207         hosts.  This reinstates the 2006-01-09 change, which was
116208         inadvertently removed.
116210 2006-01-26  Bruno Haible  <bruno@clisp.org>
116212         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
116213         Reported by Paul Eggert.
116215 2006-01-26  Bruno Haible  <bruno@clisp.org>
116216             Paul Eggert  <eggert@cs.ucla.edu>
116218         * lib/stdbool_.h (_Bool)
116219         [(! (defined __cplusplus || defined __BEOS__)
116220           && !defined __GNUC__
116221           && !(defined __HP_cc || defined __xlc__
116222                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
116223                || defined __sgi))]:
116224         #define to signed char in these cases too; this simplifies
116225         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
116226         etc., separately) and makes it more conservative.
116228 2006-01-25  Simon Josefsson  <jas@extundo.com>
116230         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
116231         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
116232         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
116234 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116236         * lib/argp-namefrob.h: Bugfix. Remove stray #
116238 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
116240         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
116241         so that we test the test.
116242         Check for yet another HP-UX cc bug involving *bool |= bool.
116244 2006-01-25  Karl Berry  <karl@gnu.org>
116246         * config/srclist.txt (vasnprintf.c): sync lost.
116248 2006-01-25  Jim Meyering  <jim@meyering.net>
116250         Sync from the stable (b5) branch of coreutils:
116252         * lib/fts.c (fts_children): Don't let close() clobber errno from
116253         failed fchdir().
116255         * lib/fts.c (fts_stat): When following a symlink-to-directory,
116256         don't necessarily interpret stat-fails+lstat-succeeds as indicating
116257         a dangling symlink.  That can also happen at least for ELOOP.
116258         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
116259         FYI, this bug predates the inclusion of fts.c in coreutils.
116261         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
116262         in their own block, so pre-c99 compilers don't object.
116264         Avoid the double-free (first in fts_read, second in fts_close) that
116265         would occur when an `active' directory is made inaccessible (e.g.,
116266         via chmod a-x) during a traversal.
116267         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116268         before returning.  Reproduce this failure by
116269         mkdir -p a/b; cd a; chmod a-x . b
116270         Reported by Stavros Passas.
116272 2006-01-25  Jim Meyering  <jim@meyering.net>
116274         * lib/fileblocks.c: Remove more useless parentheses.
116275         * lib/readutmp.h: Likewise.
116277 2006-01-25  Bruno Haible  <bruno@clisp.org>
116279         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
116280         warnings.
116281         Reported by Paul Eggert.
116283 2006-01-25  Bruno Haible  <bruno@clisp.org>
116285         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
116286         rid of a trap command. For Solaris sh.
116287         Reported by Mark D. Baushke <mdb@gnu.org>.
116289 2006-01-24  Simon Josefsson  <jas@extundo.com>
116291         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
116292         Bruno.
116294 2006-01-24  Karl Berry  <karl@gnu.org>
116296         * config/srclist.txt (argp-namefrob.h): sync lost.
116298 2006-01-24  Jim Meyering  <jim@meyering.net>
116300         * modules/openat (Files): Add lib/intprops.h.
116301         From Mark D. Baushke.
116303 2006-01-24  Jim Meyering  <jim@meyering.net>
116305         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
116306         Reported by Mark D. Baushke.
116308 2006-01-24  Jim Meyering  <jim@meyering.net>
116310         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
116312 2006-01-24  Bruno Haible  <bruno@clisp.org>
116314         * modules/strnlen (Maintainer): Change from glibc to all.
116316 2006-01-24  Bruno Haible  <bruno@clisp.org>
116318         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
116319         Patch by Paul Eggert.
116321 2006-01-24  Bruno Haible  <bruno@clisp.org>
116323         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
116324         already has it.
116325         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
116326         2005-11-26.
116328         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
116329         'signed char' to avoid problems with the built-in _Bool type.
116330         Reported by Paul Eggert on 2005-11-26.
116332 2006-01-24  Bruno Haible  <bruno@clisp.org>
116334         * gnulib-tool (func_import): Avoid constructing complicated sed
116335         expressions inside backquote.
116336         Report and solution by Mark D. Baushke <mdb@gnu.org>.
116338 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
116340         These changes imported from libc.
116341         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
116342         test and two separate function calls.
116343         * lib/strndup.c (__strndup): Add libc_hidden_def.
116345 2006-01-23  Simon Josefsson  <jas@extundo.com>
116347         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
116348         Remove the test_*_SOURCES variable: automake infers it by default.
116349         * modules/tls-tests: Likewise.
116351 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116353         Work around porting bugs reported by Dieter in
116354         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
116355         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
116356         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
116357         Include "getopt.h" first, to check interface.
116358         (getenv): Declare only if defined HAVE_DECL_GETENV &&
116359         !HAVE_DECL_GETENV.
116360         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
116361         (__strndup): Revert to K&R-style function dfns, the glibc style.
116362         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
116363         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
116364         Include strnlen.h first, to get prototype properly.
116365         (strnlen): Renamed from __strnlen.
116366         Remove weak alias.
116368 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116370         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
116372 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116374         * config/srclist.txt: Adjust to reflect glibc reorganization.
116375         This affects only comments.
116377 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116379          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
116380          Reported by Bruce Korb <bkorb@gnu.org>.
116382 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
116384         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
116385         to pacify gcc -Wswitch-default.
116387 2006-01-22  Bruno Haible  <bruno@clisp.org>
116389         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
116390         temporary buffer for sprintf, take into account the precision also
116391         for 'd', 'i', 'u', 'o', 'x', 'X'.
116393 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116395         * modules/argp-tests: New module
116396         * tests/test-argp.c: New file
116397         * tests/test-argp-2.sh: New file
116399 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116401         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
116402         (__argp_base_name): Removed
116403         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
116404         typo.
116405         (__argp_base_name): Provide macro definition or extern declaration
116406         depending on the configuration
116408 2006-01-20  Simon Josefsson  <jas@extundo.com>
116410         * modules/inet_ntop (Depends-on): Depend on sys_socket.
116412 2006-01-20  Simon Josefsson  <jas@extundo.com>
116414         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
116416 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
116418         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
116419         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
116420         Suggested by Bruno Haible.
116422 2006-01-20  Karl Berry  <karl@gnu.org>
116424         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
116425         until changes propagate, I guess.
116427 2006-01-19  Simon Josefsson  <jas@extundo.com>
116429         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
116431 2006-01-19  Simon Josefsson  <jas@extundo.com>
116433         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
116435 2006-01-19  Simon Josefsson  <jas@extundo.com>
116437         * gnulib-tool: Set check_PROGRAMS.
116439         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116440         modules/des-tests, modules/gc-arcfour-tests,
116441         modules/gc-arctwo-tests, modules/gc-des-tests,
116442         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116443         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116444         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116445         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116446         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116447         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
116448         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
116449         test_*_SOURCES.
116451 2006-01-18  Simon Josefsson  <jas@extundo.com>
116453         * modules/socklen (Depends-on): Depend on sys_socket.
116455 2006-01-18  Simon Josefsson  <jas@extundo.com>
116457         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116458         modules/des-tests, modules/gc-arcfour-tests,
116459         modules/gc-arctwo-tests, modules/gc-des-tests,
116460         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116461         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116462         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116463         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116464         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116465         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
116466         $(EXEEXT) to automake TESTS variable, for mingw32.
116468 2006-01-17  Simon Josefsson  <jas@extundo.com>
116470         * modules/socklen (Include): Need sys/socket.h.
116472 2006-01-17  Bruno Haible  <bruno@clisp.org>
116474         * modules/ssize_t (Include): Add <sys/types.h>.
116476 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
116478         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
116479         it's not portable and it doesn't work with cross-compiles.
116480         Problem reported by Bruno Haible.  Fix missing-$ typo in
116481         'test "gl_cv_ignore_unused_libraries" ...' that prevented
116482         -zignore from being used with Sun's C compiler.
116484 2006-01-12  Simon Josefsson  <jas@extundo.com>
116486         * lib/base64.c: Fix warning, reported by Bruno Haible
116487         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
116489 2006-01-12  Bruno Haible  <bruno@clisp.org>
116491         * modules/ldd: New file.
116492         * build-aux/ldd.sh.in: New file.
116493         * MODULES.html.sh (Support for building libraries and executables): Add
116494         ldd.
116496 2006-01-12  Bruno Haible  <bruno@clisp.org>
116498         * m4/ldd.m4: New file.
116500 2006-01-12  Bruno Haible  <bruno@clisp.org>
116502         * gnulib-tool (func_import, func_create_testdir): Don't go into an
116503         endless loop while replacing $auxdir with build-aux.
116505 2006-01-11  Simon Josefsson  <jas@extundo.com>
116507         * lib/stdint_.h (SIZE_MAX): Add missing (.
116509 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
116511         Sync from coreutils.
116512         * lib/md5.c: Fix commentary typos.
116513         (alignof, UNALIGNED_P): No need for a GCC-specific version.
116514         * lib/md5.h (__attribute__): Remove; unused.
116515         * lib/sha1.c: Fix commentary to match md5 better.
116516         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
116517         so that we don't need to worry about alignment.  All uses changed.
116518         This merges the 2005-10-28 md5 change into sha1.
116520 2006-01-11  Jim Meyering  <jim@meyering.net>
116522         Sync from coreutils.
116523         * lib/md5.c (OP): Fix spacing.
116525 2006-01-11  Bruno Haible  <bruno@clisp.org>
116527         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116528         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
116529         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
116531 2006-01-11  Bruno Haible  <bruno@clisp.org>
116533         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116534         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
116535         the "early" section as well.
116537 2006-01-11  Bruno Haible  <bruno@clisp.org>
116539         Avoid "ar: no archive members specified" error on MacOS X.
116540         * gnulib-tool (func_modules_add_dummy): New function.
116541         (func_import, func_create_testdir): Invoke it.
116543 2006-01-11  Bruno Haible  <bruno@clisp.org>
116545         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
116546         with $auxdir in AC_CONFIG_FILES statements.
116548 2006-01-11  Bruno Haible  <bruno@clisp.org>
116550         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
116551         Initialize also noinst_HEADERS to empty.
116553 2006-01-11  Bruno Haible  <bruno@clisp.org>
116555         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
116556         variables.
116557         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
116558         autoreconf.
116560 2006-01-11  Bruno Haible  <bruno@clisp.org>
116562         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
116563         overridable by the user.
116564         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116566 2006-01-10  Simon Josefsson  <jas@extundo.com>
116568         * modules/sys_socket: New file.
116570 2006-01-10  Simon Josefsson  <jas@extundo.com>
116572         * m4/sys_socket_h.m4: New file.
116574 2006-01-10  Simon Josefsson  <jas@extundo.com>
116576         * lib/socket_.h: New file.
116578 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116580         * modules/readutmp (Maintainer): Add myself.
116582 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116584         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
116585         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
116586         People who are still concerned with buggy memcmp implementations
116587         can invoke gl_FUNC_MEMCMP themselves.
116589 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116591         * lib/regex_internal.h (BITSET_WORD_BITS):
116592         Work around a bug in 64-bit PGC (before version 6.1-2), where the
116593         preprocessor mishandles large unsigned values as if they were signed.
116594         Problem reported by Claudio Fontana in
116595         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
116597 2006-01-10  Jim Meyering  <jim@meyering.net>
116599         Avoid the double-free (first in fts_read, second in fts_close) that
116600         would occur when an `active' directory is made inaccessible (e.g.,
116601         via chmod a-x) during a traversal.
116602         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116603         before returning.  Reproduce this failure by
116604         mkdir -p a/b; cd a; chmod a-x . b
116605         Reported by Stavros Passas.
116607         Sync from coreutils.
116608         * lib/sha1.c: Tweak grammar in a comment.
116610 2006-01-10  Jim Meyering  <jim@meyering.net>
116612         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
116613         Patch by Joerg Sonnenberger.
116615 2006-01-10  Bruno Haible  <bruno@clisp.org>
116617         * modules/readutmp: Depend on module free.
116618         * modules/strtok_r: Depend on module restrict.
116620 2006-01-10  Bruno Haible  <bruno@clisp.org>
116622         * modules/gettext (configure.ac): Add an invocation of
116623         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
116625 2006-01-10  Bruno Haible  <bruno@clisp.org>
116627         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
116628         Reported by Werner Lemberg <wl@gnu.org>.
116630 2006-01-10  Bruno Haible  <bruno@clisp.org>
116632         * lib/localcharset.c: Update from GNU gettext.
116634 2006-01-10  Bruno Haible  <bruno@clisp.org>
116636         * lib/argp.h (__const): Remove macro. Use const instead.
116637         * lib/argp-fmtstream.h (__const): Likewise.
116638         * lib/glob_.h (__const): Remove macro.
116639         * lib/glob-libc.h: Use const instead of __const.
116641 2006-01-10  Bruno Haible  <bruno@clisp.org>
116643         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
116644         variable.
116645         Needed to avoid an automake error regarding the 'gettext' module.
116647 2006-01-09  Simon Josefsson  <jas@extundo.com>
116649         * modules/inet_ntop (Depends-on): Add restrict.
116651 2006-01-09  Simon Josefsson  <jas@extundo.com>
116653         * modules/gc-rijndael-tests (License): Put under LGPL.
116655         * modules/gc-des-tests (License): Likewise.
116657         * modules/gc-arcfour-tests (License): Likewise.
116659         * modules/gc-arctwo-tests (License): Likewise.
116661         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
116663         * modules/gc-hmac-sha1-tests (Files): Likewise.
116665         * modules/gc-hmac-md5-tests (License): Likewise.
116667         * modules/gc-sha1-tests (License): Likewise.
116669         * modules/gc-md5-tests (License): Likewise.
116671         * modules/gc-md4-tests (License): Likewise.
116673         * modules/gc-md2-tests (License): Likewise.
116675         * modules/gc-tests (License): Likewise.
116677         * modules/des-tests (License): Likewise.
116679         * modules/md4-tests (License): Likewise.
116681         * modules/md2-tests (License): Likewise.
116683 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116685         Sync from coreutils:
116687         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
116688         * modules/lib-ignore: New file.
116689         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
116690         chdir-safer.m4, lchmod.m4.
116691         * modules/openat: Add mkdirat.c, openat-priv.h.
116693 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116695         Sync from coreutils.
116696         * m4/lib-ignore.m4: New file.
116697         * m4/lchmod.m4: New file.
116699 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116701         Sync from coreutils.
116702         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
116703         for write access: POSIX says that must fail.
116704         * lib/fts.c (diropen): Likewise.
116705         * lib/save-cwd.c (save_cwd): Likewise.
116706         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
116707         well, for minor improvements on hosts that lack O_DIRECTORY.
116708         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
116709         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
116710         Fall back on chown if open failed with EACCES.
116712         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
116713         Report an error at compile-time if only a 1-second nominal clock
116714         resolution is found.
116716         * lib/lchmod.h: New file.
116717         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
116718         (make_dir_parents): Use lchown rather than chown, and
116719         lchmod rather than chmod.
116721         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
116722         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
116723         "proc" reported by n0dalus.
116725         * lib/mountlist.c: Include <limits.h>.
116726         (dev_from_mount_options)
116727         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
116728         New function.  It no longer assumes "dev=" has the System V meaning
116729         on Linux (since it doesn't).  It also parses "dev=" more carefully.
116730         (read_file_system_list)
116731         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
116732         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
116733         dev= in that case.
116735         * lib/posixtm.h (PDS_PRE_2000): New macro.
116736         * lib/posixtm.c (year): Arg is now syntax_bits rather than
116737         allow_century.  All usages changed.  Reject dates outside the range
116738         1969-1999 if PDS_PRE_2000 is used.
116740 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116742         Sync from coreutils.
116743         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
116744         (Time of day items): Mention the possibility of leap seconds.
116745         Problem reported by Dr. David Alan Gilbert.
116747 2006-01-09  Jim Meyering  <jim@meyering.net>
116749         Sync from coreutils.
116751         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
116753         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
116755         * lib/modechange.c (mode_compile): Reject an invalid mode string
116756         that starts with an octal digit.  From Andreas Gruenbacher.
116758         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
116759         and dup to open_safer and dup_safer, respectively.
116760         (openat_permissive): Fix typo in comment.
116762         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
116763         "gettext.h"; either no longer needed or are guaranteed by openat.h.
116764         (_): Remove; no longer needed.
116765         (openat): Renamed from rpl_openat; no need for rpl_openat
116766         since openat.h renames openat for us.
116767         Replace most of the body with a call to openat_permissive,
116768         to avoid duplicate code.
116769         Port to (probably hypothetical) environments were mode_t is
116770         wider than int.
116771         (openat_permissive): Require mode arg, so that we can check
116772         types better.  Put it just after flags.  Change cwd failure
116773         indicator from pointer-to-bool to pointer-to-errno-value.
116774         All callers changed.
116775         Invoke openat_save_fail and/or openat_restore_fail if
116776         cwd_errno is null, so that openat can call us.
116777         (openat_permissive, fdopendir, fstatat, unlinkat):
116778         Simplify errno handling to avoid some duplicate code,
116779         as it's OK to set errno on success.
116780         * lib/openat.h: Revamp code so that function macros depend on
116781         __OPENAT_PREFIX only, not also on AT_FDCWD.
116782         (openat_ro): Remove.  Caller changed to use openat_permissive.
116783         (openat_permissive): Now a macro, if not a function.
116784         (openat_restore_fail, openat_save_fail): Now always functions,
116785         since mkdirat needs them even if __OPENAT_PREFIX is defined.
116787         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
116788         and openat.c.
116789         * lib/mkdirat.c: Include openat-priv.h.
116790         Remove definitions of macros defined therein.
116791         * lib/openat.c: Likewise.
116793         * lib/mkdirat.c (mkdirat): New file and function.
116794         * lib/openat.h (mkdirat): Declare.
116796         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
116798         * lib/openat.h (openat_permissive): Declare.
116799         (openat_ro): Define.
116801         * lib/openat.c (EXPECTED_ERRNO): New macro.
116802         (openat_permissive): New function -- used in remove.c rewrite.
116803         (all functions): Set errno just before returning, only if there
116804         was an actual failure.
116805         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
116807         Emulate openat-family functions using Linux's procfs, if possible.
116808         Idea and some code based on Ulrich Drepper's glibc changes.
116810         * lib/openat.c: (BUILD_PROC_NAME): New macro.
116811         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
116812         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
116813         before falling back on save_cwd and restore_cwd.
116814         (fdopendir, fstatat, unlinkat): Likewise.
116816         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
116817         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
116819         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
116820         as second argument to va_arg.  Otherwise, some versions of gcc
116821         warn that `if this code is reached, the program will abort'.
116823 2006-01-09  Jim Meyering  <jim@meyering.net>
116825         Sync from coreutils.
116826         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
116827         Require openat-priv.h.
116829 2006-01-09  Bruno Haible  <bruno@clisp.org>
116831         * modules/strnlen (Include): Use strnlen.h.
116833 2006-01-09  Bruno Haible  <bruno@clisp.org>
116835         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
116837 2006-01-09  Bruno Haible  <bruno@clisp.org>
116839         * lib/sysexit_.h (EX_OK): New macro.
116840         Suggested by Martin Lambers <marlam@marlam.de>.
116842 2006-01-09  Bruno Haible  <bruno@clisp.org>
116844         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
116845         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
116847 2006-01-09  Bruno Haible  <bruno@clisp.org>
116849         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
116850         numbers.
116852 2006-01-09  Bruno Haible  <bruno@clisp.org>
116854         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
116855         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
116856         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
116857         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
116859 2006-01-09  Bruno Haible  <bruno@clisp.org>
116861         * build-aux/javacomp.sh.in: New file, moved from lib/.
116862         * modules/javacomp-script (Files): Update.
116863         (configure.ac): Add AC_CONFIG_FILES invocation.
116864         (EXTRA_DIST): Remove variable.
116866         * build-aux/javaexec.sh.in: New file, moved from lib/.
116867         * modules/javaexec (Files): Update.
116868         (configure.ac): Add AC_CONFIG_FILES invocation.
116869         (EXTRA_DIST): Remove javaexec.sh.in.
116871         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
116872         * modules/csharpcomp-script (Files): Update.
116873         (configure.ac): Add AC_CONFIG_FILES invocation.
116874         (EXTRA_DIST): Remove variable.
116876         * build-aux/csharpexec.sh.in: New file, moved from lib/.
116877         * modules/csharpexec (Files): Update.
116878         (configure.ac): Add AC_CONFIG_FILES invocation.
116879         (EXTRA_DIST): Remove csharpexec.sh.in.
116881 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
116883         Sync from coreutils.
116885         Add POSIX ACL support
116886         * lib/acl.h (copy_acl, set_acl): Add declarations.
116887         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
116888         systems other than Linux.
116889         (chmod_or_fchmod): New function: use fchmod when possible,
116890         and chmod otherwise.
116891         (file_has_acl): Add a POSIX ACL implementation, with a
116892         Linux-specific subcase.
116893         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
116894         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
116895         acls are unsupported.
116896         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
116897         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
116898         are unsupported.
116900 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
116902         Sync from coreutils.
116903         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
116905 2006-01-07  Bruno Haible  <bruno@clisp.org>
116907         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
116908         gl_EARLY.
116910 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
116912         * lib/strftime.c (tzname): Don't declare if it is already #defined.
116913         Problem reported for Mingw by Mark Junker.
116915 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
116917         * README: Gnulib normally doesn't generate a tarball.
116919 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
116921         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
116922         long int, not int, for nanosecond counts, so that people who are
116923         used to POSIX struct timespec won't be surprised.  Reported by Jim
116924         Meyering.
116926 2005-12-28  Bruno Haible  <bruno@clisp.org>
116928         * build-aux/config.rpath: Update from GNU gettext.
116930 2005-12-16  Jim Meyering  <jim@meyering.net>
116932         * modules/fprintftime: New module.
116933         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
116935 2005-12-16  Jim Meyering  <jim@meyering.net>
116937         * m4/fprintftime.m4: New file.
116939 2005-12-16  Jim Meyering  <jim@meyering.net>
116941         * lib/fprintftime.c, lib/fprintftime.h: New files.
116943 2005-12-15  Simon Josefsson  <jas@extundo.com>
116945         * modules/socklen (configure.ac): Fix M4 macro name, to align with
116946         new m4/socklen.m4.
116948 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
116950         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
116951         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
116953 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
116955         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
116956         * lib/argp-help.c (fill_in_uparams): Check if the constructed
116957         struct uparams is valid. Fall back to the default values if it is
116958         not.
116960 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
116962         * modules/argp (Files): Add argp-pin.c
116963         (Depends-on): dirname
116964         (lib_SOURCES): Add argp-pin.c
116966 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
116968         * m4/argp.m4:  Check if program_invocation_name and
116969         program_invocation_short_name are declared and define appropriate
116970         macros if they are not.
116972 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
116974         * lib/argp-help.c (__argp_base_name): New function
116975         (__argp_short_program_name): Rewrite using __argp_base_name
116976         * lib/argp-namefrob.h: Define program_invocation_name and
116977         program_invocation_short_name if requested
116978         (__argp_base_name): Add prototype
116979         * lib/argp-parse.c (argp_def): Use gettext wrappers
116980         (argp_default_parser): Use __argp_base_name
116981         * lib/argp-pin.c: New file. Defines program_invocation_name and
116982         program_invocation_short_name on systems that lack them.
116984 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
116986         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
116987         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
116988         porting problem reported by Georg Schwarz in
116989         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
116991 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
116993         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
116994         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
116995         porting problem reported by Georg Schwarz in
116996         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
116998 2005-12-05  Bruno Haible  <bruno@clisp.org>
117000         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
117001         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
117002         Reported by Mark Junker <mjscod@gmx.de>.
117004 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
117006         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
117007         Use implementation from Albert Chin, with some
117008         comments/corrections by Stepan Kasal and myself.
117010 2005-12-02  Bruno Haible  <bruno@clisp.org>
117012         * gnulib-tool (func_import): Accept GPLed build tool modules when
117013         --lgpl is given.
117014         * modules/csharpcomp-script: New file.
117015         * modules/csharpcomp: Depend on it.
117016         * modules/javacomp-script: New file.
117017         * modules/javacomp: Depend on it.
117018         Suggested by Simon Josefsson.
117020 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
117022         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
117023         statement, to work around an HP-UX 10.20 compiler bug reported by
117024         Peter O'Gorman.
117026 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117028         * modules/savedir (Depends-on): Add openat.
117030 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117032         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
117033         (uintmax_t) [defined uintmax_t]: Do not declare.
117034         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
117035         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
117036         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
117037         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
117038         sake of portability to weird hosts that C allows (though we don't
117039         know of any practical examples).
117041         * lib/savedir.h (fdsavedir): New decl.
117042         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
117043         contains most of the former guts of savedir.
117044         (savedir): Use savedirstream.
117045         Include "openat.h".
117047 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117049         * modules/obstack (Files): Add m4/ulonglong.m4.
117050         Problem reported by Davide Angelocola.
117052 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
117054         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
117055         coreutils no longer futzes with rounding modes.
117057 2005-11-14  Jim Meyering  <jim@meyering.net>
117059         * lib/mkstemp-safer.c: Include <config.h>, required for possible
117060         replacement of mkstemp.
117062 2005-11-10  Simon Josefsson  <jas@extundo.com>
117064         * lib/readline.c: Remove EOL.
117066 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117068         * modules/gethrxtime (Depends-on): Add gettime.
117070 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117072         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
117073         or gettimeofday; no longer needed.
117075 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117077         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
117078         time business.
117079         (gethrxtime) [! (HAVE_NANOUPTIME
117080         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
117081         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
117082         our own approximation.
117084 2005-11-08  Eric Blake  <ebb9@byu.net>
117086         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117088 2005-11-08  Eric Blake  <ebb9@byu.net>
117090         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117092 2005-11-04  Bruno Haible  <bruno@clisp.org>
117094         * gnulib-tool: Implement --update mode.
117096 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117098         Fix porting problem reported by Theodoros V. Kalamatianos.
117099         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
117100         Don't assume that futimes failing means we must fail.
117102 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117104         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
117105         variables to suggest the intended function of the PATH_MAX check.
117107 2005-10-30  Kean Johnston  <jkj@sco.com>
117109         Trivial changes to support SCO systems.
117110         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
117111         as PATH_MAX.
117112         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
117113         where __ptr is null when no I/O is pending.
117115 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
117117         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
117118         leave errno alone.  Problem reported by Dmitry V. Levin.
117120 2005-10-28  Simon Josefsson  <jas@extundo.com>
117122         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
117123         Test more.
117125         * tests/test-gc-md2.c, tests/test-md2.c: New files.
117127         * modules/md2, modules/md2-tests: New files.
117129 2005-10-28  Simon Josefsson  <jas@extundo.com>
117131         * m4/inet_ntop.m4: More tests.
117133         * m4/gc-md2.m4, md2.m4: New file.
117135 2005-10-28  Simon Josefsson  <jas@extundo.com>
117137         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
117138         "restrict" keywords, as per POSIX.  Protect the function
117139         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
117140         Don't use K&R prototypes.  Check the sprintf return values.
117141         Re-define EAFNOSUPPORT if not present.  Indent.
117143         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
117144         suggested by Bruno Haible <bruno@clisp.org>.
117146         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
117148         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
117150         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
117151         libgcrypt).
117153         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
117155         * lib/md2.h, lib/md2.c: New files.
117157 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
117159         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
117160         errno alone.  Problem reported by Frederic Jolliton.
117162 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
117164         * modules/verify (License): Change from GPL to LGPL.  This is a
117165         tiny module and there are apparently near-equivalents that are
117166         under the BSD license.
117168 2005-10-24  Simon Josefsson  <jas@extundo.com>
117170         * modules/sha1: Relicense to LGPL.
117172 2005-10-24  Simon Josefsson  <jas@extundo.com>
117174         * lib/md4.h: Shrink buffer size, now that we changed the type.
117176 2005-10-23  Simon Josefsson  <jas@extundo.com>
117178         * gnulib-tool (func_import): Fix --tests-base.
117180 2005-10-22  Simon Josefsson  <jas@extundo.com>
117182         * modules/arcfour (Depends-on): Need stdint.
117184 2005-10-22  Simon Josefsson  <jas@extundo.com>
117186         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
117187         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
117189 2005-10-22  Simon Josefsson  <jas@extundo.com>
117191         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
117192         suggested by Bruno Haible <bruno@clisp.org>.
117194 2005-10-22  Simon Josefsson  <jas@extundo.com>
117196         * lib/crc.h: Include stddef.h, for size_t.
117198 2005-10-22  Simon Josefsson  <jas@extundo.com>
117200         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
117201         arcfour_context struct (simplify test vector testing in GNU
117202         Shishi).
117204 2005-10-21  Simon Josefsson  <jas@extundo.com>
117206         * modules/des, modules/des-tests: New files.
117208         * modules/gc-des, modules/gc-des-tests: New files.
117210         * tests/test-des.c, tests/test-gc-des.c: New file.
117212 2005-10-21  Simon Josefsson  <jas@extundo.com>
117214         * modules/arctwo, modules/arctwo-tests: New files.
117216         * tests/test-arctwo.c: New file.
117218         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
117220         * tests/test-gc-arctwo.c: New file.
117222 2005-10-21  Simon Josefsson  <jas@extundo.com>
117224         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
117225         Bruno Haible <bruno@clisp.org>.
117227         * m4/gc-des.m4: New file.
117229 2005-10-21  Simon Josefsson  <jas@extundo.com>
117231         * m4/arctwo.m4: New file.
117233         * m4/gc-arctwo.m4: New file.
117235 2005-10-21  Simon Josefsson  <jas@extundo.com>
117237         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
117238         block.
117240 2005-10-21  Simon Josefsson  <jas@extundo.com>
117242         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
117243         <bruno@clisp.org>.
117245         * lib/hmac-sha1.c (hmac_sha1): Likewise.
117247         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
117248         Bruno Haible <bruno@clisp.org>.
117250         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
117251         <bruno@clisp.org>.
117253 2005-10-21  Simon Josefsson  <jas@extundo.com>
117255         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
117257 2005-10-21  Simon Josefsson  <jas@extundo.com>
117259         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
117261 2005-10-21  Simon Josefsson  <jas@extundo.com>
117263         * lib/des.h, lib/des.c: New files.
117265         * lib/gc-gnulib.c: Support DES.c
117267 2005-10-21  Simon Josefsson  <jas@extundo.com>
117269         * lib/arctwo.h, lib/arctwo.c: New files.
117271         * lib/gc-gnulib.c: Support ARCTWO.
117273 2005-10-21  Simon Josefsson  <jas@extundo.com>
117275         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
117276         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117278 2005-10-21  Simon Josefsson  <jas@extundo.com>
117280         * gnulib-tool (func_import, func_create_testdir): Define automake
117281         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
117282         Makefile.am snippet),
117283         suggested by Bruno Haible <bruno@clisp.org>.
117285         * modules/gc (Makefile.am): Use it.
117287 2005-10-21  Bruno Haible  <bruno@clisp.org>
117289         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
117290         patch.
117292 2005-10-19  Simon Josefsson  <jas@extundo.com>
117294         * tests/test-gc-rijndael.c: New file.
117296         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
117298 2005-10-19  Simon Josefsson  <jas@extundo.com>
117300         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
117301         interface too.
117303 2005-10-19  Simon Josefsson  <jas@extundo.com>
117305         * tests/test-gc-arcfour.c: New file.
117307         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
117309 2005-10-19  Simon Josefsson  <jas@extundo.com>
117311         * modules/gc-md4, modules/gc-md4-tests: New file.
117313         * tests/test-gc-md4.c: New file.
117315 2005-10-19  Simon Josefsson  <jas@extundo.com>
117317         * m4/gc-md4.m4: New file.
117319 2005-10-19  Simon Josefsson  <jas@extundo.com>
117321         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
117322         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
117323         <kasal@ucw.cz>.
117325 2005-10-19  Simon Josefsson  <jas@extundo.com>
117327         * m4/gc-arcfour.m4: New file.
117329         * m4/gc-rijndael.m4: New file.
117331 2005-10-19  Simon Josefsson  <jas@extundo.com>
117333         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
117335 2005-10-19  Simon Josefsson  <jas@extundo.com>
117337         * lib/gc-gnulib.c: Support ARCFOUR.
117339 2005-10-19  Simon Josefsson  <jas@extundo.com>
117341         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
117342         support.
117344         * lib/gc.h: Add ECB enum type.
117346         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
117348 2005-10-18  Simon Josefsson  <jas@extundo.com>
117350         * tests/test-md5.c: New file.
117352         * modules/md5-tests: New file.
117354 2005-10-18  Simon Josefsson  <jas@extundo.com>
117356         * tests/test-md4.c: New file.
117358         * modules/md4, modules/md4-tests: New files.
117360 2005-10-18  Simon Josefsson  <jas@extundo.com>
117362         * m4/md4.m4: New file.
117364 2005-10-18  Simon Josefsson  <jas@extundo.com>
117366         * lib/md4.h, lib/md4.c: New files, based on md5.?.
117368 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
117370         * gnulib-tool (func_create_testdir): Omit the second check whether
117371         BUILT_SOURCES in nonempty.
117373 2005-10-17  Simon Josefsson  <jas@extundo.com>
117375         * tests/test-rijndael.c: New file.
117377 2005-10-17  Simon Josefsson  <jas@extundo.com>
117379         * modules/sha1: Depend on stdint instead of md5.
117381         * modules/md5: Depend on stdint, remove uint32_t.
117383 2005-10-17  Simon Josefsson  <jas@extundo.com>
117385         * modules/gc-sha1-tests: New file.
117387         * tests/test-gc-sha1.c: New file.
117389 2005-10-17  Simon Josefsson  <jas@extundo.com>
117391         * m4/md5.m4: Remove call to uint32_t.m4.
117393 2005-10-17  Simon Josefsson  <jas@extundo.com>
117395         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
117397         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
117398         md5.h.
117400         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
117402         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
117404 2005-10-17  Simon Josefsson  <jas@extundo.com>
117406         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
117408 2005-10-17  Simon Josefsson  <jas@extundo.com>
117410         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
117412 2005-10-17  Simon Josefsson  <jas@extundo.com>
117414         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
117416         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
117418 2005-10-17  Bruno Haible  <bruno@clisp.org>
117420         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
117421         that it can also be used in a test.
117423 2005-10-16  Bruno Haible  <bruno@clisp.org>
117425         * gnulib-tool (func_emit_tests_Makefile_am): Also define
117426         TESTS_ENVIRONMENT, so that individual tests can augment it.
117428         * gnulib-tool (func_create_testdir): Use an intermediate target for
117429         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
117430         macros, like $(ALLOCA_H), which cannot be passed through the command
117431         line.
117433 2005-10-15  Simon Josefsson  <jas@extundo.com>
117435         * modules/rijndael-tests: New file.
117437         * modules/rijndael: New file.
117439 2005-10-15  Simon Josefsson  <jas@extundo.com>
117441         * m4/rijndael.m4: New file.
117443 2005-10-15  Simon Josefsson  <jas@extundo.com>
117445         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
117447         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
117449 2005-10-14  Simon Josefsson  <jas@extundo.com>
117451         * tests/test-arcfour.c: New file.
117453         * modules/arcfour, modules/arcfour-tests: New files.
117455 2005-10-14  Simon Josefsson  <jas@extundo.com>
117457         * m4/arcfour.m4: New file.
117459 2005-10-14  Simon Josefsson  <jas@extundo.com>
117461         * lib/arcfour.h, lib/arcfour.c: New files.
117463 2005-10-14  Roland McGrath  <roland@redhat.com>
117465         Import from libc.  [BZ #1331]
117466         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
117467         macro argument.
117468         Reported by Matej Vela <vela@debian.org>.
117470 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117472         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
117473         include <wchar.h>; no longer needed.
117475 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117477         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
117479 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
117480         and  Ulrich Drepper  <drepper@redhat.com>
117482         Import from libc.
117483         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
117484         instead of inline stream orientation test and two separate
117485         function calls.  Pay no attention to USE_IN_LIBIO.
117487 2005-10-13  Simon Josefsson  <jas@extundo.com>
117489         * modules/gc-hmac-md5-tests: New file.
117491         * tests/test-gc-hmac-sha1.c: New file.
117493         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
117495         * modules/gc-hmac-md5-tests: New file.
117497         * tests/test-gc-md5.c: New file.
117499         * modules/gc-md5-tests: New file.
117501 2005-10-13  Simon Josefsson  <jas@extundo.com>
117503         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
117504         Move memory allocation outside of loop.
117506 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
117508         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
117509         intermediate directory is in a read-only file system.  Problem
117510         reported by Eric Blake.
117512 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
117514         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
117516 2005-10-12  Simon Josefsson  <jas@extundo.com>
117518         * tests/test-hmac-sha1.c: New file.
117520         * modules/hmac-sha1-tests: New file.
117522         * modules/hmac-sha1: New file.
117524 2005-10-12  Simon Josefsson  <jas@extundo.com>
117526         * modules/gc-sha1: New file.
117528 2005-10-12  Simon Josefsson  <jas@extundo.com>
117530         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
117532         * tests/test-gc-pbkdf2-sha1.c: New file.
117534 2005-10-12  Simon Josefsson  <jas@extundo.com>
117536         * modules/gc-md5, modules/gc-hmac-md5: New files.
117538         * modules/gc (Files): Remove md5, memxor and hmac files.
117540 2005-10-12  Simon Josefsson  <jas@extundo.com>
117542         * m4/gc-pbkdf2-sha1.m4: New file.
117544         * m4/gc-hmac-sha1.m4: New file.
117546         * m4/gc-sha1: New file.
117548         * m4/hmac-sha1.m4: New file.
117550 2005-10-12  Simon Josefsson  <jas@extundo.com>
117552         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
117554         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
117556 2005-10-12  Simon Josefsson  <jas@extundo.com>
117558         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
117559         suggested by Bruno Haible <bruno@clisp.org>.
117561 2005-10-12  Simon Josefsson  <jas@extundo.com>
117563         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
117565 2005-10-12  Simon Josefsson  <jas@extundo.com>
117567         * lib/gc-pbkdf2-sha1.c: New file.
117569         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
117571 2005-10-12  Simon Josefsson  <jas@extundo.com>
117573         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
117575         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
117577 2005-10-12  Simon Josefsson  <jas@extundo.com>
117579         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
117580         GC_USE_HMAC_MD5, respectively.
117582         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
117583         (gc_md5): Fix typo.
117585         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
117587         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
117589         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
117591 2005-10-12  Bruno Haible  <bruno@clisp.org>
117593         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
117594         Reported by Stepan Kasal <kasal@ucw.cz>.
117596 2005-10-11  Simon Josefsson  <jas@extundo.com>
117598         * tests/test-crc.c: New file.
117600         * modules/crc, modules/crc-tests: New files.
117602 2005-10-11  Simon Josefsson  <jas@extundo.com>
117604         * m4/crc.m4: New file.
117606 2005-10-11  Simon Josefsson  <jas@extundo.com>
117608         * lib/gc.h: Add gc_hash and gc_hash_buffer.
117610         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
117612         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
117614 2005-10-11  Simon Josefsson  <jas@extundo.com>
117616         * lib/crc.h, lib/crc.c: New files.
117618         * lib/gc.h (gc_hash_buffer): Add doc.
117620 2005-10-11  Bruno Haible  <bruno@clisp.org>
117622         * modules/c-strcasestr: New file.
117623         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
117625 2005-10-11  Bruno Haible  <bruno@clisp.org>
117627         * modules/c-strcase: New file.
117628         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
117630 2005-10-11  Bruno Haible  <bruno@clisp.org>
117632         * lib/strcasecmp.c: Include limits.h.
117633         (strcasecmp): Avoid integer overflow on exotic platforms.
117634         * lib/strncasecmp.c: Include limits.h.
117635         (strncasecmp): Avoid integer overflow on exotic platforms.
117636         Reported by Paul Eggert.
117638 2005-10-11  Bruno Haible  <bruno@clisp.org>
117640         * lib/c-strcasestr.h: New file, from GNU gettext.
117641         * lib/c-strcasestr.c: New file, from GNU gettext.
117643 2005-10-11  Bruno Haible  <bruno@clisp.org>
117645         * lib/c-strcase.h: New file, from GNU gettext.
117646         * lib/c-strcasecmp.c: New file, from GNU gettext.
117647         * lib/c-strncasecmp.c: New file, from GNU gettext.
117649 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
117651         * modules/mempcpy (License): GPL -> LGPL.
117652         * modules/strchrnul (License): Likewise.
117653         * modules/sysexits (License): Likewise.
117655 2005-10-08  Simon Josefsson  <jas@extundo.com>
117657         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
117659 2005-10-07  Simon Josefsson  <jas@extundo.com>
117661         * m4/memxor.m4: Remove gl_C_RESTRICT call.
117663 2005-10-06  Simon Josefsson  <jas@extundo.com>
117665         * tests/test-hmac-md5.c: New file.
117667         * modules/hmac-md5-tests: New file.
117669         * modules/hmac-md5: New file.
117671 2005-10-06  Simon Josefsson  <jas@extundo.com>
117673         * m4/hmac-md5.m4: New file.
117675         * m4/memxor.m4: Require gl_C_RESTRICT.
117677 2005-10-06  Simon Josefsson  <jas@extundo.com>
117679         * lib/memxor.c (memxor): Avoid casts and warnings.
117681 2005-10-06  Simon Josefsson  <jas@extundo.com>
117683         * lib/hmac-md5.c: New file.
117685         * lib/hmac.h: New file.
117687 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
117689         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
117690         promotes to int, not unsigned int, to catch the AIX 5.3
117691         compiler bug.
117693 2005-10-05  Simon Josefsson  <jas@extundo.com>
117695         * modules/memxor: New file.
117697         * modules/iconv (Files): Move config.rpath to havelib, it is used
117698         there.
117700         * modules/havelib (Files): Add config.rpath.
117702 2005-10-05  Simon Josefsson  <jas@extundo.com>
117704         * m4/memxor.m4: New file.
117706 2005-10-05  Simon Josefsson  <jas@extundo.com>
117708         * lib/memxor.c (memxor): Fix compiler error.
117710         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
117711         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
117713         * lib/memxor.h, lib/memxor.c: New files.
117715         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
117716         we assume all systems have it, suggested by Jim Meyering
117717         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
117718         any systems lack sys/socket.h; mingw32 is known to lack it, but we
117719         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
117720         same reasons.
117722 2005-10-05  Simon Josefsson  <jas@extundo.com>
117724         * config/srclist.txt: Add glibc bug 1423 for md5.h.
117726 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
117728         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
117729         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
117730         needed, since the source code now assumes these .h files.
117732 2005-10-05  Derek Price  <derek@ximbiot.com>
117734         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
117736 2005-10-05  Bruno Haible  <bruno@clisp.org>
117738         * modules/stdint (License): Change to LGPL.
117740 2005-10-04  Simon Josefsson  <jas@extundo.com>
117742         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
117743         D. Baushke" <mdb@gnu.org>.
117745 2005-10-04  Bruno Haible  <bruno@clisp.org>
117747         * lib/verify.h (verify_true): Provide alternative definition for C++.
117749 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
117751         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
117752         (SSIZE_MAX): New macro, if not already defined.
117753         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
117754         than 2 GiB.
117756 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
117758         Sync from coreutils.
117759         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
117760         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
117761         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
117762         ULLONG_MAX doesn't work with 2.7.2.1.
117764 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
117766         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
117767         From Ben Pfaff.
117769         * modules/exclude (Depends-on): Depend on verify.
117770         * modules/strtoimax (Depends-on): Likewise.
117771         * modules/utimecmp (Depends-on): Likewise.
117773 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
117775         * lib/exclude.c: Include verify.h.
117776         (verify): Remove.  All callers changed to use verify.h's version.
117777         * lib/strtoimax.c: Likewise.
117778         * lib/utimecmp.c: Likewis.e
117780         Sync from coreutils.
117781         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
117782         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
117783         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
117784         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
117785         bother returning ENOSYS if settimeofday or stime fails; just let
117786         them return whatever errno they want to return.
117787         * lib/utimens.c: Include unistd.h, for dup2.
117788         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
117789         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
117791 2005-10-02  Jim Meyering  <jim@meyering.net>
117793         Sync from coreutils.
117794         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
117795         from glibc-2.2.5 that fails for read-only files.
117797 2005-10-02  Jim Meyering  <jim@meyering.net>
117799         Sync from coreutils.
117800         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
117801         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
117802         `#if HAVE_CONFIG_H'.
117803         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
117804         Remove AT_FDCWD test.
117805         Do not consume the fd unless successful.
117806         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
117807         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
117808         block, so that we don't even try to compile it if settimeofday is
117809         available.  This works around a compilation failure on OSF1 V5.1,
117810         due to stime requiring a `long int*' while tv_sec is `int'.
117812 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
117814         Sync from coreutils.
117815         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
117816         against `yes', rather than just testing for nonempty.
117818 2005-10-01  Simon Josefsson  <jas@extundo.com>
117820         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
117821         and Darwin.
117823         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
117824         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
117825         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
117826         freeaddrinfo and gai_strerror are declared by the POSIX headers.
117827         Check if struct addrinfo is declared.
117829 2005-10-01  Simon Josefsson  <jas@extundo.com>
117831         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
117832         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
117833         AI_* and EAI_* definitions.  Protect function declarations.
117835 2005-10-01  Jim Meyering  <jim@meyering.net>
117837         Sync from coreutils.
117839         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
117840         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
117841         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
117842         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
117843         in the inet and nsl libraries.  Required on Solaris 5.7.
117845 2005-10-01  Jim Meyering  <jim@meyering.net>
117847         Sync from coreutils.
117848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
117849         in the inet and nsl libraries.  Required on Solaris 5.7.
117851 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
117853         * lib/getdelim.c (getdelim): Remove unused variables.
117855 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
117857         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
117858         so that the code works even with ancient cpp.  Portability problem
117859         with GCC 2.7.2.1 reported by Thomas M.Ott.
117861 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
117863         * modules/regex (Depends-on): Add strcase.
117865         * modules/gethostname (Licence): Change from GPL to LGPL, since
117866         gethostname.c is a trivial implementation of a standard library
117867         function.
117868         * modules/poll (License): Change from GPL to LGPL, since it's
117869         derived from LGPL code.
117871 2005-09-27  Jim Meyering  <jim@meyering.net>
117873         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
117874         HAVE_CONFIG_H.
117876         * lib/intprops.h (signed_type_or_expr__): Define.
117877         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
117878         for unsigned types.
117880 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
117882         * lib/verify.h (verify_expr): Remove, replacing with:
117883         (verify_true): New macro that returns true instead of void.
117884         (verify_type__): Remove.
117885         (verify): Use verify_true rather than verify_type__.
117887 2005-09-26  Bruno Haible  <bruno@clisp.org>
117889         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
117890         is necessary.
117891         (lib_SOURCES): Remove mbchar.c.
117892         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
117893         (Files): Add m4/mbrtowc.m4.
117894         * modules/mbiter: Likewise.
117895         * modules/mbuiter: Likewise.
117897 2005-09-26  Bruno Haible  <bruno@clisp.org>
117899         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
117900         compile mbchar.c if they are not both present.
117901         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
117902         * m4/mbiter.m4 (gl_MBITER): Likewise.
117903         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
117904         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
117905         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
117907 2005-09-25  Jim Meyering  <jim@meyering.net>
117909         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
117910         also uses socklen_t.
117912 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
117914         * lib/utimens.c (ENOSYS): Define if not already defined.
117915         (futimens): Support having a null PATH if the file descriptor
117916         is nonnegative.
117918         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
117919         Remove.
117920         (__attribute): Define to empty unless GCC 3.1 or later.
117921         This works around a core dump on OpenBSD 3.4, which has GCC
117922         2.95.3, which dumps core when given __attribute__(()).  It also
117923         simplifies other tests, since we really don't want to bother with
117924         worrying about which ancient version of GCC supported what.
117925         Original problem reported by Yoann Vandoorselaere, with part of
117926         the fix suggested by Derek Price.
117928 2005-09-24  Jim Meyering  <jim@meyering.net>
117930         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
117931         so we can once again use a positive bitfield width of 1 -- now we
117932         don't have to explain why we were using a bitfield width of 2.
117934 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
117936         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
117937         and similarly for the other external symbols.  Problem reported
117938         by James Gallager.
117940         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
117941         bug reported by Jim Meyering.
117943         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
117944         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
117945         not needed, since socklen is a prerequisite module.
117947 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
117949         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
117950         Problem reported by Eric Blake.
117951         (getaddrinfo): Initialize se so that it's not garbage.
117952         Redo internal storage allocation so that it doesn't make unportable
117953         assumptions about alignment.
117954         Fix a memory leak.
117956         * lib/utimens.c (futimens): Use futimesat if available.
117957         Prefer it to futimes since it doesn't have the futimes bug.
117959         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
117960         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
117961         Instead, declare a function that returns a pointer to an array,
117962         and use verify_type__ to declare the size of the array.
117963         Problem and germ of a solution reported by Bruno Haible.
117964         (verify_type__): Use 2, not 1, for bitfield size, to avoid
117965         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
117967 2005-09-23  Jim Meyering  <jim@meyering.net>
117969         Sync from coreutils.
117970         Correct build failure (socklen_t not defined) on at least
117971         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
117972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
117974 2005-09-23  Jim Meyering  <jim@meyering.net>
117976         * modules/getaddrinfo (Depends-on): Add socklen.
117978 2005-09-23  Bruno Haible  <bruno@clisp.org>
117980         * tests/test-verify.c: New file.
117982 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
117984         Sync from coreutils.
117986         * modules/argmatch (Depends-on): Add verify.
117987         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
117988         unistd-safer.
117989         * modules/save-cwd (Depends-on): Likewise.
117991         * modules/openat (Files): Add lib/openat-die.c.
117992         (Depends-on): Remove error, exitfail.
117993         Add dirname.
117995         * modules/verify: New file.
117996         * MODULES.html.sh (Diagnostics <assert.h>): New section,
117997         with "verify" module.
117999 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118001         Sync from coreutils.
118003         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
118004         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
118005         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
118006         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
118007         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
118008         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
118009         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
118010         Don't bother checking for string.h, stdlib.h, unistd.h.
118011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
118012         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
118013         module's job.
118014         * m4/jm-macros.m4 (gl_MACROS): Likewise.
118015         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
118017         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
118018         (gl_GETDATE): Use it.
118020         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
118022 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118024         Sync from coreutils.
118026         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
118027         stat-time.h.
118028         * lib/argmatch.h: Include verify.h
118029         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
118030         (ARGMATCH_ASSERT): Remove; unused.
118031         * lib/canonicalize.c: Assume STDC_HEADERS.
118032         * lib/exclude.c: Include "strcase.h".
118033         * lib/regex_internal.h [!defined _LIBC]: Likewise.
118034         * lib/getusershell.c: Include stdio--.h rather than stdio.h
118035         and stdio-safer.h.
118036         (getusershell): Call fopen, not fopen_safer.
118037         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
118038         Do not include unistd-safer.h.
118039         (save_cwd): Don't call fd_safer; no longer needed
118040         now that we include fcntl--.h.
118042         * lib/getdate.y (relative_time): New type.
118043         (RELATIVE_TIME_0): New constant.
118044         (parser_control): Use relative_time instead of doing it ourselves.
118045         (%union): Add new relative_time rel member.
118046         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
118047         Now typeless.
118048         (relunit, relunit_snumber): Now of type rel.
118049         (zone, rel, relunit, get_date): Adjust to above changes.
118051         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
118052         Do not include unistd-safer.h.
118053         (getloadavg): Don't call fd_safer; no longer needed
118054         now that we include fcntl--.h.
118056         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
118057         (make_dir_parents): Treat ENOSYS like EEXIST.
118059         Improve quality of diagnostics on restore_cwd failure.
118060         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
118061         (make_dir_parents): Last arg is now int * (for errno), not bool *.
118062         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
118063         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
118064         each time through the loop.  Do not diagnose restore_cwd failure;
118065         that is the caller's job (and perhaps the caller does not care).
118067         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
118068         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
118069         If the file already exists but is not a directory, don't bother
118070         to try to make its parents.
118071         Close potential file descriptor leak if we can't chdir("/") (!).
118072         Don't always return true if chdir($PWD) fails; return true only
118073         if the requested action was done successfully (except for the
118074         chdir($PWD)).
118075         Don't log final directory unless we actually made it.
118076         Refactor to avoid duplicate code to fix up permissions.
118077         Don't attempt to fix up parent permissions if chdir($PWD) fails.
118079         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
118080         to make it a bit faster and (I hope) clearer.
118081         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
118082         Fix bug in formats like %2N.
118084         * lib/verify.h: New file.
118086 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118088         Sync from coreutils.
118089         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
118091 2005-09-22  Jim Meyering  <jim@meyering.net>
118093         Sync from coreutils.
118095         * m4/lstat.m4 (gl_FUNC_LSTAT):
118096         Use AC_LIBSOURCES to require lstat.c and lstat.h.
118097         Remove obsolete comment.
118098         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
118099         * m4/xstrtod.m4: Likewise.
118101         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
118103 2005-09-22  Jim Meyering  <jim@meyering.net>
118105         Sync from coreutils.
118107         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
118109         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
118110         the .tm_year member, since otherwise gcc-4.0 would now warn about
118111         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
118113         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
118114         order to avoid an unsuppressible warning from gcc on 64-bit systems.
118116         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
118117         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
118118         when run in a time zone for which daylight savings time is in effect
118119         for the starting date.
118121         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
118122         stop us from restricting permissions of just-created absolute-named
118123         directories.
118124         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
118125         to restore initial working directory.
118126         * lib/mkdir-p.c (make_dir_parents): New parameter:
118127         different_working_dir, to tell caller if/when we change the working
118128         directory and are unable to return to the initial one.
118129         * lib/mkdir-p.h (make_dir_parents): Update prototype.
118130         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
118131         `return false'.  This fixes a bug introduced on 2004-07-30.
118133         * lib/openat.c (fdopendir): Be sure to close the supplied
118134         file descriptor before returning.  This makes our replacement
118135         implementation a little closer to Solaris's, where fdopendir
118136         ties the file descriptor to the returned DIR* pointer.
118137         * lib/openat.c (unlinkat): New function.
118138         * lib/openat.h (unlinkat): Add prototype.
118139         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
118140         (openat_restore_fail): Rename from openat_restore_die.
118141         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
118143         Provide an alternative to exiting immediately upon save_cwd or
118144         restore_cwd failure.  Now, an application can arrange e.g.,
118145         to perform a longjump in that case.
118146         * lib/openat.c: Include dirname.h.
118147         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
118148         (rpl_openat, fdopendir, fstatat): Call openat_save_die
118149         and openat_restore_die rather than calling error directly.
118150         Don't include "error.h" or "exitfail.h"; they're no longer needed.
118152         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
118153         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
118154         define.
118156         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
118157         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
118158                             int utc, int nanoseconds);
118159         Background:
118160         date should not have to allocate a megabyte of virtual memory to
118161         handle a format argument like +%1048575T.  When implemented with
118162         strftime, it must allocate such a buffer, use strftime to fill it
118163         in, print it, then free it.
118164         With fprintftime, it simply prints everything and exits.
118165         With no need for memory allocation, that's one fewer way to fail.
118166         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
118167         optional field width, not before, so we accept %9:z, not %:9z.
118168         (my_strftime): Be sure to use L_('x') for literals.
118170         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
118171         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
118172         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
118173         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
118174         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
118175         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
118176         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
118177         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
118178         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
118179         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
118180         * lib/xgethostname.c, lib/xreadlink.c:
118181         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
118183         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
118184         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
118185         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
118186         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118187         and don't include <sys/file.h>).
118189 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
118191         Sync from coreutils.
118193         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
118194         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
118195         [!LDAV_DONE]: Avoid unused variable warning.
118197 2005-09-21  Bruno Haible  <bruno@clisp.org>
118199         * lib/unicodeio.h (unicode_to_mb): New declaration.
118201 2005-09-20  Derek Price  <derek@ximbiot.com>
118203         * lib/getaddrinfo.c: Don't include <netdb.h> included from
118204         getaddrinfo.h.
118206 2005-09-20  Bruno Haible  <bruno@clisp.org>
118208         * gnulib-tool: Remove trailing slashes from the values specified for
118209         --source-base, --m4-base, --tests-base, --aux-dir.
118210         Suggested by Simon Josefsson <jas@extundo.com>.
118212 2005-09-20  Bruno Haible  <bruno@clisp.org>
118214         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
118215         func_modules_to_filelist, func_import, func_create_testdir): Make all
118216         sorting results locale-independent, so that gnulib-cache.m4 doesn't
118217         change when gnulib-tool is invoked in a different locale.
118219 2005-09-19  Simon Josefsson  <jas@extundo.com>
118221         * m4/socklen.m4: Fix typo.
118223 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118225         Use a consistent style for including <config.h>.
118226         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
118227         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
118228         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
118229         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
118230         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
118231         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
118232         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
118233         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
118234         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
118235         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
118236         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
118237         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
118238         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
118239         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
118240         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
118241         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
118242         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
118243         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
118244         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
118245         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
118246         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
118247         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
118248         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
118249         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
118250         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
118251         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
118252         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
118253         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
118254         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
118255         lib/xstrtoumax.c, lib/yesno.c:
118256         Standardize inclusion of config.h.
118257         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
118258         lib/inttostr.h:  Removed inclusion of config.h from header files.
118259         * lib/inttostr.c:  Adjusted in-tree users.
118260         * lib/timespec.h: Remove superfluous warning to include config.h.
118261         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
118262         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
118263         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
118264         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
118265         config.h with HAVE_CONFIG_H.
118267 2005-09-19  Jim Meyering  <jim@meyering.net>
118269         * modules/pathmax (License): Change to LGPL.
118271 2005-09-19  Derek Price  <derek@ximbiot.com>
118273         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
118275 2005-09-19  Bruno Haible  <bruno@clisp.org>
118277         * gnulib-tool (import): Provide default for --tests-base.
118279 2005-09-19  Bruno Haible  <bruno@clisp.org>
118281         * doc/quote.texi: New file, extracted from gnulib.texi.
118282         * doc/ctime.texi: New file, extracted from gnulib.texi.
118283         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
118284         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
118285         * doc/gnulib.texi: Include them.
118287 2005-09-18  Bruno Haible  <bruno@clisp.org>
118289         Portability fix.
118290         * gnulib-tool (func_readlink): New function.
118291         (func_ln_if_changed): Use it.
118293 2005-09-18  Bruno Haible  <bruno@clisp.org>
118295         * gnulib-tool: Support --with-tests also with --import.
118296         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
118297         (func_import): Use variables $testsbase and $inctests. Emit a
118298         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
118299         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
118300         SUBDIRS += $testsdir.
118301         (func_create_testdir): Update.
118303 2005-09-18  Bruno Haible  <bruno@clisp.org>
118305         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
118306         instead of $dry_run.
118307         (func_cp_if_changed, func_mv_if_changed): Remove functions.
118308         (func_ln_if_changed): Don't handle dry-run here.
118309         (func_import): In dry-run mode, detect more precisely which actions
118310         would be performed, and don't use "...ing" verbs.
118312 2005-09-18  Bruno Haible  <bruno@clisp.org>
118314         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
118315         (func_import): Use join on two temporary files instead of three nested
118316         loops, in order to determine which files are new or old.
118318 2005-09-18  Bruno Haible  <bruno@clisp.org>
118320         * gnulib-tool (func_import): Comment out code that spits out the
118321         new files with --dry-run.
118323 2005-09-18  Bruno Haible  <bruno@clisp.org>
118325         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
118327 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118329         * lib/stat-time.h: New file.
118330         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
118331         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
118332         in a different way.
118333         (timespec_cmp): New function.
118334         * lib/utimecmp.c: Include stat-time.h.
118335         (SYSCALL_RESOLUTION): Depend on whether various struct stat
118336         members exist, not on the obsolescent ST_MTIM_NSEC.
118337         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
118339 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118341         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
118343 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118345         * MODULES.html.sh (File system functions): Add stat-time.
118346         * modules/stat-time: New file.
118347         * modules/timespec (Files): Remove m4/st_mtim.m4; this
118348         is now done in a different way, by the stat-time module.
118349         * modules/utimecmp (Depends-on): Add stat-time.
118351 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
118353         * m4/st_mtim.m4: Remove.  Superseded by...
118354         * m4/stat-time.m4: New file.
118355         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
118356         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
118358 2005-09-15  Derek Price  <derek@ximbiot.com>
118360         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
118362 2005-09-15  Derek Price  <derek@ximbiot.com>
118364         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
118365         * lib/regex_internal.c: Ditto, using this...
118366         (__GNUC_PREREQ): ...new macro.
118367         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
118368         using...
118369         (__GNUC_PREREQ): ...this new macro.
118371         * lib/strstr.h: Include string.h. Define strstr as a macro here.
118373 2005-09-15  Derek Price  <derek@ximbiot.com>
118374             Paul Eggert  <eggert@cs.ucla.edu>
118376         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
118377         changes, consolidating in...
118378         * lib/regex_internal.h: ...this file.
118380 2005-09-13  Jim Meyering  <jim@meyering.net>
118382         * lib/canon-host.c: Filter through gnu indent and reword comments
118383         slightly.
118384         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
118386 2005-09-13  Derek Price  <derek@ximbiot.com>
118388         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
118389         failure.
118390         Reported by Jim Meyering  <jim@meyering.net>.
118392 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118394         * lib/base64.c: Typo.
118395         (base64_encode): Put b64str in initialized data section.
118397 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
118399         Merge glibc and coreutils changes into gnulib, plus a few
118400         extra fixes.
118401         * lib/md5.c: Use #error rather than a string.
118402         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
118403         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
118404         (__attribute__): Define to empty for non recent-GCC.
118405         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
118406         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
118407         Renamed from their non-__ counterparts, with new macros replacing
118408         them if not _LIBC.  Add __THROW attribute.
118409         (rol): Remove.
118410         (struct md5_ctx): Align buffer if using GCC.
118411         * lib/sha1.h (struct sha1_ctx): Likewise.
118412         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
118413         The old name was backwards.
118414         (NOTSWAP): Remove; not used.
118415         (rol): New macro, moved here from md5.h.
118416         (sha1_process_block): Remove a FIXME that doesn't make sense.
118418 2005-09-12  Derek Price  <derek@ximbiot.com>
118420         Return usable errors from canon-host.
118421         * lib/canon-host.h: New file.
118422         * lib/canon-host.c (canon_host): Wrap...
118423         (canon_host_r): ...this new function, which now relies exclusively on
118424         getaddrinfo.
118425         (ch_strerror): New function.
118426         (last_cherror): New global.
118427         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
118428         interface.
118429         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
118430         void *.
118431         (freeaddrinfo): Free ai->ai_canonname when set.
118433 2005-09-12  Derek Price  <derek@ximbiot.com>
118435         Make canon-host require getaddrinfo.
118436         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
118437         AC_LIBSOURCE canon-host.h.  Call...
118438         (gl_PREREQ_CANON_HOST): ...this new function, which requires
118439         gl_GETADDRINFO.
118440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
118442 2005-09-12  Derek Price  <derek@ximbiot.com>
118444         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
118445         LGPL.
118446         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
118448 2005-09-12  Derek Price  <derek@ximbiot.com>
118450         * lib/gai_strerror.c: Include config.h when available.  Include
118451         getaddrinfo.h before other headers to test interface.
118452         Reported by Larry Jones <lawrence.jones@ugs.com>.
118454 2005-09-12  Derek Price  <derek@ximbiot.com>
118455             Paul Eggert  <eggert@cs.ucla.edu>
118457         * modules/glob (Files): Add glob-libc.h.
118459 2005-09-12  Derek Price  <derek@ximbiot.com>
118460             Paul Eggert  <eggert@cs.ucla.edu>
118462         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
118463         glob_.h, glob-libc.h.
118464         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
118466 2005-09-12  Derek Price  <derek@ximbiot.com>
118467             Paul Eggert  <eggert@cs.ucla.edu>
118469         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
118470         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
118471         protecting things that should be done only in gnulib contexts.
118472         * lib/glob_.h: New file, containing only the glob things needed for
118473         gnulib.
118474         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
118475         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
118476         (glob, globfree, glob_pattern_p): Now defined simply in terms of
118477         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
118478         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
118479         and to respect the namespace rules better.
118481 2005-09-08  Simon Josefsson  <jas@extundo.com>
118483         * modules/socklen: New file.
118485 2005-09-08  Simon Josefsson  <jas@extundo.com>
118487         * m4/socklen.m4: New file.
118489 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118491         * modules/utimens (Files): Add m4/utimbuf.m4, since
118492         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
118493         Reported by Sergey Poznyakoff.
118495 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118497         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
118498         definitions, since that's the preferred style in glibc.
118499         Fix a minor spacing issue, and update copyright notice to match
118500         glibc's.
118502 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118504         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
118506 2005-09-06  Simon Josefsson  <jas@extundo.com>
118508         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
118509         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
118511 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118513         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
118514         warning.
118516 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118518         * config/srclist.txt: Add glibc bug 1302.
118520 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
118522         Change bitset word type from unsigned int to unsigned long int,
118523         as this has better performance on typical 64-bit hosts.
118524         Port bitset code to hosts with unusual word sizes.
118525         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
118526         (build_collating_symbol):
118527         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
118528         argument is a bitset.  This is merely a style issue, but it makes
118529         it clearer that an entire array is expected.
118530         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
118531         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
118532         Port to the case where bitset_word is not the same as unsigned int.
118533         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
118534         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
118535         Likewise.
118536         * lib/regexec.c (check_dst_limits_calc_pos_1,
118537         check_subexp_matching_top):
118538         (build_trtable, group_nodes_into_DFAstates):
118539         Likewise.
118540         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
118541         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
118542         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
118543         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
118544         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
118545         * lib/regcomp.c (optimize_subexps, lower_subexp):
118546         Work even if bitset_word has holes in its bitwise representation.
118547         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
118548         * lib/regexec.c (check_dst_limits_calc_pos_1,
118549         check_subexp_matching_top):
118550         Likewise.
118551         * lib/regex_internal.c (re_string_reconstruct):
118552         Don't assume UCHAR_MAX == 255.
118553         * lib/regex_internal.h (bitset_set_all): Likewise.
118554         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
118555         All uses changed.
118556         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
118557         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
118558         All uses changed.
118559         (BITSET_WORD_MAX): New macro.
118560         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
118561         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
118562         (bitset_empty, bitset_copy):
118563         Prefer sizeof (bitset) to multiplying it out ourselves.
118564         (bitset_not_merge): Remove; unused.
118565         (bitset_contain): Return bool, not unsigned int with one bit on.
118566         All callers changed.
118567         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
118568         alignment than re_node_set; do this by defining a new internal
118569         type struct dests_alloc and using it to allocate memory.
118571 2005-09-05  Bruno Haible  <bruno@clisp.org>
118573         * gnulib-tool (func_import): Fix comparison in handling of symbolic
118574         links.
118576 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
118578         * modules/size_max (Makefile.am): Add size_max.h
118580 2005-09-04  Derek Price  <derek@ximbiot.com>
118582         * gnulib-tool (func_import): Fix reversed $symbolic logic.
118584 2005-09-03  Simon Josefsson  <jas@extundo.com>
118586         * gnulib-tool: Fix typo.
118588 2005-09-03  Simon Josefsson  <jas@extundo.com>
118590         * config/srclist.txt: Add glibc bug 1293.
118592 2005-09-03  Derek Price  <derek@ximbiot.com>
118594         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
118595         From Larry Jones <lawrence.jones@ugs.com>.
118597 2005-09-02  Simon Josefsson  <jas@extundo.com>
118599         * modules/socklen: New file.
118601 2005-09-02  Simon Josefsson  <jas@extundo.com>
118603         * modules/havelib: New module.
118605         * modules/gettext, modules/iconv, modules/lock, modules/readline:
118606         Use havelib.
118608 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
118610         Check for arithmetic overflow when calculating sizes, to prevent
118611         some buffer-overflow issues.  These patches are conservative, in the
118612         sense that when I couldn't determine whether an overflow was possible,
118613         I inserted a run-time check.
118614         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
118615         macros.
118616         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
118617         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
118618         (re_xnrealloc, re_x2nrealloc): New inline functions.
118619         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
118620         parse_bracket_exp):
118621         (build_equiv_class, build_charclass): Check for arithmetic overflow
118622         in size expression calculations.
118623         * lib/regex_internal.c (re_string_realloc_buffers):
118624         (build_wcs_upper_buffer, re_node_set_add_intersect):
118625         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
118626         (re_dfa_add_node, register_state): Likewise.
118627         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
118628         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
118629         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
118630         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
118632 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
118634         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
118635         m4/ulonglong.m4.  Problem reported by Martin Lambers.
118637 2005-09-02  Bruno Haible  <bruno@clisp.org>
118639         Support for lib vs. lib64 distinction on biarch platforms.
118640         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
118641         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
118642         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
118644 2005-09-02  Bruno Haible  <bruno@clisp.org>
118646         * gnulib-tool (import): In the other first-use case, provide defaults
118647         as well.
118649 2005-09-02  Bruno Haible  <bruno@clisp.org>
118651         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
118652         patches not yet found in the latest gettext release.
118654 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
118656         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
118657         to avoid a collision with bits/local_lim.h in glibc.
118658         All uses changed.  Problem reported by Dmitry V. Levin in
118659         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
118661         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
118662         bugs in int versus size_t comparisons.
118663         (re_string_context_at): Fix bug where the code assumed that
118664         Idx is signed.
118666         Use bool where appropriate.
118667         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
118668         All callers changed.
118669         (calc_eclosure_iter): Likewise, for ROOT arg.
118670         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
118671         (build_charclass_op): Likewise, for NON_MATCH arg.
118672         * lib/regex_internal.c (re_string_allocate, re_string_construct):
118673         (re_string_construct_common): Likewise, for ICASE arg.
118674         * lib/regexec.c (re_search_2_stub, re_search_stub):
118675         Likewise, for RET_LEN arg.
118676         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
118677         (set_regs): Likewise, for FL_BACKTRACK arg.
118678         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
118679         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
118680         (calc_eclosure_iter, parse_bracket_exp):
118681         Use bool for internal variables that are booleans.
118682         * lib/regexec.c (re_search_internal, check_matching,
118683         proceed_next_node):
118684         (set_regs, build_sifted_states, sift_states_bkref):
118685         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
118686         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
118687         (find_collation_sequence_value):
118688         Likewise.
118689         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
118690         (re_node_set_compare):
118691         Return bool, not int. All callers changed.
118692         * lib/regexec.c (check_halt_node_context, check_dst_limits):
118693         (build_trtable, check_node_accept): Likewise.
118694         * lib/regex_internal.h: Include stdbool.h.
118696         Fix bugs uncovered when converting to bool.
118697         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
118698         failure instead of charging ahead blindly.
118699         * lib/regex_internal.c (register_state): Likewise.
118700         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
118701         for freeing internal storage.
118702         (group_nodes_into_DFA_states): Use unsigned int, not int, for
118703         bitset pieces used as boolean, to avoid undefined behavior
118704         on hosts that do int overflow checking.
118706 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
118708         * config/srclist.txt: Add glibc bugs 1285-1287.
118710 2005-09-01  Jim Meyering  <jim@meyering.net>
118712         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
118713         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
118714         Require gl_STAT_MACROS, too.
118716 2005-09-01  Bruno Haible  <bruno@clisp.org>
118718         * gnulib-tool (import): In the first-use case, provide defaults.
118720 2005-09-01  Bruno Haible  <bruno@clisp.org>
118722         * gnulib-tool (func_import): Remove the .tmp files.
118724 2005-09-01  Bruno Haible  <bruno@clisp.org>
118726         * gnulib-tool (func_import): Fix handling of symbolic links.
118728 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
118730         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
118731         old glibc regex code mishandles strings longer than 2**31 bytes.
118732         This patch fixes this when the regex code is used in gnulib
118733         (i.e., outside glibc).
118735         This patch should not affect the use of the regex code inside
118736         glibc.  No doubt this problem also needs to be handled for glibc
118737         as well, but the result will be an incompatible change to the
118738         glibc ABI, and the old ABI will have to be supported too.  That
118739         can be the subject for another patch.
118741         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
118742         governing whether the rest of this patch is active.  By default,
118743         the macro is disabled and the patch has no effect.
118744         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
118745         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
118746         (struct re_pattern_buffer, re_search, re_search_2, re_match):
118747         (re_match_2, re_set_registers): Use the new types.
118748         * lib/regex_internal.h (Idx, re_hashval_t): New types.
118749         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
118750         New macros.
118751         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
118752         (re_string_context_at, bin_tree_t, re_dfastate_t):
118753         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
118754         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
118755         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
118756         (re_string_char_size_at, re_string_wchar_at):
118757         (re_string_elem_size_at):
118758         Use the new types and macros to port to 64-bit hosts.
118759         Use unsigned types for internal values, so that the code
118760         mostly works even for arrays larger than SSIZE_MAX.
118761         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
118762         (search_duplicated_node, calc_eclosure_iter, fetch_number):
118763         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
118764         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
118765         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
118766         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
118767         (calc_inveclosure, parse_dup_op, build_range_exp):
118768         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
118769         (fetch_number, create_token_tree, mark_opt_subexp):
118770         Likewise.
118771         * lib/regex_internal.c (re_string_construct_common,
118772         create_ci_newstate):
118773         (create_cd_newstate, re_string_allocate, re_string_construct):
118774         (re_string_realloc_buffers, build_wcs_upper_buffer):
118775         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
118776         (re_string_reconstruct, re_string_peek_byte_case):
118777         (re_string_fetch_byte_case, re_string_context_at):
118778         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
118779         (re_node_set_init_copy, re_node_set_add_intersect):
118780         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
118781         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
118782         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
118783         (re_acquire_state, re_acquire_state_context, register_state):
118784         Likewise.
118785         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
118786         search_cur_bkref_entry):
118787         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
118788         (re_search_internal, re_search_2_stub, re_search_stub)
118789         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
118790         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
118791         (update_cur_sifted_state, check_dst_limits):
118792         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
118793         (check_subexp_limits, sift_states_bkref, merge_state_array):
118794         (check_subexp_matching_top, get_subexp, get_subexp_sub):
118795         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
118796         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
118797         (expand_bkref_cache, check_node_accept_bytes):
118798         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
118799         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
118800         (acquire_init_state_context, check_halt_node_context):
118801         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
118802         (sift_states_backward, clean_state_log_if_needed):
118803         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
118804         (find_recover_state, transit_state_sb, transit_state_mb):
118805         (transit_state_bkref, build_trtable, match_ctx_clean):
118806         Likewise.
118807         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
118808         to work around an assumption that REG_MISSING is negative.
118810         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
118811         (seek_collating_symbol_entry) [defined _LIBC]:
118812         (lookup_collation_sequence_value) [defined _LIBC]:
118813         (build_range_exp, build_collating_symbol) [defined _LIBC]:
118814         Use prototypes rather than old-style function definitions.
118815         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
118816         (transit_state_sb) [0]:
118817         (find_collation_sequence_value) [defined _LIBC]: Likewise.
118819         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
118820         rm_eo.
118822         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
118823         (optimize_subexps, lower_subexp):
118824         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
118825         since the signed shift might overflow.  Use 1u<<31 instead.
118826         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
118827         Likewise.
118828         * lib/regexec.c (check_dst_limits_calc_pos_1,
118829         check_subexp_matching_top): Likewise.
118831         * lib/regcomp.c (optimize_subexps, lower_subexp):
118832         Use CHAR_BIT rather than 8, for clarity.
118833         * lib/regexec.c (check_dst_limits_calc_pos_1):
118834         (check_subexp_matching_top): Likewise.
118835         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
118836         have to worry about portability issues when shifting it left.
118837         Remove no-longer-needed test for table_size > 0.
118838         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
118839         in a word, as the resulting behavior is undefined.
118840         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
118841         in one case, a <= should have been an <, and in another case the
118842         whole test was missing.
118843         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
118844         the standard name CHAR_BIT.
118845         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
118846         this is not true on one's complement and signed-magnitude hosts.
118848         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
118849         next_last_offset.
118850         (struct re_dfa_t): Remove unused member states_alloc.
118851         * lib/regcomp.c (init_dfa): Don't initialize unused members.
118853 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
118855         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
118856         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
118857         and large-file glibc and in 32-bit large-file Solaris.
118859 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
118861         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
118862         lengths fit in regoff_t; this isn't true if regoff_t is the same
118863         width as size_t.
118864         * lib/regex.c (re_search_internal): 5th arg is LAST_START
118865         (= START + RANGE) instead of RANGE.  This avoids overflow
118866         problems when regoff_t is the same width as size_t.
118867         All callers changed.
118868         (re_search_2_stub): Check for overflow when adding the
118869         sizes of the two strings.
118870         (re_search_stub): Check for overflow when adding START
118871         to RANGE; if it occurs, substitute the extreme value.
118873 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
118875         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
118877 2005-08-31  Jim Meyering  <jim@meyering.net>
118879         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
118880         a pointer-to-const.
118881         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
118882         (register_state): Likewise.
118883         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
118884         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
118885         (group_nodes_into_DFAstates): Likewise.
118887 2005-08-31  Jim Meyering  <jim@meyering.net>
118889         * check-module: Add a FIXME comment.
118891 2005-08-31  Eric Blake  <ebb9@byu.net>
118893         * modules/unistd-safer (Files): Add unistd--.h.
118894         * modules/stdio-safer (Files): Add stdio--.h.
118896 2005-08-31  Derek Price  <derek@ximbiot.com>
118898         * lib/getdelim.c (getdelim): Return EOF on EOF.
118899         Reported by Larry Jones <lawrence.jones@ugs.com>.
118901 2005-08-31  Bruno Haible  <bruno@clisp.org>
118903         Avoid unnecessary diffs in the generated lib/Makefile.am.
118904         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
118905         the generated files.
118906         (func_import): Don't set cmd.
118908 2005-08-31  Bruno Haible  <bruno@clisp.org>
118910         * lib/strstr.c: Include <stddef.h>, for NULL.
118911         * lib/strcasestr.c: Likewise.
118912         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118914 2005-08-31  Bruno Haible  <bruno@clisp.org>
118916         * gnulib-tool: New option --macro-prefix.
118917         (func_import): Use macro_prefix.
118918         (import): Handle option --macro-prefix.
118920 2005-08-31  Bruno Haible  <bruno@clisp.org>
118922         * gnulib-tool (import): Rename most ac_* variables to cached_*.
118923         Also use new variables cached_lgpl, cached_libtool.
118925 2005-08-31  Bruno Haible  <bruno@clisp.org>
118927         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
118928         always instantiating them.
118930 2005-08-31  Bruno Haible  <bruno@clisp.org>
118932         * gnulib-tool (func_import): Read the previous cached settings
118933         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
118934         earlier added by gnulib but are now dropped. Warn when a gnulib file
118935         overwrites a non-gnulib file.
118937 2005-08-31  Bruno Haible  <bruno@clisp.org>
118939         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
118940         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
118941         projects that don't keep autogenerated files in CVS. Put into
118942         actioncmd only the specified modules, not the transitive closure.
118944 2005-08-31  Bruno Haible  <bruno@clisp.org>
118946         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
118947         Create directories that shall be filled.
118948         (import): Don't look for gl_* macros in configure.ac. Recurse across
118949         all directories containing a gnulib-cache.m4 files, if meaningful.
118951 2005-08-31  Bruno Haible  <bruno@clisp.org>
118953         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
118954         (import): Set seen_libtool when we see gl_LIBTOOL.
118956 2005-08-31  Bruno Haible  <bruno@clisp.org>
118958         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
118959         declaration macro definitions from generated gnulib.m4.
118961 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
118963         * lib/iconvme.h: Add prototype for iconv_alloc.
118965 2005-08-29  Simon Josefsson  <jas@extundo.com>
118967         * lib/iconvme.c: Fix errno.
118969 2005-08-29  Bruno Haible  <bruno@clisp.org>
118971         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
118972         that it works when the directory contains spaces.
118974 2005-08-29  Bruno Haible  <bruno@clisp.org>
118976         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
118978 2005-08-29  Bruno Haible  <bruno@clisp.org>
118980         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
118981         Emit more advice.
118983 2005-08-29  Bruno Haible  <bruno@clisp.org>
118984         and Stepan Kasal  <kasal@ucw.cz>
118986         * check-module: If more parameters are given, check each of them
118987         separately; add more exceptions, as noted by Jim Meyering.
118988         (check_module): New procedure.
118989         (%exempt_header): Now contains all exceptions.
118991 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
118993         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
118995 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
118997         * lib/iconvme.c: Split iconv_string into iconv_alloc.
118999 2005-08-28  Bruno Haible  <bruno@clisp.org>
119001         * m4/gnulib-tool.m4: New file.
119003 2005-08-27  Jim Meyering  <jim@meyering.net>
119005         * modules/unistd-safer (Files): Add pipe-safer.c.
119006         * modules/fcntl-safer (Files): Add creat-safer.c.
119008 2005-08-27  Jim Meyering  <jim@meyering.net>
119010         * m4/stdlib-safer.m4: New file.  From coreutils.
119011         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
119012         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
119013         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
119014         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
119015         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
119017 2005-08-27  Jim Meyering  <jim@meyering.net>
119019         * lib/fopen-safer.c: Merge minor changes from coreutils.
119020         * lib/dup-safer.c: Likewise.
119021         * lib/fd-safer.c: Likewise.
119023         Merge from coreutils.
119024         * lib/stdio--.h: New file.
119025         * lib/stdlib--.h: New file.
119026         * lib/mkstemp-safer.c: New file.
119028         GNU tar needs these.
119029         * lib/pipe-safer.c: New file.
119030         * lib/creat-safer.c: New file.
119031         * lib/fcntl--.h (creat): Define to creat_safer.
119032         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
119033         * lib/unistd--.h (pipe): Define to pipe_safer.
119034         * lib/unistd-safer.h: Declare pipe_safer.
119036 2005-08-26  Simon Josefsson  <jas@extundo.com>
119038         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
119039         Haible <bruno@clisp.org>.
119041 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
119043         * lib/regex_internal.h: Remove all references to
119044         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
119045         or better.
119046         (bitset_not, bitset_merge, bitset_not_merge):
119047         (bitset_mask, re_string_allocate, re_string_construct):
119048         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
119049         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
119050         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
119051         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
119052         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119053         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119054         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
119055         (re_acquire_state_context):
119056         Remove unnecessary forward decls.
119057         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
119058         Put __attribute at function definition,
119059         now that the function decl has been removed.
119060         * lib/regex_internal.c (re_string_peek_byte_case):
119061         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
119062         Likewise.
119064 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
119066         * m4/regex.m4: Add AC_PREREQ(2.50).
119067         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
119069 2005-08-25  Simon Josefsson  <jas@extundo.com>
119071         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
119072         __fsetlocking.
119074 2005-08-25  Simon Josefsson  <jas@extundo.com>
119076         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
119077         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
119078         GLIBC specific code.
119080 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119082         Make regex safe for g++.  This fixes one real bug (an "err"
119083         that should have been "*err").  g++ problem reported by
119084         Sam Steingold.
119085         * lib/regex_internal.h (re_calloc): New macro, consistent with
119086         re_malloc etc.  All callers of calloc changed to use re_calloc.
119087         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
119088         not int.  All callers changed.
119089         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
119090         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
119091         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
119092         (find_recover_state): Change "err" to "*err"; this fixes what
119093         appears to be a real bug.
119094         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
119095         versus int.
119097 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119099         * modules/regex (Depends-on): Add malloc, since the code
119100         assumes that !malloc(0) means failure.
119102 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119104         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
119106         alloca modernization/simplification for regex.
119107         * lib/regex.c: Remove portability cruft for alloca.  This no longer
119108         needs to be at the start of the file, and can be moved into
119109         regex_internal.h and simplified.
119110         * lib/regex_internal.h: Include <alloca.h>.
119111         (__libc_use_alloca) [!defined _LIBC]: New macro.
119112         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
119113         now works outside glibc.
119115 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119117         * config/srclist.txt: Add glibc bugs 1241, 1245.
119119 2005-08-25  Jim Meyering  <jim@meyering.net>
119121         * lib/open-safer.c: Include <config.h>.
119122         Otherwise, we'd lose LARGEFILE support in any file using
119123         e.g. "fcntl--.h"
119125 2005-08-25  Bruno Haible  <bruno@clisp.org>
119127         * m4/minmax.m4: Require autoconf 2.52.
119128         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
119129         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
119130         alternatives of translit over the alphabet.
119131         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
119133 2005-08-24  Simon Josefsson  <jas@extundo.com>
119135         * tests/test-getpass.c: New file.
119137 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119139         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
119140         for GNU regex features.
119142 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119144         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
119145         * lib/regex.h (regerror): Likewise.
119147         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
119148         requires this.  (The code never needed it.)
119150         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
119151         All uses of recently-renamed identifiers changed to use the new,
119152         POSIX-compliant names.  The code will build and run just fine
119153         without these changes, but it's better to eat our own dog food
119154         and use the standard-conforming names.
119156         * lib/regex.h: Fix a multitude of POSIX name space violations.
119157         These changes have an effect only for programs that define
119158         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
119159         do not change anything for programs compiled in the normal way.
119160         Also, there is no effect on the ABI.
119162         (_REGEX_SOURCE): New macro.
119163         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
119164         defined and _GNU_SOURCE is not; this fixes a name space violation.
119166         Rename the following macros to obey POSIX requirements.
119167         The old names are still visible as macros if _REGEX_SOURCE is defined.
119168         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
119169         RE_BACKSLASH_ESCAPE_IN_LISTS.
119170         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
119171         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
119172         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
119173         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
119174         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
119175         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
119176         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
119177         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
119178         (REG_INTERVALS): renamed from RE_INTERVALS.
119179         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
119180         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
119181         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
119182         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
119183         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
119184         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
119185         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
119186         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
119187         RE_UNMATCHED_RIGHT_PAREN_ORD.
119188         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
119189         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
119190         (REG_DEBUG): renamed from RE_DEBUG.
119191         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
119192         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
119193         unusual, since we can't clash with the POSIX REG_ICASE.
119194         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
119195         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
119196         (REG_NO_SUB): renamed from RE_NO_SUB.
119197         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
119198         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
119199         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
119200         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
119201         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
119202         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
119203         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
119204         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
119205         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
119206         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
119207         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
119208         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
119209         RE_SYNTAX_POSIX_MINIMAL_BASIC.
119210         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
119211         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
119212         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
119213         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
119214         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
119215         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
119216         (REG_FIXED): Renamed from REGS_FIXED.
119217         (REG_NREGS): Renamed from RE_NREGS.
119219         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
119220         of other REG_* macros, since POSIX says the user is allowed to
119221         #undef these macros selectively.
119223         (reg_errcode_t): Update comment stating what other tables need
119224         to be consistent.
119226         Rename the following enum values to obey POSIX requirements.
119227         The old names are still visible as macros.
119228         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
119229         is not defined, since GNU is supposed to be a superset of POSIX as
119230         much as possible, and since we want reg_errcode_t to be a signed
119231         type for implementation consistency.
119232         (_REG_NOERROR): Renamed from REG_NOERROR.
119233         (_REG_NOMATCH): Renamed from REG_NOMATCH.
119234         (_REG_BADPAT): Renamed from REG_BADPAT.
119235         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
119236         (_REG_ECTYPE): Renamed from REG_ECTYPE.
119237         (_REG_EESCAPE): Renamed from REG_EESCAPE.
119238         (_REG_ESUBREG): Renamed from REG_ESUBREG.
119239         (_REG_EBRACK): Renamed from REG_EBRACK.
119240         (_REG_EPAREN): Renamed from REG_EPAREN.
119241         (_REG_EBRACE): Renamed from REG_EBRACE.
119242         (_REG_BADBR): Renamed from REG_BADBR.
119243         (_REG_ERANGE): Renamed from REG_ERANGE.
119244         (_REG_ESPACE): Renamed from REG_ESPACE.
119245         (_REG_BADRPT): Renamed from REG_BADRPT.
119246         (_REG_EEND): Renamed from REG_EEND.
119247         (_REG_ESIZE): Renamed from REG_ESIZE.
119248         (_REG_ERPAREN): Renamed from REG_ERPAREN.
119249         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
119250         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
119251         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
119252         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
119254         (_REG_RE_NAME, _REG_RM_NAME): New macros.
119255         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
119256         changed.  But support the old name if the new one is not defined
119257         and if _REGEX_SOURCE.
119259         Change the following member names in struct re_pattern_buffer.
119260         The old names are still supported if !_REGEX_SOURCE.
119261         The new names are always supported, regardless of _REGEX_SOURCE.
119262         (re_buffer): Renamed from buffer.
119263         (re_allocated): Renamed from allocated.
119264         (re_used): Renamed from used.
119265         (re_syntax): Renamed from syntax.
119266         (re_fastmap): Renamed from fastmap.
119267         (re_translate): Renamed from translate.
119268         (re_can_be_null): Renamed from can_be_null.
119269         (re_regs_allocated): Renamed from regs_allocated.
119270         (re_fastmap_accurate): Renamed from fastmap_accurate.
119271         (re_no_sub): Renamed from no_sub.
119272         (re_not_bol): Renamed from not_bol.
119273         (re_not_eol): Renamed from not_eol.
119274         (re_newline_anchor): Renamed from newline_anchor.
119276         Change the following member names in struct re_registers.
119277         The old names are still supported if !_REGEX_SOURCE.
119278         The new names are always supported, regardless of _REGEX_SOURCE.
119279         (rm_num_regs): Renamed from num_regs.
119280         (rm_start): Renamed from start.
119281         (rm_end): Renamed from end.
119283         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
119284         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
119285         Prepend __ to parameter names.
119287         Undo yesterday's changes.
119289 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119291         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
119292         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
119293         lib/regex.c.
119295 2005-08-24  Jim Meyering  <jim@meyering.net>
119297         Sync from coreutils.
119298         * m4/fcntl-safer.m4: New file.
119300         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
119301         and object files for this module.
119303 2005-08-24  Jim Meyering  <jim@meyering.net>
119305         Sync from coreutils.
119306         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
119308 2005-08-24  Jim Meyering  <jim@meyering.net>
119310         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
119311         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
119313 2005-08-24  Jim Meyering  <jim@meyering.net>
119315         * modules/fcntl-safer: New module.
119316         * modules/fts (Depends-on): Add fcntl-safer.
119317         * MODULES.html.sh (File descriptor based Input/Output):
119318         Add fcntl-safer.
119320 2005-08-24  Bruno Haible  <bruno@clisp.org>
119322         Support for unit test modules.
119323         * modules/README: Mention tests modules.
119324         * modules/TEMPLATE-TESTS: New file.
119325         * gnulib-tool: New options --extract-tests-module, --with-tests and
119326         --tests-base (unused for the moment).
119327         (testsbase, inctests): New variables.
119328         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
119329         (func_verify_module): Exclude TEMPLATE-TESTS.
119330         (func_verify_nontests_module, func_verify_tests_module): New functions.
119331         (func_get_dependencies): Add implicit dependency for tests modules.
119332         (func_get_tests_module): New function.
119333         (func_modules_transitive_closure): When --with-tests was specified,
119334         include the unit tests as well, unless explicitly avoided.
119335         (func_emit_lib_Makefile_am): Ignore the tests modules here.
119336         (func_emit_tests_Makefile_am): New function.
119337         (func_create_testdir): When --with-tests was specified, emit a
119338         tests/ directory.
119339         * MODULES.html.sh (Future developments): Update.
119341 2005-08-24  Bruno Haible  <bruno@clisp.org>
119343         * modules/tls-tests: New file.
119344         * tests/test-tls.c: New file, from GNU gettext.
119346 2005-08-24  Bruno Haible  <bruno@clisp.org>
119348         * modules/lock-tests: New file.
119349         * tests/test-lock.c: New file, from GNU gettext.
119351 2005-08-24  Bruno Haible  <bruno@clisp.org>
119353         * lib/lock.h: Add multiple inclusion guard.
119354         * lib/tls.h: Add multiple inclusion guard.
119356 2005-08-24  Bruno Haible  <bruno@clisp.org>
119358         * gnulib-tool: Add support for the --aux-dir option to
119359         --create-testdir, --create-megatestdir, --test, --megatest.
119360         (func_create_testdir, func_create_megatestdir): Optionally emit a
119361         AC_CONFIG_AUX_DIR directive.
119362         (create-testdir, create-megatestdir, test, megatest): Provide a
119363         default value for $auxdir.
119365 2005-08-24  Bruno Haible  <bruno@clisp.org>
119367         * gnulib-tool (import): Use compound statement instead of subshell
119368         where possible.
119370 2005-08-24  Bruno Haible  <bruno@clisp.org>
119372         * gnulib-tool (import): Change --aux-dir default to "build-aux".
119374 2005-08-24  Bruno Haible  <bruno@clisp.org>
119376         * gnulib-tool (func_version): Update.
119378 2005-08-24  Bruno Haible  <bruno@clisp.org>
119380         * gnulib-tool (func_import, func_create_testdir,
119381         func_create_megatestdir): Quote all autoconf macro arguments.
119383 2005-08-24  Bruno Haible  <bruno@clisp.org>
119385         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
119386         option --force, because --force causes the aclocal.m4 of each
119387         subdirectory to be newer than the corresponding config.h.in.
119389 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119391         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
119392         All contents moved to gl_REGEX.
119393         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
119394         assume that it does.
119396 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119398         * lib/regex.h (REG_NOSYS)
119399         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
119400         Define, since POSIX requires it as of 2001.
119401         (_REG_ENOSYS)
119402         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
119403         New private symbol, used to keep the enum signed in all cases.
119404         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
119405         Youngman in
119406         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
119408         * lib/regex_internal.c (re_string_skip_chars, register_state):
119409         (calc_state_hash):
119410         Remove forward decls; no longer needed now that we use prototypes.
119411         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
119412         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
119413         (clean_state_log_if_needed): Likewise.
119415 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119417         * config/srclist.txt: Add glibc bugs 1231-1233.
119419 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119421         Fix problems reported by Sam Steingold in
119422         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
119423         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
119424         assumed that reg_errcode_t is a signed type, which is not
119425         necessarily true if _XOPEN_SOURCE is not defined.
119426         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
119427         since some compilers warn about it otherwise.
119429 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119431         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
119432         (init_word_char, create_initial_state, duplicate_node_closure):
119433         (fetch_token, peek_token_bracket, build_range_exp):
119434         (build_collating_symbol): Remove forward decls; no longer needed
119435         now that we use prototypes.
119437         * lib/regcomp.c:
119438         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
119439         (re_compile_fastmap_iter, regcomp, regerror, regfree):
119440         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
119441         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
119442         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
119443         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
119444         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
119445         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
119446         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
119447         (build_range_exp, build_collating_symbol, parse_bracket_exp):
119448         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
119449         (build_charclass, build_charclass_op, fetch_number, create_tree):
119450         (create_token_tree, mark_opt_subexp, duplicate_tree):
119451         Use prototypes rather than old-style definitions.
119453         * lib/regex_internal.c:
119454         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
119455         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
119456         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119457         (re_string_reconstruct, re_string_peek_byte_case):
119458         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
119459         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119460         (re_node_set_init_copy, re_node_set_add_intersect):
119461         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119462         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119463         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119464         (re_acquire_state, re_acquire_state_context, register_state):
119465         (create_ci_newstate, create_cd_newstate, free_state):
119466         Likewise.
119467         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
119468         re_search_2):
119469         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
119470         (re_search_internal, prune_impossible_nodes):
119471         (acquire_init_state_context, check_matching, static):
119472         (check_halt_node_context, check_halt_state_context, proceed_next_node):
119473         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
119474         (update_regs, sift_states_backward, build_sifted_states):
119475         (clean_state_log_if_needed, merge_state_array):
119476         (update_cur_sifted_state, add_epsilon_src_nodes):
119477         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
119478         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
119479         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
119480         (find_recover_state, check_subexp_matching_top, transit_state_mb):
119481         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
119482         (check_arrival, check_arrival_add_next_nodes):
119483         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119484         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119485         (check_node_accept_bytes, check_node_accept, extend_buffers):
119486         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
119487         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
119488         (sift_ctx_init):
119489         Likewise.
119491         * lib/regex_internal.h:
119492         (re_string_allocate, re_string_construct, re_string_reconstruct):
119493         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
119494         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
119495         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
119496         (re_string_context_at, re_string_peek_byte_case):
119497         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
119498         is defined, since we now use prototypes always.
119500         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
119501         C89 or better.  All uses removed.
119503 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119505         * config/srclist.txt: Add glibc bugs 1220-1227.
119507 2005-08-20  Jim Meyering  <jim@meyering.net>
119509         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
119510         of unused local, dfa.
119512 2005-08-20  Bruno Haible  <bruno@clisp.org>
119514         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
119516 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119518         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
119519         (re_node_set_insert_last, re_dfa_add_node):
119520         Rename local variables to avoid GCC shadowing warnings.
119522 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119524         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
119525         [defined lint]: Suppress bogus uninitialized-variable warnings.
119527         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
119528         and let the caller return REG_ESPACE if out of space.  This
119529         removes an uninitialied-variable warning with GCC 4.0.1, and also
119530         avoids taking the address of a local variable.  All callers
119531         changed.
119533 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119535         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
119536         $LIBCSRC/posix/regexec.c.
119537         Add glibc bug 1217 for regcomp.c.
119539 2005-08-19  Jim Meyering  <jim@meyering.net>
119541         * lib/regexec.c (proceed_next_node): Redo local variables to
119542         avoid GCC shadowing warnings.
119544 2005-08-18  Bruno Haible  <bruno@clisp.org>
119546         * lib/strstr.c (strstr): Fix return value in multibyte case.
119547         * lib/strcasestr.c (strcasestr): Likewise.
119549 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
119551         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
119553 2005-08-17  Jim Meyering  <jim@meyering.net>
119555         Make the %s format (seconds since the epoch) work for a negative
119556         number and when used with a zero-padded field width, e.g. %015s.
119558         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
119559         label so that it precedes the code to set `digits'.  Otherwise,
119560         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
119561         print `00-22'.  Now, it prints `-0022', as it should.
119563 2005-08-17  Bruno Haible  <bruno@clisp.org>
119565         * modules/strstr (Files): Add m4/mbrtowc.m4.
119566         (Depends-on): Add mbuiter.
119568 2005-08-17  Bruno Haible  <bruno@clisp.org>
119570         * modules/strcasestr: New file.
119571         * MODULES.html.sh (String handling, based on ANSI C 89): Add
119572         strcasestr.
119574 2005-08-17  Bruno Haible  <bruno@clisp.org>
119576         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
119578 2005-08-17  Bruno Haible  <bruno@clisp.org>
119580         * modules/mbuiter: New file.
119581         * MODULES.html.sh (Extended multibyte and wide character utilities):
119582         Add mbuiter.
119584 2005-08-17  Bruno Haible  <bruno@clisp.org>
119586         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
119587         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
119589 2005-08-17  Bruno Haible  <bruno@clisp.org>
119591         * m4/strcasestr.m4: New file.
119593 2005-08-17  Bruno Haible  <bruno@clisp.org>
119595         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
119596         * lib/strstr.c: Completely rewritten, with multibyte locale support.
119598 2005-08-17  Bruno Haible  <bruno@clisp.org>
119600         * lib/strcasestr.h: New file.
119601         * lib/strcasestr.c: New file.
119603 2005-08-17  Bruno Haible  <bruno@clisp.org>
119605         * lib/strcasecmp.c: Use mbuiter.h.
119607 2005-08-17  Bruno Haible  <bruno@clisp.org>
119609         * lib/mbuiter.h: New file.
119611 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
119613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
119614         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
119615         and gl_GETOPT are both invoked via different paths (as happens
119616         with GNU tar CVS because it uses both argp and getopt), the former
119617         wins.
119619 2005-08-16  Bruno Haible  <bruno@clisp.org>
119621         * modules/tls: New file.
119622         * MODULES.html.sh (Multithreading): Add tls.
119624 2005-08-16  Bruno Haible  <bruno@clisp.org>
119626         * modules/strnlen1: New file.
119627         * MODULES.html.sh (String handling): Add strnlen1.
119629 2005-08-16  Bruno Haible  <bruno@clisp.org>
119631         * modules/strcase (Files): Add m4/mbrtowc.m4.
119632         (Depends-on): Add strnlen1, mbchar.
119634 2005-08-16  Bruno Haible  <bruno@clisp.org>
119636         * modules/mbiter: New file.
119637         * MODULES.html.sh (Extended multibyte and wide character utilities):
119638         Add mbiter.
119640 2005-08-16  Bruno Haible  <bruno@clisp.org>
119642         * modules/mbfile: New file.
119643         * MODULES.html.sh (Extended multibyte and wide character utilities):
119644         Add mbfile.
119646 2005-08-16  Bruno Haible  <bruno@clisp.org>
119648         * modules/mbchar: New file.
119649         * MODULES.html.sh (Extended multibyte and wide character utilities):
119650         New section.
119652 2005-08-16  Bruno Haible  <bruno@clisp.org>
119654         * m4/tls.m4: New file, from GNU gettext.
119656 2005-08-16  Bruno Haible  <bruno@clisp.org>
119658         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
119659         always.
119660         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
119662 2005-08-16  Bruno Haible  <bruno@clisp.org>
119664         * m4/mbiter.m4: New file.
119666 2005-08-16  Bruno Haible  <bruno@clisp.org>
119668         * m4/mbfile.m4: New file.
119670 2005-08-16  Bruno Haible  <bruno@clisp.org>
119672         * m4/mbchar.m4: New file.
119674 2005-08-16  Bruno Haible  <bruno@clisp.org>
119676         * lib/tls.h: New file, from GNU gettext.
119677         * lib/tls.c: New file, from GNU gettext.
119679 2005-08-16  Bruno Haible  <bruno@clisp.org>
119681         * lib/strnlen1.h: New file.
119682         * lib/strnlen1.c: New file.
119684 2005-08-16  Bruno Haible  <bruno@clisp.org>
119686         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
119687         (mbi_init): Update.
119688         (mbi_avail, mbi_advance): Let the iteration end before the terminating
119689         NUL byte, not after it.
119691 2005-08-16  Bruno Haible  <bruno@clisp.org>
119693         * lib/strcase.h (strcasecmp): Add note in comments.
119694         * lib/strncasecmp.c: Use code from strcasecmp.c.
119695         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
119696         (strcasecmp): Work correctly in multibyte locales.
119698 2005-08-16  Bruno Haible  <bruno@clisp.org>
119700         * lib/mbiter.h: New file.
119702 2005-08-16  Bruno Haible  <bruno@clisp.org>
119704         * lib/mbfile.h: New file.
119706 2005-08-16  Bruno Haible  <bruno@clisp.org>
119708         * lib/mbchar.h: New file.
119709         * lib/mbchar.c: New file.
119711 2005-08-16  Bruno Haible  <bruno@clisp.org>
119713         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
119714         the valid ones. Makes the comparison operations transitive:
119715         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
119716         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
119718 2005-08-15  Simon Josefsson  <jas@extundo.com>
119720         * modules/ssize_t (License): Change to 'unlimited'.
119722         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
119724 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
119726         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
119727         Add comments for each pending glibc patch.
119729 2005-08-15  Bruno Haible  <bruno@clisp.org>
119731         * lib/regex.h (__restrict_arr): Don't define to __restrict if
119732         __cplusplus is defined.
119734 2005-08-14  Jim Meyering  <jim@meyering.net>
119736         Sync from coreutils.
119738         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
119739         Use the hash-table-based cycle-detection code not just when
119740         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
119741         Reported by James Youngman in
119742         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
119743         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
119744         FTS_TIGHT_CYCLE_CHECK.
119745         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
119746         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
119747         once again.
119748         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
119749         * lib/fts.c (fd_safer): Remove decl.
119750         Include fcntl--.h rather than unistd-safer.h
119751         (fts_safe_changedir): Don't call fd_safer; no longer needed
119752         now that we include fcntl--.h.
119754 2005-08-12  Simon Josefsson  <jas@extundo.com>
119756         * modules/getndelim2: Use ssize_t module.
119757         * modules/getnline: Likewise.
119758         * modules/safe-read: Likewise.
119759         * modules/xreadlink: Likewise.
119761         * modules/ssize_t: New file.
119763 2005-08-12  Simon Josefsson  <jas@extundo.com>
119765         * m4/readline.m4: Look for termcap, curses or ncurses if required.
119767 2005-08-12  Simon Josefsson  <jas@extundo.com>
119769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119770         ssize_t.
119772 2005-08-12  Simon Josefsson  <jas@extundo.com>
119774         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
119775         readline, getdelim and check_version.
119776         (Support for systems lacking ISO C 99: Sizes of integer types):
119777         Add size_max.
119779 2005-08-12  Bruno Haible  <bruno@clisp.org>
119781         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
119783 2005-08-11  Simon Josefsson  <jas@extundo.com>
119785         * modules/readline: New file.
119787         * modules/strnlen (Files): Add strnlen.h.
119789 2005-08-11  Simon Josefsson  <jas@extundo.com>
119791         * m4/readline.m4: New file.
119793 2005-08-11  Simon Josefsson  <jas@extundo.com>
119795         * lib/readline.h, readline.c: New file.
119797 2005-08-11  Simon Josefsson  <jas@extundo.com>
119799         * doc/gnulib.texi (Initial import, Finishing touches): Mention
119800         gl_AVOID.
119802 2005-08-11  Bruno Haible  <bruno@clisp.org>
119804         * lib/strnlen.h (strnlen): Change parameter name to match comment.
119806 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
119808         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
119810 2005-08-10  Simon Josefsson  <jas@extundo.com>
119812         * tests/test-iconvme.c: New file.
119814 2005-08-10  Simon Josefsson  <jas@extundo.com>
119816         * m4/strnlen.m4: New file.
119818         * m4/strndup.m4: Don't check for strnlen declaration, done in
119819         strnlen.m4.
119821 2005-08-10  Simon Josefsson  <jas@extundo.com>
119823         * lib/strndup.c: Use strnlen.h.
119825         * lib/strnlen.h: New file.
119827 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119829         * README: Typos.
119831 2005-08-02  Simon Josefsson  <jas@extundo.com>
119833         * modules/readline: New file.
119835 2005-08-02  Simon Josefsson  <jas@extundo.com>
119837         * modules/getdelim: New file.
119839         * modules/getline: Rewrite, don't use getndelim2.
119841 2005-08-02  Simon Josefsson  <jas@extundo.com>
119843         * m4/getline.m4: Separate out getdelim stuff into separate module.
119845         * m4/getdelim.m4: New file.
119847 2005-08-02  Simon Josefsson  <jas@extundo.com>
119849         * lib/getline.h, getline.c: Rewrite.
119851         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
119853 2005-07-31  Bruno Haible  <bruno@clisp.org>
119855         * lib/lock.h (gl_lock_initializer): New macro.
119856         (gl_lock_define_initialized): Use it.
119857         (gl_rwlock_initializer): New macro.
119858         (gl_rwlock_define_initialized): Use it.
119859         (gl_recursive_lock_initializer): New macro.
119860         (gl_recursive_lock_define_initialized): Use it.
119862 2005-07-30  Karl Berry  <karl@gnu.org>
119864         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
119865         Report from Ben Pfaff, regarding getopt.
119867 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
119869         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
119870         normal way.
119871         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
119872         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
119873         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
119874         (gl_GETOPT): Use the new macros.  Most of the implementation
119875         is moved to the new macros.  This is for programs like Emacs
119876         that don't want all the functionality of gl_GETOPT.
119878 2005-07-26  Bruno Haible  <bruno@clisp.org>
119880         * m4/lock.m4: Update from GNU gettext.
119882 2005-07-26  Bruno Haible  <bruno@clisp.org>
119884         * lib/lock.h: Update from GNU gettext.
119885         * lib/lock.c: Update from GNU gettext.
119887 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
119889         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
119890         obsolescent AC_TRY_RUN.  Include the default includes files, for
119891         'exit'.
119893 2005-07-24  Bruno Haible  <bruno@clisp.org>
119895         * modules/visibility: New file.
119896         * MODULES.html.sh (Misc): Add visibility.
119898 2005-07-24  Bruno Haible  <bruno@clisp.org>
119900         * m4/visibility.m4: New file.
119902 2005-07-24  Bruno Haible  <bruno@clisp.org>
119904         * doc/visibility.texi: New file.
119906 2005-07-22  Bruno Haible  <bruno@clisp.org>
119908         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
119909         $(ALLOCA_H), redundant through BUILT_SOURCES.
119910         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
119911         redundant through BUILT_SOURCES.
119912         * modules/byteswap (Makefile.am): Remove explicit dependency on
119913         $(BYTESWAP_H), redundant through BUILT_SOURCES.
119914         * modules/fnmatch (Makefile.am): Remove explicit dependency on
119915         $(FNMATCH_H), redundant through BUILT_SOURCES.
119916         * modules/getopt (Makefile.am): Remove explicit dependency on
119917         $(GETOPT_H), redundant through BUILT_SOURCES.
119918         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
119919         redundant through BUILT_SOURCES.
119920         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
119921         redundant through BUILT_SOURCES.
119922         * modules/stdbool (Makefile.am): Remove explicit dependency on
119923         $(STDBOOL_H), redundant through BUILT_SOURCES.
119924         * modules/stdint (Makefile.am): Remove explicit dependency on
119925         $(STDINT_H), redundant through BUILT_SOURCES.
119926         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
119927         Remove explicit dependency on $(SYSEXITS_H).
119928         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
119930 2005-07-18  Simon Josefsson  <jas@extundo.com>
119932         * lib/check-version.c (check_version): Accept identical versions too.
119934 2005-07-18  Bruno Haible  <bruno@clisp.org>
119936         * modules/lock: New file.
119937         * MODULES.html.sh (Multithreading): New section.
119939 2005-07-18  Bruno Haible  <bruno@clisp.org>
119941         * m4/lock.m4: New file, from GNU gettext.
119943 2005-07-18  Bruno Haible  <bruno@clisp.org>
119945         * lib/lock.h: New file, from GNU gettext.
119946         * lib/lock.c: New file, from GNU gettext.
119948 2005-07-18  Bruno Haible  <bruno@clisp.org>
119950         * lib/lock.h (gl_once_t): New type.
119951         (gl_once_define, gl_once): New macros.
119952         * lib/lock.c (fresh_once): New variable.
119953         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
119954         functions.
119956 2005-07-16  Simon Josefsson  <jas@extundo.com>
119958         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
119959         workaround, suggested by Bruno.
119961 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
119963         * modules/xalloc (Depends-on): Add xalloc-die.
119964         * modules/xvasprintf (Depends-on): Add xalloc-die.
119966 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
119968         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
119969         with a minor change.
119971 2005-07-15  Bruno Haible  <bruno@clisp.org>
119973         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
119974         When using lib/poll.c, define poll as rpl_poll.
119976 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
119978         * modules/argp (Depends-on): Remove unlocked-io.
119980 2005-07-14  Derek Price  <derek@ximbiot.com>
119982         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
119983         for glob symlink bug.
119985 2005-07-14  Bruno Haible  <bruno@clisp.org>
119987         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
119988         Instead, test for *_unlocked function declarations directly.
119990 2005-07-11  Simon Josefsson  <jas@extundo.com>
119992         * modules/size_max: New file.
119994         * modules/xsize: Depend on size_max module for size_max.m4.
119996 2005-07-11  Simon Josefsson  <jas@extundo.com>
119998         * lib/size_max.h: New file.
120000 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
120002         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
120003         copyright symbol and the year.
120004         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
120005         (version_etc_va): Use parameterized copyright notice.
120006         Reword to conform to the current GNU coding standards.
120008 2005-07-11  Karl Berry  <karl@gnu.org>
120010         * doc/gnulib.texi (Quoting): new node.
120011         (Initial import): more info, from Patrice.
120013 2005-07-11  Bruno Haible  <bruno@clisp.org>
120015         * gnulib-tool (func_usage): Document option --avoid.
120016         (Command line options): Handle --avoid.
120017         (func_acceptable): New function.
120018         (func_modules_transitive_closure): Use it.
120020 2005-07-11  Bruno Haible  <bruno@clisp.org>
120022         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
120023         Reported by Jim Meyering.
120025 2005-07-10  Bruno Haible  <bruno@clisp.org>
120027         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
120028         Needed when size_t is smaller than 'unsigned int'.
120029         Reported by Paul Eggert.
120031 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120033         * modules/argp (Depends-on): Add unlocked-io
120035 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120037         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
120038         block of defines.
120040 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
120042         * config/srclist.txt: Comment out regcomp.c, since we have a porting
120043         fix now.
120045 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
120046         and Paul Eggert  <eggert@cs.ucla.edu>
120048         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
120049         in wint_t, not wchar_t.  Remove now-unnecessary cast.
120051 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120053         * modules/regex (Files): Add lib/regex_internal.c,
120054         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
120055         (Depends-on): Add extensions.
120056         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
120058 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120060         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
120061         pathconf.
120062         * m4/same.m4 (gl_SAME): Likewise.
120063         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
120065         * m4/regex.m4: Adjust to new libc regex implementation.
120066         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
120067         all the .c and .h parts of (the new) regex.
120068         Quote the m4 stuff better.
120069         Check for RE_ICASE bug of old gnulib.
120070         Check for REG_STARTEND of recent libc.
120071         Rename local variables from jm_* to gl_*.
120072         Quote operand of "test -f".
120073         Say "recent enough" version of libc, not "version 2".
120074         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
120075         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
120076         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
120077         Remove check for btowc, isascii.
120078         Require AM_LANGINFO_CODESET.
120080 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120082         * lib/regex.c, regex.h: Sync from libc.
120083         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
120084         * lib/regexec.c:
120085         New files, synced from libc, except that regex_internal.h
120086         currently has a small porting fix.
120088 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120090         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
120091         regex_internal.c, regexec.c.
120092         Add regex_internal.h too, but as a comment, since the libc version
120093         is currently broken in gnulib mode.
120095 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
120097         Support programs like Emacs that use gnulib but not gettext.
120098         * MODULES.html.sh (Internationalization functions): Add gettext-h.
120099         * modules/gettext-h: New file.
120100         * modules/gettext (Files): Remove lib/gettext.h.
120101         (Depends-on): Add gettext-h.
120102         (Makefile.am): Remove lib_SOURCES.
120103         * modules/argmatch, modules/c-stack, modules/closeout:
120104         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
120105         * modules/execute, modules/file-type, modules/getaddrinfo:
120106         * modules/getopt, modules/human, modules/javacomp:
120107         * modules/javaexec, modules/mkdir-p, modules/obstack:
120108         * modules/openat, modules/pagealign_alloc, modules/pipe:
120109         * modules/quotearg, modules/regex, modules/rpmatch:
120110         * modules/unicodeio, modules/userspec, modules/version-etc:
120111         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
120112         * modules/xsetenv:
120113         Depend on gettext-h, not gettext.
120115 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
120117         * gnulib-tool (func_import): Add support for 'public domain' license.
120118         * modules/alloca, modules/atexit, modules/memmove:
120119         Now public domain, not GPL.
120120         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
120121         * modules/realloc, modules/strerror, modules/strtod:
120122         Now LGPL, not GPL.
120124 2005-07-05  Bruno Haible  <bruno@clisp.org>
120126         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
120127         autoconf CVS. Needed for mingw.
120129 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120131         Remove the dependency of the strftime module on the tzset module.
120132         * modules/strftime (Depends-on): Remove dependency on tzset.
120134 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120136         Remove the dependency of the strftime module on the tzset module.
120137         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
120138         gl_FUNC_TZSET_CLOBBER.
120140 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120142         Remove the dependency of the strftime module on the tzset module.
120143         * lib/strftime.c (my_strftime)
120144         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
120145         Copy the input structure, to work around some of the bug with
120146         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
120147         Solaris releases, you should also use the tzset module, but we won't
120148         require it as a dependency any more since we don't want LGPLed code
120149         to depend on GPLed code.
120151 2005-07-02  Jim Meyering  <jim@meyering.net>
120153         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
120154         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
120155         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
120156         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
120158 2005-07-02  Jim Meyering  <jim@meyering.net>
120160         * lib/backupfile.c (backup_args): Change a `0' to NULL.
120162 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
120164         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
120165         declares only 'struct timespec;' (!).
120167 2005-07-01  Jim Meyering  <jim@meyering.net>
120169         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
120170         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
120171         * lib/save-cwd.c, tempname.c:
120172         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120173         and don't include <sys/file.h>).
120175 2005-06-29  Jim Meyering  <jim@meyering.net>
120177         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
120178         type name.  Use the variable name instead.
120179         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
120180         Likewise.
120182 2005-06-28  Simon Josefsson  <jas@extundo.com>
120184         * modules/check-version (Files): Add check-version.m4.
120186 2005-06-28  Simon Josefsson  <jas@extundo.com>
120188         * m4/check-version.m4: New file, suggested by Jim Meyering
120189         <jim@meyering.net>.
120191 2005-06-28  Simon Josefsson  <jas@extundo.com>
120193         * lib/check-version.h, lib/check-version.c: New files.
120195 2005-06-28  Simon Josefsson  <jas@extundo.com>
120197         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
120198         collision with global variable.  Better indentation.  Don't
120199         increment buffer pointer beyond buffer end.  Based on comments
120200         from Paul Eggert <eggert@cs.ucla.edu>.
120202         * lib/base64.h: Indent.
120204 2005-06-28  Simon Josefsson  <jas@extundo.com>
120206         * doc/gnulib.texi (Library version handling): New section.
120208 2005-06-28  Jim Meyering  <jim@meyering.net>
120210         * check-module (find_included_lib_files): Hard-code another
120211         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
120212         but modules/fts-lgpl (correctly) does not list those files.
120214         * modules/canonicalize (Files): Add lib/pathmax.h.
120216 2005-06-25  Simon Josefsson  <jas@extundo.com>
120218         * modules/check-version: New file.
120220 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
120222         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
120223         initializer of struct addrinfo, as an indication that we don't
120224         care how many members the structure has.
120226 2005-06-24  Derek Price  <derek@ximbiot.com>
120227         and Bruno Haible  <bruno@clisp.org>
120229         Remove stat module & update lstat.
120230         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
120231         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
120232         * m4/stat.m4: Remove this file.
120234 2005-06-24  Derek Price  <derek@ximbiot.com>
120235         and Bruno Haible  <bruno@clisp.org>
120237         Remove stat module & update lstat.
120238         * lib/stat.c: Remove this file...
120239         (slash_aware_lstat): ...moving this content and its support...
120240         * lib/lstat.c (rpl_lstat): ...into here.
120241         * lib/lstat.h: New file.
120243 2005-06-24  Derek Price  <derek@ximbiot.com>
120244         and Bruno Haible  <bruno@clisp.org>
120246         Remove stat module & update lstat.
120247         * config/srclist.txt (libc sources): Remove stat.
120249 2005-06-24  Derek Price  <derek@ximbiot.com>
120250         and Bruno Haible  <bruno@clisp.org>
120252         Remove stat module & update lstat.
120253         * MODULES.html.sh (stat): Remove.
120254         * MODULES.html: Regenerated.
120255         * modules/lstat (Description): Correct function name.
120256         (Files): Add "lstat.h".
120257         (Depends-on): Remove stat, add xalloc, stat-macros.
120258         * modules/stat: Remove this file.
120259         (Include): Add "lstat.h", remove <sys/stat.h>.
120261 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
120263         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
120264         (ranged_convert): Don't save conversion in a temporary struct.
120265         This causes a warning with GCC 4.0.0, and anyway in the typical
120266         case it's not worth the extra 100 bytes or so of code.
120267         (ranged_convert, __mktime_internal): When calling a function via a
120268         pointer P, use P () rather than (*P) (), as we now assume C89 or
120269         better.
120271 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120273         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
120274         "who -r" failed to give output.  Problem reported by Tim Waugh.
120276         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
120277         (xcalloc): Use it to avoid needless tests.
120278         Problem reported by Jim Meyering.
120280 2005-06-20  Derek Price  <derek@ximbiot.com>
120282         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
120283         unnecessary for Autoconfs > 2.59c.
120285 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120287         * lib/argp.h (__option_is_short): Check upper limit of
120288         __key. Isprint() requires its argument to have the value
120289         of an unsigned char or EOF.
120291 2005-06-16  Jim Meyering  <jim@meyering.net>
120293         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
120294         when either N or S is zero.
120296 2005-06-16  Derek Price  <derek@ximbiot.com>
120298         * m4/bison.m4: Declare YACC & YFLAGS precious.
120300 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
120302         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
120303         multibyte string or pattern, fall back on unibyte matching.
120304         Problem reported by James Youngman.
120306 2005-06-08  Bruno Haible  <bruno@clisp.org>
120308         * modules/csharpcomp: New file.
120309         * MODULES.html.sh (C#): Add csharpcomp.
120311 2005-06-08  Bruno Haible  <bruno@clisp.org>
120313         * m4/csharpcomp.m4: New file, from GNU gettext.
120315 2005-06-08  Bruno Haible  <bruno@clisp.org>
120317         * lib/csharpcomp.h: New file, from GNU gettext.
120318         * lib/csharpcomp.c: New file, from GNU gettext.
120319         * lib/csharpcomp.sh.in: New file, from GNU gettext.
120321 2005-06-08  Bruno Haible  <bruno@clisp.org>
120323         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
120324         warning on mingw.
120326 2005-06-07  Derek Price  <derek@ximbiot.com>
120328         Sync from CVS.
120329         * lib/glob_.h: Indent nested #ifdef.
120331 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120333         Sync from coreutils.
120334         Use "file name" when talking about file names, instead of "filename"
120335         or "path", as per the GNU coding standards.
120336         * lib/mkdir-p.c: Renamed from makepath.c.
120337         (make_dir_parents): Renamed from make_path.  All callers changed.
120338         * lib/mkdir-p.h: Likewise.  All includers changed.
120339         * lib/filenamecat.c: Renamed from path-concat.c.
120340         (file_name_concat): Renamed from path_concat.  All callers changed.
120341         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
120342         * lib/filenamecat.h: Likewise.  All includers changed.
120343         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
120344         in comments or local variable names.
120345         * lib/basename.c: Likewise.
120346         * lib/canonicalize.c, canonicalize.h: Likewise.
120347         * lib/dirname.c, dirname.h: Likewise.
120348         * lib/euidaccess.c: Likewise.
120349         * lib/exclude.c: Likewise
120350         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
120351         * lib/fsusage.c, fsuage.h: Likewise.
120352         * lib/fts.c, fts_.h: Likewise.
120353         * lib/getcwd.c: Likewise.
120354         * lib/getloadavg.c: Likewise.
120355         * lib/mkstemp.c: Likewise.
120356         * lib/mountlist.c, mountlist.h: Likewise.
120357         * lib/openat.c, openat.h: Likewise.
120358         * lib/readlink-stub.c: Likewise.
120359         * lib/readutmp.c, readutmp.h: Likewise.
120360         * lib/rename.c: Likewise.
120361         * lib/rmdir.c: Likewise.
120362         * lib/same.c: Likewise.
120363         * lib/savedir.c: Likewise.
120364         * lib/stripslash.c: Likewise.
120365         * lib/tempname.c: Likewise.
120366         * lib/xreadlink.c: Likewise.
120367         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
120368         All uses changed.
120369         * lib/exclude.h: Likewise.
120371         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
120372         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120373         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
120374         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120375         * lib/pathmax.h: Include <limits.h> unconditionally, since other
120376         files have been getting away with it for years (MORE/BSD 4.3
120377         is extinct now).
120378         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
120379         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120381         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
120382         Define to 256, not 255, as per modern POSIX.
120384 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120386         Sync from coreutils.
120387         Use "file name" when talking about file names, instead of "filename"
120388         or "path", as per the GNU coding standards.
120389         * MODULES.html.sh: mkdir-p renamed from makepath.
120390         filenamecat renamed from path-concat.
120391         * modules/filenamecat: Renamed from modules/path-concat.
120392         (Files): filenamecat.h and filenamecat.c renamed from
120393         path-concat.h and path-concat.c.
120394         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
120395         (Include): filenamecat.h, not path-concat.h.
120396         * modules/mkdir-p: Renamed from modules/makepath.
120397         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
120398         makepath.c.
120399         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
120400         (Include): mkdir-p.h, not makepath.h.
120402 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120404         Sync from coreutils.
120405         * m4/mkdir-p.m4: Renamed from makepath.m4.
120406         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
120407         Rename files from makepath.c to mkdir-p.c, and from
120408         makepath.h to mkdir-p.h.
120409         * m4/filenamecat.m4: Renamed from path-concat.m4.
120410         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
120411         Rename files from path-concat.c to filenamecat.c,
120412         and from path-concat.h to filenamecat.h.
120413         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
120414         "file name" in local variables or comments.
120415         * m4/rename.m4: Likewise.
120417 2005-06-01  Bruno Haible  <bruno@clisp.org>
120419         * modules/csharpexec: New file.
120420         * MODULES.html.sh (C#): New section.
120422 2005-06-01  Bruno Haible  <bruno@clisp.org>
120424         * m4/csharp.m4: New file, from GNU gettext.
120425         * m4/csharpexec.m4: New file, from GNU gettext.
120427 2005-06-01  Bruno Haible  <bruno@clisp.org>
120429         * lib/csharpexec.h: New file, from GNU gettext.
120430         * lib/csharpexec.c: New file, from GNU gettext.
120431         * lib/csharpexec.sh.in: New file, from GNU gettext.
120433 2005-05-31  Derek Price  <derek@ximbiot.com>
120434             Paul Eggert  <eggert@cs.ucla.edu>
120436         Sync from cvs.
120437         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120439 2005-05-31  Derek Price  <derek@ximbiot.com>
120440             Paul Eggert  <eggert@cs.ucla.edu>
120442         Sync from cvs.
120443         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120445 2005-05-29  Derek Price  <derek@ximbiot.com>
120447         * config/srclist.txt (glob_.h, glob.c): Add these files.
120449 2005-05-29  Derek Price  <derek@ximbiot.com>
120451         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
120452         * modules/glob: New file.
120453         * modules/getlogin_r: Add link to POSIX spec in description.
120455 2005-05-29  Derek Price  <derek@ximbiot.com>
120456             Paul Eggert  <eggert@cs.ucla.edu>
120458         * m4/glob.m4: New file.
120460 2005-05-29  Derek Price  <derek@ximbiot.com>
120461             Paul Eggert  <eggert@cs.ucla.edu>
120463         * lib/glob_.h, lib/glob.c: New files.
120465 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120467         * modules/fts (Files): Remove m4/inttypes-pri.m4.
120468         * modules/fts-lgpl (Depends-on): Remove gettext.
120470 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120472         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
120473         and don't require gt_INTTYPES_PRI.
120475 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120477         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
120479         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
120480         the configuration hassle isn't worth it.
120481         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
120482         (LONGEST_MODIFIER, PRIuMAX): Remove.
120484 2005-05-27  Bruno Haible  <bruno@clisp.org>
120486         * lib/getlogin_r.h: Remove second include of <stddef.h>.
120488 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
120490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
120491         _POSIX_PTHREAD_SEMANTICS for Solaris.
120493 2005-05-25  Derek Price  <derek@ximbiot.com>
120495         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
120497 2005-05-25  Derek Price  <derek@ximbiot.com>
120498             Paul Eggert  <eggert@cs.ucla.edu>
120500         * modules/getlogin_r, m4/getlogin_r.m4: New files.
120501         * lib/getlogin_r.c, getlogin_r.h: New files.
120503 2005-05-25  Bruno Haible  <bruno@clisp.org>
120504             Derek Price  <derek@ximbiot.com>
120506         * lib/getlogin_r.h: Simplify API documentation.
120508 2005-05-23  Derek Price  <derek@ximbiot.com>
120510         * modules/minmax (Files): Add m4/minmax.m4.
120511         (configure.ac): Add gl_MINMAX.
120513 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
120515         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
120516         so that unistd-safer.h (GPL'ed code) need not be included.
120518 2005-05-22  Bruno Haible  <bruno@clisp.org>
120520         * m4/minmax.m4: New file.
120521         Based on a patch by Derek Price <derek@ximbiot.com>.
120523 2005-05-22  Bruno Haible  <bruno@clisp.org>
120525         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
120526         (INT64_MIN): Fix definition.
120527         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
120529         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
120530         NEED_SIGNED_INT_TYPES.
120532         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
120533         HAVE_SYSTEM_INTTYPES.
120535 2005-05-22  Bruno Haible  <bruno@clisp.org>
120537         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
120538         Also include <sys/param.h> if it defines MIN, MAX.
120539         Based on a patch by Derek Price <derek@ximbiot.com>.
120541 2005-05-21  Jim Meyering  <jim@meyering.net>
120543         * modules/fts (Files): Add m4/inttypes-pri.m4.
120544         (Depends-on): Add lstat and remove gettext.  Alphabetize.
120546 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120548         New fts module.
120549         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
120550         (setup_dir, free_dir): New functions.
120551         (enter_dir, leave_dir): Define trivial
120552         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
120553         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
120554         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
120555         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
120556         Move to fts-cycle.c.
120557         (fts_open): Use setup_dir.
120558         (fts_close): Use free_dir.
120559         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
120560         This adds a label and some gotos, but the alternatives were messier.
120561         Check for memory allocation failure when entering a dir.
120562         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
120563         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
120564         (FTS): New member fts_cycle, that is a union that contains the
120565         old active_dir_ht and cycle_state.  All uses changed to mention
120566         fts_cycle.ht and fts_cycle.state.
120567         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
120568         fts.c, with the following changes:
120569         (setup_dir, free_dir): New functions.
120570         (enter_dir): Now returns bool.  Return true if successful, false
120571         if memory exhausted.  All callers changed.
120572         Do not bother partly cleaning up on
120573         memory allocation failure; that is free_dir's job.
120574         However, free ad if hash_insert fails, to avoid memory leak.
120575         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
120576         fts->fts_options to see which union member to use.
120578 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120580         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
120581         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
120583 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120585         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
120587 2005-05-20  Jim Meyering  <jim@meyering.net>
120589         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
120590         Now a macro, to pacify GCC.
120592 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
120594         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
120595         of -1.
120597 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
120599         * lib/chown.c (rpl_chown): Return -1 on failure.
120601 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
120603         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
120604         Don't check for stddef.h.
120605         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
120606         don't use its results.
120607         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
120608         since we include them unconditionally.  Don't require
120609         AM_STDBOOL_H, since stdbool is a prerequisite.
120610         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
120611         since we assume C89 or better.
120612         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
120613         as we don't use their results.
120614         Don't check for fchdir, memmove, memset, strrchr, as we use
120615         them unconditionally.
120616         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
120617         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
120619 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
120621         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
120622         Include <stddef.h> unconditionally, since we assume C89 now.
120623         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
120624         * lib/fts.c: Include fts_.h first, to check interface.
120625         Do not include intprops.h; no longer needed.
120626         Include cycle-check.h and hash.h, since fts_.h no longer does.
120627         Remove unnecessary casts of closedir to void.
120628         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
120629         decide whether to decrement nlinks.
120630         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
120631         (FTS): Use struct hash_table * instead of Hash_table, so that
120632         we no longer need to include hash.h here.
120634 2005-05-18  Jim Meyering  <jim@meyering.net>
120636         * modules/dirfd (License): Change to LGPL.  Most of the code
120637         is already in the public domain.
120639 2005-05-18  Jim Meyering  <jim@meyering.net>
120641         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
120642         Reported by Yoann Vandoorselaere.
120644 2005-05-17  Jim Meyering  <jim@meyering.net>
120646         * m4/fts.m4: New file, from coreutils.
120648 2005-05-17  Jim Meyering  <jim@meyering.net>
120650         * lib/fts.c, lib/fts_.h: New files, from coreutils.
120652 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
120654         Sync from coreutils.
120655         * m4/unlinkdir.m4: New file.
120657 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
120659         Sync from coreutils.
120660         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
120661         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
120662         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
120663         White space changes only.
120664         * lib/makepath.c (make_path): Port to hosts where leading "//" is
120665         special.
120666         * lib/yesno.c: Include getline.h, not ctype.h.
120667         (yesno): Don't remove leading white space; POSIX doesn't allow it.
120668         Use getline to remove arbitrary restriction on response length.
120670 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
120672         * config/srclist-update: Spell out "Street" in FSF postal
120673         mail address; this is the style the FSF seems to prefer.
120675         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
120676         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
120677         this updates FSF postal mail address.
120679         Sync from coreutils.
120680         * modules/unlinkdir: New file.
120681         * modules/yesno (Depends-on): Add getline.
120682         * MODULES.html.sh (File system functions): Add unlinkdir.
120684 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
120686         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
120687         lib/strsep.h:
120688         Change the initial comment to refer to GPL, not LGPL.
120689         gnulib-tool will change it to LGPL as needed.
120691         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
120692         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
120693         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
120694         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
120695         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
120696         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
120697         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
120698         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
120699         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
120700         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
120701         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
120702         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
120703         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
120704         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
120705         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
120706         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
120707         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
120708         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
120709         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
120710         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
120711         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
120712         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
120713         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
120714         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
120715         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
120716         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
120717         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
120718         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
120719         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
120720         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
120721         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
120722         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
120723         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
120724         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
120725         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
120726         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
120727         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
120728         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
120729         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
120730         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
120731         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
120732         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
120733         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
120734         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
120735         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
120736         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
120737         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
120738         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
120739         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
120740         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
120741         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120742         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
120743         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
120744         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
120745         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
120746         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
120747         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
120748         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
120749         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
120750         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
120751         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
120752         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
120753         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
120754         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
120755         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
120756         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
120757         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
120758         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
120759         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
120760         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
120761         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
120762         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
120763         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
120764         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
120765         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
120766         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
120767         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
120768         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
120769         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
120770         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
120771         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
120772         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
120773         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
120774         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
120775         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
120776         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
120777         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
120778         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
120779         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
120780         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
120781         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
120782         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
120783         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
120784         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
120785         lib/yesno.c, lib/yesno.h:
120786         Update FSF postal mail address.
120788 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
120790         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
120791         tests/test-memmem.c, tests/test-stpncpy.c:
120792         Update FSF postal mail address.
120794 2005-05-13  Bruno Haible  <bruno@clisp.org>
120796         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
120797         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
120798         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
120799         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
120800         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
120801         Add support for 64-bit integers in the MSVC compiler.
120803 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120805         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
120807 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
120809         * gnulib-tool (func_import): Sort and uniquify recommended includes.
120811 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
120813         * doc/getdate.texi (General date syntax): Don't say that date
120814         date --iso-8601=ns generates acceptable dates; it doesn't yet.
120815         Problem reported by Nic Ferrier.
120817 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
120819         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
120820         specified in ai_socktype. Fix invalid ai_protocol
120821         check. ai_protocol is usually set to 0 or depending on
120822         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
120823         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
120824         ai_socktype / ai_protocol in the returned addrinfo structure.
120826 2005-05-10  Simon Josefsson  <jas@extundo.com>
120828         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
120829         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
120831 2005-05-10  Karl Berry  <karl@gnu.org>
120833         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
120834         (from http://www.gnu.org/licenses).
120835         * doc/COPYING.LIB: also rename to COPYING.LESSER.
120836         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
120837         fdl.texi suffices.
120839 2005-05-10  Karl Berry  <karl@gnu.org>
120841         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
120842         (COPYING.DOC): remove.
120844         * config/srclist-update: new FSF address.
120846 2005-05-10  Derek Price  <derek@ximbiot.com>
120848         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
120849         possible.
120851 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
120852             Bruno Haible  <bruno@clisp.org>
120854         * modules/inet_ntop: New file.
120855         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120856         inet_ntop.
120858 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
120859             Bruno Haible  <bruno@clisp.org>
120861         * m4/inet_ntop.m4: New file.
120863 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
120864             Bruno Haible  <bruno@clisp.org>
120866         * lib/inet_ntop.h: New file.
120867         * lib/inet_ntop.c: New file, from glibc with modifications.
120869 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
120871         * modules/time_r (License): Change to LGPL.
120872         * modules/extensions (License): Change to LGPL.  Actually,
120873         the license is more permissive than that, but currently gnulib-tool
120874         doesn't know how to handle more-permissive licenses.
120876         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
120877         Problem reported by Dave Love.
120879 2005-05-08  Jim Meyering  <jim@meyering.net>
120881         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
120882         blank.
120884 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
120886         * modules/argmatch (Depends-on): Add stdbool.
120887         * modules/backupfile (Depends-on): Likewise.
120888         * modules/chdir-long (Depends-on): Likewise.
120889         * modules/closeout (Depends-on): Likewise.
120890         * modules/cycle-check (Depends-on): Likewise.
120891         * modules/dirname (Depends-on): Likewise.
120892         * modules/fnmatch (Depends-on): Likewise.
120893         * modules/fsusage (Depends-on): Likewise.
120894         * modules/fwriteerror (Depends-on): Likewise.
120895         * modules/getcwd (Depends-on): Likewise.
120896         * modules/getloadavg (Depends-on): Likewise.
120897         * modules/hard-locale (Depends-on): Likewise.
120898         * modules/makepath (Depends-on): Likewise.
120899         * modules/mountlist (Depends-on): Likewise.
120900         * modules/nanosleep (Depends-on): Likewise.
120901         * modules/posixtm (Depends-on): Likewise.
120902         * modules/quotearg (Depends-on): Likewise.
120903         * modules/readtokens (Depends-on): Likewise.
120904         * modules/readtokens0 (Depends-on): Likewise.
120905         * modules/readutmp (Depends-on): Likewise.
120906         * modules/save-cwd (Depends-on): Likewise.
120907         * modules/strftime (Depends-on): Likewise.
120908         * modules/userspec (Depends-on): Likewise.
120909         * modules/utimecmp (Depends-on): Likewise.
120910         * modules/xgetcwd (Depends-on): Likewise.
120911         * modules/xnanosleep (Depends-on): Likewise.
120912         * modules/xstrtod (Depends-on): Likewise.
120913         * modules/yesno (Depends-on): Likewise.
120915 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
120917         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
120918         needless checks.
120920 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
120922         Merge from coreutils.  Among other things,
120923         add bulletproofing for cases where stdin, stdout, or stderr are closed.
120924         * lib/fd-safer.c: New file.
120925         * lib/fcntl-safer.h, open-safer.c: Remove.
120926         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
120927         * lib/dup-safer.c: Include unistd-safer.h first.
120928         Don't include errno.h.
120929         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
120930         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
120931         * lib/file-type.c: Rely on file-type.h change.
120932         * lib/getloadavg.c: Include unistd-safer.h.
120933         (getloadavg): Use safer open.
120934         * lib/getusershell.c: Include "stdio-safer.h".
120935         (getusershell): Use safer fopen.
120936         * lib/long-options.c (long_options): Use NULL rather than 0.
120937         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
120938         'free'.
120939         * lib/modechange.c: Likewise.
120940         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
120941         (MODE_DONE): New constant.
120942         (struct mode_change): Remove 'next' member.
120943         (make_node_op_equals): New function; like the old one of the
120944         same name, except it allocates an array.
120945         (mode_compile, mode_create_from_ref): Use it.
120946         (mode_compile): Allocate result as an array, not a linked list.
120947         Parse octal string ourself, so that we catch mistakes like "+0".
120948         (mode_adjust): Arg is an array, not a linked list.
120949         * lib/modechange.c: Include stat-macros.h, xalloc.h.
120950         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
120951         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
120952         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
120953         Remove.  This is now stat-macros.h's job.
120954         (talloc): Remove.  All callers replaced by xalloc, so that
120955         our invokers don't have to worry about reporting memory failures.
120956         (make_node_op_equals): Remove.
120957         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
120958         New constants.
120959         (struct mode_change): Moved here from modechange.h.
120960         (mode_append_entry): Remove.
120961         (mode_compile): Remove MASKED_OPS arg, since it encouraged
120962         apps to have incorrect behavior.  Use simpler algorithm for head
120963         and tail.  Don't futz with umask; that's now the job of mode_adjust.
120964         Detect more invalid usages rather than having somewhat-random behavior.
120965         Don't insert an "a=" action, as that leads to incorrect behavior.
120966         (mode_compile, mode_create_from_ref): Return NULL on error instead
120967         of an enum, since now there's only one way to have an error.  All
120968         callers changed.
120969         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
120970         at the correct time.  Simplify calculation of "+u" and its ilk.
120971         Don't mishandle "+X".
120972         (mode_free): Remove "register" and localize decls.
120973         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
120974         (struct mode_change): Move to modechange.c; callers don't
120975         need to see this stuff.
120976         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
120977         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
120978         (mode_change, mode_adjust): Reflect the new signatures noted above.
120979         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
120980         that might redefine system include files.
120981         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
120982         (my_usleep): Use NULL rather than (void *) 0.
120983         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
120984         Use siginterrupt to specify that system calls should be interrupted.
120985         (rpl_nanosleep): Move initialization of suspended closer to call of
120986         my_usleep.
120987         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
120988         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
120989         (desirable_utmp_entry): New function.
120990         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
120991         using x2nrealloc, to simplify logic.
120992         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
120993         size calculation.  Do not assume utmp file is a regular file.
120994         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
120995         (READ_UTMP_CHECK_PIDS): New constant.
120996         * lib/save-cwd.c: Include unistd-safer.h.
120997         (save_cwd): Use fd_safer.
120998         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
120999         [!_LIBC] Include "stat-macros.h" instead.
121000         * lib/unistd-safer.h (fd_safer): New decl.
121002 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121004         * modules/getloadavg (Depends-on): Add unistd-safer.
121005         * modules/getusershell (Depends-on): Add stdio-safer.
121006         * modules/lstat (Depends-on): Remove xalloc.
121007         * modules/mkstemp (Depends-on): Add stat-macros.
121008         * modules/modechange (Depends-on): Remove xstrtol.
121009         Add stat-macros, xalloc.
121010         * modules/save-cwd (Depends-on): Add unistd-safer.
121011         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
121012         * modules/unistd-safer (Files): Add lib/fd-safer.c
121013         (Makefile.am): Remove lib_SOURCES.
121015         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
121016         Remove fcntl-safer; unistd-safer supersedes it.
121018 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121020         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
121021         AC_HEADER_STAT.
121022         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
121023         (gl_PREREQ_CHOWN): Remove.
121024         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
121025         it.  Don't require AC_HEADER_STAT.
121026         (gl_PREREQ_LSTAT): Remove.
121027         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
121028         Don't require AC_HEADER_STAT.
121029         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
121030         (gl_PREREQ_RMDIR): Remove.
121031         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
121032         mention stat-macros.h or AC_HEADER_STAT, since we'll make
121033         the stat-macros module a prerequisite.
121034         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
121035         * m4/filemode.m4 (gl_FILEMODE): Likewise.
121036         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
121037         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
121038         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
121039         variable names.
121040         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
121041         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
121042         variable prefixes.
121043         * m4/fcntl-safer.m4: Remove.
121044         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
121045         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
121046         Invoke gl_PREREQ_FD_SAFER.
121047         (gl_PREREQ_FD_SAFER): New macro.
121048         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
121049         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
121050         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
121051         Remove duplicate call to AC_LIBOBJ(readutmp).
121052         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
121054         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
121055         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
121057 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121059         * MODULES.html.sh (Misc): Add byteswap.
121061 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121063         * modules/getcwd (Depends-on): Add extensions.
121064         * modules/openat (Depends-on): Likewise.
121066 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121068         * modules/byteswap: New file.
121070 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121072         * m4/byteswap.m4: New file.
121074 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121076         * lib/byteswap_.h: New file.
121078 2005-04-25  Karl Berry  <karl@gnu.org>
121080         * m4/gettext.m4: Update from GNU gettext 0.14.4.
121082 2005-04-25  Albert Chin  <china@thewrittenword.com>
121084         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
121085         Toolkit C bug.
121087 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
121089         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
121090         (func_ln_if_changed): Remove forcibly for no error message
121091         in case file does not exist.
121093 2005-04-19  Simon Josefsson  <jas@extundo.com>
121095         * gnulib-tool (Options): Make --symlink mean --symbolic.
121097 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
121099         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
121101 2005-04-16  Simon Josefsson  <jas@extundo.com>
121103         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
121105 2005-04-15  Simon Josefsson  <jas@extundo.com>
121107         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
121109 2005-04-15  Simon Josefsson  <jas@extundo.com>
121111         * gnulib-tool: Rename --symlink to --symbolic.
121113 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
121115         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
121116         symbolic links to files instead of copying/moving.  Add --aux-dir,
121117         specifying directory relative --dir where auxiliary build tools
121118         are placed.
121120 2005-04-14  Bruno Haible  <bruno@clisp.org>
121122         * modules/allocsa (License): Change to LGPL.
121123         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
121125 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
121127         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
121128         that "UTC +1 second" continues to work.  Problem reported
121129         by Dmitry V. Levin.
121130         (relunit_snumber): New rule.
121131         (relunit): Use it.
121133 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
121135         * lib/getdate.y (universal_time_zone_table): New constant.
121136         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
121137         universal_time_zone_table.
121138         (lookup_zone): Prefer universal_time_zone_table to
121139         local_time_zone_table, so that "GMT" time stamps are allowed in
121140         London during the summer.  Problem reported by Ian Abbott.
121142 2005-04-12  Jim Meyering  <jim@meyering.net>
121144         * lib/human.c (humblock): Set *options even when returning due to
121145         xstrtoumax conversion failure.  Thanks to a used-uninitialized
121146         warning from gcc-4.
121148 2005-04-09  Jim Meyering  <jim@meyering.net>
121150         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
121151         -Wuninitialized: initialize tm0.tm_year.
121153 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
121155         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
121156         count, since there's no maximum.  All uses changed.
121157         Add member dsts_seen.
121158         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
121159         not being INT_MAX.
121160         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
121161         Use pc_rels_seen to decide whether a date is absolute.
121163         * lib/getdate.y (number): Don't overwrite year.
121164         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
121165         check.
121167 2005-04-02  Simon Josefsson  <jas@extundo.com>
121169         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
121170         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
121172 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
121174         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
121175         where no absolute path name can be longer than PATH_MAX.
121177 2005-03-27  Jim Meyering  <jim@meyering.net>
121179         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
121181 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
121183         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
121184         "one's complement" -> "ones' complement" in comment, as per Knuth.
121185         "value of type" -> "type or expression" in comment.
121186         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
121188 2005-03-26  Jim Meyering  <jim@meyering.net>
121190         Comment nits.
121191         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
121192         Correct typos: s/or/of/.
121194 2005-03-26  Jim Meyering  <jim@meyering.net>
121196         * modules/check-include-files: Move to ../ and rename to...
121197         * check-module: ...this.
121199 2005-03-25  Jim Meyering  <jim@meyering.net>
121201         * modules/xvasprintf (Files): Add xalloc.h.
121203 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
121205         * modules/gettext (Files): config/config.rpath ->
121206         build-aux/config.rpath
121207         * modules/iconv (Files): Likewise.
121208         Problem reported by Oskar Liljeblad.
121210 2005-03-23  Jim Meyering  <jim@meyering.net>
121212         * modules/check-include-files: New script to check for
121213         missing dependencies, multiple includes, etc.
121215         * modules/c-strtold (Depends-on): Add xalloc.
121216         * modules/c-strtod (Depends-on): Add xalloc.
121217         * modules/hash (Depends-on): Add xalloc.
121218         (Files): Remove lib/xalloc.h.
121220         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
121221         * modules/userspec (Files): Add lib/inttostr.h.
121223 2005-03-23  Jim Meyering  <jim@meyering.net>
121225         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
121227 2005-03-22  Jim Meyering  <jim@meyering.net>
121229         * modules/stat-macros: New module.
121230         * modules/canonicalize, modules/euidaccess, modules/file-type,
121231         * modules/filemode, modules/lchown, modules/makepath,
121232         * modules/rmdir, modules/stat: Depend on new stat-macros module
121233         rather than listing lib/stat-macros.h manually.
121234         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
121236 2005-03-22  Jim Meyering  <jim@meyering.net>
121238         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
121240 2005-03-22  Bruno Haible  <bruno@clisp.org>
121242         * config/srclist.txt: Replace target directory 'config' with
121243         'build-aux'.
121244         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
121245         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
121246         ../build-aux/.
121248 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
121250         * modules/chdir-long (Depends-on): Add mempcpy.
121252         * modules/acl, modules/backupfile, modules/c-strtod,
121253         modules/c-strtold, modules/canon-host, modules/canonicalize,
121254         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
121255         modules/exclude, modules/exitfail, modules/file-type,
121256         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
121257         modules/getdate, modules/getline, modules/getpagesize,
121258         modules/getpass, modules/getugroups, modules/group-member,
121259         modules/hard-locale, modules/hash, modules/human, modules/idcache,
121260         modules/inttostr, modules/long-options, modules/makepath,
121261         modules/md5, modules/memcasecmp, modules/memcoll,
121262         modules/modechange, modules/mountlist, modules/path-concat,
121263         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
121264         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
121265         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
121266         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
121267         modules/strftime, modules/strndup, modules/strverscmp,
121268         modules/timespec, modules/unlocked-io, modules/userspec,
121269         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
121270         modules/yesno:
121271         Remove lib_SOURCES line from Makefile.am section, as this is now
121272         done automatically by the corresponding Autoconf macro.
121274 2005-03-21  Jim Meyering  <jim@meyering.net>
121276         Changes imported from coreutils.
121278         * lib/cycle-check.c: Don't include xalloc.h.
121280         * lib/path-concat.c: Don't include assert.h.
121281         (path_concat): Remove assertion that would have triggered
121282         for ABASE starting with more than one slash.
121283         Reported by Andreas Schwab.
121285         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
121286         properly when ABASE is an absolute file name.
121287         Correct the description of this function.
121288         Include <assert.h>.
121289         Add an assertion and a test driver.
121290         This fixes a bug introduced on 2004-07-02.
121291         Andreas Schwab reported the resulting failure of cp --parents:
121292         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
121294 2005-03-21  Jim Meyering  <jim@meyering.net>
121296         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
121297         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
121299 2005-03-21  Jim Meyering  <jim@meyering.net>
121300         and  Paul Eggert  <eggert@cs.ucla.edu>
121302         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
121303         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
121304         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
121305         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
121306         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
121307         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
121308         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
121309         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
121310         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
121311         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
121312         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
121313         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
121314         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
121315         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
121316         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
121317         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
121318         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
121319         for these modules.
121321 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
121323         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
121324         (which shouldn't happen), generate nothing instead of returning 0
121325         immediately, so that nstrftime (NULL, ...) doesn't return 0.
121327 2005-03-16  Bruno Haible  <bruno@clisp.org>
121329         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
121330         HAVE_LONGLONG_64BIT.
121332 2005-03-16  Bruno Haible  <bruno@clisp.org>
121334         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
121335         HAVE_LONGLONG_64BIT.
121337 2005-03-16  Bruno Haible  <bruno@clisp.org>
121339         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
121340         HAVE_LONGLONG_64BIT.
121342 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
121344         * lib/strftime.c (my_strftime): Prepend space to format so that we can
121345         reliably distinguish strftime failure from empty output on POSIX
121346         hosts.
121348 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
121350         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
121351         (iconv_string): Don't guess a size-zero buffer, as that might cause
121352         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
121353         result would be 'too large', where 'too large' is (heuristically)
121354         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
121355         overflow concerns.  This will prevent some unwanted malloc failures
121356         when the inputs are very large.
121358 2005-03-15  Karl Berry  <karl@gnu.org>
121360         * config/srclist.txt (config.rpath): from gettext.
121361         * config/config.rpath: update.
121363 2005-03-15  Bruno Haible  <bruno@clisp.org>
121365         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
121366         to 'negate'.
121368         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
121369         variable.
121371         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
121372         results.
121374 2005-03-14  Simon Josefsson  <jas@extundo.com>
121376         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
121377         <fx@gnu.org>.
121379 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
121381         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
121382         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
121383         intprops.h.
121384         * lib/strtol.c: Likewise.
121386 2005-03-14  Jim Meyering  <jim@meyering.net>
121388         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
121389         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
121390         to be nonzero so that we (and caller) can detect the difference
121391         between a valid zero-length expansion and an error return, even
121392         when the underlying strftime fails before writing anything into
121393         that location.
121395 2005-03-14  Bruno Haible  <bruno@clisp.org>
121397         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
121398         Update from GNU gettext 0.14.3.
121400 2005-03-10  Jim Meyering  <jim@meyering.net>
121402         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
121404 2005-03-10  Jim Meyering  <jim@meyering.net>
121406         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
121407         so that this module works on systems without fchdir.
121409 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
121411         Factor int-properties macros into a single file, except for
121412         glibc-related files.
121413         * lib/intprops.h: New file.
121414         * lib/getloadavg.c: Include it instead of limits.h.
121415         (INT_STRLEN_BOUND): Remove.
121416         * lib/human.c: Include intprops.h.
121417         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
121418         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
121419         302/1000.
121420         * lib/inttostr.h: Include intprops.h instead of limits.h.
121421         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
121422         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
121423         for consistency with intprops.h.
121424         (time_t_is_integer, twos_complement_arithmetic): Use them.
121425         * lib/sig2str.h: Include <signal.h>, intprops.h.
121426         (INT_STRLEN_BOUND): Remove.
121427         * lib/strftime.c (TYPE_SIGNED): Remove.
121428         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
121429         * lib/strtol.c: Adjust comments to match intprops.h.
121430         * lib/userspec.c: Include intprops.h.
121431         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
121432         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
121433         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
121434         instead of rolling our own expressions.
121435         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
121437         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
121438         instead of int.
121439         (my_strftime): Do not mishandle years close to INT_MAX, by doing
121440         the right thing even if adding 1900 would overflow.  Similarly
121441         for tm_mon + 1 and tm_yday + 1.
121442         Make %Y always equivalent to %C%y, and similarly for %G and %g.
121443         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
121444         (DO_SIGNED_NUMBER): New macro.
121445         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
121447 2005-03-07  Bruno Haible  <bruno@clisp.org>
121449         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
121451 2005-03-07  Bruno Haible  <bruno@clisp.org>
121453         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
121455 2005-03-04  Derek R. Price  <derek@ximbiot.com>
121457         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
121458         (func_import): Only replace files via --import when they have actually
121459         changed.
121461 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121463         * m4/mmap-anon.m4: New file.
121464         * m4/pagealign_alloc.m4: New file.
121466 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121467             Bruno Haible  <bruno@clisp.org>
121469         * modules/pagealign_alloc: New file.
121470         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
121472 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121473             Bruno Haible  <bruno@clisp.org>
121475         * lib/pagealign_alloc.h: New file.
121476         * lib/pagealign_alloc.c: New file.
121478 2005-03-03  Bruno Haible  <bruno@clisp.org>
121480         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
121481         Use an all-permissive copyright notice, recommended by RMS.
121483 2005-03-02  Bruno Haible  <bruno@clisp.org>
121485         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
121486         of AIX, the replacement has to be done only after <string.h> is
121487         included, therefore not in config.h. stpncpy.h does the replacement,
121488         and stpncpy.c uses it.
121490 2005-03-02  Bruno Haible  <bruno@clisp.org>
121492         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
121493         stpncpy.c uses it.
121495 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121497         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
121498         The workaround isn't strictly needed for POSIX conformance, and
121499         it's too much of a pain to configure and maintain.  We'll ask
121500         people to fix their kernels instead.
121501         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
121502         (NANOSLEEP_BUG_WORKAROUND): Remove.
121503         (xnanosleep): Remove the workaround.
121505 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121507         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
121508         Reported by Derek Price.
121509         (Include): Add "timespec.h".
121511         * modules/xnanosleep (Depends-on): Remove gethrxtime.
121513 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121515         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
121516         to detect nanosleep bug.
121518 2005-03-01  Bruno Haible  <bruno@clisp.org>
121520         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
121522 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
121524         * modules/gethrxtime: New file.
121525         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
121526         (Depends-on): Add gethrxtime.
121527         (configure.ac): Add gl_XNANOSLEEP.
121528         (Makefile.am): Remove lib_SOURCES line.
121530 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121532         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
121533         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
121535 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121537         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
121538         * lib/timespec.h (gettime): Return void, since it always
121539         succeeds now.  All uses changed.
121540         * lib/gettime.c (gettime): Likewise.
121541         [HAVE_NANOTIME]: Prefer nanotime.
121542         Assume gettimeofday succeeds, as POSIX requires.
121543         Assime time () succeeds, since other code already does.
121544         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
121545         (timespec_subtract): Remove.
121546         (NANOSLEEP_BUG_WORKAROUND): New constant.
121547         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
121548         things considerably.  Use it only on GNU/Linux hosts, since the
121549         workaround shouldn't be needed elsewhere.
121551 2005-02-24  Bruno Haible  <bruno@clisp.org>
121553         * modules/gettext (Files): Add m4/glibc2.m4.
121555 2005-02-24  Bruno Haible  <bruno@clisp.org>
121557         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
121558         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
121559         * m4/progtest.m4:
121560         Update from GNU gettext 0.14.2.
121561         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
121563 2005-02-24  Bruno Haible  <bruno@clisp.org>
121565         * lib/localcharset.c: Update from GNU gettext 0.14.2.
121566         * lib/config.charset: Update from GNU gettext 0.14.2.
121568 2005-02-24  Bruno Haible  <bruno@clisp.org>
121570         * lib/gettext.h: Update from GNU gettext 0.14.2.
121572 2005-02-23  Simon Josefsson  <jas@extundo.com>
121574         * m4/iconvme.m4: New file.
121576 2005-02-23  Jim Meyering  <jim@meyering.net>
121578         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
121579         change.
121580         Thanks to Bruno Haible for catching it.
121582 2005-02-22  Simon Josefsson  <jas@extundo.com>
121584         * modules/iconvme: New file.
121586         * MODULES.html.sh: Add iconvme.
121588 2005-02-22  Simon Josefsson  <jas@extundo.com>
121590         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
121592 2005-02-22  Simon Josefsson  <jas@extundo.com>
121594         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
121596 2005-02-22  Jim Meyering  <jim@meyering.net>
121598         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
121599         s/ifndef/ifdef/.
121601 2005-02-20  Neil Conway  <neilc@samurai.com>
121603         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
121604         returned by OSX/Darwin if the specified buffer is not large
121605         enough for the hostname.
121607 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121609         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
121610         pass it to _help, otherwise the latter coredumps trying to
121611         dereference state.root_argp.
121613 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121615         * modules/chdir-long (Depends-on): Add memrchr.
121616         * modules/memrchr (Files): Add lib/memrchr.h.
121617         (Include): "memrchr.h".
121619 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121621         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
121623 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121625         * lib/memrchr.h: New file.
121626         * lib/chdir-long.c: Include it.
121627         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
121628         Don't bother including stddef.h.
121630 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
121632         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
121633         inclusion.
121634         Include <sys/types.h>, for dev_t.
121635         (ME_DUMMY, ME_REMOTE): Move from here....
121636         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
121637         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
121638         Dmitry V. Levin.
121639         Include mountlist.h first, to test the interface.
121641 2005-01-29  Bruno Haible  <bruno@clisp.org>
121643         * lib/progname.c (program_name): Initialize.
121644         Needed when linking statically on MacOS X.
121646 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
121648         Sync from coreutils.
121649         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
121650         (Depends-on): Add c-strtod.
121651         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
121653 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
121655         Sync from coreutils.
121656         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
121658         Remove files that are specific to coreutils.
121659         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
121661 2005-01-28  Bruno Haible  <bruno@clisp.org>
121663         * modules/javacomp: New file.
121664         * MODULES.html.sh (Java): Add javacomp.
121666 2005-01-28  Bruno Haible  <bruno@clisp.org>
121668         * m4/javacomp.m4: New file, from GNU gettext.
121670 2005-01-28  Bruno Haible  <bruno@clisp.org>
121672         * lib/javacomp.sh.in: New file, from GNU gettext.
121673         * lib/javacomp.h: New file, from GNU gettext.
121674         * lib/javacomp.c: New file, from GNU gettext.
121676 2005-01-26  Simon Josefsson  <jas@extundo.com>
121678         * lib/gai_strerror.c: Use GPL in header.
121680 2005-01-26  Bruno Haible  <bruno@clisp.org>
121682         * modules/javaexec: New file.
121683         * MODULES.html.sh (Java): Add javaexec.
121685 2005-01-26  Bruno Haible  <bruno@clisp.org>
121687         * m4/javaexec.m4: New file, from GNU gettext.
121689 2005-01-26  Bruno Haible  <bruno@clisp.org>
121691         * lib/javaexec.sh.in: New file, from GNU gettext.
121692         * lib/javaexec.h: New file, from GNU gettext.
121693         * lib/javaexec.c: New file, from GNU gettext.
121695 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121697         * modules/lchown (Depends-on): Remove lchown.h
121699 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121701         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
121702         must be defined if the header file was not found, in order
121703         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
121705 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121707         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
121708         initializers for struct pentry_state.
121709         (__argp_error): Check return value of __asprintf
121710         (__argp_failure): Translate error message
121712         * lib/argp-parse.c: Removed braces around the expansion of N_()
121714 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
121716         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
121717         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
121718         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
121719         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
121720         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
121721         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
121722         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
121723         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
121724         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
121725         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
121726         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
121727         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
121728         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
121729         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
121730         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
121731         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
121732         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
121733         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
121734         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
121735         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
121736         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
121737         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
121738         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
121739         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
121740         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
121741         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
121742         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
121743         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
121744         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
121745         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
121746         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
121747         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
121748         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
121749         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
121750         xstrtol.m4, xstrtoumax.m4, yesno.m4:
121751         Use an all-permissive copyright notice, recommended by RMS.
121753 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
121755         * modules/chdir-long (Depends-on): Remove mempcpy.
121757 2005-01-21  Jim Meyering  <jim@meyering.net>
121759         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
121760         same value as for Solaris 9.
121762         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
121763         component length.  This included changing the parameter to be
121764         of type `char *' rather than `char const *'.
121765         * lib/chdir-long.h (chdir_long): Update prototype.
121767         * lib/openat.c (fdopendir, fstatat): New functions.
121768         * lib/openat.h: Include headers required for use of DIR and struct
121769         stat.
121770         [AT_SYMLINK_NOFOLLOW]: Define.
121771         (fdopendir, fstatat): Add prototypes.
121773 2005-01-21  Bruno Haible  <bruno@clisp.org>
121775         * modules/classpath: New file.
121776         * MODULES.html.sh (Java): Add classpath.
121778 2005-01-21  Bruno Haible  <bruno@clisp.org>
121780         * lib/classpath.h: New file, from GNU gettext.
121781         * lib/classpath.c: New file, from GNU gettext.
121783 2005-01-20  Simon Josefsson  <jas@extundo.com>
121785         * modules/version-etc-fsf: New file.
121787 2005-01-20  Simon Josefsson  <jas@extundo.com>
121789         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
121790         * lib/version-etc.c: Remove version_etc_copyright.
121791         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
121792         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
121794 2005-01-20  Simon Josefsson  <jas@extundo.com>
121796         * lib/base64.h (isbase64): Add.
121798         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
121799         using a unsigned prototype, don't inline.
121800         (base64_decode): Use it.
121802 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
121804         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
121805         it.
121807 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
121809         * lib/save-cwd.c (save_cwd): Remove code to support the case
121810         where fchdir is missing or flaky.
121812 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
121814         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
121816 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
121818         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
121819         AC_LIBSOURCES now does this.
121820         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
121821         with new ullong_max module.
121823 2005-01-19  Bruno Haible  <bruno@clisp.org>
121825         * modules/sh-quote: New file.
121826         * MODULES.html.sh (Executing programs): Add sh-quote.
121828 2005-01-19  Bruno Haible  <bruno@clisp.org>
121830         * lib/sh-quote.h: New file, from GNU gettext.
121831         * lib/sh-quote.c: New file, from GNU gettext.
121833 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
121835         Merge from coreutils.
121836         * m4/ullong_max.m4: New file.
121837         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
121838         (gl_MACROS): Assume localeconv exists.
121840 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
121842         Merge changes from coreutils, as described below in several
121843         changelogs dated today.
121845         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
121846         (O_DIRECTORY): Remove; not needed here, since "." must be
121847         a directory.  All uses removed.
121848         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
121849         universal on Suns, and we also need to test for IRIX.
121850         Revamp code to use 'if' rather than '#if'.
121851         Avoid unnecessary comparison of cwd->desc to 0.
121853         * lib/utimens.c (futimens): Robustify the previous patch, by checking
121854         for known valid error numbers rather than observed invalid ones.
121856 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
121858         * modules/ullong_max: New file.
121860         * modules/chdir-long, modules/openat: New files.
121861         * modules/save-cwd (Depends-on): Depend on chdir-long.
121862         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
121864 2005-01-18  Jim Meyering  <jim@meyering.net>
121866         Merge from coreutils.
121867         * m4/chdir-long.m4, m4/openat.m4: New files.
121868         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
121869         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
121870         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
121871         is sane and DOES follow symlinks.  Besides, testing 20 different
121872         systems found no broken chown implementations.
121873         Prompted by a change in rsync's copy of this macro.
121874         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
121876         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
121878         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
121879         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
121880         NULL-means-set-to-current-time semantics.
121881         Remove temporary file immediately, rather than waiting
121882         for configure's at-exit trap code to do it.
121884 2005-01-18  Jim Meyering  <jim@meyering.net>
121886         * lib/version-etc.c (version_etc_copyright): Update copyright date.
121888         * lib/utimens.c (futimens): Account for the fact that futimes
121889         can also fail with errno == ENOSYS or errno == ENOENT.
121890         Patch from Dmitry V. Levin.
121892         Change the name of the robust chdir function from chdir to chdir_long.
121893         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
121894         (restore_cwd): Use chdir_long, not chdir.
121895         * lib/chdir-long.c: Renamed from chdir.c.
121896         * lib/chdir-long.h: Renamed from chdir.h.
121897         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
121898         Hurd.
121900 2005-01-18  Bruno Haible  <bruno@clisp.org>
121902         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
121903         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
121904         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
121905         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
121906         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
121907         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
121908         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
121909         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
121910         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
121911         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
121912         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
121913         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
121914         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
121915         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
121916         Use an all-permissive copyright notice, recommended by RMS.
121918 2005-01-18  Bob Proulx  <bob@proulx.com>
121920         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
121921         simplify offsetof() macro construct to avoid compile failure with
121922         native HP-UX 11.0 ANSI C compiler.
121924 2005-01-17  Bruno Haible  <bruno@clisp.org>
121926         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
121927         redundant because stpncpy.m4 takes care of it.
121929 2005-01-17  Bruno Haible  <bruno@clisp.org>
121931         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
121933 2005-01-17  Bruno Haible  <bruno@clisp.org>
121935         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
121936         used.
121938 2005-01-17  Bruno Haible  <bruno@clisp.org>
121940         * lib/fwriteerror.h (fwriteerror): Change specification to include
121941         fclose.
121942         * lib/fwriteerror.c: Include <stdbool.h>.
121943         (fwriteerror): At the end, close the file stream. Record whether
121944         stdout was already closed.
121946 2005-01-17  Bruno Haible  <bruno@clisp.org>
121948         * lib/execute.c (environ): Declare if needed.
121949         * lib/pipe.c (environ): Likewise.
121950         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
121952 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121954         * modules/argp: Depend on vsnprintf
121956 2005-01-10  Jim Meyering  <jim@meyering.net>
121958         * modules/closeout (Depends-on): Add atexit.
121960 2005-01-06  Bruno Haible  <bruno@clisp.org>
121962         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
121964 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
121966         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
121967         definitions to be after all include files, to avoid collisions.
121968         Problem reported by Bob Proulx.
121970 2005-01-04  Jim Meyering  <jim@meyering.net>
121972         Changes imported from coreutils.
121973         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
121974         as the mkstemp template, use a temporary directory and an
121975         8.3-friendly template to avoid trouble on systems like DJGPP.
121976         Reported by Juan M. Guerrero via Stepan Kasal.
121977         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
121978         close. Remove the temporary directory right away, rather than waiting
121979         for configure's at-exit trap code to do it.
121980         Suggestion from Stepan Kasal.
121982 2005-01-01  Simon Josefsson  <jas@extundo.com>
121984         * gnulib-tool: Print #include directives when --import'ing.
121986 2004-12-28  Simon Josefsson  <jas@extundo.com>
121988         * tests/test-base64.c: Include required header files.  Remove
121989         unused variables.
121991 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
121993         * modules/error (Depends-on): Remove gettext.
121995 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
121997         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
121998         not needed.  This removes a dependency on the gettext module.
121999         [defined _LIBC]: Do not include <libintl.h>; not needed.
122001 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122003         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
122004         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
122006 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122008         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
122009         HAVE_DECL_STRTOLD.
122011 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122013         * modules/getdate (Depends-on): Remove alloca-opt.
122015 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122017         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
122019 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122021         * lib/argp-parse.c: Include <stddef.h>.
122022         (alignof, alignto): New macros.
122023         (parser_init): Don't assume that void * is aligned sufficiently
122024         for struct option.
122026         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
122027         need to extend the stack.
122028         (YYINITDEPTH): New macro, so that the initial stack isn't overly
122029         large.
122031 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122033         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
122035 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122037         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
122038         (2004-10-24) change.  Apparently this was a false alarm.
122040         * modules/getdate: Depend on alloca-opt, not alloca.
122042 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122044         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
122045         Remove now-obsolete comment about AIX.
122046         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
122047         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
122048         (YYMAXDEPTH): New macro.
122050 2004-12-18  Simon Josefsson  <jas@extundo.com>
122052         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
122054 2004-12-18  Bruno Haible  <bruno@clisp.org>
122056         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
122058 2004-12-18  Bruno Haible  <bruno@clisp.org>
122060         * lib/fatal-signal.c (fatal_signals): Make non-const.
122061         (init_fatal_signals): New function.
122062         (uninstall_handlers, install_handlers): Ignore signals that were set to
122063         SIG_IGN.
122064         (at_fatal_signal): Call init_fatal_signals.
122065         (init_fatal_signal_set): Likewise. Ignore signals that were set to
122066         SIG_IGN.
122067         Reported by Paul Eggert.
122069 2004-12-18  Bruno Haible  <bruno@clisp.org>
122071         * doc/alloca.texi: New file.
122072         * doc/alloca-opt.texi: New file.
122074 2004-12-17  Jim Meyering  <jim@meyering.net>
122076         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
122077         Otherwise, install-sh could exit with improper exit status when
122078         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
122080 2004-12-16  Simon Josefsson  <jas@extundo.com>
122082         * tests/test-base64.c: Add license.
122084 2004-12-15  Stepan Kasal  <address@hidden>
122086         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
122088 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
122090         * modules/getcwd (Files): Add m4/d-ino.m4.
122091         Suggested by Mark D. Baushke.
122093 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122095         * lib/getdate.y (textint): New member "negative".
122096         (time_zone_hhmm): New function.
122097         Expect 14 shift-reduce conflicts, not 13.
122098         (o_colon_minutes): New rule.
122099         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
122100         (yylex): Set the "negative" member of signed numbers.
122102 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122104         * doc/getdate.texi (Time of day items, Time zone items):
122105         Describe new formats +00:00, UTC+00:00.
122107 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
122109         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
122110         spurious "-l"s.  Problem reported by Stepan Kasal.
122112 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
122114         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
122115         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
122117 2004-12-04  Simon Josefsson  <jas@extundo.com>
122119         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
122120         Vandoorselaere <yoann@prelude-ids.org>.
122122 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122124         Changes imported from coreutils.
122125         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
122126         exist.
122127         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
122129 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122131         Changes imported from coreutils.
122132         * lib/hard-locale.c: Assume <locale.h> exists.
122133         Include "strdup.h".
122134         (GLIBC_VERSION): New macro.
122135         (hard_locale): Assume setlocale exists.
122136         Rewrite to avoid #ifdef.
122137         Use strdup rather than malloc + strcpy.
122138         * lib/human.c: Assume <locale.h> exists.
122139         (human_readable): Assume localeconv exists.
122141 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122143         * modules/hard-locale (Depends-on): Add strdup.
122145 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
122147         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
122148         convert T2, not T.  (Imported from libc.)
122150 2004-11-30  Simon Josefsson  <jas@extundo.com>
122152         * modules/restrict (License): Change to LGPL.
122154 2004-11-30  Simon Josefsson  <jas@extundo.com>
122156         * m4/restrict.m4: Add copyright and copying conditions.
122158 2004-11-30  Simon Josefsson  <jas@extundo.com>
122160         * m4/base64.m4: New file.
122162 2004-11-30  Simon Josefsson  <jas@extundo.com>
122164         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
122165         base64.
122167         * tests/test-base64.c: New file.
122169         * modules/base64: New file.
122171 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122173         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
122174         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
122176         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
122178 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122180         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
122181         (__getcwd.c): Don't restore errno; glibc doesn't.
122182         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
122183         first, falling back to our code only if its results look suspicious.
122184         Ensure that the resulting buffer is only as large as necessary.
122186         * lib/readutmp.c: Include readutmp.h first.
122187         Include <errno.h>, since readutmp.h no longer does that.
122188         * lib/readutmp.h: Don't include <errno.h>,
122189         <sys/param.h>, <time.h>; not needed to establish interface.
122190         (errno): Remove decl.
122191         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
122192         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
122193         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
122195 2004-11-28  Simon Josefsson  <jas@extundo.com>
122197         * lib/base64.h, base64.c: New file.
122199 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
122201         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
122203 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
122205         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
122206         (Depends-on): Remove pathmax, same.  Add mempcpy.
122207         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
122208         (Makefile.am): Append getcwd.h to lib_SOURCES.
122209         (Include): Add getcwd.h.
122210         (Maintainer): Change from Jim Meyering to "all, glibc",
122211         since getdate now uses intended-for-glibc code.
122212         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
122213         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
122215 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122217         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
122218         HP's ANSI C compiler.
122219         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
122220         Declaring int functions causes warnings on some modern systems and
122221         shouldn't be needed to compile on ancient ones.
122222         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
122223         defined.
122225         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
122226         with the following changes.
122227         (__set_errno): Parenthesize properly.
122228         Include <stdbool.h>.
122229         (MIN, MAX, MATCHING_INO): New macros.
122230         (__getcwd): Define with prototype, not K&R form.
122231         Use heuristics to allocate default buffer on stack if possible.
122232         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
122233         behavior, and to avoid the PATH_MAX limit when computing
122234         ../../../../...
122235         Use MATCHING_INO to compare inode number to file.
122236         Check for arithmetic overflow in size calculations.
122237         Fix bug in reallocation of dot array that caused getcwd to fail
122238         on directories nested deeper than 75.
122239         Be more careful about saving errno on error.
122240         Do not use realloc; use only free+malloc, as this is a bit
122241         more flexible and avoids a needless copy operation.
122242         Do not inspect st_dev and st_ino for symbolic links; POSIX
122243         doesn't specify the latter.
122244         Check for closedir errors.
122245         Avoid needless casts.
122246         Use "#ifdef weak_alias" around weak_alias, to be like other
122247         glibc code.
122248         The following changes to getcwd.c have effect only when used in
122249         gnulib; they have no effect inside glibc proper.
122250         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
122251         as alloca isn't used.
122252         (alloca, __alloca): Likewise.
122253         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
122254         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122255         unconditionally, as gnulib assumes C89 or better.
122256         Do not include <sys/param.h>.
122257         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
122258         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
122259         better.
122260         (NULL) [!defined NULL]: Remove; we assume C89 or better.
122261         Include <dirent.h> in a way that is compatible with modern Autoconf.
122262         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
122263         New macros, if not already defined.
122264         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
122265         Use "_LIBC", not "defined _LIBC", for consistency.
122266         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
122267         a mempcpy module.
122268         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
122269         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
122270         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
122271         credit only to Jim Meyering and adjust the copyright dates.
122272         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
122273         <stdlib.h>, <unistd.h>, "pathmax.h".
122274         Instead, include "xgetcwd.h" (first) and "getcwd.h".
122275         (INITIAL_BUFFER_SIZE): Remove.
122276         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
122278 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122280         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
122281         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
122282         Use the _ONCE methods, for efficiency.
122283         Check for fcntl.h.  In test program, include <errno.h>
122284         and <fcntl.h> if available.  Remove old K&R cruft from
122285         test program.  Check for common errors in GNU/Linux,
122286         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
122287         don't do AC_LIBOBJ, as that's getcwd.m4's job.
122288         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
122289         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
122290         name accordingly.
122291         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
122292         accommodate new getcwd.c.
122293         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
122294         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
122295         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
122296         that's all we need now.
122298 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122300         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
122301         argp-parse.c depends on getopt internals, that means we should
122302         always use our getopt, to be on the safe side.
122303         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
122304         order not to spoil the result of an eventual previous invocation
122305         of gl_GETOPT_SUBSTITUTE.
122307 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122309         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
122310         redefinition warnings. To avoid them, include the defines
122311         in `#if !defined __need_getopt ... #endif'. The only place
122312         where __getopt_argv_const is used is in definitions
122313         of getopt_long and getopt_long_only below, which are as well
122314         protected by `#ifndef __need_getopt'.
122315         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
122316         __need_getopt after including <stdio.h> and <unistd.h> These
122317         headers might have defined it.
122319 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122321         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
122323 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122325         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
122326         (futimens): New function, which uses futimes if available.
122327         (futimens, utimens): Support timespec==NULL, with same semantics
122328         as utime and utimens.
122329         * lib/utimens.h (futimens): New decl.
122331 2004-11-23  Jim Meyering  <jim@meyering.net>
122333         * lib/getopt_.h: Remove trailing blanks.
122335 2004-11-23  Jim Meyering  <jim@meyering.net>
122337         * lib/__fpending.c: Add comment.
122339 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
122341         * modules/canonicalize (Depends-on): Add xreadlink.
122342         Problem reported by James Youngman.
122344 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
122346         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
122347         New macros.
122348         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
122349         optopt): Use them instead of invoking ## directly; otherwise, the
122350         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
122352 2004-11-19  Bruno Haible  <bruno@clisp.org>
122354         * lib/strtok_r.c: Move comments from here...
122355         * lib/strtok_r.h: ... to here.
122357 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122359         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
122360         implementations that mishandle size_t overflow.
122362 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122364         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
122365         might fail.  Problem reported by Yoann Vandoorselaere.
122366         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
122367         implementations that mishandle size_t overflow.
122369 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122371         * modules/canon-host (Depends-on): Add strdup.
122373 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122375         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
122377 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122379         * lib/canon-host.c: Include "strdup.h".
122380         (canon_host): Use getaddrinfo if available, so that IPv6 works.
122381         Use strdup instead of malloc/strcpy to duplicate strings.
122383         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
122384         (human_space_before_unit): New constant.
122385         * lib/human.c (human_readable): Support it.
122387         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
122388         (xgetcwd): Set errno correctly when failing.
122389         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
122390         the failure is actually due to a PATH_MAX problem.
122392         Further getopt changes to make it more likely that glibc will
122393         buy the changes back.
122394         * lib/getopt.c (POSIXLY_CORRECT): New constant.
122395         (getopt): Use it, so to preserve glibc semantic
122396         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
122397         when compiling for libc.
122398         * lib/getopt_.h (__getopt_argv_const): Bring it back.
122399         (getopt_long, getopt_long_only): Use it.
122401         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122402         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
122403         (getopt): Argv is now char * const *, as per standard.
122404         (_getopt_internal_r, _getopt_internal): Argv is now char **,
122405         not char *__getopt_argv_const *.
122406         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122407         _getopt_long_only_r): Likewise.
122408         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
122409         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122410         _getopt_long_r, _getopt_long_only_r): Likewise.
122411         * lib/getopt_.h (__getopt_argv_const): Remove.
122412         (getopt): Argv is now char * const *, as per standard.
122414         * lib/getdate.y (tORDINAL): New token.
122415         (day, relunit): Allow it for relative times.
122416         (relative_time_table): Use tORDINAL for ordinals.
122418 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122420         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
122421         Document that "second" isn't allowed as an ordinal number.
122423 2004-11-16  Jim Meyering  <jim@meyering.net>
122425         * modules/closeout (Depends-on): Add fpending.
122427 2004-11-15  Jim Meyering  <jim@meyering.net>
122429         * lib/closeout.c: Include "__fpending.h" once again.
122430         Include <stdbool.h>.
122431         (close_stdout): Don't fail just because stdout was closed initially,
122432         since some programs don't write to stdout in the normal course of
122433         operation (other than --version and --help), and we don't want this
122434         function to make e.g. `touch file >&-' fail.
122435         But do fail if it was closed and someone has tried to write to it.
122436         E.g., `printf foo >&-' must fail.
122438 2004-11-13  Jim Meyering  <jim@meyering.net>
122440         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
122442 2004-11-12  Simon Josefsson  <jas@extundo.com>
122444         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
122445         small doc fix is still pending.
122447 2004-11-11  Simon Josefsson  <jas@extundo.com>
122449         * modules/strtok_r: New file.
122451         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122452         strtok_r.
122454 2004-11-11  Simon Josefsson  <jas@extundo.com>
122456         * m4/strtok_r.m4: New file.
122458         * m4/getopt.m4: Replace opterr.
122460 2004-11-11  Simon Josefsson  <jas@extundo.com>
122462         * lib/strtok_r.h, strtok_r.c: New file.
122464 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122466         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
122467         of replacing opterr, getopt, etc.  This should handle the
122468         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
122470 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122472         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
122473         we can stop lying to compilers about the constness of argv when we
122474         are compiled outside glibc.
122475         (getopt, getopt_long, getopt_long_only): Use it.
122476         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122477         _getopt_internal, getopt): Likewise.
122478         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122479         _getopt_long_only_r): Likewise.
122480         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122481         _getopt_long_r, _getopt_long_only_r): Likewise.
122483         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
122484         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
122485         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
122486         the other external symbols.
122487         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
122488         declaration, since the above renaming now works around collisions.
122490 2004-11-11  Jim Meyering  <jim@meyering.net>
122492         * lib/linebreak.c: Remove trailing blanks.
122493         * lib/alloca_.h: Likewise.
122494         * lib/acosl.c: Likewise.
122495         * lib/euidaccess.c: Likewise.
122496         * lib/allocsa.h: Likewise.
122498 2004-11-10  Simon Josefsson  <jas@extundo.com>
122500         * m4/getaddrinfo.m4: New file.
122502 2004-11-10  Simon Josefsson  <jas@extundo.com>
122504         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
122506 2004-11-10  Simon Josefsson  <jas@extundo.com>
122508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122509         getaddrinfo.
122511         * modules/getaddrinfo: New file.
122513 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122515         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
122517 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122519         * lib/mktime.c (SHR): New macro, which is a portable
122520         substitute for >> that should work even on Crays.
122521         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
122522         Problem reported by Mark D. Baushke in
122523         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
122524         * lib/getdate.y (SHR): Likewise.
122525         (tm_diff): Use it.
122526         * lib/strftime.c (SHR): Likewise.
122527         (tm_diff): Use it.
122528         * lib/quotearg.c (struct quoting_options): Use unsigned int for
122529         quote_these_too, so that right shifts are well defined.  All uses
122530         changed.
122532 2004-11-10  Jim Meyering  <jim@meyering.net>
122534         Ensure that no close failure goes unreported.
122535         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
122536         return early when it seems there's nothing to flush.
122537         Don't include __fpending.h.
122539 2004-11-10  Jim Meyering  <jim@meyering.net>
122541         * modules/closeout (Depends-on): Remove fpending.
122543 2004-11-10  Jim Meyering  <jim@meyering.net>
122545         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
122547 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
122549         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
122550         gl_FUNC_STRFTIME.
122551         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
122552         and AC_REQUIRE when possible, to avoid duplicate checks.
122553         Check for <wchar.h>.
122555 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
122557         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
122559 2004-11-09  Bruno Haible  <bruno@clisp.org>
122561         * m4/sockpfaf.m4: New file.
122563 2004-11-05  Bruno Haible  <bruno@clisp.org>
122565         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
122566         Reported by Mark D. Baushke <mdb@cvshome.org>.
122568 2004-11-04  Bruno Haible  <bruno@clisp.org>
122570         2004-09-11  Bruno Haible  <bruno@clisp.org>
122571                 * allocsa.valgrind: New file.
122572         2004-02-06  Bruno Haible  <bruno@clisp.org>
122573                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
122574                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
122575                 Reported by Christopher Seip <chris.seip@hp.com>.
122577 2004-11-04  Bruno Haible  <bruno@clisp.org>
122579         * modules/allocsa (Files): Add lib/allocsa.valgrind.
122580         (Makefile.am): Distribute it.
122582 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
122584         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
122585         with errno == ERANGE if the buffer is too small.
122586         Problem reported by Mark D. Baushke.
122588 2004-11-03  Albert Chin  <china@thewrittenword.com>
122589             Paul Eggert  <eggert@cs.ucla.edu>
122591         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
122592         equivalent, substitute $ac_type for equivalent type rather than
122593         blindly using uint32_t *always* which won't work if uint32_t is not
122594         available.  Define _UINT32_T to work around typedef of uint32_t if
122595         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
122596         2.5.1.
122598 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122600         * m4/jm-macros.m4: Sync from coreutils.
122601         (gl_MACROS): Check for mbrlen, for pathchk.
122602         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
122604 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122606         * lib/xreadlink.c (MAXSIZE): New macro.
122607         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
122608         size does not exceed MAXSIZE.  Avoid cast.
122609         As suggested by Mark D. Baushke in
122610         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
122611         if readlink fails with buffer size just under MAXSIZE, try again
122612         with MAXSIZE.
122614 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122616         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
122618 2004-11-02  Derek R. Price  <derek@ximbiot.com>
122619         and  Paul Eggert  <eggert@cs.ucla.edu>
122621         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
122622         (get_date): Overparenthesize to avoid GCC warning.
122624 2004-11-02  Bruno Haible  <bruno@clisp.org>
122626         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
122627         returns void.
122629 2004-11-02  Bruno Haible  <bruno@clisp.org>
122631         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
122632         function returns void.
122634 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
122636         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
122637         fflush_unlocked, flockfile, funlockfile, funlockfile,
122638         fputs_unlocked, putc_unlocked.
122640 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
122642         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
122643         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
122644         already declared.
122646 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
122648         * modules/getdate (Files): Add doc/getdate.texi.
122649         (Depends-on): Add setenv, xalloc.
122651 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
122653         * lib/getdate.y: Add support for TZ="foo" within a date string.
122654         Fix some bugs near time_t boundaries.  Reject dates with
122655         out-of-range components, e.g., "Sept 31".
122656         Include <stdlib.h>, "setenv.h", "xalloc.h".
122657         (ISDIGIT_LOCALE): Remove; unused.
122658         Note that the TZ and time functions used here are not reentrant.
122659         (mktime_ok, get_tz): New functions.
122660         (TZBUFSIZE): New constant.
122661         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
122662         This requires that we sometimes generate our own TZ="XXX..." setting.
122664 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
122666         * doc/getdate.texi: New file, from coreutils with modifications for
122667         the new TZ parsing.
122669 2004-10-27  Derek R. Price  <derek@ximbiot.com>
122671         * lib/mktime.c (not_equal_tm): Remove redundant check.
122673 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
122675         * modules/regex (lib_SOURCES): Add regex.c.
122676         Reported by James Youngman in
122677         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
122679 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
122681         * lib/getdate.y: Use Bison 1.875 features, and some minor
122682         code cleanups.  This change does not affect semantics.
122683         Don't include <stdlib.h>; no longer needed.
122684         Don't include unlocked-io.h; only the "#if TEST" code uses
122685         stdio, and performance isn't crucial there.
122686         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
122687         Bison 1.875 features as described below.
122688         All uses of "PC." replaced by "pc->".
122689         (YYSTYPE): Add a forward declaration.
122690         (yylex, yyerror): Use full prototypes in forward decls.
122691         Use "%pure-parser" rather than obsolescent "%pure_parser".
122692         Use %parse-param and %lex-param instead of obsolescent
122693         YYPARSE_PARAM and YYLEX_PARAM.
122694         (meridian_table, month_and_day_table, time_units_table,
122695         relative_time_table, time_zone_table, military_table,
122696         lookup_zone, lookup_word, get_date):
122697         Use NULL instead of 0 where appropriate.
122698         (to_hour): Avoid abort (), to avoid a dependency on
122699         stdlib.h.
122700         (yyerror, yylex): Now accepts parser_control * arg.
122701         (main) [TEST]: Use '\0' rather than 0 for char.
122703 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
122705         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
122707 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
122709         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
122710         It's now the caller's responsibility to handle the case where
122711         !HAVE_GETPAGESIZE && !defined getpagesize.
122713         * lib/mktime.c (leapyear): Arg is long int, not int.
122715 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
122717         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
122719 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
122721         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
122722         missing.  Problem reported by James Youngman.
122724 2004-10-16  Simon Josefsson  <jas@extundo.com>
122726         * gnulib-tool: Fix comments.  Fix parse problem.
122727         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
122729 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
122731         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
122732         implementation of getopt_long.  Problem reported by Alexander Taler in:
122733         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
122735 2004-10-15  Bruno Haible  <bruno@clisp.org>
122737         * gnulib-tool: Untabify. Initialize supplied_libname.
122738         (func_usage): More homogenous output.
122739         (func_modules_transitive_closure, func_modules_to_filelist,
122740         func_emit_lib_Makefile_am): New functions.
122741         (func_import): New function, extracted from big case statement. Use
122742         func_get_license, func_modules_transitive_closure,
122743         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
122744         opt_lgpl. Don't use test -a, as it's not portable.
122745         (func_create_testdir): Use func_modules_transitive_closure,
122746         func_modules_to_filelist, func_emit_lib_Makefile_am.
122748 2004-10-15  Bruno Haible  <bruno@clisp.org>
122750         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
122752 2004-10-15  Bruno Haible  <bruno@clisp.org>
122754         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
122755         the portions belonging to each module.
122756         Suggested by Derek Robert Price <derek@ximbiot.com>.
122758 2004-10-12  Simon Josefsson  <jas@extundo.com>
122760         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
122761         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
122762         to real functions.
122764 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122766         * modules/vsnprintf: New file.
122768 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122770         * m4/vsnprintf.m4: New file.
122772 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122774         * lib/vsnprintf.h: New file.
122775         * lib/vsnprintf.c: New file.
122777 2004-10-11  Bruno Haible  <bruno@clisp.org>
122779         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
122780         vsnprintf.
122782 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
122784         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
122786 2004-10-07  Bruno Haible  <bruno@clisp.org>
122788         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
122789         fits into the provided buffer.
122791 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
122793         * lib/diacrit.c, diacrit.h: Add GPL notice.
122795         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
122796         notice.
122797         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
122798         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
122799         This avoids a potential constant-folding bug.
122801 2004-10-05  Bruno Haible  <bruno@clisp.org>
122803         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
122804         for the declaration of strsep.
122806 2004-10-05  Bruno Haible  <bruno@clisp.org>
122808         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
122810 2004-10-04  Simon Josefsson  <jas@extundo.com>
122812         * modules/memmem: New file.
122813         * tests/test-memmem.c: New file.
122814         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
122816 2004-10-04  Simon Josefsson  <jas@extundo.com>
122818         * m4/memmem.m4: New file.
122820 2004-10-04  Simon Josefsson  <jas@extundo.com>
122822         * lib/memmem.h: New file.
122823         * lib/memmem.c: New file, taken from glibc.
122825 2004-10-04  Simon Josefsson  <jas@extundo.com>
122827         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
122828         '#ifdef USE_UNLOCKED_IO'.
122830 2004-10-04  Simon Josefsson  <jas@extundo.com>
122832         * config/srclist.txt: Add memmem from glibc.
122834 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
122836         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
122838         * modules/argmatch, modules/argp, modules/closeout, modules/error,
122839         modules/exclude, modules/getdate, modules/getline,
122840         modules/getndelim2, modules/getpass, modules/getpass-gnu,
122841         modules/getusershell, modules/linebuffer, modules/md5,
122842         modules/mountlist, modules/posixtm, modules/readtokens,
122843         modules/readutmp, modules/regex, modules/sha1,
122844         modules/version-etc, modules/yesno:
122845         Remove dependency on unlocked-io.
122847 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
122849         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
122851         * m4/unlocked-io.m4: Add copyright notice.
122852         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
122854 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
122856         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
122857         * lib/xmalloc.c (xmemdup): Likewise.
122858         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
122859         XFREE): Remove these long-obsolescent macros.
122860         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
122861         * lib/xstrdup.c: Remove.
122863         * lib/regex.c (re_comp): Cast gettext return value to char *,
122864         Problem reported by Martin Neitzel via Mark D. Baushke.
122866 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
122868         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
122869         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
122870         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
122871         regex.c, sha1.c, version-etc.c, yesno.c:
122872         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
122873         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
122874         the includer's responsibility.
122876         Sync from coreutils.
122878         * lib/modechange.c (mode_compile): Don't decrement a pointer that
122879         points to the start of a string, as the C Standard says the
122880         resulting behavior is undefined.
122882         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
122883         simple -> simple_backups, numbered_existing ->
122884         numbered_existing_backups, numbered -> numbered_backups
122885         to avoid shadowing problems.  All uses changed.
122886         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
122887         * lib/backupfile.c (check_extension, numbered_backup):
122888         Rename locals to avoid shadowing 'basename'.
122889         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
122890         once.
122892         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
122893         * lib/.cvsignore: Add getopt.h.
122895 2004-10-04  Bruno Haible  <bruno@clisp.org>
122897         * modules/README: New file.
122898         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
122899         not a module.
122901 2004-10-02  Jim Meyering  <jim@meyering.net>
122903         * lib/dirfd.h, getpagesize.h: Add copyright notice.
122905 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122907         * modules/strsep: New file.
122909 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122911         * m4/strsep.m4: New file.
122913 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
122915         * lib/strsep.h: New file.
122916         * lib/strsep.c: New file.
122918 2004-10-01  Simon Josefsson  <jas@extundo.com>
122920         * lib/snprintf.c (snprintf): Handle size==0.
122922 2004-10-01  Simon Josefsson  <jas@extundo.com>
122923             Bruno Haible  <bruno@clisp.org>
122925         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
122926         (snprintf): Declare 'args'.
122928 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
122930         * lib/snprintf.c: Remove comments as to why each header is needed.
122932 2004-10-01  Bruno Haible  <bruno@clisp.org>
122934         * MODULES.html.sh: Add strsep.
122936 2004-09-30  Simon Josefsson  <jas@extundo.com>
122938         * modules/snprintf: New file.
122940 2004-09-30  Simon Josefsson  <jas@extundo.com>
122942         * m4/snprintf.m4: New file.
122944 2004-09-30  Simon Josefsson  <jas@extundo.com>
122946         * lib/snprintf.h, lib/snprintf.c: New files.
122948 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122950         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
122951         (hol_entry_help): Never translate an empty string.
122952         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
122953         * lib/argp.h (OPTION_NO_TRANS): New option.
122955 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
122957         * modules/argp (Maintainer): Replace Simon Josefsson
122958         by Sergey Poznyakoff.
122960 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
122962         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
122963         changes merged back into glibc.
122965 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
122967         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
122969 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
122971         * lib/xvasprintf.c: Include xalloc.h.
122972         (xvasprintf): Use xalloc_die, not xmalloc_die.
122974 2004-09-29  Bruno Haible  <bruno@clisp.org>
122976         * modules/alloca-opt: New file, derived from modules/alloca.
122977         * modules/allocsa: Depend on alloca-opt instead of alloca.
122978         * modules/setenv: Likewise.
122979         * modules/vasnprintf: Likewise.
122980         * MODULES.html.sh: Add alloca-opt.
122982 2004-09-28  Simon Josefsson  <jas@extundo.com>
122984         * gnulib-tool: New parameter --lgpl, to asseert that modules are
122985         LGPL, and to replace license template from GPL to LGPL.
122987 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
122989         * modules/dummy: Change license to LGPL.
122991 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
122993         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
122995 2004-09-24  Simon Josefsson  <jas@extundo.com>
122997         * modules/minmax (License): Change from GPL to LGPL.
122999 2004-09-23  Simon Josefsson  <jas@extundo.com>
123001         * gnulib-tool (--import): Typo.
123003 2004-09-23  Simon Josefsson  <jas@extundo.com>
123005         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
123007 2004-09-22  Bruno Haible  <bruno@clisp.org>
123009         * modules/*: Add 'License' field.
123010         * gnulib-tool: Accept --extract-license option.
123011         (func_get_license): New function.
123013 2004-09-21  Bruno Haible  <bruno@clisp.org>
123015         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
123016         Reported by Simon Josefsson.
123018 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123020         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
123021         gl_AC_TYPE_LONG_LONG.
123023 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123025         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
123027 2004-09-18  Simon Josefsson  <jas@extundo.com>
123028         and  Paul Eggert  <eggert@cs.ucla.edu>
123030         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
123031         calls with autoreconf.  Define GL_LIB.
123033 2004-09-14  Karl Berry  <karl@gnu.org>
123035         * config/srclist.txt: unsync setenv.c, sigh.
123037 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123039         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
123040         Problem reported by Bruno Haible in:
123041         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
123043 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123045         * config/srclist.txt: Comment out argp-pvh.c.
123047 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
123049         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
123050         in case some system header has #define'd it.  Problem reported by
123051         Soeren D. Schulze in
123052         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
123054 2004-09-09  Karl Berry  <karl@gnu.org>
123056         * regex.[ch]: delete from the root.  These were supposed to be
123057                 synced with emacs cvs, but this has not happened for about
123058                 a year, and anyway nothing else uses emacs regex.[ch].
123059                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
123060                 lib/regex[.ch] is untouched.
123062 2004-09-09  Bruno Haible  <bruno@clisp.org>
123064         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
123066 2004-09-09  Bruno Haible  <bruno@clisp.org>
123068         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
123069         modifications.
123070         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
123072 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123074         * modules/xvasprintf: New file.
123075         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
123077 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123079         * lib/xvasprintf.h: New file.
123080         * lib/xvasprintf.c: New file.
123081         * lib/xasprintf.c: New file.
123083 2004-09-08  Bruno Haible  <bruno@clisp.org>
123085         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
123087 2004-09-08  Bruno Haible  <bruno@clisp.org>
123089         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
123090         length is > INT_MAX.
123091         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
123092         more.
123094 2004-09-08  Bruno Haible  <bruno@clisp.org>
123096         * lib/stdint_.h: New file, taken from GNU clisp.
123098 2004-09-08  Bruno Haible  <bruno@clisp.org>
123099             Oskar Liljeblad  <oskar@osk.mine.nu>
123101         * modules/stdint: New file.
123102         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
123104 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123106         Import from coreutils.
123107         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
123108         strings on unbounded length.  alloca's performance benefits aren't
123109         that important here.
123110         (V_STRDUP): Remove.
123111         (parse_with_separator): New function, with most of the internals
123112         of the old parse_user_spec.  Allow user to omit both user and group,
123113         for compatibility with FreeBSD.
123114         Clone only the user name, not the entire spec.
123115         Do not set *uid, *gid unless entirely successful.
123116         Avoid memory leak in some failing cases.
123117         Fix regression for USER.GROUP reported by Dmitry V. Levin in
123118         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
123119         (parse_user_spec): Rewrite to use parse_with_separator.
123121 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123123         * modules/userspec: Don't depend on alloca.
123125 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123127         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
123129 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
123131         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
123132         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
123133         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
123135 2004-08-16  Simon Josefsson  <jas@extundo.com>
123137         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
123138         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
123139         Add --dry-run for --import.
123140         Let user provided command line parameters override configure.ac
123141         settings.
123143 2004-08-12  Simon Josefsson  <jas@extundo.com>
123145         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
123146         as discussed with Paul Eggert in threads rooted at
123147         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
123148         and
123149         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
123150         Before, the test was empty, and relied on ELIDE_CODE in source
123151         code.)
123152         (gl_PREREQ_GETOPT): New macro.
123153         (gl_GETOPT): Use them.
123155 2004-08-12  Simon Josefsson  <jas@extundo.com>
123157         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
123158         * lib/getopt_.h: Renamed from getopt.h.
123160 2004-08-12  Simon Josefsson  <jas@extundo.com>
123162         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
123163         Change default library name from libfoo to libgnu.
123164         Now, if you have a configure.ac that says:
123165                 gl_SOURCE_BASE(gl)
123166                 gl_M4_BASE(gl/m4)
123167                 gl_MODULES(error getopt etcetera)
123168                 gl_INIT
123169         you can import all you need by running:
123170                 ../gnulib/gnulib-tool --import
123172         * modules/getopt (Files): Rename getopt.h to getopt_.h.
123173         (Makefile.am): Rewrite, use logic from argz.
123174         (Include): Use <getopt.h> instead of "getopt.h".
123176 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123178         * modules/argp (Files): Add m4/unlocked-io.m4.
123179         (Depends-on): Add extensions.
123181 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123183         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
123184         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
123185         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
123186         Check for program_invocation_name, program_invocation_short_name,
123187         flockfile, funlockfile, features.h, _getopt_long_only_r.
123189 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123191         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
123192         its complicated substitute.
123193         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
123194         and program_invocation_name.
123195         (__argp_basename) [!_LIBC]: Remove; the only use was
123196         replaced by its body.
123197         (__argp_short_program_name): Change condition from
123198         !defined __argp_short_program_name to
123199         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
123200         to match argp-namefrob.h.
123201         (__argp_failure): Don't assume strerror_r returns char *.
123202         * lib/argp-parse.c (N_): Define unconditionally.
123203         (argp_default_options): Fill out initializers with 0 to avoid
123204         gcc warnings.
123206 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123208         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
123209         getopt1.c.
123211 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123213         Merge from coreutils.
123215         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
123217         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
123218         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
123220 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123222         Merge from coreutils.
123224         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
123225         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
123226         for Reliant Unix 5.43.
123228         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
123229         (union fooround): Use uintmax_t, not long int.
123230         The rest is a merge from libc:
123231         [defined _LIBC]: Include <shlib-compat.h>.
123232         (_obstack) [defined _LIBC]: Remove after 2.3.4.
123234         * lib/settime.c (settime): Recode to avoid warning with
123235         Sun Forte C 6U2.
123237         * lib/strverscmp.c: Convert to UTF-8.
123239 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123241         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
123242         m4/uintmax_t.m4.
123244 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123246         * modules/xalloc-die: New file.
123247         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
123249         * modules/md5 (Files): Add m4/uint32_t.m4.
123250         * modules/sha1: Renamed from modules/sha.
123251         (Files):
123252         Rename lib/sha.h to lib/sha1.h.
123253         Rename lib/sha.c to lib/sha1.c.
123254         Rename m4/sha.m4 to m4/sha1.m4.
123255         (lib_SOURCES): Likewise.
123256         (configure.ac): Rename gl_SHA to gl_SHA1.
123257         (Include): sha.h -> sha1.h.
123259 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123261         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
123262         * m4/sha1.m4: Renamed from sha.m4.
123263         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
123265 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123267         * lib/obstack.h (obstack_empty_p):
123268         Don't assume that chunk->contents is suitably aligned.
123269         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
123270         Likewise. Problem reported by Benno in
123271         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
123273         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
123274         readable.  This could be improved further but it'd take some work.
123276 2004-08-08  Simon Josefsson  <jas@extundo.com>
123278         * modules/xgethostname (Depends-on): Remove exit and error (not
123279         used).
123281         * modules/getpass-gnu: Add getpass.h.
123282         (Depends-on): Add stdbool.
123283         * modules/getpass: Add getpass.h.
123285 2004-08-08  Simon Josefsson  <jas@extundo.com>
123287         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
123288         Check getpass declaration.
123290 2004-08-08  Simon Josefsson  <jas@extundo.com>
123292         * lib/xgethostname.c: Don't include error.h (not used).
123294         * lib/getpass.h: Add.
123295         * lib/getpass.c: Include getpass.h first.
123297 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
123299         * lib/xalloc-die.c: New file.
123300         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
123301         All uses removed.
123302         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
123303         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
123304         xalloc-die.c.
123305         (_, N_, xalloc_die): Move to xalloc-die.c.
123306         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
123307         so that we needn't mess with xalloc_msg_memory_exhausted.
123309         * lib/sha1.h: Renamed from sha.h.
123310         (SHA1_H): Renamed from _SHA_H.
123311         (sha1_ctx): Renamed from sha_ctx.
123312         (sha1_init_ctx): Renamed from sha_init_ctx.
123313         (sha1_process_block): Renamed from sha_process_block.
123314         (sha1_process_bytes): Renamed from sha_process_bytes.
123315         (sha1_finish_ctx): Renamed from sha_finish_ctx.
123316         (sha1_read_ctx): Renamed from sha_read_ctx.
123317         (sha1_stream): Renamed from sha_stream.
123318         (sha1_buffer): Renamed from sha_buffer.
123319         * lib/sha1.c: Likewise; renamed from sha.c.
123320         Do not include <sys/types.h>.
123321         Include <stddef.h> rather than <stdlib.h>.
123323 2004-08-08  Bruno Haible  <bruno@clisp.org>
123325         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
123326         FILESYSTEM_PREFIX_LEN.
123327         * lib/progreloc.c: Likewise.
123328         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
123330 2004-08-06  Simon Josefsson  <jas@extundo.com>
123332         * modules/progname (Depends-on): Don't depend on stdbool.
123334 2004-08-06  Simon Josefsson  <jas@extundo.com>
123336         * modules/getsubopt: New file.
123337         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123338         getsubopt.
123340 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123342         More merge from coreutils.
123344         * m4/utimens.m4, m4/utimecmp.m4: New files.
123345         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
123346         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
123347         prereq.m4, sha.m4: Import changes from coreutils.
123349 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123351         More merge from coreutils.
123352         * modules/raise, modules/readtokens0, modules/utimens:
123353         * modules/utimecmp, module/xnanosleep: New files.
123354         * modules/strftime: Add lib/strftime.h.
123355         Change include from <time.h> to "strftime.h".
123356         * modules/yesno: Add lib/yesno.h.
123357         * modules/backupfile: Remove lib/addext.c.
123358         * modules/euidaccess: Add stat-macros.h.
123359         * modules/canonicalize, modules/euidaccess,
123360         modules/filemode, modules/lchown, modules/makepath,
123361         modules/rmdir, modules/stat: Likewise.
123363 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123365         Merge from tar.
123366         * lib/argp-help.c (make_hol, hol_append): Don't assume that
123367         SIZE_MAX is a valid preprocessor constant.
123368         (__argp_basename): Change from "#ifndef _LIBC"
123369         to "#ifndef __argp_short_program_name", so that
123370         we don't compile these functions for tar.
123372         More merges from coreutils.
123373         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
123374         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
123375         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
123376         * lib/addext.c: Remove; no longer needed.
123377         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
123378         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
123379         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
123380         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
123381         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
123382         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
123383         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
123384         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
123385         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
123386         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
123387         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
123388         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
123389         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
123390         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
123391         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
123392         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
123393         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
123394         Import changes from coreutils.
123396 2004-08-05  Simon Josefsson  <jas@extundo.com>
123398         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
123400 2004-08-05  Simon Josefsson  <jas@extundo.com>
123402         * m4/getsubopt.m4: New file.
123404 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123406         Merge from coreutils.
123408         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
123409         * m4/getcwd-path-max.m4: New files.
123411         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
123412         FILESYSTEM_PREFIX_LEN ->
123413         FILE_SYSTEM_PREFIX_LEN.
123414         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
123415         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
123416         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
123417         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
123419         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
123420         prerequisite modules now handle the DOS stuff.
123421         Don't check for unistd.h.
123423 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123425         Merge from coreutils.
123427         * lib/.gdb-history: Remove; this doesn't belong here.
123429         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
123430         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
123431         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
123432         * lib/getcwd.c: New files.
123434         * lib/dirname.h: Include <stdbool.h>.
123435         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
123436         for consistency with POSIX terminology.  All uses changed.
123437         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
123438         (strip_trailing_slashes): Use bool for booleans.
123439         * lib/stripslash.c (strip_trailing_slashes): Likewise.
123441         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
123442         sometimes returns a positive errno value even when it succeeds.
123443         (print_errno_message) [!LIBC]: Fall back on strerror if
123444         __strerror_r fails.
123446         * lib/path-concat.c (mempcpy): Don't define if a system header defines
123447         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
123448         (longest_relative_suffix): New function.
123449         (path_concat): Use it.  Assume first argument is not NULL.
123450         Port to DOS.  Omit redundant separators.
123451         Report an error instead of returning NULL.
123452         Use mempcpy instead of memcpy.
123453         (xpath_concat): Remove: not declared or used.
123455         * lib/same.h: Include <stdbool.h>
123456         (same_name): Return bool, not int.
123457         * lib/same.c (same_name): Likewise.
123458         (errno): Don't declare; we assume C89 or better now.
123460         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
123461         if not already defined.
123463         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
123464         * lib/dup-safer.c (errno): Likewise.
123466 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123468         Merge from coreutils.
123469         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
123470         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
123471         * modules/path-concat: Don't depend on strdup.
123473 2004-08-03  Simon Josefsson  <jas@extundo.com>
123475         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
123476         * lib/progname.h: Don't include stdbool.h.
123478 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123480         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
123481         * MODULES.html.sh (func_all_modules): Remove fatal.
123483 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123485         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
123487 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123489         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
123490         working.
123492 2004-08-02  Simon Josefsson  <jas@extundo.com>
123494         * lib/getsubopt.h: New file, with comments from Bruno Haible.
123495         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
123496         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
123498 2004-08-01  Simon Josefsson  <jas@extundo.com>
123500         * lib/xgetdomainname.c: Include stdlib.h, for free().
123502 2004-07-19  Bruno Haible  <bruno@clisp.org>
123504         * MODULES.html.sh (func_all_modules): Add dummy.
123506 2004-07-16  Simon Josefsson  <jas@extundo.com>
123508         * modules/dummy: New file.
123510 2004-07-16  Simon Josefsson  <jas@extundo.com>
123512         * lib/dummy.c: New file.
123514 2004-07-16  Bruno Haible  <bruno@clisp.org>
123516         * lib/backupfile.h: Add extern "C" for C++.
123517         * lib/closeout.h: Likewise.
123518         * lib/copy-file.h: Likewise.
123519         * lib/findprog.h: Likewise.
123520         * lib/full-write.h: Likewise.
123521         * lib/pathname.h: Likewise.
123522         * lib/progname.h: Likewise.
123523         * lib/stpcpy.h: Likewise.
123524         * lib/stpncpy.h: Likewise.
123525         * lib/strcase.h: Likewise.
123526         * lib/strstr.h: Likewise.
123527         * lib/xalloc.h: Likewise.
123529         * lib/mbswidth.h: Add extern "C" for C++.
123530         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
123532 2004-07-13  Robert Millan  <robertmh@gnu.org>
123534         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
123536 2004-07-09  Simon Josefsson  <jas@extundo.com>
123538         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
123539         failed without this.)
123541 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123543         * modules/chown (Files): Add lib/fchown-stub.c, since
123544         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
123546 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123548         * lib/fchown-stub.c: New file.
123550 2004-06-24  Jim Meyering  <jim@meyering.net>
123552         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
123554 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123556         * modules/argz: Omit "#include".
123558         * MODULES.html.sh (func_all_modules): Add calloc, to match
123559         2004-06-01 addition of calloc module.
123561 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123563         * m4/argz.m4: New file, which is autoupdated from libtool.
123565 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123567         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
123568         libtool.
123570 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123572         * config/srclist-update: Don't insist on "USA." before the
123573         close-comment, as libtool omits the period and puts the */ on a
123574         separate line.
123575         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
123576         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
123578 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
123580         * modules/argz: New file.
123581         * MODULES.html.sh (func_all_modules): Add argz.
123583 2004-06-12  Jim Meyering  <jim@meyering.net>
123584         and  Paul Eggert  <eggert@cs.ucla.edu>
123586         * modules/hash (Files): Add lib/xalloc.h.
123587         * modules/pipe (Depends-on): Add wait-process.
123588         * modules/stat (Depends-on): Add xalloc.
123589         * modules/userspec (Files): Add lib/userspec.h.
123590         * modules/xstrto
123592         Upgrade from gettext-0.13.
123593         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
123594         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
123595         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
123597 2004-06-10  Jim Meyering  <jim@meyering.net>
123599         * lib/calloc.c: New file.
123601 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
123603         * lib/getdate.y (yylex): Allow space between sign and number.
123604         Problem reported by Dan Jacobson.
123606 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
123608         Merge from coreutils CVS.
123610         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
123611         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
123612         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
123613         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
123614         xstrtol.m4: Fix copyright date and/or serial number.
123616         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
123617         See if we need an fchown replacement.
123618         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
123619         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
123620         and use the replacement function if we detect either defect.
123622         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
123623         gl_UTIMECMP.
123625 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
123626         and  Jim Meyering  <jim@meyering.net>
123628         Merge from coreutils CVS.
123630         * lib/stat-macros.h: New file, with contents from file-type.h
123631         and coreutils' system.h.
123632         * lib/file-type.c: Include "stat-macros.h".
123633         * lib/file-type.h (file_type): Move all macro definitions to new file,
123634         stat-macros.h.
123636         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
123637         Wrap old code with this conditional.
123638         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
123639         function that does not dereference symlinks.
123640         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
123642         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
123643         dependency problems.
123644         (xreadlink): Accept new arg SIZE, for efficiency.
123645         All decls and uses changed.
123646         * lib/xreadlink.h: Include <stddef.h>, for size_t.
123648         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
123649         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
123651         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
123652         sysexits.h.
123654 2004-06-01  Jim Meyering  <jim@meyering.net>
123656         * m4/calloc.m4: New file.
123658 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
123660         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
123661         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
123662         Also, fix a typo in a diagnostic.
123664 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
123666         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
123667         or AC_FUNC_REALLOC.
123669 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
123671         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
123672         macros to be defined.
123673         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
123674         the allocator returns NULL because the requested size is zero.
123676 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
123678         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
123679         var.  Add comment explaining why libc still defines it.  This
123680         merges the following patch from glibc:
123681         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
123683 2004-05-20  Andreas Schwab  <schwab@suse.de>
123685         * m4/free.m4: Replace free if it not known to work, not the other
123686         way round.
123688 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
123690         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
123691         present in glibc since revision 1.1 of this file.
123692         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
123693         obstack_alignment_mask, obstack_alloc, obstack_base,
123694         obstack_blank, obstack_blank_fast, obstack_chunk_size,
123695         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
123696         obstack_grow0, obstack_init, obstack_int_grow,
123697         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
123698         obstack_next_free, obstack_object_size, obstack_ptr_grow,
123699         obstack_ptr_grow_fast, obstack_room): Remove declarations of
123700         nonexistent functions.
123702 2004-05-18  Karl Berry  <karl@gnu.org>
123704         * config/srclist.txt: break link for vasnprintf.c.
123706 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
123708         Port obstack to the AS/400, where pointers are 16 bytes wide and
123709         you cannot cast an integer to a valid pointer.  This patch is
123710         currently waiting to be integrated into glibc; see
123711         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
123713         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
123714         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
123715         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
123716         (struct obstack): temp member is now a union of a pointer and
123717         an integer, instead of an integer.  All integer uses changed.
123718         This does not affect the physical layout of struct obstack,
123719         except on hosts (like the AS/400) where the size or alignment of
123720         void * is greater than that of ptrdiff_t.
123721         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
123722         __STDC__)]: Store temporary in pointer member of union, not
123723         integer member.
123724         * lib/obstack.c: Include <stddef.h>, for offsetof.
123725         (struct fooalign): Remove; it doesn't need a name.
123726         (union fooround): Change double to long double, and add void *.
123727         (DEFAULT_ALIGNMENT): Use offsetof to compute.
123728         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
123729         not a macro.  Hence the values are always int; so remove all
123730         casts-to-int in uses.
123732 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
123734         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
123735         we can get this patch merged into glibc.
123737 2004-05-17  Derek R. Price  <derek@ximbiot.com>
123738             Paul Eggert  <eggert@cs.ucla.edu>
123740         * m4/argp: Depend on alloca.
123742 2004-05-17  Derek R. Price  <derek@ximbiot.com>
123743             Paul Eggert  <eggert@cs.ucla.edu>
123745         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
123746         freecoding.
123748 2004-05-17  Bruno Haible  <bruno@clisp.org>
123750         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
123751         precision that consists of a '.' followed by an empty digit string.
123752         Patch by Tor Lillqvist <tml@iki.fi>.
123754 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
123756         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
123757         for backward compatibility with older code.  We need our own
123758         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
123759         it under some other name, and our alloca.h will define it.
123761 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
123762             Derek Price  <derek@ximbiot.com>
123764         * lib/alloca.c: Include <alloca.h>, to get our interface.
123765         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
123766         include <alloca.h> first.  Use C89 prototype for alloca; this
123767         requires including <stddef.h> for size_t.  Use extern "C" if C++.
123768         Use #elif for simplicity, since we can assume C89 now.
123769         Don't try to source the system alloca.h since it will not be found
123770         and to prevent recursively including its replacement.
123771         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
123772         * lib/regex.c: Likewise.
123774 2004-05-16  Derek Price  <derek@ximbiot.com>
123775             Paul Eggert  <eggert@cs.ucla.edu>
123777         getline cleanup.  This changes the getndelim2 API: both order of
123778         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
123779         no delimiter).
123781         * lib/getline.c: Don't include stddef.h or stdio.h, since our
123782         interface does that.
123783         (getline): Always use getdelim, so that we don't have two
123784         copies of this code.
123785         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
123786         if available.
123787         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
123788         (GETNDELIM2_MAXIMUM): New macro.
123789         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
123790         instead of the old practice of delim2==0.  All callers changed.
123791         Return -1 on overflow, instead of returning junk.
123792         Do not set *linesize unless allocation succeeds.
123793         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
123794         that we include sys/types.h.
123795         * lib/getnline.h: Likewise.
123796         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
123797         (getndelim2): Reorder arguments.
123798         * lib/getnline.c (getnline, getndelim):
123799         Don't discard the NMAX argument.
123800         (getnline): Invoke getndelim, to avoid code duplication.
123801         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
123802         of (size_t) -1 by callers of the getnline family.
123804 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
123806         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
123807         Check for gettimeofday.
123808         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
123809         Check for settimeofday, stime.
123811 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
123813         * lib/nanosleep.c (suspended): Change its type from int to
123814         sig_atomic_t volatile.
123815         (first_call): Make it private to rpl_nanosleep, and have it
123816         be zero initially as that's a bit faster.
123817         (my_usleep): Round up fractional times instead of truncating them,
123818         as this is the usual meaning for 'sleep'.
123820         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
123821         doesn't work.
123822         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
123823         (ENOSYS): Define if not defined.
123824         (settime): Fall back on stime if it exists and settimeofday fails.
123825         But don't bother with fallbacks if a method fails with errno == EPERM.
123827 2004-05-11  Jim Meyering  <jim@meyering.net>
123829         Prior to this change, the save_cwd caller required read access to the
123830         current directory on most systems (ones with the fchdir function).
123832         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
123833         fails, try write-only, and finally, resort to using xgetcwd.
123835 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
123837         * lib/obstack.c, obstack.h: Import changes from libc.
123839 2004-04-28  Bruno Haible  <bruno@clisp.org>
123841         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
123842         also implicitly appends .exe to executables.
123843         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
123844         accepts Windows pathnames.
123845         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
123846         Treat Cygwin like Windows, since it now accepts Windows pathnames.
123847         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
123848         Treat Cygwin like Windows, since it now accepts Windows pathnames.
123849         Reported by Derek Robert Price <derek@ximbiot.com>.
123851 2004-04-21  Karl Berry  <karl@gnu.org>
123853         * config/srclist.txt (localcharset.c): break sync.
123855 2004-04-20  Paul Eggert  <eggert@twinsun.com>
123857         * m4/host-os.m4: Add a copyright notice.
123859 2004-04-20  Jim Meyering  <jim@meyering.net>
123861         Change UTILS_ to gl_ in AC_DEFINE'd names.
123862         Change utils_- and jm_-prefixed variables, too.
123863         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
123864         UTILS_FUNC_MKDIR_TRAILING_SLASH.
123865         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
123867         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
123868         Don't emit trailing blanks.
123869         Also rename jm_-prefixed variables to have gl_ prefix.
123871         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
123872         Also rename jm_-prefixed variables to have gl_ prefix.
123874         * m4/jm-macros.m4: Reflect the renamings.
123875         * m4/prereq.m4: Likewise.
123877 2004-04-20  Jim Meyering  <jim@meyering.net>
123879         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
123880         memory.
123882 2004-04-20  Jim Meyering  <jim@meyering.net>
123883             Bruno Haible  <bruno@clisp.org>
123885         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
123886         memory when realloc fails.
123888 2004-04-19  Jim Meyering  <jim@meyering.net>
123890         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
123891         now that readutmp.c may call `free (0)'.
123893 2004-04-19  Bruno Haible  <bruno@clisp.org>
123895         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
123896         * m4/inttypes_h.m4: Likewise.
123897         * m4/stdint_h.m4: Likewise.
123898         * m4/intmax_t.m4: Likewise.
123899         * m4/uintmax_t.m4: Likewise.
123901 2004-04-18  Jim Meyering  <jim@meyering.net>
123903         * m4/prereq.m4: Don't forbid jm_ prefix.
123905         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
123906         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
123907         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
123908         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
123909         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
123910         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
123911         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
123912         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
123913         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
123914         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
123915         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
123916         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
123917         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
123918         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
123919         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
123920         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
123921         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
123922         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
123923         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
123925 2004-04-18  Jim Meyering  <jim@meyering.net>
123927         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
123928         failure, don't leak memory and do call END_UTMP_ENT.
123930 2004-04-16  Jim Meyering  <jim@meyering.net>
123932         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
123933         coreutils' stat program.
123934         (gl_PREREQ): Don't require jm_PREREQ_STAT.
123936 2004-04-11  Paul Eggert  <eggert@twinsun.com>
123938         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
123939         C89.
123940         (CHAR_BIT): Remove, since we assume C89.
123941         Include <stdint.h> if available, as per current Autoconf CVS advice.
123943 2004-03-31  Jim Meyering  <jim@meyering.net>
123945         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
123946         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
123947         * m4/xalloc.m4: Likewise.
123949 2004-03-30  Paul Eggert  <eggert@twinsun.com>
123951         Merge from coreutils.
123953         * m4/inttostr.m4: New file.
123954         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
123955         Require AM_STDBOOL_H and gl_TIMESPEC instead.
123956         Require gl_CLOCK_TIME.
123957         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
123959 2004-03-30  Paul Eggert  <eggert@twinsun.com>
123961         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
123962         not bool, to be more consistent with Unix conventions.
123963         Suggested by Bruno Haible.
123965         Merge from coreutils.
123967         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
123968         * lib/umaxtostr.c: New files.
123970         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
123971         the usual <time.h> dance.
123972         (get_date): Change signature to support fractional time stamps.
123973         All callers changed.
123974         * lib/getdate.y: Include "getdate.h" first, as we can now
123975         assume C89 and don't need to worry about 'const'.
123976         Similarly, include "unlocked-io.h" near start, not in middle.
123977         Include <limits.h>.
123978         (textint.value): Use long int rather than int.
123979         (textint.digits): Use size_t rather than int.
123980         (BILLION, LOG10_BILLION): New constants.
123981         (parser_control): New member rel_ns.  Members day_ordinal,
123982         time_zone, month, day, hour, minutes, rel_year, rel_month,
123983         rel_day, rel_hour, rel_minutes, rel_seconds
123984         are now long int, not int.  Member seconds is now struct timespec,
123985         not int.  New member timespec_seen.  Members dates_seen, days_seen,
123986         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
123987         not int.
123988         (%union.intval): Now long int, not int.
123989         New member timespec.
123990         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
123991         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
123992         (spec): Now is a timespec or an item list.
123993         (timespec, items): New nonterminals.
123994         (time, rel, relunit, number, get_date):
123995         Add support for fractional seconds.
123996         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
123997         (gmtime, localtime, mktime): Remove decls; not needed with C89.
123998         (to_hour): First arg is now long int, not int.
123999         (to_year): Returns long int, not int.
124000         Don't treat year -70 like 70.
124001         (tm_diff): Returns long int, not int.
124002         (lookup_word): Use bool instead of int when appropriate.
124003         (yylex): Use size_t for count, not int.
124004         Detect overflow when parsing large integer constants.
124005         Add support for fractions.
124006         (get_date): Make pointers 'const' if possible.
124007         Use more-portable code to detect integer overflow.
124008         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
124009         Don't use ctime; it's not reliable if the year has >4 digits.
124011         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
124012         This is for compatibility with BSD.
124014         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
124015         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
124016         From coreutils' system.h.
124018         * lib/userspec.c: Don't include "posixver.h".
124019         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
124020         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
124021         compatible extension.  Simplify code by removing a boolean int
124022         that was always nonzero if a string was nonnull.
124024 2004-03-30  Jim Meyering  <jim@meyering.net>
124026         Merge from coreutils.
124028         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
124029         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
124030         on some systems one must include <grp.h> before it.
124031         Reported by Christian Krackowizer.
124033 2004-03-30  Jim Meyering  <jim@meyering.net>
124035         Merge from coreutils.
124037         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
124039         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
124040         an empty input stream.
124042         * lib/readtokens.c: Include <stdbool.h>.
124043         (readtoken): Use `size_t' rather than int/long.
124044         All callers adjusted.
124045         Use `bool' rather than `int' where appropriate.
124046         Use memset rather than an explicit loop.
124047         Use x2nrealloc rather than xrealloc.
124048         Allow the use of `\0' as a delimiter.
124049         (readtokens): Likewise.
124050         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
124052 2004-03-30  Jim Meyering  <jim@meyering.net>
124054         * m4/realloc.m4: Remove file, since now it does no more than
124055         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
124056         the `configure.ac' section of module/realloc.
124057         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
124059 2004-03-30  Bruno Haible  <bruno@clisp.org>
124061         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
124062         nonnull.
124064 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124066         Merge changes to getloadavg.c from coreutils and Emacs.
124068         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
124069         Define to an expression, not to the empty string.
124070         Include cloexec.h and xalloc.h.
124071         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
124072         Use set_cloexec_flag rather than rolling our own.
124073         * lib/cloexec.c, lib/cloexec.h: New files.
124075 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124077         * m4/cloexec.m4: New file.
124079 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124081         * lib/getopt.h: Sync with libc CVS.
124083 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124084             Bruno Haible  <bruno@clisp.org>
124086         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
124087         mbswidth.
124089 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124090             Bruno Haible  <bruno@clisp.org>
124092         * lib/mbswidth.h: Include <wchar.h> only if
124093         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
124094         <wchar.h>.
124095         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
124097 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124099         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
124100         Sync with libc CVS.
124101         * lib/getopt_int.h: New file, also synced from libc.
124103 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124105         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
124106         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
124107         Bring back getopt.c, getopt.h, getopt1.c.
124109 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124111         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
124112         All uses changed.  Check for sa_sigaction member; this fixes
124113         a bug first reported by Jason Andrade in
124114         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124116 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124118         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
124119         '#if' expressions.  Unlike the code it replaces, it does not
124120         depend on (defined _SC_PAGESIZE).  However, it does depend on
124121         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
124122         first reported by Jason Andrade in
124123         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124125 2004-02-25  Simon Josefsson  <jas@extundo.com>
124127         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
124129 2004-02-25  Simon Josefsson  <jas@extundo.com>
124131         * lib/strdup.h: New file.
124132         * lib/strdup.c: Include it.
124133         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
124134         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
124136 2004-02-23  Karl Berry  <karl@gnu.org>
124138         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
124139         (from fencepost.gnu.org:/gd/gnuorg).
124141 2004-02-23  Karl Berry  <karl@gnu.org>
124143         * config/srclistvars.sh (GNUORG) [karl]: redefine.
124144         * config/srclist.txt: add maintain/standards documents.
124146 2004-02-18  Bruno Haible  <bruno@clisp.org>
124148         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
124149         Reported by Derek Robert Price <derek@ximbiot.com>.
124151 2004-02-16  Karl Berry  <karl@gnu.org>
124153         * config/mkinstalldirs, install-sh: update from automake.
124155 2004-02-06  Karl Berry  <karl@gnu.org>
124157         * m4/po.m4: update from gettext 0.14.1.
124159 2004-02-06  Karl Berry  <karl@gnu.org>
124161         * lib/config.charset: update from gettext 0.14.1.
124163 2004-02-05  Paul Eggert  <eggert@twinsun.com>
124165         Add comments and code, prompted by suggestions from Bruno Haible
124166         for sh-quote.
124167         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
124168         describing the enum quoting_style values.
124169         * lib/quotearg.c (quotearg_alloc): New function.
124170         (quotearg_buffer_restyled): Treat lone { and } as special.
124171         Treat = as special.  Work around bug with older shells
124172         that "see" a '\' that is really the 2nd byte of a multibyte char.
124173         Quote empty string with shell_quoting_style.
124175 2004-02-03  Bruno Haible  <bruno@clisp.org>
124177         * m4/pipe.m4: New file, from GNU gettext.
124179 2004-02-03  Bruno Haible  <bruno@clisp.org>
124181         * lib/pipe.h: New file, from GNU gettext.
124182         * lib/pipe.c: New file, from GNU gettext.
124184 2004-01-27  Bruno Haible  <bruno@clisp.org>
124186         * m4/execute.m4: New file, from GNU gettext.
124188 2004-01-27  Bruno Haible  <bruno@clisp.org>
124190         * lib/execute.h: New file, from GNU gettext.
124191         * lib/execute.c: New file, from GNU gettext.
124192         * lib/w32spawn.h: New file, from GNU gettext.
124194 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124196         Merge from diffutils.
124198         * lib/file-type.c (file_type): Add typed memory objects.
124199         * lib/file-type.h (S_TYPEISTMO): New macro.
124201         * lib/c-stack.h (c_stack_action): Remove argv argument.
124202         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
124203         (die): Don't calculate message unless segv_action returns.
124204         (get_stack_location, min_address_from_argv, max_address_from_argv,
124205         volatile stack_base, volatile_stack_size): Remove.
124206         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
124207         that every segmentation violation is a stack overflow.  (Ouch!)
124208         See Debian bug 136249 (still outstanding) for more info about why
124209         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
124211 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124213         Exit-status fix from coreutils.
124215         Use exit_failure consistently in place of EXIT_FAILURE,
124216         so that program exit statuses are consistent on failure.
124218         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
124219         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
124220         * lib/argmatch.h: Comment fix to match the above.
124221         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
124222         Now a macro referring to exit_failure, instead of a separate
124223         variable.  Include "exitfail.h" to get it.
124224         * lib/xstrtol.h: Include "exitfail.h".
124225         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
124227         * lib/long-options.c (parse_long_options): Use prototype
124228         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
124229         for clarity.
124231 2004-01-21  Jim Meyering  <jim@meyering.net>
124233         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
124234         so as not to conflict with a different-sized __mktime_internal
124235         function in GNU libc.
124236         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
124237         Problem building statically-linked `ls' reported by Michael Brunnbauer.
124239 2004-01-20  Karl Berry  <karl@gnu.org>
124241         * config/config.guess: update from config.
124243         * config/srclistvars.sh: GNUWWWLICENSES for karl.
124245 2004-01-20  Bruno Haible  <bruno@clisp.org>
124247         Safer stack allocation.
124248         * lib/setenv.c: Include allocsa.h.
124249         (alloca): Remove fallback definition.
124250         (freea): Remove macro.
124251         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
124252         instead of freea.
124254 2004-01-20  Bruno Haible  <bruno@clisp.org>
124256         * m4/eealloc.m4: New file, from GNU gettext.
124258 2004-01-20  Bruno Haible  <bruno@clisp.org>
124260         * m4/allocsa.m4: New file, from GNU gettext.
124262 2004-01-20  Bruno Haible  <bruno@clisp.org>
124264         * lib/xallocsa.h: New file, from GNU gettext.
124265         * lib/xallocsa.c: New file, from GNU gettext.
124267 2004-01-20  Bruno Haible  <bruno@clisp.org>
124269         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
124271 2004-01-20  Bruno Haible  <bruno@clisp.org>
124273         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
124274         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
124275         specially.
124277 2004-01-20  Bruno Haible  <bruno@clisp.org>
124279         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
124280         patch.
124282 2004-01-20  Bruno Haible  <bruno@clisp.org>
124284         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
124286 2004-01-20  Bruno Haible  <bruno@clisp.org>
124288         * lib/eealloc.h: New file.
124290 2004-01-20  Bruno Haible  <bruno@clisp.org>
124292         * lib/binary-io.h: Avoid warnings on Cygwin.
124294 2004-01-20  Bruno Haible  <bruno@clisp.org>
124296         * lib/allocsa.h: New file, from GNU gettext.
124297         * lib/allocsa.c: New file, from GNU gettext.
124299 2004-01-18  Karl Berry  <karl@gnu.org>
124301         * doc/gpl.texi, doc/lgpl.texi: new files.
124303 2004-01-18  Karl Berry  <karl@gnu.org>
124305         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
124306         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
124308 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124310         Merge from coreutils.
124312         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
124313         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
124314         (gl_DEFAULT_POSIX2_VERSION): Move
124315         the documentation from 'configure' into 'config.hin',
124316         so that 'configure --help' isn't burdened by it and
124317         we don't have to worry about its formatting there.
124318         Reword the documentation so that it's more succinct
124319         and can be run together into a single paragraph.
124320         * m4/same.m4 (gl_SAME): Check for pathconf.
124322 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124324         Merge from coreutils.
124326         * lib/posixver.c: Include posixver.h.
124328         * lib/same.c: Include <stdbool.h>, <limits.h>.
124329         (_POSIX_NAME_MAX): Define if not defined.
124330         (MIN): New macro.
124331         (same_name): If file names are silently truncated, report
124332         that the file names are the same if they are the same after
124333         the silent truncation.
124335         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
124336         conversion function.
124337         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
124338         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
124339         longer needed.
124341 2004-01-15  Jim Meyering  <jim@meyering.net>
124343         Merge from coreutils.
124345         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
124346         if no library is required.
124347         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
124348         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
124349         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
124350         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
124351         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
124352         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
124353         value, $ac_cv_search_crypt, if it's "none required".
124354         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
124355         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
124356         not gl_FUNC_GETLOADAVG.
124357         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
124358         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
124360 2004-01-15  Jim Meyering  <jim@meyering.net>
124362         Merge from coreutils.
124364         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
124365         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
124366         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
124368         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
124369         optional configure-time default.
124371         * lib/version-etc.c (version_etc_copyright): Update copyright date.
124373         * lib/xreadlink.c (xreadlink): Correct outdated comment.
124375 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
124377         Merge from coreutils.
124379         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
124380         value, $ac_cv_search_nanosleep, if it's "none required".
124382 2004-01-14  Paul Eggert  <eggert@twinsun.com>
124384         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
124385         with like-named macro in fnmatch.c.
124386         (EXT): Use an internal constant instead.
124388         Merge fnmatch patches from glibc.
124389         * lib/fnmatch.c (mbsinit): Remove define.
124390         Add libc_hidden_ver (__fnmatch, fnmatch).
124391         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
124392         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
124394 2004-01-14  Karl Berry  <karl@gnu.org>
124396         * config/install-sh: update from automake.
124398 2004-01-13  Karl Berry  <karl@gnu.org>
124400         * config/install-sh: update from automake.
124402 2004-01-09  Karl Berry  <karl@gnu.org>
124404         * config/install-sh: update from automake.
124406 2004-01-05  Karl Berry  <karl@gnu.org>
124408         * config/config.{sub,guess}: update from config.
124410 2003-12-31  Karl Berry  <karl@gnu.org>
124412         * config/depcomp: update from automake.
124414 2003-12-14  Karl Berry  <karl@gnu.org>
124416         * lib/config.charset: update from gettext-runtime.
124418 2003-12-03  Paul Eggert  <eggert@twinsun.com>
124420         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
124421         Bug reported by Alfred M. Szmidt.
124423 2003-12-03  Bruno Haible  <bruno@clisp.org>
124425         * m4/gettext.m4: Upgrade from gettext-0.13.
124426         * m4/po.m4: Upgrade from gettext-0.13.
124427         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
124428         * m4/intmax.m4: New file, from gettext-0.13.
124429         * m4/printf-posix.m4: New file, from gettext-0.13.
124431 2003-11-29  Karl Berry  <karl@gnu.org>
124433         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
124435 2003-11-25  Paul Eggert  <eggert@twinsun.com>
124436             Bruno Haible  <bruno@clisp.org>
124438         * lib/printf-parse.h: Don't include sys/types.h.
124439         (ARG_NONE): New macro.
124440         (char_directive): Change type of *arg_index fields to size_t.
124441         * lib/printf-parse.c: Don't include sys/types.h.
124442         (SSIZE_MAX): Remove macro.
124443         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
124444         Remove unnecessary overflow check.
124445         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
124446         fields.
124448 2003-11-25  Bruno Haible  <bruno@clisp.org>
124450         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
124452 2003-11-25  Bruno Haible  <bruno@clisp.org>
124454         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
124455         gt_TYPE_SSIZE_T.
124457 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124459         * modules/alloca: Remove dependency on xalloc.
124461 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124463         * lib/alloca.c: Remove dependency on xalloc module.
124464         (xalloc_die): Remove.
124465         (memory_full) [!defined emacs]: New macro.
124466         [!defined emacs]: Don't include xalloc.h.
124467         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
124468         address arithmetic overflows.  Change datatypes a bit to avoid
124469         unnecessary casts.
124471 2003-11-22  Jim Meyering  <jim@meyering.net>
124473         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
124474         s/size/size_t/.
124476 2003-11-21  Karl Berry  <karl@gnu.org>
124478         * config/config.{sub,guess}: update from config.
124480 2003-11-18  Karl Berry  <karl@gnu.org>
124482         * config/config.{sub,guess}: update from config.
124484         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
124486 2003-11-17  Paul Eggert  <eggert@twinsun.com>
124488         * README: Mention that S+T cannot overflow if S is the size of
124489         an existing object and T is sufficiently small.
124491 2003-11-17  Jim Meyering  <jim@meyering.net>
124493         On systems without utime and without a utimes function capable of
124494         dealing with a NULL struct utimbuf* argument, this utime replacement
124495         could -- in unusual circumstances -- leak a file descriptor.
124496         * lib/utime.c: Include <unistd.h> and <errno.h>.
124497         (utime_null): Be sure to close `fd' and to preserve errno.
124498         Reported by Geoff Collyer via Arnold Robbins.
124500 2003-11-17  Bruno Haible  <bruno@clisp.org>
124502         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
124503         (Depends-on): Add xsize.
124505 2003-11-17  Bruno Haible  <bruno@clisp.org>
124507         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
124509 2003-11-17  Bruno Haible  <bruno@clisp.org>
124511         * lib/vasnprintf.c (alloca): Remove fallback definition.
124512         (freea): Remove definition.
124513         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
124514         Reported by Paul Eggert.
124516 2003-11-16  Paul Eggert  <eggert@twinsun.com>
124517             Bruno Haible  <bruno@clisp.org>
124519         Protect against address arithmetic overflow.
124520         * lib/printf-args.h: Include stddef.h.
124521         (arguments): Change type of field 'count' to size_t.
124522         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
124523         'unsigned int' where appropriate.
124524         * lib/printf-parse.h: Include sys/types.h.
124525         (char_directive): Change type of *arg_index fields to ssize_t.
124526         (char_directives): Change type of fields 'count', max_*_length to
124527         size_t.
124528         * lib/printf-parse.c: Include sys/types.h and xsize.h.
124529         (SSIZE_MAX): Define fallback value.
124530         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
124531         instead of 'int' where appropriate. Check a_allocated, d_allocated
124532         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
124533         * lib/vasnprintf.c: Include xsize.h.
124534         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
124535         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
124536         overflow. Avoid wraparound when converting a width or precision from
124537         decimal to binary.
124539 2003-11-16  Bruno Haible  <bruno@clisp.org>
124541         Update from GNU gettext.
124542         * lib/printf-parse.c: Generalize to it can be compiled for wide
124543         strings.
124544         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
124545         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
124546         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
124547         SNPRINTF): New macros.
124548         Don't include <alloca.h> if the file is used inside libintl.
124549         (local_wcslen): New function, for Solaris 2.5.1.
124550         (VASNPRINTF): Use it instead of wcslen.
124552 2003-11-16  Bruno Haible  <bruno@clisp.org>
124554         * lib/xsize.h (xmax): New function.
124555         (xsum, xsum3, xsum4): Declare as "pure" functions.
124557 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124559         * modules/xalloc (Files): Undo latest change, since xalloc.h
124560         no longer needs SIZE_MAX or PTRDIFF_MAX.
124562 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124564         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
124565         gl_PTRDIFF_MAX.
124567 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124569         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
124570         "return", to pacify some unknown compiler.  Problem reported
124571         by Joerg Schilling.
124573 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124575         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
124576         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
124577         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
124578         heuristic is just as accurate as far as we know, and it removes a
124579         dependency on size_max.m4 and ptrdiff_max.m4.
124581 2003-11-11  Bruno Haible  <bruno@clisp.org>
124583         * modules/xsize (Files): Add m4/size_max.m4.
124584         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
124586 2003-11-11  Bruno Haible  <bruno@clisp.org>
124588         * m4/size_max.m4: New file.
124589         * m4/ptrdiff_max.m4: New file.
124590         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
124591         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
124592         (gl_XALLOC): Invoke it.
124594 2003-11-11  Bruno Haible  <bruno@clisp.org>
124596         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
124597         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
124598         defined.
124600 2003-11-10  Paul Eggert  <eggert@twinsun.com>
124602         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
124603         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
124604         rejected some allocations of exactly SIZE_MAX - 2 bytes.
124605         From Bruno Haible.
124606         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
124607         not (size_t) -1, since it's defined here.
124609 2003-11-09  Karl Berry  <karl@gnu.org>
124611         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
124613 2003-11-06  Paul Eggert  <eggert@twinsun.com>
124615         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
124616         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
124617         Reject sizes of exactly SIZE_MAX bytes.
124618         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
124619         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
124621 2003-11-05  Bruno Haible  <bruno@clisp.org>
124623         * lib/xsize.h: Include limits.h, to avoid a possible collision with
124624         SIZE_MAX defined in <limits.h> on Solaris.
124626 2003-11-04  Jim Meyering  <jim@meyering.net>
124628         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
124629         variable names, rather than @VAR@.
124630         * modules/poll: Likewise.
124632 2003-11-04  Bruno Haible  <bruno@clisp.org>
124634         * modules/xsize: New file.
124635         * modules/linebreak: Depend on xsize.
124636         * MODULES.html.sh (func_all_modules): Add xsize.
124638 2003-11-04  Bruno Haible  <bruno@clisp.org>
124640         * m4/xsize.m4: New file.
124642 2003-11-04  Bruno Haible  <bruno@clisp.org>
124644         * lib/xsize.h: New file.
124645         * lib/linebreak.c: Include xsize.h.
124646         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
124647         argument for overflow.
124648         Suggested by Paul Eggert.
124650 2003-11-03  Karl Berry  <karl@gnu.org>
124652         * config/config.{guess,sub}: update from config.
124654 2003-11-03  Jim Meyering  <jim@meyering.net>
124656         * modules/userspec (lib_SOURCES): Add userspec.h.
124657         (Include): Add "userspec.h".
124658         Improve description.
124660 2003-11-03  Jim Meyering  <jim@meyering.net>
124662         * lib/userspec.c: Include "userspec.h".
124663         * lib/userspec.h: New file.
124665 2003-11-03  Bruno Haible  <bruno@clisp.org>
124667         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
124669 2003-11-03  Bruno Haible  <bruno@clisp.org>
124671         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
124672         available, to avoid (extremely rare) race condition.
124673         Suggested by Paul Eggert.
124675 2003-11-02  Karl Berry  <karl@gnu.org>
124677         * config/srclist.txt (vasprintf.c): sync broken, sigh.
124679 2003-10-31  Paul Eggert  <eggert@twinsun.com>
124681         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
124682         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
124683         (read_filesystem_list): Set and use me_type_malloced.
124684         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
124685         whatever the type happens to be), for brevity and consistency.
124686         Check for size calculation overflow on Alphas running OSF/1.
124688 2003-10-31  Jim Meyering  <jim@meyering.net>
124690         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
124692         * lib/linebuffer.c: Include <string.h> for declaration of memset.
124694 2003-10-30  Paul Eggert  <eggert@twinsun.com>
124695             Bruno Haible  <bruno@clisp.org>
124697         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
124698         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
124700 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
124702         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
124703         netbsd*-gnu*.  Suggested by Robert Millan.
124705 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124707         * modules/group-member: Depend on stdbool.
124709 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124711         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
124713 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124715         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
124716         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
124717         after the 'gnu' in these cases.  This fixes some bugs in the
124718         previous change, and is based on suggestions by Robert Millan.
124720 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124722         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
124723         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
124724         no longer needed.
124725         * lib/quotearg.c (quotearg_n_options): Use it.
124726         * lib/group-member.c: Include <stdbool.h>.
124727         (free_group_info): Arg is now const *; don't free arg.
124728         (get_group_info): Now returns bool and accepts struct group_info *,
124729         rather than returning a malloc'ed struct group_info *.
124730         All uses changed.  Check for overflow in internal size calculation.
124732         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
124733         rather than xmalloc/xrealloc.
124734         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
124735         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
124736         conformance bug: the old code used a pointer after freeing the
124737         storage that it addressed.
124738         * lib/hash.c (hash_initialize): Simplify the code by using
124739         xalloc_oversized rather than doing it by hand.
124740         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
124741         the buffer preserved.  Use free and xmalloc instead.
124742         * lib/quotearg.c (quotearg_n_options): Likewise.
124743         Use a simpler test for size overflow.  Don't use xalloc_oversized
124744         because unsigned int might be wider than size_t (!); this suggests
124745         that we should switch from unsigned int to size_t for slot numbers.
124747 2003-10-28  Paul Eggert  <eggert@twinsun.com>
124749         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
124750         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
124751         NetBSD kernels.  Requested by Richard Stallman.
124753 2003-10-27  Paul Eggert  <eggert@twinsun.com>
124755         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
124756         to allocate the returned structure.  Do not allocate a subarray,
124757         as x2nrealloc will do that.
124758         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
124759         instead of xnrealloc.
124760         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
124762 2003-10-27  Bruno Haible  <bruno@clisp.org>
124764         * lib/stdbool_.h: Better support for BeOS.
124766 2003-10-26  Paul Eggert  <eggert@twinsun.com>
124768         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
124769         now uses inline.
124771 2003-10-26  Paul Eggert  <eggert@twinsun.com>
124773         * lib/xalloc.h (xalloc_oversized): New static inline function, for
124774         callers that want to do their own size-overflow checking.  Include
124775         <stdbool.h>, since xalloc_oversized returns bool.
124776         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
124777         to use xalloc_oversized.
124779         Add two functions x2realloc, x2nrealloc, for programs that grow
124780         arrays dynamically by doubling their sizes.
124781         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
124782         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
124783         New functions.
124785         Port to C99 semantics for 'inline' of external functions.
124786         Bug reported by Bruno Haible.
124787         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
124788         with the old contents of xnmalloc.
124789         (xnmalloc, xmalloc): Use it.
124790         (xnrealloc_inline): New static inline function,
124791         with the old contents of xnrealloc.
124792         (xnrealloc, xrealloc): Use it.
124794         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
124795         that.
124797 2003-10-26  Karl Berry  <karl@gnu.org>
124799         * config/srclist.txt (COPYING.DOC): no longer available from
124800         /gd/gnuorg; don't know where the ultimate source is.
124802 2003-10-25  Paul Eggert  <eggert@twinsun.com>
124804         Fix several address-calculation bugs in the hash modules,
124805         plus some minor code cleanup.
124807         * lib/hash.h: Include <stdbool.h>, for bool.
124808         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
124809         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
124810         hash_get_n_entries, hash_get_max_bucket_length,
124811         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
124812         hash_rehash): Use size_t rather than unsigned.
124813         * lib/hash.c (struct hash_table, hash_get_n_buckets,
124814         hash_get_n_buckets_used, hash_get_n_entries,
124815         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
124816         hash_get_entries, hash_do_for_each, hash_string, is_prime,
124817         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
124818         Likewise.
124819         (SIZE_MAX): Define if not defined.
124820         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
124821         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
124822         hash_print):
124823         Use const * when possible.
124824         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
124825         (check_tuning): Fix bug: if tuning parameters were very close to
124826         0 or 1, rounding errors could have caused subscript violations.
124827         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
124828         (hash_initialize): Add 'fail:' label
124829         to free table and return NULL, and use it to simplify code.
124830         Use calloc rather than clearing the storage ourself.
124831         (hash_initialize, hash_rehash): Check for arithmetic overflow in
124832         buffer size calculations.
124833         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
124834         Include <stddef.h>, for size_t.
124835         * lib/hash-pjw.c (hash_pjw): Likewise.
124836         Switch to method described by Bruno Haible.
124837         Include <limits.h>, for CHAR_BIT.
124838         (SIZE_BITS): New macro.
124840 2003-10-23  Paul Eggert  <eggert@twinsun.com>
124842         * m4/getline.m4 (AM_FUNC_GETLINE):
124843         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
124844         hosts.  Problem reported by Derek Robert Price in
124845         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
124846         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
124847         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
124849 2003-10-21  Paul Eggert  <eggert@twinsun.com>
124851         * lib/getndelim2.c (getndelim2): When size calculation overflows,
124852         ceiling the allocation at NMAX bytes rather than silently
124853         discarding input bytes before NMAX is reached.  This makes
124854         a difference only if NMAX exceeds SIZE_MAX / 2.
124856         * lib/obstack.c: Merge from glibc.
124857         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
124858         Add libc_hidden_def (_obstack_newchunk).
124859         (_obstack_free) [! defined _LIBC]: Remove.
124860         [defined _LIBC]: Make a strong alias from obstack_free, rather than
124861         a clone of the function body.
124862         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
124863         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
124865         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
124866         glibc.
124867         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
124868         arg to memcpy.
124870         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
124871         (obstack_ptr_grow_fast, obstack_int_grow_fast):
124872         Don't use lvalue casts, as GCC plans to remove support for them
124873         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
124874         was also present in the non-GCC version, indicating that this
124875         code had always been buggy and had never been widely used.
124876         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
124877         Use the fast variant of each macro, rather than copying the
124878         definiens of the fast variant; that way, we'll be more likely to
124879         catch future bugs in the fast variants.
124881 2003-10-20  Bruno Haible  <bruno@clisp.org>
124883         * modules/wait-process: New file.
124884         * MODULES.html.sh (func_all_modules): Add wait-process.
124886 2003-10-20  Bruno Haible  <bruno@clisp.org>
124888         * m4/wait-process.m4: New file.
124890 2003-10-20  Bruno Haible  <bruno@clisp.org>
124892         * lib/wait-process.h: New file, from GNU gettext.
124893         * lib/wait-process.c: New file, from GNU gettext.
124895 2003-10-19  Jim Meyering  <jim@meyering.net>
124897         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
124898         HPUX 10.20.
124900 2003-10-18  Karl Berry  <karl@gnu.org>
124902         * config/config.guess: update from config.
124904 2003-10-16  Paul Eggert  <eggert@twinsun.com>
124906         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
124907         (getgroups): First arg is int, not size_t.
124908         Don't let 'free' mangle errno.
124910 2003-10-16  Paul Eggert  <eggert@twinsun.com>
124912         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
124914 2003-10-16  Karl Berry  <karl@gnu.org>
124916         * config/config.{guess,sub}: update from config.
124918 2003-10-16  Jim Meyering  <jim@meyering.net>
124920         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
124921         memcpy.
124923 2003-10-15  Paul Eggert  <eggert@twinsun.com>
124925         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
124926         (SIZE_MAX): Remove.
124927         (new_exclude, add_exclude_file): Initial size no longer needs to
124928         be a power of 2.
124929         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
124930         our own address arithmetic overflow checking.
124932         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
124933         (fnmatch): Do not alloca more than 2000 wide characters;
124934         instead, use malloc for large buffers.
124935         Check for address arithmetic overflow, and return -1
124936         with errno set to ENOMEM in that case.
124937         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
124938         (NEW_PATTERN): Do not alloca more than 8000 bytes;
124939         instead, return -1.  Check for address arithmetic overflow.
124941 2003-10-14  Paul Eggert  <eggert@twinsun.com>
124943         Handle invalid suffixes and overflow independently, so that
124944         callers can treat them independently as needed.  Fix some bugs in
124945         suffix handling, e.g., "100k@" was not diagnosed as an invalid
124946         suffix for a human-readable blocksize.  The major caller-visible
124947         change is the addition of a new
124948         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
124949         that both overflow and suffix chars were found.
124951         * lib/human.c (humblock): Don't check separately for invalid suffix
124952         char; that is xstrtoumax's job (now that its bug is fixed).
124953         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
124954         INTMAX_MAX]: New macros.
124955         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
124956         TYPE_MAXIMUM): New macros.
124957         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
124958         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
124959         if overflow occurs, as it's what __strtol does and it's more useful
124960         in practice.
124961         (__xstrtol): If __strtol reports some error other than ERANGE,
124962         reflect it to the caller as LONGINT_INVALID.  If it reports
124963         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
124964         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
124965         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
124966         value.
124967         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
124968         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
124969         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
124970         [defined UINTMAX_MAX]: New macros.
124972 2003-10-14  Bruno Haible  <bruno@clisp.org>
124974         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
124976 2003-10-14  Bruno Haible  <bruno@clisp.org>
124978         * m4/sig_atomic_t: New file, from GNU gettext.
124979         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
124981 2003-10-14  Bruno Haible  <bruno@clisp.org>
124983         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
124984         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
124985         Also use volatile where needed.
124987 2003-10-12  Paul Eggert  <eggert@twinsun.com>
124989         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
124990         Change maintainer from Bruno Haible to 'all'.
124992 2003-10-12  Paul Eggert  <eggert@twinsun.com>
124994         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
124996 2003-10-12  Paul Eggert  <eggert@twinsun.com>
124998         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
124999         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
125000         and define in terms of the other primitives.
125001         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
125002         (SIZE_MAX): Define if not already defined.
125003         (array_size_overflow): New function.
125004         (xalloc_die): Abort instead of exiting if 'error' returns.
125005         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
125006         (xmalloc, xrealloc): Use them.
125007         (xcalloc): Check for address arithmetic overflow.
125008         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
125009         a bit faster than strcpy.
125011 2003-10-10  Simon Josefsson  <jas@extundo.com>
125013         * modules/argp (Depends-on): Add restrict and strcase.
125015 2003-10-10  Simon Josefsson  <jas@extundo.com>
125017         * m4/argp.m4: Add AC_C_INLINE.
125019 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125021         Merge getpass from libc, plus a few fixes.
125023         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
125024         Include <stdbool.h>.
125025         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
125026         __fsetlocking to empty.
125027         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
125028         do include <bits/libc-lock.h>.
125029         Do not include <fcntl.h>; not needed.
125030         [_LIBC]: Include <wchar.h>.
125031         (NOTCANCEL_MODE): New macro.
125032         (flockfile, funlockfile) [_LIBC]: New macros.
125033         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
125034         [!_LIBC]: New macros.
125035         (call_fclose): New function.
125036         (getpass): Use it.  Save tty stream separately; this simplifies the
125037         code and makes it more reliable if stdin happens to equal stdout.
125038         Invoke __fsetlocking on tty.
125039         Handle thread cancellation if needed.
125040         Namespace cleanup (use __tcgetattr, __getline).
125041         Use bool for Booleans.
125042         [USE_IN_LIBIO]: Handle wide streams.
125043         [!_LIBC]: Unconditionally do the fseek, since we don't know what
125044         stream might go where.
125046         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
125047         doesn't have to include <stdio.h> before us.
125048         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
125049         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
125050         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
125051         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
125052         if not declared, so that we can use getpass.c code from libc without
125053         rewriting it.
125054         (flockfile, ftrylockfile, funlockfile): New macros.
125056 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125058         * modules/getpass: Depend on stdbool.
125060 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125062         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
125064 2003-10-07  Karl Berry  <karl@gnu.org>
125066         * config/config.{guess,sub}: update from config.
125068 2003-10-06  Jim Meyering  <jim@meyering.net>
125069             Bruno Haible  <bruno@clisp.org>
125071         This lets translators provide better translations for the
125072         "Written by ..." part of --version output.
125073         * lib/version-etc.h: Include stdarg.h.
125074         (version_etc_copyright): Declare as readonly.
125075         (version_etc): Make this function variadic with a NULL-terminated list
125076         of author name strings.
125077         (version_etc_va): New declaration.
125078         * lib/version-etc.c: Include stdarg.h, stdlib.h.
125079         (version_etc_copyright): Declare as readonly.
125080         (version_etc_va): New function. Provide a different translatable string
125081         for each possible number of authors < 10. Abbreviate when there are 10
125082         authors or more.
125083         (version_etc): Make this function variadic. Call version_etc_va.
125084         Suggestion from Gary V. Vaughan.
125086         * lib/long-options.h (parse_long_options): Change prototype: the
125087         authors string is moved to the end and becomes variadic.
125088         * lib/long-options.c: Include stdarg.h.
125089         (parse_long_options): Make this function variadic, too.
125090         Call version_etc_va, not version_etc.
125092 2003-10-06  Bruno Haible  <bruno@clisp.org>
125094         * modules/version-etc-2: Remove file.
125095         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
125097 2003-10-06  Bruno Haible  <bruno@clisp.org>
125099         * modules/fatal-signal: New file.
125100         * MODULES.html.sh (func_all_modules): Add fatal-signal.
125102 2003-10-06  Bruno Haible  <bruno@clisp.org>
125104         * m4/fatal-signal.m4: New file.
125105         * m4/signalblocking.m4: New file, from GNU gettext.
125107 2003-10-06  Bruno Haible  <bruno@clisp.org>
125109         * lib/version-etc-2.h: Remove file.
125110         * lib/version-etc-2.c: Remove file.
125112 2003-10-06  Bruno Haible  <bruno@clisp.org>
125114         * lib/fatal-signal.h: New file, from GNU gettext.
125115         * lib/fatal-signal.c: New file, from GNU gettext.
125117 2003-10-05  Paul Eggert  <eggert@twinsun.com>
125119         * README: Rework advice for preventing empty .o files.
125120         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
125121         not <sys/types.h>.
125123 2003-10-04  Karl Berry  <karl@gnu.org>
125125         * lib/argp*: update from libc.
125127 2003-10-04  Karl Berry  <karl@gnu.org>
125129         * config/config.{guess,sub}: update from config.
125131 2003-10-02  Bruno Haible  <bruno@clisp.org>
125133         * modules/lchown (Include): Add lchown.h.
125134         * modules/time_r (Include): Use "..." syntax.
125135         * modules/xgetdomainname (Include): Add xgetdomainname.h.
125137 2003-10-01  Simon Josefsson  <jas@extundo.com>
125139         * MODULES.html.sh (func_all_modules): Move gethostname from section
125140         'based on' to section 'lacking' POSIX:2001.
125142 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
125144         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
125145         to output mode on the same stream.
125147 2003-09-29  Paul Eggert  <eggert@twinsun.com>
125149         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
125150         Fix arg typo in previous patch.
125152 2003-09-28  Jim Meyering  <jim@meyering.net>
125154         * lib/error.c: Correct cpp indentation.
125156 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125158         * modules/free: New file.
125160 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125162         * m4/free.m4: New file.
125164 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125166         * lib/minmax.h (MIN, MAX)
125167         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
125168         Omit the special code that used __typeof__, since we worry that
125169         it could be more trouble than it's worth.  See:
125170         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
125171         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
125173         * lib/free.c: New file.
125175 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
125177         Trivial fixes to Makefile.am parts of module listings.
125178         * modules/strstr: Append strstr.h to lib_SOURCES.
125179         * modules/strcase: Likewise, for strcase.h.
125181 2003-09-27  Karl Berry  <karl@gnu.org>
125183         * config/mkinstalldirs: update from automake.
125185 2003-09-26  Paul Eggert  <eggert@twinsun.com>
125187         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
125188         (error_tail): Do not loop, reallocating temporary buffer, since
125189         the output cannot contain more wide characters than the input
125190         contains bytes, the size must be big enough already.  This avoids
125191         one potential size overflow calculation.  Check for size overflow
125192         when calculating temporary buffer size.  Free temporary buffer
125193         when done, if it was allocated with malloc; this plugs a memory
125194         leak.  Remove casts from void * to pointers, that are no longer
125195         needed now that we're assuming C89 or better.
125197         Merge error changes from glibc.
125199         * lib/error.c, error.h: Update copyright notice header to match glibc.
125200         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
125201         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
125202         Disable cancellation while printing error.
125203         * lib/error.h: Prepend __ to parameter names.
125205 2003-09-26  Jim Meyering  <jim@meyering.net>
125207         * lib/error.c (error_tail): Move some declarations
125208         into inner scope where the local variables are used.
125210 2003-09-26  Bruno Haible  <bruno@clisp.org>
125212         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
125213         stpncpy().
125214         Don't define stpncpy through config.h; it's now done through stpncpy.h.
125216 2003-09-26  Bruno Haible  <bruno@clisp.org>
125218         * lib/stpncpy.h (gnu_stpncpy): New declaration.
125219         (stpncpy): Define as alias for gnu_stpncpy.
125220         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
125222 2003-09-25  Simon Josefsson  <jas@extundo.com>
125224         * lib/xgetdomainname.h: New file.
125225         * lib/xgetdomainname.c: New file.
125227 2003-09-25  Simon Josefsson  <jas@extundo.com>
125228             Bruno Haible  <bruno@clisp.org>
125230         * modules/getdomainname: New file.
125231         * modules/xgetdomainname: New file.
125232         * MODULES.html.sh (func_all_modules): Add getdomainname,
125233         xgetdomainname.
125235 2003-09-25  Simon Josefsson  <jas@extundo.com>
125236             Bruno Haible  <bruno@clisp.org>
125238         * m4/getdomainname.m4: New file.
125240 2003-09-25  Simon Josefsson  <jas@extundo.com>
125241             Bruno Haible  <bruno@clisp.org>
125243         * lib/getdomainname.h: New file.
125244         * lib/getdomainname.c: New file.
125246 2003-09-25  Karl Berry  <karl@gnu.org>
125248         * lib/argp-fmtstream.c, argp-help.c: update from libc.
125250 2003-09-25  Karl Berry  <karl@gnu.org>
125252         * config/install-sh: update from automake.
125254 2003-09-25  Bruno Haible  <bruno@clisp.org>
125256         * modules/version-etc-2: New file, from modules/version-etc with
125257         modifications.
125258         * MODULES.html.sh (func_all_modules): Add version-etc-2.
125260 2003-09-25  Bruno Haible  <bruno@clisp.org>
125262         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
125263         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
125265 2003-09-24  Simon Josefsson  <jas@extundo.com>
125267         * modules/xgethostname: Add xgethostname.h.
125269 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125271         * lib/linebuffer.c (freebuffer): Don't free the argument, just
125272         the buffer associated with the argument.  Bug reported by
125273         Simon Josefsson.
125275 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125277         * README: Document assumptions that 'int' is at least 32 bits
125278         wide, that integer arithmetic is 2's complement without overflow,
125279         that there are no holes in integer values, that adding sizes of
125280         two nonoverlapping objects can't overflow, and that all-bits-zero
125281         yields scalar zero.  Fix spelling and capitalization typos.
125283 2003-09-19  Karl Berry  <karl@gnu.org>
125285         * lib/argp.h: update from libc.
125287 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125289         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
125290         to avoid spurious warnings like "AC_RUN_IFELSE was called before
125291         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
125293 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125295         * gnulib-tool: Use "test -h", not "test -L", for portability
125296         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
125297         (tags_regexp): Remove, since \| doesn't conform to POSIX.
125298         (sed_extract_prog): Issue s commands one-by-one, rather than
125299         using \| in one s command.
125301 2003-09-16  Paul Eggert  <eggert@twinsun.com>
125303         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
125304         input error, instead of returning NULL the next time we are called
125305         (and therefore losing track of errno).
125307 2003-09-16  Bruno Haible  <bruno@clisp.org>
125309         * gnulib-tool (func_create_testdir): Warn about duplicated
125310         dependencies.
125312 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125314         * modules/argmatch, modules/fatal, modules/obstack,
125315         modules/xalloc, modules/xgethostname: Sort dependencies by
125316         importance, not alphabetically.
125318 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125320         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
125321         fails, so that the caller gets the proper errno.
125323         * lib/readutmp.c (read_utmp): Likewise.
125324         Check for fstat error.  Close stream and free storage
125325         when failing.
125327 2003-09-14  Karl Berry  <karl@gnu.org>
125329         * config/srclist.txt (strdup.c): disable for c89 changes.
125331 2003-09-14  Jim Meyering  <jim@meyering.net>
125333         * lib/getloadavg.c: Correct cpp indentation.
125334         * lib/strdup.c: Likewise.
125335         * lib/vasnprintf.c: Likewise.
125337 2003-09-14  Bruno Haible  <bruno@clisp.org>
125339         * modules/fwriteerror: New file.
125340         * MODULES.html.sh (func_all_modules): Add fwriteerror.
125342 2003-09-14  Bruno Haible  <bruno@clisp.org>
125344         * lib/fwriteerror.h: New file.
125345         * lib/fwriteerror.c: New file.
125347 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125349         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
125350         modules/xgethostname, modules/xalloc: Depend on exit.
125352 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125354         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
125356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
125357         and AC_MINIX, too, so that their extensions are available.
125359         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
125360         This macro has been superseded by gl_BACKUPFILE.
125362         More patches to assume C89 or better.
125364         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
125366         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
125367         unconditionally.
125368         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
125369         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
125370         Include <string.h>, <stdlib.h> unconditionally.
125371         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
125372         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
125373         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
125374         headers or for string.h.
125375         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
125376         or strtoul.
125378         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
125379         headers.
125380         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
125381         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125382         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
125383         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
125384         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125385         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
125386         memcpy, memset.
125387         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
125388         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
125389         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
125390         strtol.
125391         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
125392         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
125393         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
125394         strtoul.
125396 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125398         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
125399         * lib/obstack.c [!defined _LIBC]: Likewise.
125400         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
125401         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
125402         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
125404         More changes to assume C89 or better.
125406         * lib/error.c (error_tail): Assume vprintf.
125408         * lib/argmatch.c (getenv): Remove decl.
125409         * lib/progreloc.c (get_full_program_name): Define via prototype.
125410         * lib/setenv.c (clearenv): Likewise.
125411         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
125412         needed.
125413         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
125414         (malloc, memcpy): Remove decls.
125415         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
125416         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
125417         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125418         (memcpy): Remove macro.
125419         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
125420         (__P): Remove.  All uses removed.
125421         (PTR): Remove.  All uses changed to void *.
125422         (CHAR_BIT, NULL): Remove.
125423         (spaces, zeros, memset_space, memset_zero)
125424         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
125425         Remove.
125426         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
125427         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
125428         Define with prototype.
125429         Remove now-unnecessary prototype decl.
125430         (extra_args_spec): Assume ANSI C.  All uses changed.
125431         (extra_args_spec_iso): Remove.
125432         (my_strftime, emacs_strftimeu): Define via prototype.
125433         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
125434         unconditionally.
125435         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
125436         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
125437         (strtoul, strtol): Remove decls.
125438         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
125439         LONG_MAX): Remove.
125440         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125441         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
125442         (LOCALE_PARAM_PROTO): New macro.
125443         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
125444         (INTERNAL (strtol), strtol): Define with a prototype.
125445         (PARAMS): Remove.  All uses removed.
125446         * lib/tempname.c: Include <string.h> unconditionally.
125447         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
125448         * lib/xgethostname.c (main): Define with a prototype.
125449         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
125450         Include <stdlib.h> unconditionally.
125451         (calloc, malloc, realloc, free): Remove decls.
125452         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
125453         Include <stdlib.h> unconditionally.  Sort include file names.
125454         (strtod): Remove.
125455         (xstrtod): Define with a prototype.
125456         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
125457         (strtol, strtoul): Remove decls.
125459 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125461         More patches to assume C89 or better.
125462         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
125463         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
125464         string.h, memchr, STDC_HEADERS.
125466 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125468         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
125469         Include <stdlib.h>, <string.h> unconditionally.
125470         Remove now-unnecessary cast to char *.
125471         * lib/strnlen.c: Include <string.h> unconditionally.
125472         * lib/yesno.c (yesno): Define with a prototype.
125474 2003-09-11  Bruno Haible  <bruno@clisp.org>
125476         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
125478 2003-09-10  Jim Meyering  <jim@meyering.net>
125480         * lib/error.c: Correct indentation of cpp directives.
125482 2003-09-10  Bruno Haible  <bruno@clisp.org>
125484         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
125485         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
125486         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
125487         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
125488         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
125489         <stdlib.h> and <string.h> checks.
125490         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
125491         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
125493 2003-09-10  Bruno Haible  <bruno@clisp.org>
125495         * lib/strcspn.c: Include <string.h> unconditionally.
125496         * lib/strpbrk.c: Include <string.h> unconditionally.
125497         * lib/strstr.c: Include <string.h> unconditionally.
125498         * lib/unicodeio.c: Include <string.h> unconditionally.
125499         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
125500         * lib/unsetenv.c: Likewise.
125501         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
125502         * lib/yesno.c: Include <stdlib.h> unconditionally.
125503         (rpmatch): Add prototype.
125505 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125507         More patches to assume C89 or better.
125508         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
125509         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
125510         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
125511         or for string.h.
125512         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
125513         stdlib.h.
125514         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
125515         C headers.
125516         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
125517         string.h.
125518         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
125519         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
125520         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
125521         or for string.h.
125522         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
125523         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
125524         C headers.
125525         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
125526         memcpy.
125527         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
125528         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
125529         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
125530         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
125531         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
125532         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
125533         string.h, free.
125534         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
125535         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
125536         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
125537         C headers, or for string.h.
125538         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
125539         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
125540         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
125541         headers, memory.h, stdlib.h, string.h, strings.h.
125542         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
125543         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
125544         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
125545         strchr.
125546         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
125547         headers, memory.h, string.h.
125548         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
125549         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
125550         free.
125551         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
125552         headers.
125553         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
125554         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
125555         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
125556         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
125557         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
125559 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125561         More K&R removal.
125563         * lib/acosl.c (main): Use a prototype.
125564         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
125565         tanl.c: Likewise.
125567         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
125569         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
125570         (getopt, etopt_long, getopt_long_only, _getopt_internal)
125571         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
125572         with a prototype.
125573         * lib/getopt.c (const): Remove macro.
125574         Include <string.h> unconditionally.
125575         (my_index): Remove; all uses changed to strchr.
125576         (strlen): Remove decl.
125577         (exchange): Remove forward decl; no longer needed.
125578         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
125579         Define with prototype.
125580         * lib/getopt1.c (const): Remove macro.
125581         (getopt_long, getopt_long_only, main): Define with prototype.
125583         * lib/getugroups.c: Include <string.h> unconditionally.
125585         * lib/getusershell.c: Include <stdlib.h> unconditionally.
125586         (getusershell, setusershell, endusershell, readname, main):
125587         Define with prototypes.
125589         * lib/group-member.c: Include group-member.h first.
125590         Include <stdlib.h> unconditionally.
125592         * lib/hard-locale.c: Include hard-locale.h first.
125593         Include <stdlib.h>, <string.h> unconditionally.
125595         * lib/hash.c (free, malloc): Remove decls.
125596         Include <stdlib.h> unconditionally.
125598         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
125599         (getenv): Do not declare.
125601         * lib/idcache.c: Include <string.h> unconditionally.
125603         * lib/long-options.c: Include long-options.h first, to test interface.
125604         Include <stdlib.h> unconditionally.
125606         * lib/makepath.c: Include makepath.h first, to test interface.
125607         Include <stdlib.h> and <string.h> unconditionally.
125609         * lib/linebuffer.c: Include <stdlib.h>.
125610         (free): Remove decl.
125612         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
125613         stddef.h. rpl_malloc returns void *, not char *.
125614         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
125615         prototype.
125617         * lib/md5.h: Include <limits.h> unconditionally.
125618         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
125619         (__P): Remove; all uses removed.
125620         * lib/md5.c: Include "md5.h" first.
125621         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
125622         md5_buffer, md5_process_bytes, md5_process_block):
125623         Define with prototypes.
125624         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
125625         * lib/sha.c: Include "sha.h" first.
125626         Include <stdlib.h>, <string.h> unconditionally.
125628         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
125629         * lib/memcmp.c (__ptr_t): Likewise.
125630         * lib/memrchr.c (__ptr_t): Likewise.
125631         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
125632         Include <string.h> unconditionally.
125633         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
125634         * lib/memchr.c: Include <stdlib.h> unconditionally.
125635         * lib/memchr.c (LONG_MAX): Remove.
125636         * lib/memrchr.c (LONG_MAX): Likewise.
125637         * lib/memchr.c (__memchr): Define via a prototype.
125638         * lib/memrchr.c (__memrchr): Likewise.
125639         * lib/memcmp.c (__P): Remove, and remove all uses.
125640         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
125641         Remove forward decls; no longer needed.
125642         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
125643         Use types required by C89 in prototype.
125645         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
125646         * lib/savedir.c: Likewise.
125647         * lib/mkdir.c (free): Remove decl.
125648         * lib/rmdir.c (rmdir): Define with a prototype.
125649         * lib/savedir.c: Include savedir.h first, to test interface.
125651         * lib/mktime.c (STDC_HEADERS): Remove.
125652         Include <stdlib.h>, <string.h> unconditionally.
125654         * lib/modechange.c: Include <stdlib.h> unconditionally.
125655         (malloc): Remove decl.
125657         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
125658         (free): Remove decl.
125660         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
125661         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
125662         (This type really should be intptr_t, but that's a C99ism.)
125663         (_obstack_memcpy): Remove: all uses changed to memcpy.
125664         Include <string.h> unconditionally.
125665         (struct obstack): Assume __STDC__ for types of members
125666         chunkfun, freefun, extra_arg.
125667         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
125668         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
125669         obstack_begin, obstack_specify_allocation,
125670         obstack_specify_allocation_with_arg, obstack_chunkfun,
125671         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
125672         Remove unprototyped decls and the macros that use them.
125673         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
125674         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
125675         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
125676         (defined __STDC__ && __STDC__)]:
125677         Remove nonprototyped code.
125678         Include <stdlib.h> unconditionally.
125679         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
125680         _obstack_allocated_p, _obstack_free, obstack_free,
125681         _obstack_memory_used, print_and_abort):
125682         Define using prototypes.
125683         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
125684         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
125685         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
125686         obstack_next_free, obstack_object_size, obstack_room) [0]:
125687         Remove unused, unprototyped code.
125689         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
125691         * lib/physmem.c (physmem_total, physmem_available, main): Define
125692         with prototypes.
125694         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
125695         (main): Define with a prototype.
125697         * lib/posixver.c (getenv): Remove decl.
125699         * lib/putenv.c (malloc): Returns void *, not char *.
125700         Include <string.h> unconditionally.
125701         (strchr, memcpy, NULL): Do not define.
125703         * lib/readtokens.c: Include readtokens.h first, to test interface.
125704         Include <stdlib.h>, <string.h> unconditionally.
125705         (init_tokenbuffer): Define with a prototype.
125707         * lib/regex.c (PARAMS): Remove.  All uses removed.
125708         All uses of _RE_ARGS removed, too.
125709         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
125710         unconditionally.
125711         (bzero): Assume memset exists.
125712         (memcmp, memcpy, NULL): Remove.
125713         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
125714         char, or assignments to local vars of type signed char.
125715         (init_syntax_once, PREFIX(extract_number_and_incr),
125716         PREFIX(print_partial_compiled_pattern),
125717         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
125718         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
125719         PREFIX(regex_grow_registers), PREFIX(regex_compile),
125720         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
125721         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
125722         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
125723         wcs_compile_range, byte_compile_range, truncate_wchar,
125724         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
125725         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
125726         count_mbs_length, wcs_re_match_2_internal,
125727         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
125728         PREFIX(alt_match_null_string_p),
125729         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
125730         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
125731         regfree, PREFIX(extract_number)): Define with prototype.  Remove
125732         now-unnecessary declaration, if any.
125733         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
125734         regcomp, regexec):
125735         Remove now-unnecessary casts among pointer types.
125736         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
125738         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
125739         (free): Remove decl.
125741         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
125743         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
125744         (free): Remove decl.
125746         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
125747         * lib/xgetcwd.c: Likewise.
125749         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
125750         (free): Remove decl.
125752         * lib/strchrnul.c (strchrnul): Define with a prototype.
125753         Fix bug: c_in was not converted to char before searching.
125755         The following changes are not K&R related:
125757         * lib/group-member.h: Include <sys/types.h>, so that this file is
125758         self-contained.
125759         * lib/makepath.h: Likewise.
125761         * lib/getusershell.c (readname, default_index, line_size, readname):
125762         Use size_t, not int, for sizes.
125763         (readname): If the size overflows, report an error instead of
125764         looping forever.
125766 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125768         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
125769         libc.
125771 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125773         * README: New section: portability guidelines.
125775 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
125777         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
125778         C89 spec.
125780 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
125782         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
125784 2003-09-08  Paul Eggert  <eggert@twinsun.com>
125786         Assume C89 or better; remove K&R cruft.
125787         A few of these changes were first proposed by Derek Robert Price
125788         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
125790         * lib/addext.c: Include <string.h> unconditionally.
125791         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
125792         Don't declare getenv or malloc.
125794         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
125795         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
125796         (NULL): Remove.
125797         (find_stack_direction, alloca): Use prototypes.
125799         * lib/atexit.c (atexit): Define using a prototype.
125801         * lib/basename.c, dirname.c, stripslash.c:
125802         Include <string.h> unconditionally.
125804         * lib/bcopy.c: Include <stddef.h>.
125805         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
125807         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
125809         * lib/error.h (error, error_at_line, error_print_progname)
125810         [! (defined (__STDC__) && __STDC__)]: Remove decls.
125811         * lib/error.c: Include error.h first, to check interface.
125812         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
125813         (VA_START): Remove; all uses changeed to va_start.
125814         (exit, strerror): Remove decls.
125815         (error_print_progname): Prototype uncondionally.
125816         Don't include <errno.h>; no longer needed.
125817         (private_strerror): Remove.
125818         (error_tail): Always define.
125819         (error, error_at_line): Assume C89 or better; always use prototypes.
125820         * lib/fatal.c: Include "fatal.h" first, to test interface.
125821         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
125822         (VA_START): Remove; all uses changed to va_start.
125823         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
125824         this case.
125825         (exit): Remove decl.
125826         (fatal): Prototype unconditionally.  Assume va_start works.
125827         Abort at end, to pacify gcc.
125829         * lib/euidaccess.c (main): Define with a prototype.
125831         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
125833         * lib/exitfail.c: Include <stdlib.h> unconditionally.
125835         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
125836         prototypes.
125837         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
125838         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
125839         (getenv): Remove decl.
125840         (fnmatch): Define using a prototype.
125841         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
125842         (FCT): Define using a prototype.
125844         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
125846         * lib/gethostname.c: Include <stddef.h>.
125847         (gethostname): Define with prototype.  Length is size_t, not int.
125849 2003-09-08  Paul Eggert  <eggert@twinsun.com>
125851         Assume C89 or better; remove K&R cruft.
125852         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
125853         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
125854         string.h, getenv, malloc.
125855         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
125856         headers.
125857         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
125858         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
125859         do not check for strerror.
125860         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
125861         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
125862         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
125863         do not check for doprnt or vprintf.
125864         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
125865         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
125867 2003-09-08  Paul Eggert  <eggert@twinsun.com>
125869         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
125870         getversion.c should have been removed then, but was accidentally
125871         preserved.
125873         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
125874         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
125876 2003-09-08  Karl Berry  <karl@gnu.org>
125878         * config/config.sub, config.guess, srclistvars.sh: update from savannah
125879                 config, forget about prep.
125881         * config/depcomp, missing: update from automake.
125883 2003-09-07  Paul Eggert  <eggert@twinsun.com>
125885         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
125886         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
125888 2003-09-07  Paul Eggert  <eggert@twinsun.com>
125890         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
125891         copy_tm_result.  Bug reported by Simon Josefsson in
125892         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
125894 2003-09-06  Paul Eggert  <eggert@twinsun.com>
125896         * m4/time_r.m4: New file.
125897         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
125898         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
125899         is. Check for timegm declaration.
125900         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
125901         Do not check for gmtime_r.
125902         Replace mktime if __mktime_internal does not exist and if mktime
125903         hasn't been replaced already.
125905 2003-09-06  Paul Eggert  <eggert@twinsun.com>
125907         * lib/time_r.c, lib/time_r.h: New files.
125909         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
125910         __localtime_r.
125911         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
125912         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
125914         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
125915         __gmtime_r.
125916         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
125917         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
125918         Include <time_r.h>.
125920         * lib/timegm.c: Switch to glibc implementation, with the following
125921         changes:
125922         [defined HAVE_CONFIG_H]: Include <config.h>.
125923         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
125924         (__mktime_internal) [!defined _LIBC]: New decl.
125925         (__gmtime_r) [!defined _LIBC]: New macro and function.
125926         (timegm): Use a prototype, since gnulib assumes C89.
125927         Do not bother declaring tmp to be const, as it's not really usefu.
125928         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
125929         (timegm): Declare only if HAVE_DECL_TIMEGM.
125931 2003-09-06  Paul Eggert  <eggert@twinsun.com>
125933         * MODULES.html.sh (func_all_modules): Add time_r.
125934         * modules/time_r: New file.
125935         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
125936         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
125938 2003-09-03  Paul Eggert  <eggert@twinsun.com>
125940         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
125941         Bug reported by Lute Kamstra in
125942         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
125944         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
125945         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
125946         course with correspondingly smaller numbers for tomorrow and
125947         yesterday.  From Tadayoshi Funaba.  Originally installed into
125948         sh-utils on 1999-08-07, but the patch got lost (I guess during the
125949         coreutils merge?).
125951 2003-08-31  Simon Josefsson  <jas@extundo.com>
125953         * modules/timegm: New file.
125954         * MODULES.html.sh (func_all_modules): Add timegm.
125956 2003-08-31  Simon Josefsson  <jas@extundo.com>
125958         * m4/timegm.m4: New file.
125960 2003-08-31  Simon Josefsson  <jas@extundo.com>
125962         * lib/timegm.h: New file.
125963         * lib/timegm.c: New file.  Based on
125964         wget-1.8.2/src/http.c:mktime_from_utc.
125966 2003-08-31  Karl Berry  <karl@gnu.org>
125968         * lib/argp.h: update from libc.
125970 2003-08-28  Bruno Haible  <bruno@clisp.org>
125972         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
125973         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
125974         followed by '#define fnmatch fnmatch_posix' gives an error.
125976 2003-08-28  Bruno Haible  <bruno@clisp.org>
125978         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
125979         warning on QNX, which defines O_BINARY to 000000.
125981 2003-08-27  Jim Meyering  <jim@meyering.net>
125983         * m4/mkstemp.m4: Require that the system mkstemp be able to create
125984         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
125985         would fail after 32.  Reported by Danny Levinson.  Details here:
125986         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
125988 2003-08-24  Bruno Haible  <bruno@clisp.org>
125990         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
125991         MSVC7 <stdio.h> is included later.
125993 2003-08-22  Simon Josefsson  <jas@extundo.com>
125995         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
125997 2003-08-20  Karl Berry  <karl@gnu.org>
125999         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
126001 2003-08-20  Bruno Haible  <bruno@clisp.org>
126003         * modules/progname: New file.
126004         * MODULES.html.sh (func_all_modules): Add progname.
126006 2003-08-20  Bruno Haible  <bruno@clisp.org>
126008         * lib/progname.h: New file, from GNU gettext.
126009         * lib/progname.c: New file, from GNU gettext.
126010         * lib/progreloc.c: New file, from GNU gettext.
126012 2003-08-19  Jim Meyering  <jim@meyering.net>
126014         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
126015         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
126017 2003-08-19  Bruno Haible  <bruno@clisp.org>
126019         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
126020         more.
126022 2003-08-19  Bruno Haible  <bruno@clisp.org>
126024         * lib/xstrdup.c: Assume <string.h> exists.
126026 2003-08-18  Paul Eggert  <eggert@twinsun.com>
126028         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
126029         in makefile rules.
126031 2003-08-18  Jim Meyering  <jim@meyering.net>
126033         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
126034         * m4/lib-ld.m4: Likewise.
126036 2003-08-18  Jim Meyering  <jim@meyering.net>
126038         * lib/setenv.h: Indent nested cpp directive.
126039         * lib/vasnprintf.c: Remove trailing blanks.
126041 2003-08-17  Simon Josefsson  <jas@extundo.com>
126043         * modules/xstrndup: New file.
126044         * MODULES.html.sh (func_all_modules): Add xstrndup.
126046 2003-08-17  Simon Josefsson  <jas@extundo.com>
126048         * modules/argp: Fix autoconf macro name. Add more dependencies.
126050 2003-08-17  Simon Josefsson  <jas@extundo.com>
126052         * m4/xstrndup.m4: New file.
126054 2003-08-17  Simon Josefsson  <jas@extundo.com>
126056         * m4/argp.m4: New file.
126058 2003-08-17  Simon Josefsson  <jas@extundo.com>
126059             Bruno Haible  <bruno@clisp.org>
126061         * lib/xstrndup.h: New file.
126062         * lib/xstrndup.c: New file.
126064 2003-08-17  Bruno Haible  <bruno@clisp.org>
126066         * modules/strndup (Files, Include): Add lib/strndup.h.
126068 2003-08-17  Bruno Haible  <bruno@clisp.org>
126070         * modules/euidaccess (Files): Add lib/euidaccess.h.
126072 2003-08-17  Bruno Haible  <bruno@clisp.org>
126074         * lib/strndup.h: New file.
126076 2003-08-17  Bruno Haible  <bruno@clisp.org>
126078         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
126079         like AC_GNU_SOURCE.
126080         * modules/extensions (configure.ac): Comment out the invocation of
126081         gl_USE_SYSTEM_EXTENSIONS.
126083 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126085         Merges from coreutils, etc.
126086         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
126087         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
126088         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
126089         fixing a typo.
126090         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
126091         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
126093 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126095         Document merge from coreutils.
126096         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
126097         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
126098         * modules/utime: Add m4/utimes-null.m4.
126100 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126102         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
126103         space, undoing this 2003-08-12 change:
126104         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126106 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126108         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
126109         strtoul.c from libc, undoing this 2003-08-12 change:
126110         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126112 2003-08-16  Jim Meyering  <jim@meyering.net>
126114         Merges from coreutils.
126115         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
126116         prefix.  Adjust cache variables similarly.  Create 500 rather than
126117         just 300 files, to exercise bug on Darwin6.5, too.
126118         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
126119         $missing_dir.
126120         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
126121         AM_SYS_POSIX_TERMIOS.
126122         Reported by mkc@mathdogs.com.
126123         Also change use of $am_cv_sys_posix_termios
126124         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
126125         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
126126         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
126127         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
126128         in /proc/mounts until it finds one with matching device number.  This
126129         is unnecessary when the FILE argument *is* a mount point.  No stat call
126130         is necessary in that case.  So, disable the statvfs-testing code on
126131         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
126132         as RedHat bug# 84846.
126133         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126134         to 1MB, so as not to render systems with no stack size limit (e.g.,
126135         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126136         Include <unistd.h>.  On some systems,
126137         it is required for the definition of _SC_PAGESIZE.
126139 2003-08-16  Jim Meyering  <jim@meyering.net>
126141         Merge from coreutils.
126142         * lib/xstrtoimax.c: #else #if -> #elif.
126143         * lib/xstrtoumax.c: Likewise.
126145 2003-08-16  Jim Meyering  <jim@meyering.net>
126147         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
126148         * m4/utimes.m4: Removed.
126149         * m4/utimes-null.m4: Renamed from utimes.m4.
126151         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126152         to 1MB, so as not to render systems with no stack size limit (e.g.,
126153         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126154         Include <unistd.h>.  On some systems,
126155         it is required for the definition of _SC_PAGESIZE.
126157 2003-08-16  Jim Meyering  <jim@meyering.net>
126158         and Paul Eggert  <eggert@cs.ucla.edu>
126160         Merges from coreutils, etc.
126162         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
126163         using the latest version from cvs.  This avoids problems with #line
126164         directives using a vendor (Sun) compiler.
126165         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
126166         Don't set GETGROUPS_LIB here; now it's
126167         done via getgroups.m4's wrapper function.
126168         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
126169         rather than just in sh-util/configure.in, so that the
126170         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
126171         same.
126172         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
126173         AC_FUNC_GETLOADAVG where to find getloadavg.c.
126174         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
126175         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
126176         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
126177         Remove code that is now done by the newly-required macros.
126178         Append $(EXEEXT) to DF_PROG.
126179         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
126180         Do not invoke or require the following here,
126181         since prereq.m4 or some gnulib .m4 now does this for us:
126182         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
126183         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
126184         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
126185         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
126186         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
126187         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
126188         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
126189         AC_FUNC_OBSTACK.
126190         Do not replace the following functions, as this is now the job
126191         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
126192         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
126193         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
126194         atexit getpass, strdup, getpagesize.
126195         Replace 'raise'.
126196         Do not check for the following functions, as this is now the job
126197         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
126198         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
126199         setregid.
126200         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
126201         Check for sys/sysctl.h.
126202         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
126203         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
126204         of checking for ssize_t ourselves.
126206         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
126207         Require every macro that gnulib/modules/* suggests for us.
126208         (jm_PREREQ_ADDEXT): New macro.
126209         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
126210         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
126212         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
126213         (gl_PHYSMEM): Use it.
126214         Also check for `table' function.
126215         Check for new headers and functions.
126216         Add check for sys/sysmp.h.
126217         With suggestions from Kaveh Ghazi.
126218         Ignore headers that are present but cannot be compiled.  This
126219         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
126220         C 5.4.
126222 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126224         Document merge from coreutils.
126225         * modules/userspec: Depend on posixver.
126226         * modules/strftime: Depend on tzset.
126228 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126230         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
126231         rather than tab, after '#' in shell-script copyright notices.
126232         Suggested by Bruno Haible.
126234 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126236         * config/srclist-update: Use three spaces, rather than tab, after '#'
126237         in shell-script copyright notices.  Suggested by Bruno Haible.
126238         Remove unnecessary parenthesization in regular expression.
126240 2003-08-15  Jim Meyering  <jim@meyering.net>
126242         Merge from coreutils.
126243         * lib/xgethostname.c: Include <stdlib.h>.
126244         (xghostname): Don't exit for anything other than memory-related
126245         failure; just return NULL.
126246         * lib/userspec.c: Include "posixver.h".
126247         (parse_user_spec): Accept `.' as a separator only
126248         in pre-POSIX-200112 mode.
126249         * lib/strtoimax.c: Use #elif rather than #else #if.
126250         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
126251         Remove function, now that we can rely on a working tzset function.
126252         [!_LIBC]: Ensure that the required autoconf test has been run.
126253         [!defined _NL_CURRENT && HAVE_STRFTIME]:
126254         Use underlying_strftime for %r.
126255         * lib/sha.c: Merge in some clean-up and optimization changes from
126256         glibc.
126257         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
126258         Ensure that it is a multiple of 64.
126259         Rearrange loop exit tests so as to avoid performing an
126260         additional fread after encountering an error or EOF.
126261         * lib/realloc.c: Update copyright date.
126263 2003-08-15  Jim Meyering  <jim@meyering.net>
126264         and Paul Eggert  <eggert@twinsun.com>
126266         Merge from coreutils.
126267         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
126268         member but strut utmpx does not.  Needed for AIX 4.3.3.
126269         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
126271 2003-08-15  Jim Meyering  <jim@meyering.net>
126272         and Paul Eggert  <eggert@cs.ucla.edu>
126274         Merges from coreutils, etc.
126275         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
126276         Require gl_FUNC_TZSET_CLOBBER.
126277         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
126278         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
126279         members.
126281 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126283         Help the merge from coreutils.
126284         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
126285         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
126286         * m4/tzset.m4: Use it too.
126288 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126290         * modules/tzset: New file.
126292 2003-08-14  Jim Meyering  <jim@meyering.net>
126294         Merges from coreutils.
126295         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
126296         variable names, rather than @FNMATCH_H@.
126297         * modules/alloca: Likewise for $(ALLOCA_H).
126299         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
126300         the three copies of the literal target, `fnmatch.h'.
126301         * modules/alloca (alloca.h): Likewise.
126303 2003-08-14  Jim Meyering  <jim@meyering.net>
126305         Merge from coreutils.
126306         * m4/tzset.m4: New file.
126307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
126308         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
126309         otherwise, AIX 5.1 systems would end up using the latter.
126310         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
126311         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
126312         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
126313         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
126315 2003-08-14  Jim Meyering  <jim@meyering.net>
126317         Merge from coreutils.
126318         * lib/obstack.h: Whitespace changes.
126319         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
126320         and xcalloc return values.
126321         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
126322         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
126323         hang on OSF/1 5.1 for DIR on both local and remote file systems.
126324         Reported by (and fix confirmed by) Nelson H. F. Beebe.
126325         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
126326         error from mntctl.
126327         Use mntctl's return value to drive the entry-processing loop, since
126328         we can't rely on the value of the vmt_length member in the last
126329         entry.  On some systems doing so could result in exhausting
126330         virtual memory.  Based in part on a patch from Mike Jetzer.
126332 2003-08-14  Jim Meyering  <jim@meyering.net>
126333         and Paul Eggert  <eggert@twinsun.com>
126335         Merges from coreutils, plus other fixes.
126336         * lib/physmem.c: Merge in portability changes from gcc/libiberty
126337         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
126338         for credits and details.  Thanks to Kaveh Ghazi for helping
126339         to keep these files in sync.
126340         (ARRAY_SIZE): Define it.
126341         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
126342         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
126343         (memcasecmp): Don't assume size_t fits in unsigned int.
126344         Remove casts and duplicate code.
126345         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
126346         (memcpy): Remove definition.
126347         Merge in some clean-up and optimization changes from glibc.
126348         [BLOCKSIZE]: Move definition to top of file.
126349         Ensure that it is a multiple of 64.
126350         Rearrange loop exit tests so as to avoid performing an
126351         additional fread after encountering an error or EOF.
126352         * lib/md5.h (md5_uintptr): Define.
126353         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
126354         return to the initial working directory.  Preserve errno
126355         for caller.
126356         * lib/idcache.c: Include "xalloc.h".
126357         (xmalloc, xrealloc): Remove decls.
126358         (getuser): Remove casts no longer required in C89.
126359         * lib/human.c: Include stdio.h, for sprintf.
126360         * lib/group-member.c: Include "xalloc.h".
126361         (xmalloc, xrealloc): Remove decls.
126362         (get_group_info): Remove casts no longer required in C89.
126363         * lib/getusershell.c (readname): Remove casts no longer required in
126364         C89.
126365         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
126366         * lib/getline.c: Whitespace fix, from coreutils.
126368 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126370         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
126371         Check for isascii.
126373         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126374         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126375         Undo previous (whitespace-only) change.
126377 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126379         * lib/exclude.c: Include <ctype.h>
126380         (IN_CTYPE_DOMAIN): New macro.
126381         (is_space): New fn.
126382         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
126383         and empty lines.
126385         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126386         Undo previous (whitespace-only) change.
126388 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126390         * config/srclist-update: Change update back to the old behavior,
126391         leaving whitespace alone.  Use one 'sed' command rather than a
126392         pipeline.
126393         (fixlicense): Now a variable, not a function.
126394         (remove_trailing_blanks): Remove.
126395         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
126396         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126397         Undo previous (whitespace-only) change.
126399 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126401         Merge from coreutils.
126402         * modules/euidaccess: Add lib_SOURCES, include for new
126403         file euidaccess.h
126405 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126407         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126408         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126409         Normalize leading white space and remove trailing white space.
126411         Merge from coreutils
126412         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
126414         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
126415         0.12.1.  These files are now being upgraded automatically by
126416         ../config/srclist-update.
126418 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126420         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126421         Normalize leading white space and remove trailing white space.
126422         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
126423         notice, as per ../config/srclist-update.
126425         Merge from coreutils.
126426         * lib/euidaccess.h: New file.
126427         * lib/euidaccess.c: Include it.
126428         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
126429         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
126430         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
126432 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126434         * config/srclist-update: Add copyright notice.
126435         (remove_id_lines, remove_trailing_blanks): New constants.
126436         (fixfile): Use them to normalize spacing a bit in copied files.
126437         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126438         Normalize leading white space and remove trailing white space.
126440         * config/texinfo.tex: Sync with texinfo.
126442         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
126443         strtoul.c from libc, to merge coreutils whitespace changes.
126445         * config/srclist.txt: Get the following m4 files from gettext:
126446         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
126447         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
126448         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
126449         wint_t.m4.
126451 2003-08-12  Karl Berry  <karl@gnu.org>
126453         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
126454         been made.
126456 2003-08-11  Paul Eggert  <eggert@twinsun.com>
126458         * modules/gnu-source, m4/gnu-source.m4:
126459         Remove; we're assuming Autoconf 2.54 or later now.
126460         Suggested by Bruno Haible.
126461         * MODULES.html.sh (func_all_modules): Remove gnu-source.
126463 2003-08-11  Bruno Haible  <bruno@clisp.org>
126465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
126467 2003-08-11  Bruno Haible  <bruno@clisp.org>
126469         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
126470         (vasnprintf): Use it instead of wcslen.
126472 2003-08-11  Bruno Haible  <bruno@clisp.org>
126474         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
126475         value to ensure that _Bool promotes to int. Use #define for _Bool when
126476         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
126478 2003-08-10  Karl Berry  <karl@gnu.org>
126480         * lib/regex.h: update from libc (whitespace fix).
126482 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126484         Merge some files from coreutils.  These changes were
126485         originally made by Jim Meyering.
126486         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
126487         many older Unixes require this.
126488         * lib/alloca.c (alloca): Remove cast to argument of free;
126489         no longer needed in C89.
126490         * lib/alloca_.h, regex.h: Fix white space to match
126491         what GNU indent does.
126493 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126495         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
126496         apparently Emacs's Unicode mode got confused before my 2003-08-05
126497         checkin.
126499 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126501         * m4/extensions.m4: New file.
126502         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
126503         Require gl_USE_SYSTEM_EXTENSIONS.
126504         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
126505         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
126507 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126509         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
126510         * modules/extensions, modules/gnu-source: New files.
126511         * modules/timespec, modules/unlocked-io: Depend on extensions.
126513 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126515         * modules/restrict: New file.
126516         * MODULES.html.sh (func_all_modules): Add restrict.
126517         * modules/regex: Depend on restrict.
126519 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126521         * m4/restrict.m4: New file.
126522         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
126524 2003-08-07  Bruno Haible  <bruno@clisp.org>
126526         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
126527         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
126529 2003-08-07  Bruno Haible  <bruno@clisp.org>
126531         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
126532         makes the module 'getndelim2' compatible with the module 'getline'.
126534 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126536         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
126537         byte with "\201" to avoid glitches when editing that source file
126538         with multi-gnome-terminal.
126540 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126542         * lib/bumpalloc.h: Remove.
126544 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126546         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
126547         * modules/bumpalloc: Remove.
126549 2003-08-04  Paul Eggert  <eggert@twinsun.com>
126551         * lib/getloadavg.c: Change copyright notice and spacing to conform to
126552         GNU coding style.
126554         Merge from coreutils.
126555         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
126556         1. From glibc.
126557         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
126558         from Karl Berry, implemented by Jim Meyering.
126559         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
126560         from Dmitry V. Levin.
126561         Remove anachronistic cast of xrealloc.
126562         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
126563         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
126564         type. Otherwise, it wouldn't compile with at least /bin/cc on
126565         ymp-cray-unicos9.0.2.X.
126566         Combine two mostly-identical uses of alloca into one.
126567         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
126569 2003-08-04  Dave Love  <d.love@dl.ac.uk>
126571         [From Emacs.]
126573         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
126574         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
126575         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
126576         obsolete NLIST_NAME_UNION.
126577         [__GNU__]: Undef BSD and FSCALE.
126578         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
126580 2003-08-03  Paul Eggert  <eggert@twinsun.com>
126582         * lib/stdbool_.h (_Bool): Make it signed char, instead of
126583         an enum type, so that it's guaranteed to promote to int.  See:
126584         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
126586 2003-08-03  Karl Berry  <karl@gnu.org>
126588         * config/depcomp: update from automake.
126590 2003-07-31  Paul Eggert  <eggert@twinsun.com>
126592         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
126593         (strerror): Don't assume that a printable int fits in 14 bytes.
126595 2003-07-31  Bruno Haible  <bruno@clisp.org>
126597         * modules/getpass-gnu: New file.
126598         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
126600 2003-07-31  Bruno Haible  <bruno@clisp.org>
126602         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
126604 2003-07-24  Karl Berry  <karl@gnu.org>
126606         * config/missing: update from automake.
126608 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
126609             Bruno Haible  <bruno@clisp.org>
126611         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
126612         * lib/getline.c (getline, getdelim): Likewise.
126613         Remove _GNU_SOURCE define; now it's defined in config.h through
126614         m4/getline.m4.
126616 2003-07-23  Karl Berry  <karl@gnu.org>
126618         * config/config.sub: update from prep.
126620 2003-07-22  Paul Eggert  <eggert@twinsun.com>
126622         * modules/xalloc (Depends-on): Add exitfail.
126623         * modules/xmemcoll: Likewise.
126625 2003-07-22  Paul Eggert  <eggert@twinsun.com>
126627         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
126628         over-parenthesization in macros.
126630         Sync with coreutils.
126632         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
126633         required by C99.
126635         Use `exit_failure' for xalloc and xmemcoll instead of their own
126636         private exit-failure variables.
126637         * lib/xalloc.h (xalloc_exit_failure): Remove.
126638         * lib/xmalloc.c: Likewise.  Include exitfail.h.
126639         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
126640         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
126641         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
126642         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
126644 2003-07-20  Jim Meyering  <jim@meyering.net>
126646         * modules/closeout (Depends-on): Add exitfail.
126647         Suggestion from Bruno Haible.
126649 2003-07-19  Karl Berry  <karl@gnu.org>
126651         * config/config.sub: update from prep.
126653 2003-07-18  Paul Eggert  <eggert@twinsun.com>
126655         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
126656         Remove.
126657         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
126658         to test that it can stand by itself.  Include "exitfail.h".
126659         Clients should set exit_failure instead.
126660         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
126662 2003-07-18  Bruno Haible  <bruno@clisp.org>
126664         * modules/getndelim2: New file.
126665         * modules/getline: Share files with module getndelim2.
126666         * modules/getnline: Depend on getndelim2 instead of sharing files with
126667         it. Add getnline.c to lib_SOURCES.
126668         * MODULES.html.sh (func_all_modules): Add getndelim2.
126670 2003-07-18  Bruno Haible  <bruno@clisp.org>
126672         * m4/getndelim2.m4: New file.
126673         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
126674         invoke gl_PREREQ_GETNDELIM2.
126675         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
126676         gl_PREREQ_GETNDELIM2.
126677         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
126678         gl_GETNDELIM2.
126680 2003-07-18  Bruno Haible  <bruno@clisp.org>
126682         * lib/getndelim2.h: New file.
126683         * lib/getndelim2.c: Make into a module of its own. Include config.h,
126684         getndelim2.h.
126685         (getndelim2): Make non-static. Change return type to ssize_t.
126686         * lib/getline.h: Change argument names.
126687         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
126688         * lib/getnline.c: Include getndelim2.h.
126690 2003-07-18  Andreas Schwab  <schwab@suse.de>
126692         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
126694 2003-07-17  Karl Berry  <karl@gnu.org>
126696         * config/config.sub: update from prep.
126698 2003-07-17  Bruno Haible  <bruno@clisp.org>
126700         * modules/getnline: New file.
126701         * modules/getline: Add lib/getndelim2.c to source file list.
126702         * MODULES.html.sh (func_all_modules): Add getnline.
126704 2003-07-17  Bruno Haible  <bruno@clisp.org>
126706         * m4/getnline.m4: New file.
126708 2003-07-17  Bruno Haible  <bruno@clisp.org>
126710         * m4/Makefile.am.in: Remove file.
126711         * m4/Makefile.am: Remove file.
126712         * m4/Makefile.in: Remove file.
126714 2003-07-17  Bruno Haible  <bruno@clisp.org>
126716         * lib/getnline.h: New file.
126717         * lib/getnline.c: New file.
126718         * lib/getndelim2.c: New file, extracted from getline.c.
126719         (getndelim2): Renamed from getdelim2, with added nmax argument.
126720         * lib/getline.c: Include getndelim2.c.
126721         (getdelim2): Moved out to getndelim2.c.
126722         (getline, getdelim): Update.
126724 2003-07-17  Bruno Haible  <bruno@clisp.org>
126726         * lib/Makefile.am: Remove file.
126727         * lib/Makefile.in: Remove file.
126729 2003-07-17  Bruno Haible  <bruno@clisp.org>
126731         * configure.in: Remove file.
126732         * Makefile.in: Remove file.
126734 2003-07-17  Bruno Haible  <bruno@clisp.org>
126736         * MODULES.html.sh: Put the </BODY> right before </HTML>.
126738 2003-07-16  Karl Berry  <karl@gnu.org>
126740         * config/srclist-update: was running fixlicense twice, which caused
126741                 texinfo.tex to be nullified for some reason.  Simplify,
126742                 $gplsrc is no longer needed as far as I can see?
126744 2003-07-16  Jim Meyering  <jim@meyering.net>
126746         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
126748 2003-07-15  Paul Eggert  <eggert@twinsun.com>
126750         * config/srclist.txt: Get the following files from gettext-runtime/intl
126751         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
126752         ref-del.sin.  From Bruno Haible.
126753         * config/srclist-update (fixfile): Change grep pattern again, since the
126754         previous fix didn't work (there was another trailing $).  Use
126755         '[$]' to escape the $s.
126757 2003-07-15  Karl Berry  <karl@gnu.org>
126759         * lib/vasnprintf.c: update from gettext.
126761 2003-07-15  Karl Berry  <karl@gnu.org>
126763         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
126764         gets expanded when surrounded by '$'.
126766 2003-07-15  Jim Meyering  <jim@meyering.net>
126768         * modules/save-cwd: Don't depend on error.  From Derek Price.
126770 2003-07-15  Jim Meyering  <jim@meyering.net>
126772         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
126774 2003-07-14  Simon Josefsson  <jas@extundo.com>
126776         * modules/mempcpy: New file.
126777         * MODULES.html.sh (func_all_modules): Add mempcpy.
126779 2003-07-14  Simon Josefsson  <jas@extundo.com>
126781         * m4/mempcpy.m4: New file.
126783 2003-07-14  Simon Josefsson  <jas@extundo.com>
126785         * lib/mempcpy.h: New file.
126786         * lib/mempcpy.c: New file.
126788 2003-07-14  Paul Eggert  <eggert@twinsun.com>
126790         * modules/getdate, modules/posixtm: Depend on mktime.
126792 2003-07-14  Paul Eggert  <eggert@twinsun.com>
126794         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
126795         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
126796         unicodeio.c, unicodeio.h, unlocked-io.h:
126797         Switch from LGPL to GPL.
126799 2003-07-14  Paul Eggert  <eggert@twinsun.com>
126801         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
126802         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
126803         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
126804         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
126805         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
126806         updated automatically by ../config/srclist-update.  This changes
126807         their license from LPGL to GPL.
126809 2003-07-14  Paul Eggert  <eggert@twinsun.com>
126811         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
126812         assumed to refer to the root of the most recent stable gettext version.
126813         * config/srclistvars.sh: Add defaults for eggert.
126814         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
126815         Match "This program" as well as "The program".  This is needed
126816         for gettext.
126818 2003-07-14  Jim Meyering  <jim@meyering.net>
126820         Don't emit diagnostics.  Let callers do that.
126821         * lib/save-cwd.c: Don't include "error.h".
126822         (save_cwd): Don't call error.  Ensure that errno is valid
126823         when returning nonzero.
126825         * lib/save-cwd.h (restore_cwd): Update prototype.
126826         * lib/save-cwd.c (restore_cwd): Remove two parameters.
126827         Simplify.  Don't call error upon failure.  Let callers do that.
126828         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
126829         when auditing is enabled.  But don't bother updating the #if.
126831 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
126833         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
126834         it breaks C++ compilation.
126835         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
126837 2003-07-10  Simon Josefsson  <jas@extundo.com>
126839         * modules/strchrnul (Makefile.am): Add strchrnul.h.
126841 2003-07-10  Jim Meyering  <jim@meyering.net>
126843         * m4/clock_time.m4: Remove trailing blank.
126844         * m4/intmax_t.m4: Likewise.
126846 2003-07-10  Jim Meyering  <jim@meyering.net>
126848         * lib/vasnprintf.c: Remove trailing blanks.
126849         Make cpp indentation consistent.
126851 2003-07-09  Paul Eggert  <eggert@twinsun.com>
126853         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
126854         posixver.c, strftime.c, strnlen.c, strverscmp.c:
126855         Switch from LGPL to GPL.
126857 2003-07-09  Paul Eggert  <eggert@twinsun.com>
126859         * config/srclist.txt: Sort sublists.  Add
126860         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
126861         that differ from gnulib for one reason or another; we'd like this list
126862         to be smaller but for now let's document what we have.
126864 2003-07-08  Paul Eggert  <eggert@twinsun.com>
126866         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
126867         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
126868         and sweeter "eval x=$x".
126869         * config/srclist.txt: Get lib/argp* from glibc.
126871 2003-07-07  Paul Eggert  <eggert@twinsun.com>
126873         * lib/mktime.c: Fix some boundary cases and remove need for floating
126874         point.
126876         Issue a compile-time diagnostic if time_t is floating point, or if
126877         two's complement arithmetic is not in effect, or if arithmetic
126878         right shift does not propagate the sign.  These assumptions were
126879         all in the original code but they weren't checked.
126881         (TIME_T_MIDPOINT, verify): New macros.
126882         (__isleap): Remove; it has integer overflow problems.
126883         (leapyear): New function, without those problems.
126884         (ydhms_tm_diff): Remove; splitting into two parts.
126885         (ydhms_diff): New function, containing the arithmetic part of
126886         the old ydhms_tm_diff function.  Issue a compile-time
126887         diagnostic if we are not using C99 integer division.
126888         Avoid casts when possible.
126889         (guess_time_tm): New function, containing the checking part of
126890         the old ydhms_tm_diff function.  Return the new value, rather than
126891         the difference between it and the old.  Accept a new argument T
126892         so that *T specifies the old value.  Check for overflow in the result.
126894         (__mktime_internal): Use a time_t offset, not a long int offset.
126895         This undoes the 2003-06-04 change, which is no longer needed now
126896         that we have better overflow checking.
126897         (localtime_offset): Likewise.
126899         (__mktime_internal): Avoid harmful overflow on hosts where time_t
126900         and long are 64-bit but int is only 32-bit.
126901         (ydhms_diff): Use long int to store year1 and yday1.
126902         Issue a compile-time diagnostic if long int is not wide enough.
126904         (__mktime_internal): Use long int to store adjusted year and yday.
126905         Use plain C rather than preprocessor commands, if that doesn't
126906         affect efficiency.
126907         Check for overflow (and try to repair) after each probe
126908         rather than checking only at the very end.  This avoids some bugs
126909         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
126910         does not equal GMT offset at maximum time).
126911         Use integer to check for overflow rather than floating point; this
126912         is more portable to non-IEEE hosts, and is a tad faster.
126913         When we detect that we are oscillating between two values,
126914         don't check whether tm_isdst has the requested value, since
126915         we already know the answer.  When tm_isdst has the wrong value,
126916         use a different heuristic to find the right one, based on the
126917         extreme values actually observed in practice in tz2003a,
126918         rather than the (overly optimistic) "previous 3 calendar quarters".
126920         (not_equal_tm, print_tm, check_result): Use "const T" rather than
126921         "T const" to accommodate glibc style.
126922         (check_result): Use less-confusing report format.  "long" -> "long int.
126923         (main): Likewise.
126924         Don't loop if the iteration overflows time_t.
126925         Allow a negative step in the iteration.
126927 2003-07-06  Karl Berry  <karl@gnu.org>
126929         * config/depcomp: update from automake.
126930         * config/config.sub: update from prep.
126932 2003-07-03  Karl Berry  <karl@gnu.org>
126934         * config/config.guess: update from prep.
126936 2003-07-01  Paul Eggert  <eggert@twinsun.com>
126938         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
126939         xreadlink.c now includes it unconditionally.
126941 2003-07-01  Paul Eggert  <eggert@twinsun.com>
126943         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
126944         having it depend on HAVE_SYS_TYPES_H.
126946 2003-07-01  Bruno Haible  <bruno@clisp.org>
126948         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
126949         <sys/types.h> should be sufficient.
126950         Reported by Paul Eggert.
126952 2003-06-26  Karl Berry  <karl@gnu.org>
126954         * config/depcomp: update from automake.
126956 2003-06-26  Bruno Haible  <bruno@clisp.org>
126958         * modules/human: Depend on module stdbool.
126960 2003-06-25  Bruno Haible  <bruno@clisp.org>
126962         * modules/readlink: New file.
126963         * modules/xreadlink: Depend on it.
126964         * MODULES.html.sh (func_all_modules): Add readlink.
126966 2003-06-25  Bruno Haible  <bruno@clisp.org>
126968         * m4/readlink.m4: New file.
126970 2003-06-25  Bruno Haible  <bruno@clisp.org>
126972         * lib/readlink.c: New file.
126974 2003-06-22  Karl Berry  <karl@gnu.org>
126976         * config/srclist.txt: update mkinstalldirs from automake.
126977         * config/mkinstalldirs: update.
126979 2003-06-22  Bruno Haible  <bruno@clisp.org>
126981         Portability to mingw32.
126982         * m4/ssize_t.m4: New file, from GNU gettext.
126983         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
126984         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
126986 2003-06-22  Bruno Haible  <bruno@clisp.org>
126988         * modules/safe-read: Add m4/ssize_t.m4.
126989         * modules/xreadlink: Add m4/ssize_t.m4.
126991 2003-06-20  Bruno Haible  <bruno@clisp.org>
126993         Assume C89, so PARAMS isn't needed.
126994         * lib/unicodeio.h (PARAMS): Remove.
126995         * lib/unicodeio.c: Don't use PARAMS.
126997 2003-06-18  Karl Berry  <karl@gnu.org>
126999         * config/config.{guess,sub}: update from prep.
127001 2003-06-18  Jim Meyering  <jim@meyering.net>
127003         Merge changes from coreutils.
127004         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
127005         Remove explicit declarations of xmalloc and realloc.
127006         Include xalloc.h.
127007         (read_utmp): Remove anachronistic cast of xmalloc.
127009 2003-06-17  Paul Eggert  <eggert@twinsun.com>
127011         Assume C89, so PARAMS isn't needed.
127012         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
127013         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
127014         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
127015         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
127016         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
127017         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
127018         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
127019         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
127020         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
127021         lib/xstrtod.h, lib/xstrtol.h: Likewise.
127022         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
127023         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
127024         no longer needed. Anyway, config.h should always be included before any
127025         other file.
127027 2003-06-11  Simon Josefsson  <jas@extundo.com>
127029         * modules/sysexits: New file.
127030         * MODULES.html.sh (func_all_modules): Add sysexits.
127032 2003-06-11  Simon Josefsson  <jas@extundo.com>
127034         * lib/sysexit_.h: New file.
127036 2003-06-11  Derek Price  <derek@ximbiot.com>
127038         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
127039         necessary.
127041 2003-06-11  Bruno Haible  <bruno@clisp.org>
127043         * m4/sysexits.m4: New file.
127045 2003-06-10  Simon Josefsson  <jas@extundo.com>
127047         * lib/argp.h: New file, from glibc.
127048         * lib/argp-ba.c: New file, from glibc.
127049         * lib/argp-eexst.c: New file, from glibc.
127050         * lib/argp-fmtstream.c: New file, from glibc.
127051         * lib/argp-fmtstream.h: New file, from glibc.
127052         * lib/argp-fs-xinl.c: New file, from glibc.
127053         * lib/argp-help.c: New file, from glibc.
127054         * lib/argp-namefrob.h: New file, from glibc.
127055         * lib/argp-parse.c: New file, from glibc.
127056         * lib/argp-pv.c: New file, from glibc.
127057         * lib/argp-pvh.c: New file, from glibc.
127058         * lib/argp-xinl.c: New file, from glibc.
127060 2003-06-10  Simon Josefsson  <jas@extundo.com>
127062         * modules/strchrnul: New file.
127064 2003-06-10  Simon Josefsson  <jas@extundo.com>
127066         * modules/argp: New file.
127068 2003-06-10  Simon Josefsson  <jas@extundo.com>
127070         * m4/strchrnul.m4: New file.
127072 2003-06-10  Simon Josefsson  <jas@extundo.com>
127074         * lib/strchrnul.h: New file.
127075         * lib/strchrnul.c: New file.
127077 2003-06-10  Bruno Haible  <bruno@clisp.org>
127079         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
127081 2003-06-07  Karl Berry  <karl@gnu.org>
127083         * config/config.{guess,sub}: update from prep.
127085 2003-06-07  Jim Meyering  <jim@meyering.net>
127087         * modules/strtod: Use $(...) notation, not @...@ for
127088         AC_REPLACE'd variables.
127089         * modules/localcharset: Likewise.
127091 2003-06-07  Jim Meyering  <jim@meyering.net>
127093         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
127094         in place of my name in the copyright comment.
127095         Remove definition and uses of __P.
127097         From coreutils.
127098         * lib/stat.c: Don't declare xmalloc explicitly.
127099         Instead, include "xalloc.h".
127100         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
127101         xrealloc, and xcalloc return values.
127102         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
127103         Improve comment.
127104         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
127106 2003-06-07  Bruno Haible  <bruno@clisp.org>
127108         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
127109         avoid AC_CONFIG_LINKS.
127110         * modules/fnmatch (Makefile.am): Use explicit creation rule for
127111         fnmatch.h, to avoid AC_CONFIG_LINKS.
127112         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
127114 2003-06-07  Bruno Haible  <bruno@clisp.org>
127116         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
127117         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
127118         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127119         directory.
127120         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
127121         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127122         directory.
127124 2003-06-06  Jim Meyering  <jim@meyering.net>
127126         Merge from coreutils.
127127         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
127128         Consolidate declarations and initializations of *_base* locals.
127130         Merge from coreutils.
127131         This avoids a core dump on systems without GNU putenv,
127132         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
127133         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
127134         (unsetenv): New static function, from GNU libc.
127135         (rpl_putenv): Use it.
127137         * lib/modechange.c: Remove trailing blanks.
127139         Merge from coreutils.
127140         * lib/fsusage.c: Remove declaration of statfs.
127141         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
127143         * lib/posixtm.c: Include <stdbool.h> unconditionally.
127145 2003-06-06  Jim Meyering  <jim@meyering.net>
127147         * lib/stdbool_.h: Renamed from stdbool.h.in.
127149 2003-06-06  Jim Meyering  <jim@meyering.net>
127150             Bruno Haible  <bruno@clisp.org>
127152         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
127153         Adjust Makefile.am snippet not to redirect directly to target.
127154         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
127156 2003-06-05  Paul Eggert  <eggert@twinsun.com>
127158         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
127159         mismatch, look in future quarters as well as past.  This fixes a
127160         bug when processing fall-backwards gaps immediately after a long
127161         period of daylight-saving time.
127163         * lib/mktime.c: Assume freestanding C89 or better.
127164         (HAVE_LIMITS_H): Remove.  Assume it's 1.
127165         (__P): Remove; not used.
127166         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
127167         (mktime, not_equal_tm, print_tm, check_result,
127168         main): Use prototypes.  Use const * where appropriate.
127169         (main): Fix typo in testing code that uncovered by above changes.
127170         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
127172 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127174         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
127175         locale.h, localeconv.  This merges changes from coreutils.
127177         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
127178         It can be removed after the next Autoconf is released.
127179         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
127180         needed.
127182 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127184         * lib/mktime.c: Fix Debian bug 177940
127185         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
127186         (localtime_offset): Now long int, not time_t, because we want it
127187         to be guaranteed to be signed.  All uses changed.
127188         (__mktime_internal): If overflow would occur when adding offset,
127189         don't add it.
127191         Merge 'human' changes from coreutils.  Rewrite to support
127192         locale-specific notations like thousands separators.
127193         * lib/human.c: Simplify authorship notice.
127194         Include human.h immediately after config.h.
127195         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
127196         <limits.h>: Do not include, since human.h does.
127197         (SIZE_MAX, UINTMAX_MAX): New macros.
127198         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
127199         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
127200         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
127201         (power_letter): Renamed from suffixes.
127202         (generate_suffix_backwards): Remove.
127203         (adjust_value): Now takes int style (because of human.h changes)
127204         and long double value (for greater precision on some platforms).
127205         (group_number): New function.
127206         (human_readable): Use it.  Use integer options, not enum.
127207         Put the options before the sizes in the arg list.
127208         Support all the new options.
127209         The old human_readable function has been removed;
127210         use inttostr.h instead.
127211         (human_readable, default_block_size, humblock):
127212         Use uintmax_t, not int, for block sizes.
127213         (human_readable_inexact, block_size_types): Remove.
127214         (block_size_opts): New constant.
127215         (human_options): Renamed from human_block_size, with new signature
127216         that allows block sizes up to UINTMAX_MAX.  All callers changed.
127217         * lib/human.h: Add copyright and authorship notice.
127218         Include <limits.h> and <stdbool.h> unconditionally.
127219         (PARAMS): Remove.  All uses removed.
127220         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
127221         (enum human_inexact_style): Remove tag; now a nameless enum.
127222         (human_floor, human_ceiling, human_round_to_even): Now have
127223         values 2, 0, 1 rather than -1, 1, 0.
127224         (human_group_digits, human_suppress_point_zero, human_autoscale,
127225         human_base_1024, human_SI, human_B): New constants.
127226         (human_readable_inexact, human_block_size): Remove.
127227         (human_readable): Size args are now uintmax_t, not int.
127228         (human_options): New decl.
127230         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
127231         unnecessary now that we assume C89 or better.  This change
127232         imported from coreutils.
127234         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127235         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
127236         in the 2003-05-30 sync from glibc.
127238         .h files should stand alone, but we shouldn't include <sys/types.h>
127239         if we can get away with just <stddef.h>.
127241         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
127242         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
127243         rather than <sys/types.h>, as we merely need size_t.
127244         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
127245         to get size_t.
127246         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
127247         Include <stdio.h>, to get FILE.
127248         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
127249         memcasecmp.h has included <stddef.h> and all we need is size_t.
127250         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
127251         our interface, instead of including <sys/types.h>
127253 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127255         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
127256         now, as glibc mktime is buggy on non-glibc systems.
127258 2003-06-03  Karl Berry  <karl@gnu.org>
127260         * config/config.sub: update from prep.
127262 2003-06-02  Paul Eggert  <eggert@twinsun.com>
127264         [from coreutils]
127265         Fix some minor time-related bugs with POSIX time arguments.
127266         Some valid time stamps were being rejected (notably -1, and
127267         time stamps before 1900 on 64-bit hosts).  And some invalid
127268         time stamps were being accepted, e.g. September 31.
127270         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
127271         that we can return (time_t) -1 successfully.
127272         * lib/posixtm.c: Likewise.
127273         [HAVE_STDBOOL_H]: Include <stdbool.h>.
127274         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
127275         (t): Remove static var.
127276         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
127277         of static var.  All uses changed.
127278         (year): Do not reject years before 1900; they can occur with
127279         64-bit time_t.
127280         (posix_time_parse): Do not check for out-of-range components;
127281         that is now the caller's responsibility, since our checks were
127282         only approximations.
127283         (posixtime): Use mktime to check for out-of-range components,
127284         since it knows them exactly.
127285         If mktime returns (time_t) -1, check whether an error actually occurred
127286         by invoking localtime on -1.
127287         (main) [TEST_POSIXTIME]: Check for input data errors, and report
127288         posixtime failures better.
127289         Improve the test data (in comments only).
127291 2003-06-02  Karl Berry  <karl@gnu.org>
127293         * config/mkinstalldirs (version): new variable.
127294         (--version): new option.
127295         (usage): improve message.
127297 2003-05-30  Karl Berry  <karl@gnu.org>
127299         * lib/mktime.c: update from libc.
127301 2003-05-30  Bruno Haible  <bruno@clisp.org>
127303         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
127304         * config/config.rpath: Upgrade to gettext-0.12.1.
127306 2003-05-30  Bruno Haible  <bruno@clisp.org>
127308         * m4/gettext.m4: Upgrade to gettext-0.12.1.
127309         * m4/nls.m4: New file, from gettext-0.12.1.
127310         * m4/po.m4: New file, from gettext-0.12.1.
127311         * m4/progtest.m4: Upgrade to gettext-0.12.1.
127313 2003-05-30  Bruno Haible  <bruno@clisp.org>
127315         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
127316         * lib/localcharset.h: Likewise.
127317         * lib/localcharset.c: Likewise.
127319 2003-05-29  Karl Berry  <karl@gnu.org>
127321         * config/config.rpath: update from gettext.
127323 2003-05-28  Paul Eggert  <eggert@twinsun.com>
127325         Assume the headers required for C89 freestanding compilers.
127326         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
127327         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
127328         * m4/human.m4 (gl_HUMAN): Likewise.
127329         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
127330         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
127331         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127332         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
127333         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127334         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
127336 2003-05-28  Paul Eggert  <eggert@twinsun.com>
127338         Assume the headers required for C89 freestanding compilers.
127339         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
127340         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
127341         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
127342         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
127343         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
127344         define, since <limits.h> is guaranteed to do that.
127345         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
127346         * lib/exclude.c: Include <stdbool.h> unconditionally.
127347         * lib/tempname.c: Include <stddef.h> unconditionally.
127348         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
127349         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
127350         <stddef.h> does that.
127351         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
127352         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
127353         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
127354         needed.
127355         * lib/xstrtol.c: Likewise.
127356         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
127357         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
127359         * lib/addext.c (addext): Use assignment rather than cast, to avoid
127360         warnings on some platforms.
127362         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127363         arbitrarily.
127365 2003-05-26  Jim Meyering  <jim@meyering.net>
127367         Merge in a change from coreutils:
127368         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
127369         that is guaranteed to be `no'.  Use `no_such_member' to indicate
127370         that condition, rather than `-1' which is slightly misleading.
127371         Change the name of the cache variable to have the gl_ prefix.
127372         Prompted by a patch from Richard Dawe for DJGPP.
127374 2003-05-24  Karl Berry  <karl@gnu.org>
127376         * config/config.guess: update from prep.
127378 2003-05-22  Karl Berry  <karl@gnu.org>
127380         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
127382 2003-05-20  Karl Berry  <karl@gnu.org>
127384         * config/config.guess: update from prep.
127386 2003-05-18  Karl Berry  <karl@gnu.org>
127388         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
127389         might actually be set by the user.
127391         * config/depcomp, install-sh, mdate-sh: update from automake.
127393 2003-05-17  Bruno Haible  <bruno@clisp.org>
127395         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
127396         invalid expansion for AC_EGREP_CPP.
127397         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
127398         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
127399         Suggested by Akim Demaille <akim@epita.fr> in
127400         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
127402 2003-05-12  Jim Meyering  <jim@meyering.net>
127404         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
127405         the space-padded-by-default conversion specifiers, %e, %k, %l.
127407 2003-05-12  Bruno Haible  <bruno@clisp.org>
127409         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
127410         the string is longer than 4 KB.
127412 2003-05-11  Karl Berry  <karl@gnu.org>
127414         * config/config.{guess,sub}: update from prep.
127416 2003-05-09  Bruno Haible  <bruno@clisp.org>
127418         * modules/error: Add m4/strerror_r.m4 to file list.
127420 2003-05-03  Bruno Haible  <bruno@clisp.org>
127422         Upgrade to Unicode-4.0.
127423         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
127424         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
127425         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
127426         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
127427         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
127428         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
127429         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
127430         Change width of U+E0100..U+E01EF from 1 to 0.
127432 2003-04-25  Jim Meyering  <jim@meyering.net>
127434         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
127435         of type size_t, not int.
127437 2003-04-25  Bruno Haible  <bruno@clisp.org>
127439         * lib/copy-file.c: Include <stddef.h>, for size_t.
127441 2003-04-21  Paul Eggert  <eggert@twinsun.com>
127443         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
127444         code which expansion is under static control.  Patch imported from
127445         Akim Demaille's patch to Bison; see
127446         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
127448 2003-04-14  Bruno Haible  <bruno@clisp.org>
127450         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
127452 2003-04-11  Jim Meyering  <jim@meyering.net>
127454         Merge changes from Coreutils.
127456         2003-03-22  Jim Meyering  <jim@meyering.net>
127458         * lib/strftime.c (widen): Cast alloca return value to proper type.
127460         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
127462         From GNU libc.
127463         * lib/strftime.c (my_strftime): Handle very large width
127464         specifications for numeric values correctly.  Improve checks for
127465         overflow.
127467         2003-01-19  Jim Meyering  <jim@meyering.net>
127469         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
127470         definitions.
127471         (nl_get_alt_digit) [! defined my_strftime]: Define.
127472         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
127473         _nl_get_alt_digit and _nl_get_walt_digit.
127475         * lib/strftime.c (my_strftime): Merge in locale-related changes from
127476         libc. These changes have no effect outside of _LIBC.
127478 2003-04-10  Bruno Haible  <bruno@clisp.org>
127480         * modules/findprog: New file.
127481         * MODULES.html.sh (func_all_modules): Add it.
127483 2003-04-10  Bruno Haible  <bruno@clisp.org>
127485         * m4/findprog.m4: New file.
127486         * m4/eaccess.m4: New file.
127488 2003-04-10  Bruno Haible  <bruno@clisp.org>
127490         * lib/findprog.h: New file, from GNU gettext.
127491         * lib/findprog.c: New file, from GNU gettext.
127493 2003-04-05  Jim Meyering  <jim@meyering.net>
127495         Merge changes from Coreutils.
127497         * lib/exclude.h (PARAMS): Remove definition and uses.
127498         * lib/exclude.c: Remove uses of `PARAMS'.
127500         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
127501         Add test-cases for DOS filenames. Declare program_name.
127502         (main): Set up program_name.  Patch by Rich Dawe.
127504         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127505         error from mntctl.
127506         Use mntctl's return value to drive the entry-processing loop, since
127507         we can't rely on the value of the vmt_length member in the last
127508         entry.  On some systems doing so could result in exhausting
127509         virtual memory.  Based in part on a patch from Mike Jetzer.
127511 2003-04-04  Bruno Haible  <bruno@clisp.org>
127513         * modules/linebreak: New file.
127514         * MODULES.html.sh (func_all_modules): Add it.
127516 2003-04-04  Bruno Haible  <bruno@clisp.org>
127518         * m4/linebreak.m4: New file.
127520 2003-04-04  Bruno Haible  <bruno@clisp.org>
127522         * lib/linebreak.h: New file, from GNU gettext.
127523         * lib/linebreak.c: New file, from GNU gettext with slight
127524         modifications.
127525         * lib/lbrkprop.h: New file, from GNU gettext.
127527 2003-04-03  Bruno Haible  <bruno@clisp.org>
127529         * modules/utf8-ucs4: New file.
127530         * modules/utf16-ucs4: New file.
127531         * modules/ucs4-utf8: New file.
127532         * modules/ucs4-utf16: New file.
127533         * MODULES.html.sh (func_all_modules): Add them.
127535 2003-04-03  Bruno Haible  <bruno@clisp.org>
127537         * m4/utf-ucs4.m4: New file.
127538         * m4/ucs4-utf.m4: New file.
127540 2003-04-03  Bruno Haible  <bruno@clisp.org>
127542         * lib/utf8-ucs4.h: New file, from GNU gettext.
127543         * lib/utf16-ucs4.h: New file, from GNU gettext.
127544         * lib/ucs4-utf8.h: New file, from GNU gettext.
127545         * lib/ucs4-utf16.h: New file, from GNU gettext.
127547 2003-04-02  Bruno Haible  <bruno@clisp.org>
127549         * modules/binary-io: New file.
127550         * MODULES.html.sh (func_all_modules): Add it.
127552 2003-04-02  Bruno Haible  <bruno@clisp.org>
127554         * lib/binary-io.h: New file, from GNU gettext.
127556 2003-04-01  Bruno Haible  <bruno@clisp.org>
127558         * modules/pathname: New file.
127559         * MODULES.html.sh (func_all_modules): Add it.
127561 2003-04-01  Bruno Haible  <bruno@clisp.org>
127563         * lib/pathname.h: New file, from GNU gettext.
127564         * lib/concatpath.c: New file, from GNU gettext.
127566 2003-03-30  Bruno Haible  <bruno@clisp.org>
127568         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
127570 2003-03-30  Bruno Haible  <bruno@clisp.org>
127572         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
127573         function chown() doesn't exist.
127575 2003-03-28  Bruno Haible  <bruno@clisp.org>
127577         * modules/copy-file: New file.
127578         * MODULES.html.sh (func_all_modules): Add it.
127580 2003-03-28  Bruno Haible  <bruno@clisp.org>
127582         * m4/copy-file.m4: New file.
127584 2003-03-28  Bruno Haible  <bruno@clisp.org>
127586         * lib/copy-file.h: New file, from GNU gettext.
127587         * lib/copy-file.c: New file, from GNU gettext.
127589 2003-03-18  Jim Meyering  <jim@meyering.net>
127591         * lib/quote.c (quote_n): Fix typo in comment.
127593 2003-03-18  Bruno Haible  <bruno@clisp.org>
127595         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
127596         checking.
127597         * m4/onceonly_2_57.m4: Likewise.
127599 2003-03-17  Bruno Haible  <bruno@clisp.org>
127601         * m4/onceonly.m4: Require autoconf 2.54 or newer.
127602         (m4_quote): Remove macro.
127603         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
127605 2003-03-14  Jim Meyering  <jim@meyering.net>
127607         Merge changes from Coreutils.
127608         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
127609         to be const, in order to avoid warnings.
127610         (obstack_room): Likewise.
127611         (obstack_empty_p): Likewise.
127613 2003-03-14  Bruno Haible  <bruno@clisp.org>
127615         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
127616         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
127618 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127620         Merge changes from Bison.
127621         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
127622         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
127623         when compiling Bison 1.875's `bitset bset = obstack_alloc
127624         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
127625         * lib/hash.c: Include <stdbool.h> unconditionally.
127627 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127629         * m4/onceonly.m4 (m4_quote): New macro.
127630         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
127631         Quote AC_FOREACH variable-expansions properly.
127633 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127635         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
127637 2003-03-09  Paul Eggert  <eggert@twinsun.com>
127639         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
127640         Reported by Bruce Becker; see:
127641         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
127643 2003-03-03  Paul Eggert  <eggert@twinsun.com>
127644             Bruno Haible  <bruno@clisp.org>
127646         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
127647         Reported by John Hughes, see
127648         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
127650 2003-02-20  Bruno Haible  <bruno@clisp.org>
127652         * MODULES.html.sh (func_all_modules): Add poll.
127654 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
127656         * modules/poll: New file.
127658 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
127660         * lib/poll_.h: New file.
127661         * lib/poll.c: New file.
127663 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
127665         * m4/poll.m4: New file.
127667 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
127669         * modules/mathl: New file.
127671 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
127673         * lib/mathl.h: New file.
127674         * lib/acosl.c: New file.
127675         * lib/asinl.c: New file.
127676         * lib/atanl.c: New file.
127677         * lib/ceill.c: New file.
127678         * lib/cosl.c: New file.
127679         * lib/expl.c: New file.
127680         * lib/floorl.c: New file.
127681         * lib/frexpl.c: New file.
127682         * lib/ldexpl.c: New file.
127683         * lib/logl.c: New file.
127684         * lib/sincosl.c: New file.
127685         * lib/sinl.c: New file.
127686         * lib/sqrtl.c: New file.
127687         * lib/tanl.c: New file.
127688         * lib/trigl.c: New file.
127689         * lib/trigl.h: New file.
127691 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
127693         * m4/mathl.m4: New file.
127695 2003-02-18  Bruno Haible  <bruno@clisp.org>
127697         * MODULES.html.sh (func_all_modules): Add mathl.
127699 2003-02-17  Bruno Haible  <bruno@clisp.org>
127701         * modules/mkdtemp: New module.
127702         * MODULES.html.sh (func_all_modules): Add it.
127704 2003-02-17  Bruno Haible  <bruno@clisp.org>
127706         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
127708 2003-02-17  Bruno Haible  <bruno@clisp.org>
127710         * lib/mkdtemp.h: New file, from GNU gettext.
127711         * lib/mkdtemp.c: New file, from GNU gettext.
127713 2003-02-02  Jim Meyering  <jim@meyering.net>
127715         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
127716         e.g. glibc-2.2.93.
127718 2003-01-31  Bruno Haible  <bruno@clisp.org>
127720         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
127721         'rpl_rename'.
127722         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
127723         'rpl_strnlen'.
127724         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
127725         'rpl_strtod'.
127726         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
127727         'rpl_utime'.
127729 2003-01-31  Bruno Haible  <bruno@clisp.org>
127731         * lib/rename.c: #undef rename before defining rpl_rename.
127732         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
127734 2003-01-30  Bruno Haible  <bruno@clisp.org>
127736         * modules/vasnprintf, modules/vasprintf: New modules.
127737         * MODULES.html.sh (func_all_modules): Add them.
127739 2003-01-30  Bruno Haible  <bruno@clisp.org>
127741         * m4/signed.m4: New file, from GNU gettext.
127742         * m4/longdouble.m4: New file, from GNU gettext.
127743         * m4/wchar_t.m4: New file, from GNU gettext.
127744         * m4/wint_t.m4: New file, from GNU gettext.
127745         * m4/vasnprintf.m4: New file.
127746         * m4/vasprintf.m4: New file.
127748 2003-01-30  Bruno Haible  <bruno@clisp.org>
127750         * lib/printf-args.h: New file, from GNU gettext.
127751         * lib/printf-args.c: New file, from GNU gettext.
127752         * lib/printf-parse.h: New file, from GNU gettext.
127753         * lib/printf-parse.c: New file, from GNU gettext.
127754         * lib/vasnprintf.h: New file, from GNU gettext.
127755         * lib/vasnprintf.c: New file, from GNU gettext.
127756         * lib/asnprintf.c: New file, from GNU gettext.
127757         * lib/vasprintf.h: New file, from GNU gettext with modifications.
127758         * lib/vasprintf.c: New file, from GNU gettext.
127759         * lib/asprintf.c: New file, from GNU gettext.
127761 2003-01-29  Bruno Haible  <bruno@clisp.org>
127763         * modules/stpncpy: New module.
127764         * MODULES.html.sh (func_all_modules): Add it.
127766 2003-01-29  Bruno Haible  <bruno@clisp.org>
127768         * m4/stpncpy.m4: New file.
127770 2003-01-29  Bruno Haible  <bruno@clisp.org>
127772         * lib/stpncpy.h: New file, from GNU gettext with modifications.
127773         * lib/stpncpy.c: New file, from GNU gettext with modifications.
127775 2003-01-28  Bruno Haible  <bruno@clisp.org>
127777         * modules/c-ctype: New module.
127778         * MODULES.html.sh (func_all_modules): Add it.
127780 2003-01-28  Bruno Haible  <bruno@clisp.org>
127782         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
127783         Paul Eggert.
127784         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
127785         Paul Eggert.
127787 2003-01-27  Bruno Haible  <bruno@clisp.org>
127789         * modules/xsetenv: New module.
127790         * MODULES.html.sh (func_all_modules): Add it.
127792 2003-01-27  Bruno Haible  <bruno@clisp.org>
127794         * lib/xsetenv.h: New file, from GNU gettext.
127795         * lib/xsetenv.c: New file, from GNU gettext.
127797 2003-01-23  Jim Meyering  <jim@meyering.net>
127799         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
127800         from working on systems without dirfd (at least Irix and OSF1/Tru64).
127802 2003-01-23  Bruno Haible  <bruno@clisp.org>
127804         * modules/minmax: New module.
127805         * MODULES.html.sh (func_all_modules): Add it.
127807 2003-01-23  Bruno Haible  <bruno@clisp.org>
127809         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
127810         Eggert.
127812 2003-01-22  Bruno Haible  <bruno@clisp.org>
127814         * modules/exit: New module.
127815         * MODULES.html.sh (func_all_modules): Add it.
127817 2003-01-22  Bruno Haible  <bruno@clisp.org>
127819         * lib/exit.h: New file, from GNU gettext.
127821 2003-01-19  Bruno Haible  <bruno@clisp.org>
127823         * gnulib-tool: Recognize option --extract-maintainer.
127824         (func_get_maintainer): New function.
127825         * modules/*: Add Maintainer entry.
127827 2003-01-16  Jim Meyering  <jim@meyering.net>
127829         * m4/regex.m4: The `regex' struct is both input and output.
127830         Initialize it before each use.  Patch by Tim Waugh.
127832 2003-01-16  Bruno Haible  <bruno@clisp.org>
127834         * MODULES.html.sh: Add a table of contents. Add the module name as
127835         leftmost column. Add hyperlinks.
127837 2003-01-15  Bruno Haible  <bruno@clisp.org>
127839         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
127841 2003-01-15  Bruno Haible  <bruno@clisp.org>
127843         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
127844         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
127845         suffix.
127847 2003-01-15  Bruno Haible  <bruno@clisp.org>
127849         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
127851 2003-01-15  Bruno Haible  <bruno@clisp.org>
127853         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
127854         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
127856 2003-01-14  Jim Meyering  <jim@meyering.net>
127858         * lib/same.c (same_name): Tweak a comment.
127860 2003-01-14  Bruno Haible  <bruno@clisp.org>
127862         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
127863         when a string comparison is sufficient.
127865 2003-01-14  Bruno Haible  <bruno@clisp.org>
127867         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
127868         'unsigned int'.
127870 2003-01-14  Bruno Haible  <bruno@clisp.org>
127872         * lib/hash-pjw.c: Add comment about low quality of this function.
127874 2003-01-13  Bruno Haible  <bruno@clisp.org>
127876         * modules/stpcpy: Distribute lib/stpcpy.h.
127877         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
127879 2003-01-13  Bruno Haible  <bruno@clisp.org>
127881         * modules/*: Add a description.
127882         * modules/strpbrk: Fix Makefile.am snippet.
127883         * modules/strtoimax: Fix dependencies.
127884         * modules/strtoumax: Likewise.
127886 2003-01-13  Bruno Haible  <bruno@clisp.org>
127888         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
127889         * modules/alloca (Makefile.am): All object files depend on alloca.h.
127890         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
127892 2003-01-13  Bruno Haible  <bruno@clisp.org>
127894         * gnulib-tool (func_create_testdir): Store config/* files in the main
127895         directory.
127896         * config.rpath: Move to ...
127897         * config/config.rpath: ... here.
127898         * modules/gettext: Contains config/config.rpath, not config.rpath.
127899         * modules/iconv: Likewise.
127901 2003-01-12  Paul Eggert  <eggert@twinsun.com>
127903         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
127904         to avoid collisions with libcurses and libreadline.
127906         * m4/getstr.m4: Remove.
127907         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
127909 2003-01-12  Paul Eggert  <eggert@twinsun.com>
127911         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
127912         to avoid collisions with libcurses and libreadline.
127914         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
127915         * lib/getstr.h, getstr.c: Remove.
127916         * lib/getline.c: Include "getline.h", to check interface.
127917         Move body of old getstr.c here: this defines MIN_CHUNK and
127918         declares getdelim2, which is renamed from getstr.
127919         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
127921         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
127922         All uses changed.
127923         * lib/linebuffer.h: Likewise.
127924         (readline): Remove backward-compatibility macro.
127926 2003-01-12  Paul Eggert  <eggert@twinsun.com>
127928         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
127929         to avoid collisions with libcurses and libreadline.
127930         * getstr: Remove.
127931         * MODULES.html.sh: Remove getstr.
127932         * modules/getline: Depend on unlocked-io, not getstr.
127934 2003-01-12  Jim Meyering  <jim@meyering.net>
127936         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
127938 2003-01-10  Bruno Haible  <bruno@clisp.org>
127940         * modules/alloca: Change Makefile.am requirements. Simplify Include
127941         requirements. Add lib/alloca_.h to file list.
127943 2003-01-10  Bruno Haible  <bruno@clisp.org>
127945         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
127947 2003-01-10  Bruno Haible  <bruno@clisp.org>
127949         * lib/alloca_.h: New file.
127950         * lib/getdate.y: Unconditionally include alloca.h.
127951         * lib/makepath.c: Likewise.
127952         * lib/setenv.c: Likewise.
127953         * lib/userspec.c: Likewise.
127955 2003-01-09  Karl Berry  <karl@gnu.org>
127957         * MODULES.html.sh: include `dirname $0` in PATH, to find
127958         gnulib-tool.
127960 2003-01-09  Bruno Haible  <bruno@clisp.org>
127962         * modules/stdbool: Change configure.ac, Makefile.am requirements.
127963         Simplify Include requirements. Add lib/stdbool.h.in to file list.
127965 2003-01-09  Bruno Haible  <bruno@clisp.org>
127967         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
127969 2003-01-09  Bruno Haible  <bruno@clisp.org>
127971         * lib/stdbool.h.in: New file.
127973 2003-01-09  Bruno Haible  <bruno@clisp.org>
127975         * gnulib-tool (func_all_modules): Ignore files ending in ~.
127976         * MODULES.html.sh: Likewise.
127978 2003-01-08  Jim Meyering  <jim@meyering.net>
127980         * lib/full-write.c: Undefine and define-away `const' after inclusion
127981         of errno.h, not before.  Suggestion from Bruno Haible.
127983 2003-01-08  Bruno Haible  <bruno@clisp.org>
127985         * modules/full-read: Depend on full-write.
127987 2003-01-08  Bruno Haible  <bruno@clisp.org>
127989         * lib/safe-read.c: Include specification header first, to ensure its
127990         selfcontainedness.
127991         * lib/full-write.c: Likewise.
127993 2003-01-07  Jim Meyering  <jim@meyering.net>
127995         * lib/full-write.c: Rework so that it may serve to define full_read,
127996         too.
127997         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
127999 2003-01-07  Bruno Haible  <bruno@clisp.org>
128001         * lib/strtoimax.c: Include <stdint.h> as an alternative to
128002         <inttypes.h>.
128003         * lib/xstrtol.h: Likewise.
128004         * lib/xstrtoimax.c: Likewise.
128005         * lib/xstrtoumax.c: Likewise.
128006         * lib/human.h: Likewise.
128008         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
128009         on systems that have <inttypes.h> but not <stdint.h>.
128011 2003-01-07  Bruno Haible  <bruno@clisp.org>
128013         * MODULES.html.sh: Add copyright notice.
128014         (missed_files): Omit CVS directory entries.
128015         (func_module): Make it work with sed-3.02.
128016         * MODULES.txt: Remove file.
128018 2003-01-06  Jim Meyering  <jim@meyering.net>
128020         * lib/version-etc.c: Update year in translatable copyright string.
128022 2003-01-03  Karl Berry  <karl@gnu.org>
128024         * config/config.{guess,sub}: update from prep.
128026 2003-01-02  Karl Berry  <karl@gnu.org>
128028         * doc/COPYING.DOC: belatedly updated to 1.2.
128030 2003-01-01  Karl Berry  <karl@gnu.org>
128032         * gnulib-tool (func_verify_module): report module name $module in
128033         error message, not $1.
128034         * gnulib-tool (create-testdir): don't complain if destdir couldn't
128035         be created, only if it doesn't exist.
128036         * gnulib-tool (last_checkin_date): don't expand the $Date here.
128038 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128040         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
128042 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128044         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
128045         memcmp if strcoll doesn't work.
128047 2002-12-31  Bruno Haible  <bruno@clisp.org>
128049         * lib/utime.c (utime_null): No need to call ftruncate if the file was
128050         nonempty.
128052 2002-12-31  Bruno Haible  <bruno@clisp.org>
128054         * lib/memcoll.c (STRCOLL): New macro.
128055         (memcoll): Use it.
128057 2002-12-31  Bruno Haible  <bruno@clisp.org>
128059         * lib/localcharset.h: New file.
128060         * lib/localcharset.c: Include it.
128061         * lib/unicodeio.c: Likewise.
128063 2002-12-31  Bruno Haible  <bruno@clisp.org>
128065         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
128066         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
128068 2002-12-31  Bruno Haible  <bruno@clisp.org>
128070         * lib/getline.h: Include <stddef.h>, for size_t.
128072         * lib/unicodeio.h: Include <stddef.h>, for size_t.
128073         * lib/unicodeio.c: Don't include <stddef.h>.
128075 2002-12-31  Bruno Haible  <bruno@clisp.org>
128077         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
128078         HAVE_TM_ZONE.
128080 2002-12-24  Karl Berry  <karl@gnu.org>
128082         * config/config.guess: update from prep.
128084 2002-12-24  Bruno Haible  <bruno@clisp.org>
128086         General infrasructure.
128087         * m4/README: Rewritten.
128088         * m4/onceonly.m4: New file.
128089         * m4/onceonly_2_57.m4: New file.
128091         Module atexit.
128092         * m4/atexit.m4: New file.
128094         Module strtod.
128095         * m4/strtod.m4: New file.
128097         Module strtol.
128098         * m4/strtol.m4: New file.
128100         Module strtoul.
128101         * m4/strtoul.m4: New file.
128103         Module memchr.
128104         * m4/memchr.m4: New file.
128106         Module memcmp.
128107         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
128108         (jm_FUNC_MEMCMP): Invoke it.
128110         Module memcpy.
128111         * m4/memcpy.m4: New file.
128113         Module memmove.
128114         * m4/memmove.m4: New file.
128116         Module memset.
128117         * m4/memset.m4: New file.
128119         Module strcspn.
128120         * m4/strcspn.m4: New file.
128122         Module strpbrk.
128123         * m4/strpbrk.m4: New file.
128125         Module strstr.
128126         * m4/strstr.m4: New file.
128128         Module strerror.
128129         * m4/strerror.m4: New file.
128131         Module mktime.
128132         * m4/mktime.m4: Renamed from jm-mktime.m4.
128133         (gl_PREREQ_MKTIME): New macro.
128134         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
128136         Module malloc.
128137         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
128138         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
128139         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
128141         Module realloc.
128142         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
128143         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
128144         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
128146         Module strftime.
128147         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
128148         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
128149         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
128150         gl_TM_GMTOFF.
128151         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
128153         Module xalloc.
128154         * m4/xalloc.m4: New file.
128156         Module alloca.
128157         * m4/alloca.m4: New file.
128159         Module putenv.
128160         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
128161         (jm_FUNC_PUTENV): Invoke it.
128163         Module setenv.
128164         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
128165         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
128166         when invoked twice.
128167         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
128168         gt_FUNC_SETENV.
128170         Module memrchr.
128171         * m4/memrchr.m4: New file.
128173         Module stpcpy.
128174         * m4/stpcpy.m4: New file.
128176         Module strcase.
128177         * m4/strcase.m4: New file.
128179         Module strdup.
128180         * m4/strdup.m4: New file.
128182         Module strnlen.
128183         * m4/strnlen.m4: New file.
128185         Module strndup.
128186         * m4/strndup.m4: New file.
128188         Module xstrtod.
128189         * m4/xstrtod.m4: New file.
128191         Module xstrtol.
128192         * m4/xstrtol.m4: New file.
128194         Module getdate.
128195         * m4/getdate.m4: New file.
128197         Module unlocked-io.
128198         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
128199         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
128200         * m4/jm-glibc-io.m4n: Remove file.
128202         Module long-options.
128203         * m4/long-options.m4: New file.
128205         Module md5.
128206         * m4/md5.m4: New file.
128208         Module sha.
128209         * m4/sha.m4: New file.
128211         Module getstr.
128212         * m4/getstr.m4: New file.
128214         Module getline.
128215         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
128216         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
128217         <sys/types.h>, for size_t. Use the function name gnu_getline, not
128218         simply getline. Infoke gl_PREREQ_GETLINE.
128220         Module obstack.
128221         * m4/obstack.m4: New file.
128223         Module hash.
128224         * m4/hash.m4: New file.
128226         Module readtokens.
128227         * m4/readtokens.m4: New file.
128229         Module strverscmp.
128230         * m4/strverscmp.m4: New file.
128232         Module stdbool.
128233         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
128234         OSF/1.
128236         Module strtoll.
128237         * m4/strtoll.m4: New file.
128239         Module strtoull.
128240         * m4/strtoull.m4: New file.
128242         Module strtoimax.
128243         * m4/strtoimax.m4: New file.
128245         Module strtoumax.
128246         * m4/strtoumax.m4: New file.
128248         Module xstrtoimax.
128249         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
128250         jm_AC_PREREQ_XSTRTOIMAX.
128251         Moved the strtol prerequisites to strtol.m4.
128252         Moved the strtoll prerequisites to strtoll.m4.
128253         Moved the strtoimax prerequisites to strtoimax.m4.
128255         Module xstrtoumax.
128256         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
128257         jm_AC_PREREQ_XSTRTOUMAX.
128258         Moved the strtoul prerequisites to strtoul.m4.
128259         Moved the strtoull prerequisites to strtoull.m4.
128260         Moved the strtoumax prerequisites to strtoumax.m4.
128262         Module chown.
128263         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
128264         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
128266         Module dup2.
128267         * m4/dup2.m4: New file.
128269         Module ftruncate.
128270         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
128271         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
128273         Module getgroups.
128274         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
128275         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
128277         Module gettimeofday.
128278         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
128279         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
128280         gl_PREREQ_GETTIMEOFDAY.
128282         Module mkdir.
128283         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
128284         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
128286         Module mkstemp.
128287         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
128288         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
128289         jm_AC_TYPE_UINTMAX_T.
128290         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
128292         Module stat.
128293         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
128294         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
128296         Module lstat.
128297         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
128298         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
128300         Module timespec.
128301         * m4/timespec.m4 (gl_TIMESPEC): New macro.
128302         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
128303         * m4/st_mtim.m4: Indentation.
128305         Module nanosleep.
128306         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
128307         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
128308         gl_PREREQ_NANOSLEEP.
128310         Module regex.
128311         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
128312         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
128313         (gl_REGEX): New macro.
128315         Module rename.
128316         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
128317         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
128319         Module rmdir.
128320         * m4/rmdir.m4: New file.
128322         Module utime.
128323         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
128324         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
128325         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
128327         Module dirname.
128328         * m4/dirname.m4: New file.
128330         Module getopt.
128331         * m4/getopt.m4: New file.
128333         Module unistd-safer.
128334         * m4/unistd-safer.m4: New file.
128336         Module fnmatch.
128337         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
128338         declaration.
128339         (gl_PREREQ_FNMATCH_EXTRA): New macro.
128340         (gl_FUNC_FNMATCH_POSIX): New macro.
128341         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
128342         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
128343         simply fnmatch.
128345         Module exclude.
128346         * m4/exclude.m4: New file.
128348         Module human.
128349         * m4/human.m4: New file.
128351         Module acl.
128352         * m4/acl.m4: Nop.
128354         Module backupfile.
128355         * m4/backupfile.m4: New file.
128356         * m4/d-ino.m4: Indentation.
128358         Module fsusage.
128359         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
128360         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
128361         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
128363         Module dirfd.
128364         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
128365         requirements.
128367         Module euidaccess.
128368         * m4/euidaccess.m4: New file.
128370         Module file-type.
128371         * m4/file-type.m4: New file.
128373         Module fileblocks.
128374         * m4/fileblocks.m4: New file.
128376         Module filemode.
128377         * m4/filemode.m4: New file.
128379         Module isdir.
128380         * m4/isdir.m4: New file.
128382         Module lchown.
128383         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
128384         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
128386         Module makepath.
128387         * m4/makepath.m4: New file.
128389         Module modechange.
128390         * m4/modechange.m4: New file.
128392         Module mountlist.
128393         * m4/mountlist.m4: New file.
128394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
128395         Indentation.
128397         Module path-concat.
128398         * m4/path-concat.m4: New file.
128400         Module pathmax.
128401         * m4/pathmax.m4: New file.
128403         Module same.
128404         * m4/same.m4: New file.
128406         Module save-cwd.
128407         * m4/save-cwd.m4: New file.
128409         Module savedir.
128410         * m4/savedir.m4: New file.
128412         Module xgetcwd.
128413         * m4/xgetcwd.m4: New file.
128414         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
128416         Module xreadlink.
128417         * m4/xreadlink.m4: New file.
128419         Module safe-read.
128420         * m4/safe-read.m4: New file.
128422         Module safe-write.
128423         * m4/safe-write.m4: New file.
128425         Module closeout.
128426         * m4/closeout.m4: New file.
128428         Module stdio-safer.
128429         * m4/stdio-safer.m4: New file.
128431         Module getpass.
128432         * m4/getpass.m4: New file.
128434         Module getugroups.
128435         * m4/getugroups.m4: New file.
128437         Module group-member.
128438         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
128439         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
128441         Module idcache.
128442         * m4/idcache.m4: New file.
128444         Module userspec.
128445         * m4/userspec.m4: New file.
128447         Module gettime.
128448         * m4/clock_time.m4: New file.
128449         * m4/gettime.m4: New file.
128451         Module settime.
128452         * m4/settime.m4: New file.
128454         Module posixtm.
128455         * m4/posixtm.m4: New file.
128457         Module gethostname.
128458         * m4/gethostname.m4: New file.
128460         Module canon-host.
128461         * m4/canon-host.m4: New file.
128463         Module gettext.
128464         * m4/codeset.m4: New file, from gettext-0.11.5.
128465         * m4/gettext.m4: New file, from gettext-0.11.5.
128466         * m4/glibc21.m4: New file, from gettext-0.11.5.
128467         * m4/iconv.m4: New file, from gettext-0.11.5.
128468         * m4/intdiv0.m4: New file, from gettext-0.11.5.
128469         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
128470         * m4/inttypes.m4: New file, from gettext-0.11.5.
128471         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
128472         * m4/isc-posix.m4: New file, from gettext-0.11.5.
128473         * m4/lcmessage.m4: New file, from gettext-0.11.5.
128474         * m4/lib-ld.m4: New file, from gettext-0.11.5.
128475         * m4/lib-link.m4: New file, from gettext-0.11.5.
128476         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
128477         * m4/progtest.m4: New file, from gettext-0.11.5.
128478         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
128479         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
128480         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
128482         Module localcharset.
128483         * m4/localcharset.m4: New file.
128485         Module hard-locale.
128486         * m4/hard-locale.m4: New file.
128488         Module mbswidth.
128489         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
128490         onceonly macros.
128491         * m4/mbrtowc.m4: Add comment.
128493         Module memcasecmp.
128494         * m4/memcasecmp.m4: New file.
128496         Module memcoll.
128497         * m4/memcoll.m4: New file.
128499         Module unicodeio.
128500         * m4/unicodeio.m4: New file.
128502         Module rpmatch.
128503         * m4/rpmatch.m4: New file.
128505         Module yesno.
128506         * m4/yesno.m4: New file.
128508         Module exitfail.
128509         * m4/exitfail.m4: New file.
128511         Module c-stack.
128512         * m4/c-stack.m4 (gl_C_STACK): New macro.
128513         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
128515         Module error.
128516         * m4/error.m4 (gl_ERROR): New macro.
128517         (jm_PREREQ_ERROR): Use onceonly macros.
128519         Module fatal.
128520         * m4/fatal.m4: New file.
128522         Module getloadavg.
128523         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
128524         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
128526         Module getpagesize.
128527         * m4/getpagesize.m4: New file.
128529         Module getusershell.
128530         * m4/getusershell.m4: New file.
128532         Module physmem.
128533         * m4/physmem.m4: New file.
128535         Module posixver.
128536         * m4/posixver.m4: New file.
128538         Module quotearg.
128539         * m4/quotearg.m4: New file.
128541         Module quote.
128542         * m4/quote.m4: New file.
128544         Module readutmp.
128545         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
128547         Module sig2str.
128548         * m4/sig2str.m4: New file.
128550         Other.
128551         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
128552         ulonglong.m4.
128553         * m4/intmax_t.m4: New file.
128554         * m4/d-type.m4: Indentation.
128555         * m4/jm-macros.m4: Update.
128556         * m4/prereq.m4 (jm_PREREQ): Update.
128557         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
128558         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
128559         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
128560         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
128561         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
128562         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
128563         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
128564         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
128565         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
128566         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
128567         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
128568         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
128569         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
128570         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
128571         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
128572         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
128573         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
128574         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
128575         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
128577 2002-12-24  Bruno Haible  <bruno@clisp.org>
128579         * MODULES.txt: Update according to m4/ changes.
128581         Module gettext.
128582         * config.rpath: New file, from gettext-0.11.5.
128584         * modules/*: New module descriptions.
128585         * gnulib-tool: New file.
128586         * MODULES.html.sh: New file.
128588 2002-12-21  Karl Berry  <karl@gnu.org>
128590         * doc/fdl.texi: update to version 1.2.
128592 2002-12-19  Karl Berry  <karl@gnu.org>
128594         * config/config.guess: update from prep.
128596 2002-12-18  Bruno Haible  <bruno@clisp.org>
128598         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
128599         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
128601 2002-12-17  Bruno Haible  <bruno@clisp.org>
128603         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
128604         stdlib.h, string.h.
128606 2002-12-17  Bruno Haible  <bruno@clisp.org>
128608         * lib/canon-host.c (strdup): Remove unused declaration.
128610         * lib/fsusage.c: Include full_read.h.
128611         (get_fs_usage): Use full_read instead of safe_read.
128613         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
128615 2002-12-12  Karl Berry  <karl@gnu.org>
128617         * config/config.guess: update from prep.
128619 2002-12-11  Bruno Haible  <bruno@clisp.org>
128621         * m4/setenv.m4: New file, from gettext-0.11.5.
128623 2002-12-11  Bruno Haible  <bruno@clisp.org>
128625         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
128626         not unsetenv().
128627         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
128628         modifications:
128630         2002-12-11  Bruno Haible  <bruno@clisp.org>
128632                 * setenv.c (alloca): Fall back to malloc.
128633                 (freea): New macro.
128634                 (setenv): Use freea() to free memory allocated with alloca().
128636         2002-11-13  Bruno Haible  <bruno@clisp.org>
128638                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
128639                 function declarations.
128640                 * unsetenv.c (unsetenv): Likewise.
128642         2002-03-04  Bruno Haible  <bruno@clisp.org>
128644                 Portability to AIX 4.3.3.
128645                 * unsetenv.c: New file, extracted from setenv.c.
128646                 * setenv.c: Move the unsetenv() function to unsetenv.c.
128648         2001-12-20  Bruno Haible  <bruno@clisp.org>
128650                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
128651                 use malloc instead. For SunOS 4.
128653         2001-12-11  Bruno Haible  <bruno@clisp.org>
128655                 * setenv.c: Declare alloca.
128656                 (compar_fn_t): New typedef.
128657                 (KNOWN_VALUE, STORE_VALUE): Use it.
128659         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
128660         setenv.h.
128662 2002-12-10  Paul Eggert  <eggert@twinsun.com>
128664         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
128665         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
128666         Choose values that are less likely to collide with system fnmatch
128667         options.
128668         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
128669         defined (e.g., a pure POSIX system).
128670         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
128671         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
128673 2002-12-06  Paul Eggert  <eggert@twinsun.com>
128675         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
128676         a pain in practice to deal with generated m4 files.  This change
128677         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
128679         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
128680         and jm-glibc-io.m4, as they are no longer a special case.
128681         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
128682         kludge and the auto-generation stuff.  Check only whether the
128683         functions are declared, not whether they exist, since older hosts
128684         that don't declare the functions can't use the optimization anyway.
128686 2002-12-06  Jim Meyering  <jim@meyering.net>
128688         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
128690         Merge in changes from libc's misc/error.c, in preparation
128691         for the merge of gnulib's changes back into libc.
128693         * lib/error.c (_): Define only if not already defined.
128694         Move definition to follow all #include directives.
128695         Include unlocked-io.h only if !_LIBC.
128696         [_LIBC]: Include <libio/libioP.h>.
128697         [USE_IN_LIBIO]: Include <libio/iolibio.h>
128698         (fflush): Tweak definition to use INTUSE.
128699         (putc): Define.
128701 2002-12-05  Paul Eggert  <eggert@twinsun.com>
128703         * lib/alloca.c [defined emacs]: Include "lisp.h".
128704         (xalloc_die) [defined emacs]: New macro.
128705         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
128706         [! defined emacs]: Include <xalloc.h>.
128707         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
128708         (pointer): Typedef to POINTER_TYPE *.
128709         (malloc): Remove decl; we now always use xmalloc.
128710         (alloca): Use old-style definition, since Emacs needs this.
128711         Check for arithmetic overflow when computing combined size.
128713 2002-12-04  Paul Eggert  <eggert@twinsun.com>
128715         Do not generate unlocked-io.h automatically, since it's easier to
128716         maintain it by hand.
128718         * lib/unlocked-io.h: New file, from GNU diffutils,
128719         but with proper copyright notice and attribution.
128720         * lib/gen-uio: Remove.
128721         * lib/Makefile.am: Add copyright notice.
128722         (libfetish_a_SOURCES): Add unlocked-io.h.
128723         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
128724         (DISTCLEANFILES, io_functions): Remove macros.
128725         (EXTRA_DIST): Remove gen_uio.
128726         (unlocked-io.h): Remove rule.
128728 2002-12-04  Jim Meyering  <jim@meyering.net>
128730         Reflect the fact that stat.c and lstat.c are no longer generated.
128731         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
128732         (DISTCLEANFILES): Likewise.
128733         (EXTRA_DIST): Likewise.
128734         (all_local): Don't depend on stat.c or lstat.c.
128735         (stat.c, lstat.c): Remove rules.
128736         (EXTRA_DIST): Remove xstat.in.
128738         * lib/xstat.in: Remove file.  Contents moved into stat.c.
128739         * lib/stat.c: New file.  Contents mostly from xstat.in.
128740         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
128741         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
128743         * lib/safe-read.c: Rework so that it may serve to define safe_write,
128744         too.
128745         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
128747 2002-12-03  Jim Meyering  <jim@meyering.net>
128749         * lib/safe-read.c, safe-write.c: Change variable names and comments,
128750         but not semantics, to minimize the differences between these two files.
128751         (safe_read): Change comment to mention SAFE_READ_ERROR.
128753         * lib/safe-read.c (IS_EINTR): Define.
128754         (safe_read): Use IS_EINTR in place of in-function cpp directives.
128756 2002-12-02  Jim Meyering  <jim@meyering.net>
128758         * lib/safe-read.c (EINTR): Define.
128759         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
128760         (INT_MAX): Provide fallback.
128761         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
128763         * lib/safe-read.h (SAFE_READ_ERROR): Define.
128765 2002-12-02  Bruno Haible  <bruno@clisp.org>
128767         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
128768         Define, taken from safe-read.c.
128769         (INT_MAX): Provide fallback.
128770         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
128771         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
128773         * lib/safe-read.c (EINTR): Remove definition.
128774         (safe_read): Don't use EINTR if it is absent.
128776 2002-12-01  Jim Meyering  <jim@meyering.net>
128778         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
128779         zero.
128780         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
128782 2002-11-27  Paul Eggert  <eggert@twinsun.com>
128784         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
128785         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
128786         with `if (! (value < limit)) abort ();', for readability.
128788 2002-11-26  Karl Berry  <karl@gnu.org>
128790         * lib/strdup.c: copy from libc again, with jim's ok.
128791         * lib/.cppi-disable: re-add strdup.c
128793 2002-11-25  Karl Berry  <karl@gnu.org>
128795         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
128796         instead of "strtol.c".
128798 2002-11-25  Karl Berry  <karl@gnu.org>
128800         * config/install-sh: update from automake for variable quoting, $0 in
128801         error msgs, etc.
128803         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
128804         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
128805         entry.
128807 2002-11-25  Jim Meyering  <jim@meyering.net>
128809         * lib/mktime.c: Sync from libc, now that it has the latest fix.
128811 2002-11-24  Karl Berry  <karl@gnu.org>
128813         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
128814         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
128816 2002-11-24  Jim Meyering  <jim@meyering.net>
128818         Update from coreutils:
128820         * lib/mktime.c: Merge in changes from libc.
128822         Avoid a link-time failure on some Linux systems.
128823         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
128824         (otherwise).
128825         (__mon_yday): Declare with the STATIC attribute.
128826         (__mktime_internal): Likewise.
128827         Based on a report from Greg Schafer.
128829 2002-11-23  Jim Meyering  <jim@meyering.net>
128831         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
128832         Use `unsigned', not `int', as type of index.
128834         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
128836         * lib/fsusage.c: Remove unneeded parentheses around operands of
128837         `defined'.
128839 2002-11-22  Paul Eggert  <eggert@twinsun.com>
128841         * lib/quotearg.h: Allow multiple inclusion by surrounding with
128842         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
128843         so that we can be included first.
128844         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
128845         * lib/quotearg.c: Include quotearg.h immediately after config.h.
128846         No need to include stddef.h or sys/types.h any more.
128847         Surround local include files with "", not "<>".
128848         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
128849         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
128850         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
128851         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
128852         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
128853         (ISPRINT): Remove; no longer needed now that we assume C89.
128855         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
128856         Preserve errno.
128858         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
128859         quotearg_char): Use SIZE_MAX rather than
128860         (size_t) -1 when we are talking about "infinity".
128862         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
128864 2002-11-22  Paul Eggert  <eggert@twinsun.com>
128866         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
128867         hint that one should use `if (! x) abort ();' rather than `assert
128868         (x);', and anyway it's one less thing to worry about configuring.
128869         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
128870         hash_rehash, hash_insert): Use abort rather than assert.
128872 2002-11-22  Bruno Haible  <bruno@clisp.org>
128874         * lib/safe-read.h: Assume C89. Add comments.
128875         (safe_read): Change return type to size_t.
128876         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
128877         byte counts > SSIZE_MAX correctly.
128878         * lib/safe-write.h: New file.
128879         * lib/safe-write.c: New file.
128880         * lib/full-read.h: New file.
128881         * lib/full-read.c: New file.
128882         * lib/full-write.h: Assume C89. Add comments.
128883         * lib/full-write.c: Include safe-write.h.
128884         (full_write): Rewritten to use safe_write.
128885         Suggested by Jim Meyering and Paul Eggert.
128887 2002-11-21  Jim Meyering  <jim@meyering.net>
128889         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
128891         Merge in changes from the coreutils.
128893         2002-09-25  Paul Eggert  <eggert@twinsun.com>
128894         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
128895         <stdint.h>.
128896         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
128897         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
128898         int.  Work more efficiently if X is the same width as uintmax_t.
128899         Do not compare X to -1, to avoid bogus compiler warning.
128900         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
128901         Don't assume that f_frsize and f_bsize are the same type.
128903         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
128904         warning on FreeBSD.
128906         * lib/makepath.c (make_path): Restore umask *before* creating the final
128907         component.
128908         (make_path): Minor reformatting.
128910         * lib/xmalloc.c: Adjust to work with new autoconf macros,
128911         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
128912         HAVE_MALLOC/HAVE_REALLOC.
128914         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
128915         dummy ones.  At least on GNU/Linux systems, `auto' means something
128916         else.
128917         From Michael Stone.
128919 2002-11-21  Bruno Haible  <bruno@clisp.org>
128921         Remove case insensitive option matching.
128922         * lib/argmatch.h (argcasematch): Remove declaration.
128923         (ARGCASEMATCH): Remove macro.
128924         (__xargmatch_internal): Remove case_sensitive argument.
128925         (XARGMATCH): Update.
128926         (XARGCASEMATCH): Remove macro.
128927         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
128928         case_sensitive argument.
128929         (argcasematch): Remove function.
128930         (__xargmatch_internal): Remove case_sensitive argument.
128931         (main): Use XARGMATCH instead of XARGCASEMATCH.
128933         * lib/xmalloc.c: Change compile-time error message. Add comment about
128934         required autoconf version.
128936 2002-11-20  Paul Eggert  <eggert@twinsun.com>
128938         Merge argmatch cleanups from Bison.  Assume C89.
128940         * lib/argmatch.c: Include config.h here, not in argmatch.h.
128941         Include stdlib.h, for EXIT_FAILURE.
128942         Always include <string.h>, since we assume C89.
128943         (EXIT_FAILURE): Remove pre-C89 bug workaround.
128944         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
128945         Include <stddef.h> instead, since it's all we need for size_t.
128946         (PARAMS): Remove.  All uses removed.
128947         (ARRAY_CARDINALITY): Do not bother to #undef.
128948         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
128949         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
128950         Remove unnecessary parentheses.
128951         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
128952         Insert necessary parentheses.
128953         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
128954         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
128956 2002-11-19  Bruno Haible  <bruno@clisp.org>
128958         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
128959         * lib/mbswidth.h: Include <stddef.h>, for size_t.
128961         * lib/mbswidth.h (PARAMS): Remove macro.
128962         (mbswidth, mbsnwidth): Use ANSI C function declarations.
128963         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
128965         * lib/gcd.h (PARAMS): Remove macro.
128966         (gcd): Use ANSI C function declarations.
128967         * lib/gcd.c (gcd): Likewise.
128969 2002-11-15  Bruno Haible  <bruno@clisp.org>
128971         * lib/strcspn.c: Include <stddef.h>.
128972         (strcspn): Use ANSI C function declaration. Change return type to
128973         size_t. Use NULL.
128974         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
128975         (strpbrk): Use NULL.
128976         * lib/strpbrk.h (PARAMS): Remove macro.
128977         (strpbrk): Use ANSI C function declaration.
128978         * lib/strstr.c: Don't include <sys/types.h>.
128979         * lib/strstr.h (PARAMS): Remove macro.
128980         (strstr): Use ANSI C function declarations.
128982 2002-11-14  Karl Berry  <karl@gnu.org>
128984         * config/mkinstalldirs: `do' on separate line, instead of
128985         `for var; do'.
128987 2002-11-06  Bruno Haible  <bruno@clisp.org>
128989         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
128990         * lib/gcd.c (gcd): Likewise.
128992 2002-11-05  Bruno Haible  <bruno@clisp.org>
128994         * lib/gcd.h: New file, from gettext-0.11.5.
128995         * lib/gcd.c: New file, from gettext-0.11.5.
128997 2002-11-05  Bruno Haible  <bruno@clisp.org>
128999         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129000         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129001         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129002         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129004         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
129005         <libintl.h>.
129006         * lib/makepath.c: Include gettext.h instead of <locale.h> and
129007         <libintl.h>.
129009         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
129010         * lib/human.c: Include gettext.h instead of <libintl.h>.
129011         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
129012         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
129013         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
129014         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
129015         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
129016         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
129017         (textdomain): Remove definition.
129018         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
129020         * lib/long-options.c: Remove include of <libintl.h> and definition of
129021         _.
129022         * lib/same.c: Remove include of <libintl.h> and definition of _.
129024 2002-11-04  Owen Taylor  <otaylor@redhat.com>
129026         * lib/config.charset: A few additions for Solaris.
129028 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129030         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
129031         * lib/localcharset.c (locale_charset): Declare as extern "C".
129033 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129035         * lib/config.charset: msdos in uk_UA uses CP1125.
129037 2002-11-04  Bruno Haible  <bruno@clisp.org>
129039         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
129040         * lib/strcase.h: New file, from GNU gettext-0.11.5.
129041         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
129042         * lib/strstr.h: New file, from GNU gettext-0.11.5.
129043         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
129045 2002-11-04  Bruno Haible  <bruno@clisp.org>
129047         * lib/localcharset.c (locale_charset): Don't return an empty string.
129049 2002-11-04  Bruno Haible  <bruno@clisp.org>
129051         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
129052         aliases.
129054 2002-11-04  Bruno Haible  <bruno@clisp.org>
129056         * lib/config.charset: Update for newest glibc. Add canonical names
129057         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
129059 2002-11-04  Bruno Haible  <bruno@clisp.org>
129061         * lib/config.charset: Add support for NetBSD.
129063 2002-11-04  Bruno Haible  <bruno@clisp.org>
129065         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
129067 2002-11-01  Bruno Haible  <bruno@clisp.org>
129069         * configure.in: Add AC_CONFIG_AUX_DIR call.
129070         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
129071         test/Makefile.
129072         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
129074 2002-09-28  Karl Berry  <karl@gnu.org>
129076         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
129077         installed automake until the next release, since changes have been
129078         made.
129080 2002-09-25  Karl Berry  <karl@gnu.org>
129082         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
129083         * lib/getopt*: copy from libc/posix.
129084         * lib/gettext.h: copy from gettext.
129085         * lib/.cppi-disable: add strdup.c, gettext.h.
129087 2002-09-25  Karl Berry  <karl@gnu.org>
129089         * config/srclist.txt: enable gettext.h check.
129090         * config/config.{guess,sub}: update from prep.
129091         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
129092                 from automake 1.6.3.
129093         See srclist*.
129095 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
129097         * regex.c (PATFETCH): Remove the translating fetch.
129098         (PATFETCH_RAW): Rename to PATFETCH.
129099         (set_image_of_range): New fun.
129100         (SET_RANGE_TABLE_WORK_AREA): Use it.
129101         (regex_compile): Don't translate the pattern chars so eagerly.
129102         Only do it when inserting an `exactn' bytecode or when handling
129103         a char-range.
129104         (mutually_exclusive_p): Avoid empty statement.
129106 2002-07-06  Jim Meyering  <meyering@lucent.com>
129108         * m4/README: Don't mention Makefile.am.in.
129109         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
129111 2002-07-01  Jim Meyering  <meyering@lucent.com>
129113         * lib/c-stack.c: Include sys/time.h.
129114         From Volker Borchert.
129116 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129118         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
129120 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129122         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
129123         New macro.  Use it uniformly instead of
129124         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
129125         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
129126         reported by Vin Shelton.
129128 2002-06-22  Paul Eggert  <eggert@twinsun.com>
129130         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
129131         Do not assume SA_SIGINFO behavior.
129132         Bug reported by Jim Meyering on NetBSD 1.5.2.
129134 2002-06-22  Jim Meyering  <meyering@lucent.com>
129136         * m4/c-stack.m4: New file, from diffutils-2.8.2.
129137         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
129139         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
129140         now that configure.ac uses AC_GNU_SOURCE.
129141         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
129142         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
129144         Update to latest tools.  Suggestions from Paul Eggert.
129145         * m4/stdbool.m4: New file, from diffutils-2.8.2.
129146         * m4/gnu-source.m4: Update from diffutils-2.8.2.
129147         * m4/fnmatch.m4: Likewise.
129148         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
129149         to AC_HEADER_STDBOOL
129151 2002-06-22  Jim Meyering  <meyering@lucent.com>
129153         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
129154         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
129156 2002-06-22  Jim Meyering  <meyering@lucent.com>
129158         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
129160         * lib/exitfail.c, exitfail.h: Likewise.
129161         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
129163         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
129164         of fnmatch.h.
129165         (EXTRA_DIST): Add fnmatch_loop.c.
129166         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
129168         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
129169         * lib/fnmatch.c: Update from diffutils-2.8.2.
129170         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
129171         * lib/fnmatch.h: Remove file.
129173 2002-06-21  Jim Meyering  <meyering@lucent.com>
129175         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
129176         * m4/mbrtowc.m4: Likewise.
129178         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
129179         * m4/mbswidth.m4: Reflect name change:
129180         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
129181         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129183         * m4/lib-link.m4: Update from gettext-0.11.2.
129184         * m4/gettext.m4: Likewise.
129186         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
129187         From Alfred M. Szmidt.
129189 2002-06-18  Paul Eggert  <eggert@twinsun.com>
129191         * lib/file-type.h: Report an error if neither S_ISREG nor
129192         S_IFREG is defined, instead of using a test specific to glibc
129193         2.2.  This should be safe, since POSIX requires S_ISREG and
129194         Unix Version 7 had S_IFREG.  We don't need to check for
129195         <sys/types.h> since we don't use any symbols that it defines.
129197 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
129199         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
129200         $@-t, so that each temporary file name is unique and valid in the first
129201         8 characters, for operation under DOS.
129203 2002-06-15  Paul Eggert  <eggert@twinsun.com>
129205         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
129207 2002-06-15  Jim Meyering  <meyering@lucent.com>
129209         Work even with DJGPP 2.03, which lacks support for symlinks.
129210         From Richard Dawe.
129211         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
129212         is defined.
129213         * lib/lchown.c (S_ISLNK): Likewise.
129215 2002-06-15  Jim Meyering  <meyering@lucent.com>
129217         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
129218         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
129219         have been included before this file.
129221 2002-06-14  Jim Meyering  <meyering@lucent.com>
129223         * lib/file-type.h: Use the version from diffutils-2.8.2.
129224         * lib/file-type.c: Likewise.
129226 2002-06-07  Jim Meyering  <meyering@lucent.com>
129228         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
129229         They're needed at least for NetBSD 1.5.2.
129230         ($statxfs_includes): Include those same headers.
129231         ($statxfs_includes): Include sys/vfs.h if available.
129232         ($statxfs_includes): Likewise for sys/statvfs.h.
129233         Check for the following members in both structs statfs and statvfs:
129234         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
129236 2002-06-01  Jim Meyering  <meyering@lucent.com>
129238         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
129239         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
129241 2002-05-28  Jim Meyering  <meyering@lucent.com>
129243         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
129244         Reported by Volker Borchert.
129246 2002-05-27  Jim Meyering  <meyering@lucent.com>
129248         Fix a problem seen only on nonconforming systems whereby ls.c's
129249         use of localtime, and then of gettimeofday would cause trouble:
129250         the localtime call used to initialize rpl_gettimeofday's save
129251         mechanism would clobber ls's current local time information so
129252         that in any long listing the first file would always be listed
129253         with date 1970-01-01.  Analysis by Volker Borchert.
129255         * lib/gettimeofday.c (localtime): Undefine.
129256         (rpl_localtime): New function.
129258 2002-05-27  Jim Meyering  <meyering@lucent.com>
129260         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
129261         localtime.
129263         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
129264         use the replacement function; it wouldn't resolve at link time.
129265         Reported by Volker Borchert.
129267 2002-05-22  Jim Meyering  <meyering@lucent.com>
129269         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
129270         file-type.h.
129271         * lib/file-type.h: New file.
129272         * lib/file-type.c (file_type): New file/function.  Extracted from
129273         diffutils.
129275 2002-04-30  Jim Meyering  <meyering@lucent.com>
129277         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
129279 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129281         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
129283 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129285         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
129286         Do not check for alloca.h (no longer used) or stdbool.h (was never
129287         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
129289 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129291         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
129293 2002-04-29  Jim Meyering  <meyering@lucent.com>
129295         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
129296         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
129297         Use AC_FUNC_STRNLEN here instead.
129299         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
129300         With autoconf-2.53a, it's part of AC_PROG_CC.
129302 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129304         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
129305         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
129307 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129309         * lib/sig2str.h, lib/sig2str.c: New files.
129310         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
129312 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129314         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
129315         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
129316         of 127, since 64 is the largest conceivable number for ancient
129317         nonstandard hosts.
129318         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
129320 2002-04-28  Jim Meyering  <meyering@lucent.com>
129322         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
129324 2002-04-24  Jim Meyering  <meyering@lucent.com>
129326         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
129327         (jm_PREREQ): Use it.
129329         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
129330         mach/mach.h fcntl.h.
129331         Check for this function: setlocale.
129333 2002-04-24  Jim Meyering  <meyering@lucent.com>
129335         * lib/gettext.h: New file, from Gettext.
129336         * lib/Makefile.am (INCLUDES): Remove -I../intl.
129337         (libfetish_a_SOURCES): Add gettext.h.
129339 2002-04-16  Jim Meyering  <meyering@lucent.com>
129341         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
129342         ut_pid, ut_id, ut_exit.
129344 2002-04-16  Jim Meyering  <meyering@lucent.com>
129346         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
129347         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
129348         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
129350 2002-04-12  Jim Meyering  <meyering@lucent.com>
129352         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
129353         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
129354         existence of the getmntinfo function.  Needed for Darwin 5.3.
129356         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
129357         This is necessary at least on Darwin 5.3.
129359         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
129360         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
129361         strnlen.o in the library, and that makes some versions of ranlib
129362         object.
129364 2002-04-12  Jim Meyering  <meyering@lucent.com>
129366         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
129368 2002-04-09  Jim Meyering  <meyering@lucent.com>
129370         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
129371         to be more precise.  Rather than saying we're checking whether the
129372         function `works', say what we're testing.
129373         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
129374         Reported by Bruno Haible.
129376 2002-03-10  Jim Meyering  <meyering@lucent.com>
129378         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
129379         Suggestion from Santiago Vila.
129381 2002-03-08  Jim Meyering  <meyering@lucent.com>
129383         * lib/rename.c: Mention that this wrapper is needed also on
129384         mips-dec-ultrix4.4 systems.
129386 2002-03-02  Jim Meyering  <meyering@lucent.com>
129388         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
129389         not HAVE_CLOCK_SETTIME.
129391 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129393         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
129394         Check for clock_settime.
129396 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129398         * lib/nanosleep.h: Rename to....
129399         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
129401         * lib/gettime.c: New file.
129402         * lib/settime.c: New file.
129403         * lib/stime.c: Remove.
129405         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
129406         timespec.h.  Remove nanosleep.h.
129408 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129410         * m4/acl.m4: New file.
129411         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
129412         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
129414 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129416         * lib/acl.c, lib/acl.h: New files.
129417         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
129419 2002-02-24  Jim Meyering  <meyering@lucent.com>
129421         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
129422         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
129423         cause trouble.  Reported by Nelson Beebe.
129425 2002-02-23  Paul Eggert  <eggert@twinsun.com>
129427         * lib/path-concat.c (xpath_concat): Reorder code to pacify
129428         compilers that don't know that xalloc_die never returns.
129430 2002-02-20  Jim Meyering  <meyering@lucent.com>
129432         * lib/getdate.c: Regenerate using bison-1.33.
129434 2002-02-17  Jim Meyering  <meyering@lucent.com>
129436         * config/config.guess (main): Don't use `head -1'; it's no longer
129437         portable. Use `sed 1q' instead.
129439 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
129441         * m4/codeset.m4: Upgrade to gettext-0.11.
129442         * m4/gettext.m4: Upgrade to gettext-0.11.
129443         * m4/glibc21.m4: Upgrade to gettext-0.11.
129444         * m4/iconv.m4: Upgrade to gettext-0.11.
129445         * m4/isc-posix.m4: Upgrade to gettext-0.11.
129446         * m4/lcmessage.m4: Upgrade to gettext-0.11.
129447         * m4/lib-ld.m4: New file, from gettext-0.11.
129448         * m4/lib-link.m4: New file, from gettext-0.11.
129449         * m4/lib-prefix.m4: New file, from gettext-0.11.
129450         * m4/progtest.m4: Upgrade to gettext-0.11.
129452 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129454         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
129455         (jm_PREREQ): Use it.
129457 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129459         * lib/posixver.c, lib/posixver.h: New files.
129460         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129462 2002-02-02  Paul Eggert  <eggert@twinsun.com>
129463             Bruno Haible  <bruno@clisp.org>
129465         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
129466         (fwrite_success_callback): New declaration.
129467         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
129468         print_unicode_char. Call failure callback instead of error.
129469         (fwrite_success_callback): New function.
129470         (exit_failure_callback): New function.
129471         (fallback_failure_callback): New function.
129472         (print_unicode_char): Call unicode_to_mb.
129474 2002-01-26  Jim Meyering  <meyering@lucent.com>
129476         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
129477         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
129479 2002-01-26  Jim Meyering  <meyering@lucent.com>
129481         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
129483 2002-01-22  Paul Eggert  <eggert@twinsun.com>
129485         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
129487 2002-01-22  Jim Meyering  <meyering@lucent.com>
129489         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
129490         Otherwise, some versions of automake would omit the rule that makes
129491         Makefile from Makefile.in.
129493 2002-01-21  Paul Eggert  <eggert@twinsun.com>
129495         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
129496         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129497         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
129498         (memcoll): Set errno to zero if there is no error.
129500         * lib/quotearg.c (quotearg_buffer_restyled):
129501         Fix bug with quoting buffers containing NUL when backslashing escapes.
129502         This bug was exposed by the other changes in this patch.
129503         (quotearg_n_options): New arg ARGSIZE.
129504         All callers changed.
129505         (quoting_options_from_style): New function.
129506         (quotearg_n_style): Use it.
129507         (quotearg_n_style_mem): New function.
129509         * lib/quotearg.h (quotearg_n_style_mem): New function.
129511 2002-01-19  Jim Meyering  <meyering@lucent.com>
129513         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
129514         Remove useless quotes: DF_PROG="df".
129515         * m4/strnlen.m4: New file.
129517 2002-01-16  Paul Eggert  <eggert@twinsun.com>
129519         * lib/backupfile.c (ISDIGIT): Comment fix.
129520         * lib/getdate.y (ISDIGIT): Likewise.
129521         * lib/posixtm.c (ISDIGIT, year): Likewise.
129522         * lib/strverscmp.c (ISDIGIT): Likewise.
129523         * lib/userspec.c (ISDIGIT): Likewise.
129525 2002-01-16  Jim Meyering  <meyering@lucent.com>
129527         * lib/getdate.y: Add three semicolons, each just before a closing
129528         brace. Bison (as of version 1.31) no longer papers over that mistake.
129530 2002-01-05  Jim Meyering  <meyering@lucent.com>
129532         * lib/version-etc.c (version_etc_copyright): Update copyright year.
129534 2001-12-19  Paul Eggert  <eggert@twinsun.com>
129536         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
129537         not silently exit merely because the output buffer happens to
129538         have nothing pending.
129540 2001-12-18  Paul Eggert  <eggert@twinsun.com>
129542         See the big note in ../ChangeLog.
129543         * lib/human.c (suffixes): Prefer K to k for 1024.
129544         (generate_suffix_backwards): New function.
129545         (human_readable_inexact): Use it.
129546         * lib/xstrtol.c (__xstrtol): If there is no number but there
129547         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
129548         Accept 'K' as well as 'k'.
129550 2001-12-15  Jim Meyering  <meyering@lucent.com>
129552         * lib/regex.h (__restrict_arr): Update from libc.
129554         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
129555         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
129556         (STREQ): Define.
129558 2001-12-14  Jim Meyering  <meyering@lucent.com>
129560         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
129561         Suggestion from Bruno Haible.
129563 2001-12-10  Jim Meyering  <meyering@lucent.com>
129565         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
129566         xrealloc, Instead, include "xalloc.h".
129567         (initbuffer): Don't cast xmalloc return value to char*.
129568         (readline): Reword comment.
129569         Don't cast xrealloc return value to char*
129570         Return NULL, not 0.
129572 2001-12-09  Jim Meyering  <meyering@lucent.com>
129574         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
129575         about `signed and unsigned type in conditional expression'.
129576         * lib/posixtm.c (posix_time_parse): Likewise.
129578         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
129580         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
129581         to avoid a pedantic warning.
129583         * lib/getstr.c: Don't include assert.h.
129584         (getstr): Remove warning-evoking assertions.
129585         Return -1 if offset parameter is out of bounds.
129586         Change the type of a local from int to size_t.
129588         * lib/strftime.c (my_strftime_localtime_r): Include this function
129589         definition in the `#if ! HAVE_TM_GMTOFF' block.
129591         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
129592         Include xalloc.h instead.
129594 2001-12-02  Jim Meyering  <meyering@lucent.com>
129596         * lib/tempname.c: Don't declare getenv, thus reverting the change of
129597         2001-11-18.  It's no longer necessary, now that stdlib.h is always
129598         included.
129600         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
129601         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
129603 2001-11-30  Akim Demaille  <akim@epita.fr>
129605         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
129606         before being defined.
129608 2001-11-27  Paul Eggert  <eggert@twinsun.com>
129610         * lib/quotearg.h (quotearg_n, quotearg_n_style):
129611         First arg is int, not unsigned.
129612         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
129613         (SIZE_MAX, UINT_MAX): New macros.
129614         (quotearg_n_options): Abort if N is negative.
129615         Avoid overflow check on hosts where size_t is 64 bits and int
129616         is 32 bits, as overflow is impossible there.
129617         Fix off-by-one typo that caused unnecessary reallocation.
129619 2001-11-27  Jim Meyering  <meyering@lucent.com>
129621         * lib/tempname.c: Merge with version from libc.
129622         * lib/regex.c: Likewise.
129624         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
129625         systems for which STDC_HEADERS is 0, it was not included, resulting in
129626         a warning about an integer-to-pointer conversion problem with getenv.
129627         Reported by Volker Borchert.
129629 2001-11-26  Jim Meyering  <meyering@lucent.com>
129631         * lib/gtod.h: Remove file.
129632         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
129633         * lib/gettimeofday.c: Don't include gtod.h.
129634         (GTOD_init): Remove function.
129635         (rpl_gettimeofday): Do its job here instead, rather than aborting.
129636         Suggestion from Volker Borchert.
129638 2001-11-23  Jim Meyering  <meyering@lucent.com>
129640         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
129641         it.
129642         * lib/hash.c (struct hash_table): Define it here instead.
129644 2001-11-22  Jim Meyering  <meyering@lucent.com>
129646         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
129648 2001-11-20  Jim Meyering  <meyering@lucent.com>
129650         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
129651         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
129653 2001-11-19  Jim Meyering  <meyering@lucent.com>
129655         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
129656         directory.  Use "conftestXXXXXX" as the template.
129657         Suggestion from Paul Eggert.
129659         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
129660         immediately, so the test doesn't mistakenly hit the max-open-files
129661         limit.
129663 2001-11-18  Paul Eggert  <eggert@twinsun.com>
129665         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
129666         (TEMPORARIES): New macro.
129667         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
129668         removes an artificial limitation (e.g. HP-UX 10.20, where
129669         TMP_MAX is 17576).
129671 2001-11-18  Jim Meyering  <meyering@lucent.com>
129673         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
129675 2001-11-18  Jim Meyering  <meyering@lucent.com>
129677         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
129678         on SunOS 4.
129680         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
129681         files will be created before anything else.
129683 2001-11-17  Paul Eggert  <eggert@twinsun.com>
129685         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
129686         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
129688 2001-11-17  Jim Meyering  <meyering@lucent.com>
129690         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
129691         Prompted by a report from Bob Proulx.
129693         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
129694         Instead, require UTILS_FUNC_MKSTEMP.
129696 2001-11-17  Jim Meyering  <meyering@lucent.com>
129698         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
129699         Now, that's done as part of AC_FUNC_STRTOD.
129701 2001-11-17  Jim Meyering  <meyering@lucent.com>
129703         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
129704         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
129705         rather than group writable.  Patch by Juan F. Codagnone.
129707         * lib/readtokens.c: Remove explicit declarations of xmalloc and
129708         xrealloc, Instead, include "xalloc.h".
129710         * lib/mountlist.c: Include unlocked-io.h after all system headers.
129711         Remove explicit declarations of xmalloc, xrealloc,
129712         and xstrdup.  Instead, include "xalloc.h".
129714         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
129715         unlocked-io.h.
129716         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
129717         Likewise.
129718         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
129720         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
129721         Reported by Padraig Brady.
129723         * lib/mkstemp.c: #undef mkstemp.
129724         Include config.h.
129725         (rpl_mkstemp): Rename from mkstemp.
129726         Protoize.
129728 2001-11-16  Jim Meyering  <meyering@lucent.com>
129730         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
129731         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
129732         determine the amount of total physical memory, use pstat_getstatic.
129733         HPUX-11 doesn't define _SC_PHYS_PAGES.
129734         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
129735         If sysconf couldn't be used to determine the amount of available
129736         physical memory, use both pstat_getstatic and pstat_getdynamic.
129737         Based on a patch from Bob Proulx.
129739 2001-11-10  Jim Meyering  <meyering@lucent.com>
129741         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
129742         (jm_PREREQ): Use it.
129744 2001-11-09  Jim Meyering  <meyering@lucent.com>
129746         * m4/jm-macros.m4: Require autoconf-2.52f.
129747         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
129748         Use these AC_-prefixed names, not the AM_-prefixed ones.
129750         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
129752 2001-11-05  Jim Meyering  <meyering@lucent.com>
129754         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
129756 2001-11-04  Jim Meyering  <meyering@lucent.com>
129758         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
129759         $DEFS.
129761 2001-11-03  Jim Meyering  <meyering@lucent.com>
129763         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
129764         of AC_DEFUN.
129766         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
129767         know the name of the variable in the macro definition.
129769 2001-11-03  Jim Meyering  <meyering@lucent.com>
129771         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
129772         in argmatch_to_argument call.
129774         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
129775         argument.
129777         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
129778         e.g., a fault due to an attempt to free a NULL pointer.
129780 2001-11-01  Jim Meyering  <meyering@lucent.com>
129782         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
129783         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
129785 2001-11-01  Jim Meyering  <meyering@lucent.com>
129787         * lib/dirfd.c, lib/dirfd.h: New files.
129788         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
129790         * lib/hash.c (hash_print) [TESTING]: Clean up.
129792 2001-10-22  Paul Eggert  <eggert@twinsun.com>
129794         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
129795         to avoid a warning if -Wall.
129797 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
129799         * README: New file
129800         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
129801         (per RMS's instructions, this is now the canonical source)
129802         * lgpl/, gpl/: New directories.
129804 2001-10-21  Paul Eggert  <eggert@twinsun.com>
129806         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
129808 2001-10-21  Jim Meyering  <meyering@lucent.com>
129810         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
129811         this code would end up calling gettext even in packages built
129812         with --disable-nls.
129813         * lib/getopt.c (_): Likewise.
129814         * lib/regex.c (_): Likewise.
129816 2001-10-20  Paul Eggert  <eggert@twinsun.com>
129818         * m4/error.m4 (jm_PREREQ_ERROR):
129819         Do not invoke AC_CHECK_FUNCS with strerror_r, as
129820         AC_FUNC_STRERROR_R does that.
129821         Check for strerror declaration.
129823         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
129824         are supposed to have them these days.
129825         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
129826         Merge changes from latest Autoconf CVS.
129827         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
129828         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
129829         POSIX decided to standardize on the int flavor of strerror_r.
129831 2001-10-20  Paul Eggert  <eggert@twinsun.com>
129833         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
129834         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
129835         Use strerror_r that is only a macro, even if it is not a function.
129836         (strerror): Check for HAVE_DECL_STRERROR before declaring.
129837         (private_strerror): Use prototypes, not old-style function definition.
129838         (print_errno_message): New function.
129839         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
129840         char*-flavored one.
129841         (error_tail, error, error_at_line): Use it.
129843 2001-10-11  Jim Meyering  <meyering@lucent.com>
129845         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
129846         and quote_n (1, ... to avoid clobbering a buffer.
129848 2001-10-05  Jim Meyering  <meyering@lucent.com>
129850         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
129851         hash-pjw.h.
129852         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
129853         * lib/hash-pjw.h: New file.
129855 2001-09-30  Jim Meyering  <meyering@lucent.com>
129857         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
129858         `struct fsstat' has the `f_fstypename' member.
129859         Use that to define FS_TYPE, which is now used to make
129860         the getfsstat link test tighter.
129862 2001-09-30  Jim Meyering  <meyering@lucent.com>
129864         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
129865         Include <sys/ucred.h>, for Apple Darwin.
129866         Include sys/mount.h and sys/fs_types.h only if available.
129867         (FS_TYPE): Define.
129868         (read_filesystem_list): Use FS_TYPE.
129870 2001-09-29  Paul Eggert  <eggert@twinsun.com>
129872         * lib/exclude.c (excluded_filename): 0 -> false, since it's
129873         a boolean context.
129875 2001-09-29  Jim Meyering  <meyering@lucent.com>
129877         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
129878         [one-argument getmntent function]): Include stdio.h before mntent.h.
129879         SunOS 4.1.x needs it for the declaration of `FILE'.
129880         Patch by Volker Borchert.
129882         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
129883         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
129884         sys/fs_types.h, and make the link-test for getfsstat guard #include
129885         directives with appropriate #if HAVE_*_H tests so that we can
129886         detect getfsstat on Apple Darwin1.3.7 systems.
129887         Reported by Nelson Beebe.
129888         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
129890 2001-09-28  Paul Eggert  <eggert@twinsun.com>
129892         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
129893         #defines strtoimax.  Also treat the other strto* functions
129894         like strtoimax.
129896         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
129897         Check for strtoul and strtoumax,
129898         as those declarations are made even in the signed case.
129899         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
129900         Likewise, for strtol and strtoimax.
129902 2001-09-28  Paul Eggert  <eggert@twinsun.com>
129904         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
129905         #defines strtoimax.  Also treat the other strto* functions
129906         like strtoimax.
129908         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
129909         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
129910         (strtoimax, strtoumax): Do not declare if already defined as a macro.
129912 2001-09-26  Jim Meyering  <meyering@lucent.com>
129914         Most macros in unlocked-io.h had the wrong number of arguments.
129915         * lib/gen-uio: New script.
129916         (USE_UNLOCKED_IO): Define to 1 if not already defined.
129917         * lib/unlocked-io.hin: Remove file.
129918         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
129919         rather than trying to embed it here.
129920         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
129921         Reported by Padraig Brady.
129923 2001-09-25  Volker Borchert  <bt@teknon.de>
129925         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
129926         `result'.
129928 2001-09-24  Jim Meyering  <meyering@lucent.com>
129930         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
129932 2001-09-23  Jim Meyering  <meyering@lucent.com>
129934         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
129935         instead of the mere test for existence of mntent.h.  The latter
129936         would get a false-positive on AIX 3.4 systems.
129937         In the outer getmntent if-block, don't die if neither of the getmntent
129938         tests succeeds.  Instead, just fall through and continue with the
129939         remaining tests.
129941 2001-09-23  Jim Meyering  <meyering@lucent.com>
129943         * lib/mountlist.c: Remove useless parentheses in #if directives.
129944         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
129945         the deprecated MOUNTED symbol is no longer defined in mntent.h.
129947 2001-09-22  Jim Meyering  <meyering@lucent.com>
129949         * m4/gettext.m4: New file.  From gettext.
129950         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
129951         * m4/progtest.m4: Likewise
129952         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
129953         * m4/glibc21.m4: Likewise.
129955         * m4/libintl.m4: Remove.  No longer used.
129957 2001-09-22  Jim Meyering  <meyering@lucent.com>
129959         * lib/localcharset.c: Update from latest gettext.
129960         * lib/config.charset: Likewise.
129962 2001-09-20  Jim Meyering  <meyering@lucent.com>
129964         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
129965         strtoimax.
129966         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
129967         strtoumax.
129969 2001-09-20  Jim Meyering  <meyering@lucent.com>
129971         * lib/xstrtol.c (strtoimax): Guard declaration with
129972         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
129973         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
129974         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
129975         (strtoumax): Likewise, for completeness (it wasn't necessary).
129977 2001-09-17  Paul Eggert  <eggert@twinsun.com>
129979         * lib/strtoimax.c (HAVE_LONG_LONG):
129980         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
129981         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
129982         to work around bug in IBM C compiler.
129984 2001-09-17  Jim Meyering  <meyering@lucent.com>
129986         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
129987         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
129988         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
129989         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
129990         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
129991         whenever the right hand side need not be expanded by the shell.
129993 2001-09-16  Paul Eggert  <eggert@twinsun.com>
129995         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
129996         library.  It's not correct, as some older glibcs are buggy.
129997         fnmatch wasn't fixed until glibc 2.2.
129999         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
130000         special shell magic here.
130002 2001-09-16  Jim Meyering  <meyering@lucent.com>
130004         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
130005         * m4/jm-macros.m4: Require it.
130007 2001-09-16  Jim Meyering  <meyering@lucent.com>
130009         * lib/mkdir.c: New file.
130011 2001-09-15  Jim Meyering  <meyering@lucent.com>
130013         * m4/jm-macros.m4: Check for help2man.
130015 2001-09-11  Jim Meyering  <meyering@lucent.com>
130017         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
130018         The body, by Paul Eggert, was moved here from configure.in.
130019         * m4/jm-macros.m4: Require UTILS_HOST_OS.
130021 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130023         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
130024         (jm_PREREQ): Use it.
130026 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130028         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
130029         Use ssize_t, not int, to store result of readlink.
130030         Check for ssize_t overflow as well as size_t overflow,
130031         as POSIX says the result of readlink is implementation-defined
130032         when ssize_t overflows.
130033         Remove unnecessary cast to char*.
130034         Use free+malloc instead of realloc, as the storage doesn't need
130035         to be preserved and it's clearer and can be more efficient that way.
130036         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
130037         * lib/xreadlink.h (xreadlink): Update prototype.
130039 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130041         * lib/xgetcwd.c: Revert some of the previous change; intead,
130042         fix the HAVE_GETCWD_NULL code to behave more like the
130043         !HAVE_GETCWD_NULL code used to.
130045         Include "xalloc.h".
130046         (xgetcwd): Do not return NULL when memory is exhausted; instead,
130047         invoke xalloc_die.
130049 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130051         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
130052         sys/param.h, as pathmax.h includes them.
130054 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130056         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
130057         (jm_PREREQ_XGETCWD): New macro.
130059         * m4/getcwd.m4: New file.
130061 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130063         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
130064         like the HAVE_GETCWD_NULL code.
130065         Include pathmax.h if not HAVE_GETCWD.
130066         Do not include xalloc.h.
130067         (INITIAL_BUFFER_SIZE): New symbol.
130068         Do not use xmalloc / xrealloc, since the caller is responsible for
130069         handling errors.  Preserve errno around `free' during failure.
130070         Do not overrun buffer when using getwd.
130072 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130074         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
130075         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
130076         getcwd (NULL, 0).
130078 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130080         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
130081         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
130082         spotted by Jim Meyering.
130084 2001-09-03  Jim Meyering  <meyering@lucent.com>
130086         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
130087         failure.
130089 2001-09-02  Jim Meyering  <meyering@lucent.com>
130091         * lib/error.c: Update from GNU libc.
130093 2001-09-01  Jim Meyering  <meyering@lucent.com>
130095         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
130096         Used by df.
130098 2001-09-01  Jim Meyering  <meyering@lucent.com>
130100         * lib/xreadlink.c: New file.
130101         * lib/xreadlink.h: New file.
130102         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
130103         xreadlink.h.
130105         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
130106         doesn't conflict with sparc Solaris 7's definition in
130107         /usr/include/sys/int_types.h.
130109         * lib/exclude.c: Use `""', not `<>' to #include non-system header
130110         files.
130111         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
130112         and strncasecmp as r-values.  Unixware didn't have declarations.
130114 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130116         * lib/xstrtol.h: Add copyright notice.
130117         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
130118         LONGINT_INVALID_SUFFIX_CHAR.
130120 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130122         * lib/xstrtol.c (strtoimax): New decl.
130124 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130126         * lib/xgetcwd.c: Don't include pathmax.h.
130127         Include stdlib.h and unistd.h if available.
130128         Include xalloc.h.
130129         (xmalloc, xstrdup, free): Remove decls.
130130         (xgetcwd): Don't assume sizes fit in unsigned.
130131         Check for overflow when computing sizes.
130132         Simplify reallocation code.
130134 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130136         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
130137         a directory's st_size can have an arbitrary value, so the old
130138         usage could waste an arbitrary amount of memory.  All uses
130139         changed.
130140         * lib/savedir.h: Update prototype.
130142 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130144         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
130146         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
130147         old strtoimax.c.
130149         Also, make the following further changes to make this file's
130150         configuration more similar to that of strtol.c:
130151         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
130152         (strtoumax, uintmax_t, strtoull, strtol): Remove.
130153         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
130154         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
130155         changed to signed values.
130157         And make the following changes as well:
130158         Fix copyright notice, as 1999 was missing.
130159         (verify): New macro.
130160         (strtoimax): Check sizes at compile-time, not run-time.
130161         Prefer strtol to strtoll if both work.
130162         (main): Remove; it was not that useful and was a pain to maintain.
130164         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
130166 2001-08-31  Jim Meyering  <meyering@lucent.com>
130168         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
130169         Use an initial, malloc'd, buffer of length 128 rather than
130170         a statically allocated one of length 1024.
130172 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130174         Simplify code, partly by assuming autoconf 2.52 semantics.
130176         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
130178         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
130179         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
130180         All uses removed.
130181         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
130182         Move AC_REQUIRE to next-to-top level, to avoid confusion.
130183         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
130184         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
130185         jm_AC_HEADER_INTTYPES_H.
130186         * m4/jm-macros.m4 (jm_MACROS): Likewise.
130188         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
130190         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130191         Quote first arg of AC_DEFUN.
130192         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
130193         since they are needed to parse the include file even if we need
130194         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
130195         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
130196         but with opposite signedness.
130198 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130200         Merge 'exclude' changes from tar 1.13.22.
130201         This fixes one or two unlikely storage allocation overflow bugs,
130202         but doesn't change user-visible behavior otherwise.
130204 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130206         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
130207         (jm_PREREQ_EXCLUDE): New macro.
130209 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130211         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
130212         tm to be declared.
130214 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130216         * lib/hash.c: Remove '2001' from copyright notice.
130218 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130220         * lib/full-write.h: New file.
130221         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
130222         * lib/full-write.c: Correct credits, as cccp.c no longer
130223         exists and anyway it was so heavily changed from the old cccp
130224         code as to be unrecognizable.  Include full-write.h.
130225         (full_write): Return size_t, with short writes meaning failure.
130226         All callers changed.  This fixes a bug with large buffers
130227         on 64-bit hosts.
130228         * lib/utime.c: Include full-write.h.
130230 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130232         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
130233         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
130234         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
130235         Include if available.
130236         (<xalloc.h>): Include
130237         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
130238         (verify): New macro.  Use it to verify that EXCLUDE macros do not
130239         collide with FNM macros.
130240         (struct patopts): New struct.
130241         (struct exclude): Use it, as exclude patterns now come with options.
130242         (new_exclude): Support above changes.
130243         (new_exclude, add_exclude_file):
130244         Initial size must now be a power of two to simplify overflow checking.
130245         (free_exclude, fnmatch_no_wildcards): New function.
130246         (excluded_filename): No longer requires options arg, as the options
130247         are determined by add_exclude.  Now returns bool, not int.
130248         (excluded_filename, add_exclude):
130249         Add support for the fancy new exclusion options.
130250         (add_exclude, add_exclude_file): Now takes int options arg.
130251         Check for arithmetic overflow when computing sizes.
130252         (add_exclude_file): xrealloc might modify errno, so don't
130253         realloc until after errno might be used.
130255         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
130256         New macros.
130257         (free_exclude): New decl.
130258         (add_exclude, add_exclude_file): Now takes int options arg.
130259         (excluded_filename): No longer requires options arg, as the options
130260         are determined by add_exclude.  Now returns bool, not int.
130262 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130264         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
130266 2001-08-27  Jim Meyering  <meyering@lucent.com>
130268         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
130270         * lib/version-etc.c (N_): Remove definition.
130271         Revert most of last change.
130272         Instead, simply don't mark the `Copyright...' string for translation.
130273         Based on advice from Paul Eggert.
130275         * lib/strtoxmax.c: Tweak comment.
130277 2001-08-26  Jim Meyering  <meyering@lucent.com>
130279         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
130281         * m4/xstrtoimax.m4: New file.
130282         * m4/xstrtoumax.m4: Add comments explaining why we
130283         AC_REPLACE_FUNCS(strtol).
130285 2001-08-26  Jim Meyering  <meyering@lucent.com>
130287         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
130288         of copyright with `%s' so translators don't get an untranslated
130289         message in 2002.
130290         (COPYRIGHT_YEAR): Define.
130291         (version_etc): Use fprintf rather than fputs.
130292         Suggestion from Ulrich Drepper.
130294         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
130296         * lib/strtoll.c: New file, from GNU libc.
130297         * lib/xstrtoimax.c: New file.
130299         * lib/xstrtol.h: Add xstrtoimax.
130300         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
130301         * lib/strtoimax.c: New file.  Likewise, but first define
130302         STRTOUXMAX_SIGNED.
130304         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
130305         ...
130306         * lib/strtoxmax.c: ... then renamed to this.
130308 2001-08-18  Paul Eggert  <eggert@twinsun.com>
130310         * m4/inttypes.m4: Add AC_PREREQ(2.13).
130311         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
130312         (jm_AC_TYPE_INTMAX_T): New macro.
130313         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
130315         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
130317         * m4/longlong.m4: Renamed from ulonglong.m4.
130318         * m4/inttypes.m4: Renamed from inttypes_h.m4.
130319         * m4/uintmax_t.m4: Removed.
130321 2001-08-13  Paul Eggert  <eggert@twinsun.com>
130323         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
130324         Port to Solaris 8, where 'sed' requires a space after the 'r'
130325         command, and where sh dislikes "$/".  Clean up the spacing a bit.
130326         Redirect output to $tmp just once.
130328 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
130330         * lib/addext.c (<errno.h>): Include.
130331         (errno): Declare if not defined.
130332         (addext): Work correctly when pathconf returns -1 and leaves
130333         errno alone because there is no limit.  Also, work even if
130334         pathconf returns a value greater than SIZE_MAX.
130336 2001-08-12  Jim Meyering  <meyering@lucent.com>
130338         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
130339         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
130340         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
130341         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
130342         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
130343         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
130344         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
130345         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
130346         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
130347         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
130348         utime.m4, utimes.m4, xstrtoumax.m4:
130349         Quote the first argument in each use of AC_DEFUN.
130351 2001-08-12  Jim Meyering  <meyering@lucent.com>
130353         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
130354         Simply `return getcwd (NULL, 0);'.
130355         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
130356         Use 1300 as initial value for length, not PATH_MAX.
130358         * lib/pathmax.h: Clean up cpp syntax.
130360 2001-08-12  Jim Meyering  <meyering@lucent.com>
130362         * lib/gettimeofday.c: New file.
130363         * lib/gtod.h: New file.
130364         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
130366 2001-08-05  Jim Meyering  <meyering@lucent.com>
130368         * m4/jm-macros.m4: Require autoconf-2.52.
130370 2001-08-04  Jim Meyering  <meyering@lucent.com>
130372         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
130373         stmt, to get in sync with glibc.
130375 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130377         The following changes are from gettext 0.10.39 as maintained by
130378         Bruno Haible.
130380         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
130381         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
130382         with inverted sense.  All uses changed.
130384         * lib/mbswidth.c: Don't include <limits.h>.
130385         Include <stdlib.h> and <string.h> unconditionally.
130386         (iswcntrl, mbsinit, ISCNTRL): New macros.
130387         (mbsnwidth): Use K&R style function declarations.
130388         Don't bother checking for MB_LEN_MAX == 1, since the compiler
130389         can optimize it when MB_CUR_MAX == 1.
130390         The width of control characters is zero, not 1.
130392 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130394         The following changes are from gettext 0.10.39 as maintained by
130395         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
130397         * m4/codeset.m4: Upgrade to serial AM1.
130398         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
130399         all uses changed.  Quote first arg of AC_DEFUN.
130400         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
130402         * m4/iconv.m4: Upgrade to serial AM2.
130403         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
130404         Add --with-libconv-prefix.
130405         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
130406         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
130407         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
130408         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
130409         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
130411         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
130412         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
130413         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
130414         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
130415         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
130416         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
130417         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
130418         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
130419         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
130421         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
130422         string.h any more.
130424         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
130425         not the default value.
130427         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
130428         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
130429         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
130430         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
130431         Also check for iswcntrl, used for wcwidth fallback.
130432         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
130433         to Autoconf 2.13.
130435 2001-08-03  Jim Meyering  <meyering@lucent.com>
130437         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
130438         as it was in the original.  Reported by Paul Eggert.
130440 2001-07-16  Jim Meyering  <meyering@lucent.com>
130442         * m4/gettimeofday.m4: New file.
130443         Prompted by a report from Bernhard Baehr.
130445 2001-07-15  Jim Meyering  <meyering@lucent.com>
130447         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
130448         stuff. Now it's in ../Makefile.cfg.
130450 2001-07-15  Jim Meyering  <meyering@lucent.com>
130452         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
130453         (BUILT_SOURCES): Add unlocked-io.h.
130454         (io_functions): Define.
130455         (unlocked-io.h): New rule.
130456         (DISTCLEANFILES): Add unlocked-io.h.
130457         (all-local): Depend on unlocked-io.h, to ensure it is created.
130459         * lib/unlocked-io.hin: New file
130461         * lib/regex.c: Update from glibc.
130463 2001-07-05  Jim Meyering  <meyering@lucent.com>
130465         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
130466         recommendation.
130467         (libfetish_a_SOURCES): Put all .h files here instead.
130468         Remove a thus-exposed (better checks in automake) duplicate and
130469         two unnecessary .h files.
130471 2001-07-04  Jim Meyering  <meyering@lucent.com>
130473         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
130474         that generates jm-glibc-io.m4 so that it doesn't trigger any make
130475         distcheck failure.
130477 2001-07-02  Jim Meyering  <meyering@lucent.com>
130479         The following changes were prompted by suggestions from Bruno Haible.
130481         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
130482         is now generated.
130483         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
130484         definition of EXTRA_DIST.
130485         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
130486         ensure that the generated file is created/updated whenever the list
130487         of $(unlocked_functions) is changed.
130488         (jm-glibc-io.m4): New rule.
130489         (unlocked-io.h): New rule -- currently unused.
130491 2001-06-24  Jim Meyering  <meyering@lucent.com>
130493         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
130494         unmatched right bracket, rather than kludging it with an extra,
130495         falsely-matching quote in a comment.  Patch by Akim Demaille.
130497 2001-06-11  Jim Meyering  <meyering@lucent.com>
130499         * lib/regex.c: Update from GNU libc.
130501 2001-05-27  Jim Meyering  <meyering@lucent.com>
130503         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
130504         Check for ut_type in struct utmp.
130506 2001-05-27  Jim Meyering  <meyering@lucent.com>
130508         * lib/readutmp.h (UT_TYPE): Define.
130510 2001-05-24  Jim Meyering  <meyering@lucent.com>
130512         * lib/argmatch.c: Include "quote.h".
130513         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
130514         quote function.  Reported by Göran Uddeborg.
130516 2001-05-22  Jim Meyering  <meyering@lucent.com>
130518         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
130519         now that we use the package-supplied version unconditionally.
130520         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
130522 2001-05-21  Jim Meyering  <meyering@lucent.com>
130524         * m4/regex.m4: Change a couple backticks to single quotes to avoid
130525         shell syntax errors.
130527 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
130529         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
130531 2001-05-20  Paul Eggert  <eggert@twinsun.com>
130533         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
130534         Don't bother to check library strftime, since
130535         we'll be using our own my_strftime function anyway.
130536         Define my_strftime instead of strftime.
130538 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
130540         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
130541         which is not yet declared.
130543 2001-05-15  Jim Meyering  <meyering@lucent.com>
130545         * m4/regex.m4: Use proper quoting so brackets appear in the test
130546         program.
130547         Reported by, and with help from, Bruno Haible.
130549 2001-05-13  Jim Meyering  <meyering@lucent.com>
130551         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
130552         undefined.
130554 2001-05-11  Paul Eggert  <eggert@twinsun.com>
130556         dirname code cleanup.  base_name now behaves more compatibly
130557         with POSIX basename when given file names that have trailing
130558         slashes, and similarly for dir_name.  Add new primitives
130559         base_len and dir_len.  Put the directory-name-related decls
130560         into dirname.h.
130562         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
130563         * lib/backupfile.c (base_name): Likewise.
130564         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
130565         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
130566         * lib/makepath.c (strip_trailing_slashes): Likewise.
130567         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
130568         ISSLASH): Likewise.
130569         * lib/rename.c (strip_trailing_slashes): Likewise.
130570         * lib/same.c (base_name): Likewise.
130571         * lib/stripslash.c (ISSLASH): Likewise.
130573         * lib/addext.c: Include <dirname.h> after size_t is defined.
130574         * lib/backupfile.c: Likewise.
130576         * lib/addext.c (addext): Use base_len to trim redundant
130577         trailing slashes instead of doing it ourselves.
130578         But do not trim the last slash if it is not redundant.
130580         * lib/backupfile.c (find_backup_file_name,
130581         max_backup_version): Use base_len instead of rolling it ourselves.
130582         Handle the case of "" and (on DOS) "C:" correctly.
130584         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
130585         needed. Include <string.h>, <dirname.h>.
130586         (base_name): Allow file names ending in slashes, other than names
130587         that are all slashes.  In this case, return the basename followed
130588         by the slashes.  This is more general, and can be used in places
130589         where the original base_name purposely had an assertion failure.
130590         (base_len): New function.
130592         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
130593         Do not include <assert.h>; no longer needed.
130594         Include xalloc.h.
130595         (memrchr): Remove decl.
130596         (dir_name_r): Remove.
130597         (dir_len): Renamed from dirlen.  All callers changed.
130598         Rewrite in terms of base_name, for simplicity and consistency.
130599         (dir_name): Never return NULL.  All callers changed.
130600         Do not include <stdlib.h> in test program; no longer needed.
130601         return 0; is fine for test program.
130603         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
130604         New macros.
130605         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
130607         * lib/path-concat.c (path_concat): Use base_len to compute
130608         base length, not strlen; this means we cannot rely on memcpy
130609         to null-terminate.
130611         * lib/same.c (STREQ): Remove.
130612         (same_name): Handle the case where the basename ends in trailing '/'.
130614         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
130615         a slash was stripped.  Do not strip the last slash after a
130616         file system prefix.
130618 2001-05-11  Paul Eggert  <eggert@twinsun.com>
130620         * lib/Makefile.am (libfetish_a_SOURCES):
130621         Add strftime.c, since we now compile it on all hosts.
130623         * lib/strftime.c (my_strftime):
130624         Define to nstrftime if emacs, but only if my_strftime is not defined.
130625         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
130626         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
130627         Add one more extra argument: a nanoseconds value.
130628         All uses changed.
130629         (ns): New macro.
130630         (my_strftime function): Add %N format.
130631         (emacs_strftimeu): Renamed from emacs_strftime,
130632         with extra ut argument.
130634 2001-05-09  Paul Eggert  <eggert@twinsun.com>
130636         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
130638 2001-04-21  Jim Meyering  <meyering@lucent.com>
130640         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
130641         doesn't interfere.
130643 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
130645         * m4/ftruncate.m4: Check for chsize.
130646         Link with ftruncate.o unconditionally if ftruncate is missing.
130647         This was required when cross-compiling to i586-mingw32msvc.
130649 2001-04-08  Jim Meyering  <meyering@lucent.com>
130651         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
130652         recomputed; that's necessary when the offset spans a DST transition.
130653         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
130655 2001-04-02  Jim Meyering  <meyering@lucent.com>
130657         * lib/regex.h, regex.c: Update from GNU libc.
130659 2001-03-24  Jim Meyering  <meyering@lucent.com>
130661         * m4/jm-macros.m4: Require autoconf-2.49d.
130663 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
130665         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
130667 2001-03-19  Paul Eggert  <eggert@twinsun.com>
130669         * lib/version-etc.c (version_etc_copyright): Update to 2001.
130671 2001-03-17  Jim Meyering  <meyering@lucent.com>
130673         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
130674         now that the version in autoconf is equivalent.
130675         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
130677         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
130678         Suggestion from Akim Demaille.
130680         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
130681         (jm_PREREQ_TEMPNAME): New function.
130683 2001-03-16  Paul Eggert  <eggert@twinsun.com>
130685         * lib/tempname.c (uint64_t): Define to uintmax_t if
130686         not defined, and if UINT64_MAX is not defined.
130687         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
130688         Reported by John David Anglin.
130690 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
130692         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
130693         resolve alias if codeset is empty.
130694         * lib/config.charset (BeOS): Use wildcard syntax.
130696 2001-03-13  Jim Meyering  <meyering@lucent.com>
130698         * lib/path-concat.c (path_concat)
130699         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
130700         concatenating e.g., `C:' and `foo'.
130701         From Bruno Haible.
130703 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
130705         * lib/localcharset.c (locale_charset): Don't use
130706         setlocale(LC_CTYPE,NULL). Don't return NULL.
130707         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
130709 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
130711         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
130712         support for DOS/DJGPP.
130714 2001-03-01  Paul Eggert  <eggert@twinsun.com>
130716         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
130717         lacks mkstemp.  Compile our own tempname.c if we compile our own
130718         mkstemp.c, as mkstemp relies on tempname.
130720 2001-03-01  Jim Meyering  <meyering@lucent.com>
130722         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
130723         AH_VERBATIM really does output its argument verbatim.
130725 2001-02-28  Paul Eggert  <eggert@twinsun.com>
130727         * lib/Makefile.am (libfetish_a_SOURCES):
130728         Add dup-safer.c, fopen-safer.c.
130729         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
130731         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
130732         * lib/unistd-safer.h: New files.
130734 2001-02-25  Paul Eggert  <eggert@twinsun.com>
130736         The mkstemp replacement is taken from glibc 2.2.2, with some
130737         portability fixes for use outside glibc, as follows:
130739         * lib/tempname.c (struct_stat64): New macro.
130740         (direxists, __gen_tempname): Use it.
130741         This avoids a portability problem with Solaris 8.
130743         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
130744         (<stddef.h>, <stdint.h>, <string.h>):
130745         Include only if STDC_HEADERS || _LIBC.
130746         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
130747         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
130748         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
130749         (__set_errno): Define this macro if <errno.h> doesn't.
130750         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
130751         Define these macros if <stdio.h> doesn't.
130752         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
130753         Define these macros if <sys/stat.h>
130754         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
130755         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
130756         __xstat64): Define if not _LIBC.
130757         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
130758         (__gen_tempname): Invoke gettimeofday only if
130759         HAVE_GETTIMEOFDAY || _LIBC;
130760         otherwise, fall back on plain "time".
130761         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
130763         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
130765         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
130767 2001-02-18  Paul Eggert  <eggert@twinsun.com>
130769         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
130771 2001-02-17  Paul Eggert  <eggert@twinsun.com>
130773         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
130774         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
130775         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
130776         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
130778 2001-02-17  Paul Eggert  <eggert@twinsun.com>
130780         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
130781         Remove workaround macros for hosts that have mbrtowc but not
130782         mbstate_t, as we now insist on proper declarations for both
130783         before using mbrtowc.
130785 2001-02-17  Jim Meyering  <meyering@lucent.com>
130787         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
130788         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
130789         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
130790         UnixWare 7.1.1.
130792         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
130793         rather than AC_CACHE_VAL.
130795 2001-02-17  Jim Meyering  <meyering@lucent.com>
130797         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
130798         around included file name.
130800         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
130802         * lib/strftime.c: Update from GNU libc (the only changes were to
130803         comments).
130805 2001-02-17  Jim Meyering  <meyering@lucent.com>
130807         * lib/regex.c: Update from libc.
130809 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
130811         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
130812         clash.
130814 2001-02-16  Paul Eggert  <eggert@twinsun.com>
130816         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
130817         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
130818         Reported by Mark Hounschell via Paul Eggert.
130820 2001-02-07  Jim Meyering  <meyering@lucent.com>
130822         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
130824 2001-02-05  Jim Meyering  <meyering@lucent.com>
130826         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
130827         it includes the patch required for `large file' support with at least
130828         HP-UX's 10.20 /bin/cc.
130830 2001-02-03  Jim Meyering  <meyering@lucent.com>
130832         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
130833         AS_IF, now that it works once again (mysteriously).
130834         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
130836 2001-01-30  Jim Meyering  <meyering@lucent.com>
130838         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
130839         * m4/chown.m4: Rename conftestchown to conftest.chown.
130840         * m4/rename.m4: s/conftestdir/conftest.d1/ and
130841         s/conftestdir2/conftest.d2/.
130842         * m4/utimes.m4: s/conftestdata/conftest.data/
130843         Inspired by Pavel Roskin's change in autoconf.
130845 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
130847         * lib/config.charset: Update for FreeBSD 4.2.
130849 2001-01-27  Jim Meyering  <meyering@lucent.com>
130851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
130852         a use of AS_IF.
130853         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
130855 2001-01-26  Jim Meyering  <meyering@lucent.com>
130857         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
130858         quotearg.c includes it.
130860 2001-01-26  Jim Meyering  <meyering@lucent.com>
130862         * lib/quotearg.c: Include stddef.h.
130863         * lib/quote.c: Include stddef.h.
130864         Reported by Axel Kittenberger.
130866         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
130867         line in double quotes so that it evokes a better diagnostic.
130868         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
130869         Reported by Axel Kittenberger.
130871 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
130873         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
130874         as if it was a `charset'.
130876 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
130878         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
130879         has const.
130881 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
130883         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
130884         to avoid a warning.  Add back 'const' to inptr.
130886 2001-01-20  Jim Meyering  <meyering@lucent.com>
130888         Be sure that headers are checked before used in code compiled
130889         for the type checks.
130890         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
130891         In place of that, invoke jm_CHECK_ALL_TYPES.
130892         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
130893         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
130894         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
130895         The check for ssize_t was mistakenly run before the test for unistd.h.
130897         The configure-time check for stdbool.h was missing.
130898         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
130899         (jm_PREREQ_HASH): New function.
130901 2001-01-17  Jim Meyering  <meyering@lucent.com>
130903         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
130904         for autoconf-2.49c.
130905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
130907 2001-01-16  Jim Meyering  <meyering@lucent.com>
130909         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
130910         From Bruno Haible.
130912 2001-01-14  Jim Meyering  <meyering@lucent.com>
130914         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
130915         foo and bar.  Create conftestdir/ in the script, not in the C code.
130916         Remove directories in the script, not in the C code.
130917         Remove conftestdir{,2} before trying to create the directory.
130918         Make the entire configure script fail if the mkdir fails.
130920 2001-01-14  Jim Meyering  <meyering@lucent.com>
130922         * lib/rename.c: New file.  From Volker Borchert.
130923         Include stdlib.h, string.h or strings.h, and xalloc.h.
130924         Use strip_trailing_slashes rather than open-coding it.
130926 2001-01-03  Paul Eggert  <eggert@twinsun.com>
130928         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
130930 2001-01-03  Jim Meyering  <meyering@lucent.com>
130932         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
130933         of local `inptr' to avoid warning with some system declarations of
130934         iconv.
130936 2001-01-02  Volker Borchert  <bt@teknon.de>
130938         * m4/rename.m4: New file.
130939         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
130941 2001-01-01  Jim Meyering  <meyering@lucent.com>
130943         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
130944         even on systems with utmpx.h.  It's necessary for the declaration of
130945         utmp's ut_user member.  Reported by Andreas Jaeger.
130947         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
130948         available. They are required for the declarations of getgrgid and
130949         getpwuid resp.
130950         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
130951         Reported by Andreas Jaeger.
130953 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
130955         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
130956         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
130957         so `make install' also works in VPATH builds.
130959 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
130961         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
130962         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
130963         can be used in subdirectories.
130965 2000-12-29  Paul Eggert  <eggert@twinsun.com>
130967         * lib/modechange.c: Do not assume that mode_t uses the
130968         traditional octal encoding.  E.g. "chmod 1 FOO" should set
130969         the other-execute bit of FOO even if S_IXOTH != 1.
130971         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
130972         WOTH, XOTH, ALLM): New macros.
130973         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
130974          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
130975         Use them.
130976         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
130977         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
130978         (mode_compile):
130979         No need to use uintmax_t; unsigned long is long enough.
130980         Don't bother to get suffix since we don't use it.
130982 2000-12-26  Jim Meyering  <meyering@lucent.com>
130984         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
130985         better with autoheader.
130987 2000-12-24  Jim Meyering  <meyering@lucent.com>
130989         * lib/hash.c (is_prime): Return explicit boolean values.
130990         (hash_get_first): Return NULL to appease Irix5.6's 89.
130991         Reported by Nelson Beebe.
130993 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
130995         * lib/localcharset.c (locale_charset): Add support for Win32.
130997 2000-12-18  Paul Eggert  <eggert@twinsun.com>
130999         * lib/physmem.h, lib/physmem.c: New files.
131001         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
131002         (noinst_HEADERS): Add physmem.h.
131004         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
131005         't' for compatibility with Solaris 8 sort.
131007 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
131009         * lib/config.charset: Add support for BeOS.
131011 2000-12-17  Jim Meyering  <meyering@lucent.com>
131013         * m4/dos.m4 (jm_AC_DOS): New file and macro.
131014         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
131016 2000-12-16  Jim Meyering  <meyering@lucent.com>
131018         This bug had a serious impact on chown: `chown N:M FILE' (for integer
131019         N and M) would have treated it like `chown N:N FILE'.
131021         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
131023 2000-12-16  Jim Meyering  <meyering@lucent.com>
131025         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
131026         SHELLS_FILE to a file name that's useful on djgpp systems.
131027         Include stdlib.h.
131028         (ADDITIONAL_DEFAULT_SHELLS): Define.
131029         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
131030         Based mostly on a patch from Prashant TR.
131032 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
131034         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
131035         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
131036         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
131038 2000-12-08  Andreas Schwab  <schwab@suse.de>
131040         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
131041         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
131043 2000-12-07  Jim Meyering  <meyering@lucent.com>
131045         * lib/stripslash.c (ISSLASH): Define.
131046         (strip_trailing_slashes): Use ISSLASH rather than comparing against
131047         `/'.
131048         From Prashant TR.
131050         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
131051         (dir_name_r): Declare this function as static.
131052         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
131053         manifest itself on a name containing a mix of slashes and
131054         backslashes.
131055         Make this function work with names starting with a DOS-style
131056         drive letter and colon prefix.
131057         (dir_name): Append `.' if necessary.
131058         Based mostly on patches from Prashant TR and Eli Zaretskii.
131060         * lib/dirname.h (dir_name_r): Remove prototype.
131062 2000-12-06  Paul Eggert  <eggert@twinsun.com>
131064         * m4/off_t-format.m4: Remove this file.
131065         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
131067 2000-12-06  Jim Meyering  <meyering@lucent.com>
131069         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
131070         replacement strtoull, we may well need the replacement strtoul, too.
131071         Check for declarations of strtoul and strtoull.
131072         Check for strtol.  Mainly as a cue to cause automake to include
131073         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
131074         Check for limits.h -- strtol.c needs it.
131076 2000-12-05  Jim Meyering  <meyering@lucent.com>
131078         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
131080 2000-12-04  Jim Meyering  <meyering@lucent.com>
131082         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
131083         Also include memory.h, stdlib.h, unistd.h if appropriate.
131084         Reported by Andreas Jaeger (conflicting declaration of malloc).
131086 2000-12-02  Jim Meyering  <meyering@lucent.com>
131088         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
131089         * m4/jm-macros.m4 (jm_MACROS): require it.
131091 2000-12-02  Jim Meyering  <meyering@lucent.com>
131093         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
131095 2000-12-01  Paul Eggert  <eggert@twinsun.com>
131097         * lib/memrchr.c: Include <config.h> before any system include file.
131099 2000-11-30  Jim Meyering  <meyering@lucent.com>
131101         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
131103 2000-11-30  Jim Meyering  <meyering@lucent.com>
131105         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
131107 2000-11-29  Paul Eggert  <eggert@twinsun.com>
131109         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
131111 2000-11-26  Jim Meyering  <meyering@lucent.com>
131113         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
131115 2000-11-22  Paul Eggert  <eggert@twinsun.com>
131117         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
131118         size of (size_t) -1; it's not portable.
131120 2000-11-17  Jim Meyering  <meyering@lucent.com>
131122         * lib/strstr.c: Update from GNU libc.
131124 2000-11-17  Akim Demaille  <akim@epita.fr>
131126         * lib/obstack.h: Formatting changes.
131127         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
131128         prevent type checking.
131129         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
131130         cast the value to (void *): assigning a `foo *' to a `void *'
131131         variable is valid.
131132         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
131134 2000-11-16  Jim Meyering  <meyering@lucent.com>
131136         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
131138 2000-11-11  Jim Meyering  <meyering@lucent.com>
131140         * lib/error.c: Add a couple #includes, merging from GNU libc version.
131142 2000-11-10  Jim Meyering  <meyering@lucent.com>
131144         * lib/obstack.h: Update from GNU libc.
131145         * lib/obstack.c: Likewise.
131147 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
131149         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
131151 2000-11-06  Paul Eggert  <eggert@twinsun.com>
131153         * lib/getusershell.c (setusershell): Use rewind rather than
131154         fseek/fseeko, to avoid configuration hassles with fseeko.
131155         Don't bother opening SHELLS_FILE if shellstream is NULL;
131156         it's not necessary.
131158 2000-11-05  Jim Meyering  <meyering@lucent.com>
131160         * lib/makepath.h (make_dir): Declare.
131161         * lib/makepath.c (make_dir): Remove `static' attribute.
131162         Tweak a comment.
131164 2000-11-04  Jim Meyering  <meyering@lucent.com>
131166         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
131168 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
131170         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
131171         last one in a bucket, advance to the next bucket.
131173 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
131175         * lib/fnmatch.c: Do not comment out all the code if we are using
131176         the GNU C library, because in some cases we are replacing buggy
131177         code in the GNU C library itself.
131179 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
131181         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
131182         (regex_compile): Catch bogus \(\1\).
131184 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131186         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
131187         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
131188         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
131190 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131192         * lib/error.h, getline.h, modechange.h:
131193         Remove "2000" from Copyright line, as the file hasn't been
131194         changed this year other than in the copyright notice.
131196         * lib/xalloc.h: Add "2000" to Copyright line, as this file
131197         was changed this year.
131199 2000-10-29  Jim Meyering  <meyering@lucent.com>
131201         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
131202         renaming.
131203         * m4/ls-mntd-fs.m4: Likewise
131205 2000-10-29  Jim Meyering  <meyering@lucent.com>
131207         * lib/xstat.in: Fix grammar in comment.
131209 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
131211         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
131212         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
131213         doesn't define __restrict_arr.
131215 2000-10-28  Jim Meyering  <meyering@lucent.com>
131217         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
131218         (jm_PREREQ_MEMCHR): New function.
131220 2000-10-28  Jim Meyering  <meyering@lucent.com>
131222         * lib/memchr.c: Update from libc.
131223         Adjust for portability:
131224         [HAVE_STDLIB_H]: Include stdlib.h.
131225         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
131226         Undef __memchr, too.
131227         [!weak_alias]: Define __memchr to memchr.
131229         * lib/regex.c: Update from libc.
131230         * lib/regex.h: Likewise.
131231         * lib/getopt1.c: Likewise.
131232         * lib/memcmp.c: Likewise.
131234         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
131235         Avoid using fseek, when possible -- it's broken by design.
131236         Patch by Ulrich Drepper.
131238 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
131240         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
131241         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
131242         Giving in to popular pressure to shut up the compiler with casts.
131244 2000-10-26  Jim Meyering  <meyering@lucent.com>
131246         * lib/strftime.c: Update from libc.
131248 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
131250         * regex.c: More `unsigned char' -> `re_char' changes.
131251         Also change several `int' into `re_wchar_t'.
131252         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
131253         (PUSH_FAILURE_POINTER): Don't cast any more.
131254         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
131255         We want GCC to complain, since this piece of code makes
131256         re_match non-reentrant, which *should* be fixed.
131257         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
131258         (EXTEND_BUFFER): Use RETALLOC.
131259         (SET_LIST_BIT): Don't cast.
131260         (re_wchar_t): New type.
131261         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
131262         that those two functions will always properly return.
131263         (IMMEDIATE_QUIT_CHECK): Cast to void.
131264         (analyse_first): Use recursion rather than an explicit stack.
131265         (re_compile_fastmap): Can't fail anymore.
131266         (re_search_2): Don't check re_compile_fastmap for failure.
131267         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
131268         Now also sets the new value (passed in a new argument).
131269         (re_match_2_internal): Use it.
131270         Also, use a new var `reg' of type size_t when looping through regs
131271         rather than reuse the inappropriate `mcnt'.
131273 2000-10-25  Jim Meyering  <meyering@lucent.com>
131275         * lib/obstack.c: Update from libc.
131277 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
131279         * regex.c (regex_compile): Change the way of handling a range from
131280         a char less than 256 to a char not less than 256.
131282 2000-10-24  Andrew Innes  <andrewi@gnu.org>
131284         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
131285         NT-Emacs only.
131286         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
131287         so that re_search functions only quit when callers expect them to.
131289 2000-10-23  Jim Meyering  <meyering@lucent.com>
131291         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
131292         wrong.  That set_locale call must not have any side effects.
131293         From Paul Eggert.
131295 2000-10-22  Jim Meyering  <meyering@lucent.com>
131297         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
131298         [CYCLIC]: Remove now-unused definition.
131300         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
131301         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
131302         Suggestion from Ulrich Drepper.
131304 2000-10-21  Jim Meyering  <meyering@lucent.com>
131306         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
131307         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
131308         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
131310 2000-10-21  Jim Meyering  <meyering@lucent.com>
131312         * lib/dirname.c (memrchr): Declare if necessary.
131313         (dir_name): Remove the restriction that there be no
131314         trailing slashes.  Now, this code skips past them, effectively
131315         ignoring them.
131316         [TEST_DIRNAME] (main): New unit tests.
131318         * lib/memrchr.c: New file from GNU libc.
131319         Undef __memrchr, too.
131320         [!weak_alias]: Define __memrchr to memrchr.
131321         Guard weak_alias use with `#ifdef weak_alias'.
131323 2000-10-21  Jim Meyering  <meyering@lucent.com>
131325         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
131326         (dir_name): Use dir_name_r.
131327         * lib/dirname.h (dir_name_r): Declare it.
131329 2000-10-17  Jim Meyering  <meyering@lucent.com>
131331         * lib/quote.h (PARAMS): Define and use.
131332         Reported by Akim Demaille.
131334         * lib/getopt.c: Update from libc.
131336 2000-10-16  Jim Meyering  <meyering@lucent.com>
131338         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
131339         setlocale.
131340         From Jan Fedak.
131342 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
131344         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
131346 2000-09-25  Jim Meyering  <meyering@lucent.com>
131348         * lib/md5.h (rol): Define (from GnuPG).
131350         * lib/sha.c: Give credit (GnuPG) where due.
131351         (M): Use rol rather than open-coding it.
131352         Add a FIXME comment.
131354 2000-09-21  Jim Meyering  <meyering@lucent.com>
131356         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
131357         Reported by Michael Stone.
131359 2000-09-20  Jim Meyering  <meyering@lucent.com>
131361         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
131362         (noinst_HEADERS): Add sha.h.
131363         Based on code from Scott G. Miller and from GnuPG.
131365 2000-09-18  Jim Meyering  <meyering@lucent.com>
131367         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
131368         LIBS. Otherwise, everyone ends up linking with -lelf for some
131369         configurations.
131370         Reported by Mike Stone.
131372 2000-09-15  Jim Meyering  <meyering@lucent.com>
131374         * lib/regex.c: Update from libc.
131376 2000-09-10  Jim Meyering  <meyering@lucent.com>
131378         * lib/getopt.c (_getopt_internal): Update from glibc.
131380 2000-09-09  Jim Meyering  <meyering@lucent.com>
131382         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
131383         think it should be used as a general replacement for isascii.
131384         * lib/fnmatch.c: Likewise.
131385         * lib/mbswidth.c: Likewise
131386         * lib/regex.c: Likewise.
131388         Don't use atoi.
131389         * lib/userspec.c: Include sys/param.h and limits.h.
131390         Include xstrtol.h.
131391         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
131392         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
131393         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
131394         UID, GID.  Check range.
131396 2000-09-06  Jim Meyering  <meyering@lucent.com>
131398         * lib/getopt.c (_getopt_internal): Update from glibc.
131400 2000-08-30  Jim Meyering  <meyering@lucent.com>
131402         * lib/strftime.c: Merge in changes from GNU libc.
131404 2000-08-26  Jim Meyering  <meyering@lucent.com>
131406         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
131407         * m4/fpending.m4: New file.
131409 2000-08-26  Jim Meyering  <meyering@lucent.com>
131411         * lib/closeout.c: Include "__fpending.h".
131412         (close_stdout_status): Return right away if there's nothing to flush.
131414         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
131415         * lib/__fpending.c: New file.
131416         * lib/__fpending.h: New file.
131418 2000-08-20  Jim Meyering  <meyering@lucent.com>
131420         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
131421         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
131422         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
131424 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
131426         Improve fileutils installation on systems where running
131427         programs (like install) can't be unlinked.
131428         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
131429         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
131431 2000-08-07  Paul Eggert  <eggert@twinsun.com>
131433         Standardize on "memory exhausted" instead of "Memory exhausted"
131434         or "virtual memory exhausted".
131435         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
131436         "virtual memory exhausted".
131437         * lib/same.c (same_name): Invoke xalloc_die instead of printing
131438         our own message.
131439         * lib/userspec.c (parse_user_spec): Likewise.
131440         * lib/bumpalloc.h: comment fix
131441         * lib/same.c, userspec.c: Include xalloc.h.
131443         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
131444         not char *const and pointing to a constant array.
131445         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
131446         (xrealloc): Comment fix.
131448         * lib/userspec.c (parse_user_spec):
131449         Don't translate a message until just before returning,
131450         to avoid unnecessary translation.
131452 2000-08-07  Jim Meyering  <meyering@lucent.com>
131454         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
131455         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
131456         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
131457         getgroups.c, gethostname.c, getopt.h, group-member.c,
131458         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
131459         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
131460         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
131461         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
131462         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
131463         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
131464         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
131465         yesno.c: Back out Copyright date changes for each file with no change
131466         this year.  This eases coordination with other programs using the same
131467         source code modules.  From Paul Eggert.
131469 2000-08-06  Paul Eggert  <eggert@twinsun.com>
131471         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
131472         not char, for compatibility with glibc 2.1.3 strftime.c.
131474 2000-08-03  Greg McGary  <greg@mcgary.org>
131476         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
131477         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
131478         (EXTEND_BUFFER): Use them.
131480 2000-08-01  Jim Meyering  <meyering@lucent.com>
131482         * lib/dirname.c (ISSLASH): Define.
131483         (BACKSLASH_IS_PATH_SEPARATOR): Define.
131484         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
131485         both `\' and `/' may be use as path separators.
131486         Based on a patch from Prashant TR.
131488 2000-07-31  Paul Eggert  <eggert@twinsun.com>
131490         * lib/quotearg.c (quotearg_n_options): Don't make the initial
131491         slot vector a constant, since it might get modified.
131493 2000-07-31  Jim Meyering  <meyering@lucent.com>
131495         * lib/xmalloc.c: Use `virtual memory exhausted', not
131496         `Memory exhausted'.
131497         * lib/obstack.c (print_and_abort): Likewise.
131499 2000-07-30  Paul Eggert  <eggert@twinsun.com>
131501         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
131502         buffer, so that the caller can always quote one small
131503         component of a "memory exhausted" message in slot 0.
131504         From a suggestion by Jim Meyering.
131506 2000-07-30  Jim Meyering  <meyering@lucent.com>
131508         * lib/makepath.c (make_path): Quote the other instance, too.
131510         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
131511         (STATIC_BUF_SIZE): Define.
131512         (quotearg_n_options): Use only statically allocated storage when
131513         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
131514         than STATIC_BUF_SIZE.
131516 2000-07-29  Jim Meyering  <meyering@lucent.com>
131518         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
131519         * lib/dirname.c (dir_name): Likewise.
131521         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
131522         `/'.
131524         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
131525         (dir_name): Assert that there are no trailing slashes.
131527 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
131529         * lib/mbswidth.h (mbswidth): Add a flags argument.
131530         (mbswidth): New declaration.
131531         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
131532         * lib/mbswidth.c (mbswidth): Add a flags argument.
131533         (mbsnwidth): New function.
131535 2000-07-24  Jim Meyering  <meyering@lucent.com>
131537         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
131539 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131541         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
131543 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131545         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
131546         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
131547         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
131548         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
131549         invoke multibyte primitives.
131551 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131553         * lib/quotearg.c:
131554         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
131555         so that mbstate_t is always defined.
131557         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
131558         be 1 in at least one GCC installation, and this configuration
131559         error is likely to be common.  Ignoring MB_LEN_MAX hurts
131560         performance on hosts that have mbrtowc but have only unibyte
131561         locales, but I assume these hosts are rare.
131563 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131565         * lib/mbswidth.c (_XOPEN_SOURCE):
131566         Don't define; this causes problems on Solaris 7.
131567         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
131569 2000-07-23  Jim Meyering  <meyering@lucent.com>
131571         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
131572         too: getgrgid, getpwuid, getuid.
131574 2000-07-23  Jim Meyering  <meyering@lucent.com>
131576         * lib/basename.c (base_name): Add an assertion.
131578 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
131580         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
131581         shadow its mbsinit function.
131583 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
131585         * lib/mbswidth.h: New file.
131586         * lib/mbswidth.c: New file.
131587         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
131588         (noinst_HEADERS): Add mbswidth.h.
131590 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
131592         * lib/config.charset: Add support for FreeBSD. Improve support for
131593         HP-UX and IRIX 6.
131595 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
131597         * m4/mbswidth.m4: New file.
131598         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
131600 2000-07-15  Jim Meyering  <meyering@lucent.com>
131602         * lib/makepath.c: Include quote.h.
131603         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
131604         corresponding argument in a `quote (...)' call.
131605         Give better diagnostics.
131607         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
131608         (noinst_HEADERS): Add quote.h.
131610         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
131611         from tar's src/misc.c.
131612         * lib/quote.h: New file.  Prototypes for same.
131614 2000-07-14  Paul Eggert  <eggert@twinsun.com>
131616         From a suggestion by Bruno Haible.
131617         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
131618         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
131619         to decide whether to define the BeOS workaround macro;
131620         this adjusts to the change to AC_MBSTATE_T.
131622 2000-07-14  Jim Meyering  <meyering@lucent.com>
131624         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
131625         jm_AC_TYPE_UINTMAX_T.
131627 2000-07-13  Paul Eggert  <eggert@twinsun.com>
131629         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
131631         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
131632         quotearg_buffer_restyled): Add support for
131633         clocale_quoting_style.  Undo previous change to
131634         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
131635         and "{RIGHT QUOTATION MARK}" msgids.
131637 2000-07-10  Paul Eggert  <eggert@twinsun.com>
131639         From a suggestion by Bruno Haible.
131640         * m4/mbstate_t.m4 (AC_MBSTATE_T):
131641         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
131642         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
131643         and mbstate_t, to a single-part test that simply defines mbstate_t.
131644         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
131645         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
131647 2000-07-10  Jim Meyering  <meyering@lucent.com>
131649         * m4/strerror_r.m4: Mirror the correction made in autoconf.
131651         * m4/gnu-source.m4: Output to confdefs.h directly.
131652         Suggestion from Akim Demaille.
131654 2000-07-09  Paul Eggert  <eggert@twinsun.com>
131656         The old behavior of quoting `like this' doesn't look good with
131657         newer, ISO-style fonts.  See:
131658         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
131660         Instead, quote "like this" by default.  Let the translator
131661         tailor the locale-specific quoting behavior by providing
131662         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
131664         * lib/quotearg.c (N_): New macro.
131665         (gettext_default): New function.
131666         (quotearg_buffer_restyled): Use
131667         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
131668         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
131670 2000-07-09  Jim Meyering  <meyering@lucent.com>
131672         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
131673         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
131675         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
131676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
131678 2000-07-09  Jim Meyering  <meyering@lucent.com>
131680         * lib/Most files: Update copyright dates to include 2000.
131682 2000-07-08  Jim Meyering  <meyering@lucent.com>
131684         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
131685         if not defined.
131686         (xgethostname): Remove now-unnecessary #ifdef.
131687         Move declaration of `err' into loop where it's used.
131689 2000-07-05  Paul Eggert  <eggert@twinsun.com>
131690         and Bruno Haible  <haible@clisp.cons.org>
131692         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
131693         only if the test for an object-type mbstate_t fails.  This
131694         prevents us from mistakenly reporting that mbstate_t is a
131695         system object type after we "#define mbstate_t int" to work
131696         around its lack.
131698 2000-07-05  Paul Eggert  <eggert@twinsun.com>
131699         and Bruno Haible  <haible@clisp.cons.org>
131701         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
131703 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
131705         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
131706         to strerror_r.
131707         Include <ctype.h> for use of isalpha.
131709 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
131711         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
131712         by allocating a larger buffer. Test the gethostname return value for
131713         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
131714         returns an error and ENAMETOOLONG isn't defined.
131716 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
131718         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
131719         dimension.
131721 2000-07-04  Jim Meyering  <meyering@lucent.com>
131723         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
131724         of the deprecated AC_CHECKING.
131726 2000-07-04  Jim Meyering  <meyering@lucent.com>
131728         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
131729         Reported by Bruno Haible.
131731 2000-07-04  Jim Meyering  <meyering@lucent.com>
131733         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
131734         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
131735         lacks mbrtowc.
131737 2000-07-03  Paul Eggert  <eggert@twinsun.com>
131739         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
131740         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
131742 2000-07-03  Paul Eggert  <eggert@twinsun.com>
131743         and Bruno Haible  <haible@clisp.cons.org>
131745         * lib/quotearg.c (mbrtowc):
131746         Assign to *pwc, and return 1 only if result is nonzero.
131747         (iswprint): Use ISPRINT when substituting our own mbrtowc.
131749 2000-07-03  Jim Meyering  <meyering@lucent.com>
131751         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
131753 2000-07-03  Jim Meyering  <meyering@lucent.com>
131755         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
131756         This is necessary to get a definition of e.g., UTMP_FILE on
131757         HP-UX 10.20.
131758         From Bob Proulx.
131760 2000-07-02  Jim Meyering  <meyering@lucent.com>
131762         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
131764         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
131765         AC_LIBOBJ(function_name).
131766         * m4/chown.m4: Likewise.
131767         * m4/fnmatch.m4: Likewise.
131768         * m4/ftruncate.m4: Likewise.
131769         * m4/getgroups.m4: Likewise.
131770         * m4/getline.m4: Likewise.
131771         * m4/group-member.m4: Likewise.
131772         * m4/jm-macros.m4: Likewise.
131773         * m4/lstat.m4: Likewise.
131774         * m4/malloc.m4: Likewise.
131775         * m4/memcmp.m4: Likewise.
131776         * m4/nanosleep.m4: Likewise.
131777         * m4/putenv.m4: Likewise.
131778         * m4/realloc.m4: Likewise.
131779         * m4/regex.m4: Likewise.
131780         * m4/stat.m4: Likewise.
131781         * m4/strftime.m4: Likewise.
131783 2000-07-02  Jim Meyering  <meyering@lucent.com>
131785         * lib/quotearg.c (mbstate_t): Don't define here.
131787 2000-07-02  Jim Meyering  <meyering@lucent.com>
131789         * lib/nanosleep.c (SIGCONT): Define if not already defined.
131791 2000-07-01  Jim Meyering  <meyering@lucent.com>
131793         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
131795 2000-07-01  Jim Meyering  <meyering@lucent.com>
131797         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
131798         problem.
131800 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
131802         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
131803         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
131805 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
131807         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
131808         per change in ../m4/ls-mntd-fs.m4.
131809         (read_filesystem_list): Ignore symbolic links.
131811 2000-06-29  Jim Meyering  <meyering@lucent.com>
131813         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
131814         for declaration of strcmp.
131816         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
131818         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
131819         Avoid warning by casting result to `char *' to remove `const'.
131821 2000-06-28  Jim Meyering  <meyering@lucent.com>
131823         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
131824         included by quotearg.c, for which we perform this test.  From
131825         Bruno Haible.
131827 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
131829         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
131830         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
131831         <utmpx.h> exists, put readutmp.o into LIBOBJS.
131833 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
131835         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
131837 2000-06-26  Paul Eggert  <eggert@twinsun.com>
131839         savedir now sets errno on failure and invokes xmalloc to get memory.
131840         Fix a couple of other minor bugs while we're at it.
131842         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
131843         (NAMLEN): Remove macro.
131844         (malloc, realloc): Remove decls.
131845         (stpcpy): Likewise.
131846         ("xalloc.h"): Include.
131847         (NAME_SIZE_DEFAULT): New macro.
131848         (savedir): Use xmalloc / xrealloc to allocate memory.
131849         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
131850         Skip "" directory entries.
131851         Use strlen to calculate directory entry length, since the old method
131852         is rarely used these days and isn't worth supporting.
131853         Don't use a pointer after freeing it.
131854         Check for integer overflow when calculating allocation size.
131855         Use memcpy to copy entries, instead of stpcpy.
131856         Set errno properly when returning NULL.
131857         Check for readdir error.
131859 2000-06-26  Jim Meyering  <meyering@lucent.com>
131861         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
131863 2000-06-25  Jim Meyering  <meyering@lucent.com>
131865         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
131866         Linux header bug when _XOPEN_SOURCE is defined to 500.
131868 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
131870         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
131871         deficiency.
131873 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
131875         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
131876         Include xalloc.h.
131877         Don't include <stdlib.h>.  Don't declare malloc, realloc.
131879 2000-06-24  Jim Meyering  <meyering@lucent.com>
131881         * m4/strerror_r.m4: Revive this file -- to try out an experimental
131882         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
131883         for which strerror does return char*, but which lacks a conveniently
131884         accessible declaration of the function.  If the compile-test says
131885         strerror_r doesn't work, then resort to a `run'-test that works on
131886         BeOS and segfaults on DEC Unix.
131888 2000-06-24  Jim Meyering  <meyering@lucent.com>
131890         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
131892 2000-06-23  Paul Eggert  <eggert@twinsun.com>
131894         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
131895         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
131897 2000-06-23  Paul Eggert  <eggert@twinsun.com>
131899         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
131900         (mbrtowc, mbstate_t): Define substitutes if
131901         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
131902         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
131903         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
131905 2000-06-23  Jim Meyering  <meyering@lucent.com>
131907         * m4/afs.m4: Add missing AC_MSG_RESULT.
131908         Reported by Bruno Haible.
131910         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
131911         Suggestion from Bruno Haible.
131913 2000-06-23  Jim Meyering  <meyering@lucent.com>
131915         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
131917 2000-06-21  Jim Meyering  <meyering@lucent.com>
131919         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
131921 2000-06-21  Jim Meyering  <meyering@lucent.com>
131923         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
131924         (noinst_HEADERS): Add getstr.h.
131926         * lib/getline.c (getstr): Move into a separate file.
131927         * lib/getstr.c (getstr): New file, extracted from getline.c, with
131928         the following changes: new parameter, delim2; both delim[12]
131929         parameters have type `int', not `char'.  The latter would lose
131930         with 8-bit delimiters.
131931         * lib/getstr.h: New file.
131933 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
131935         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
131936         than 1024, return a memory chunk of least possible size, instead
131937         of size PATH_MAX + 2. In the loop, increment the size proportionally.
131938         Use free/xmalloc instead of xrealloc to avoid copying for very long
131939         paths.
131941 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
131943         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
131944         the empty string.
131946 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
131948         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
131949         address, not strdup.  Include <stdlib.h> and don't declare free().
131951 2000-06-19  Jim Meyering  <meyering@lucent.com>
131953         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
131955 2000-06-18  Jim Meyering  <meyering@lucent.com>
131957         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
131959         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
131960         `checking whether...' message to be consistent with that of the
131961         lstat test.
131963 2000-06-18  Jim Meyering  <meyering@lucent.com>
131965         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
131966         Besides, these days every porting target provides a mkdir function.
131968         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
131969         needed. (this snippet comes from src/system.h).
131971 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
131973         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
131975 2000-06-15  Paul Eggert  <eggert@twinsun.com>
131977         * lib/human.c (adjust_value): New function.
131978         (human_readable_inexact): Apply rounding style even when
131979         printing approximate values.
131981 2000-06-14  Paul Eggert  <eggert@twinsun.com>
131983         * lib/human.c (human_readable_inexact): Allow an input block
131984         size that is not a multiple of the output block size, and vice versa.
131985         Reported by Piergiorgio Sartor.
131987 2000-06-14  Paul Eggert  <eggert@twinsun.com>
131989         * lib/getdate.y (get_date): Apply relative times after time
131990         zone indicator, not before.  Reported by Todd A. Jacobs.
131992 2000-06-13  Jim Meyering  <meyering@lucent.com>
131994         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
131996         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
131998 2000-06-12  Paul Eggert  <eggert@twinsun.com>
132000         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
132002 2000-06-12  Jim Meyering  <meyering@lucent.com>
132004         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
132005         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
132006         optional argument.
132007         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
132008         the optional argument, `lib'.
132010 2000-06-08  Jim Meyering  <meyering@lucent.com>
132012         * m4/largefile.m4: Remove file (now that it's part of autoconf).
132014 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132016         Rewrite largefile configuration so that we don't need to run
132017         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
132018         AC_CANONICAL_HOST in configure.in -- jmm]
132020         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
132021         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
132022         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
132023         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
132024         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
132025         All uses changed.
132026         Instead of inspecting the output of getconf, try to compile the
132027         test program without and with the macro definition.
132028         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
132029         for getconf.  Instead, check for the needed flags by compiling
132030         test programs.
132032 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132034         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
132036 2000-06-04  Jim Meyering  <meyering@lucent.com>
132038         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
132039         SunOS 4.1.4 for which gid_t is an unsigned type.
132041 2000-06-03  Jim Meyering  <meyering@lucent.com>
132043         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
132044         now that autoconf requires that.
132046         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
132047         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
132048         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
132050 2000-06-03  Jim Meyering  <meyering@lucent.com>
132052         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
132054 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132056         * m4/glibc21.m4: New file.
132057         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
132059 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132061         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
132062         newer, don't install charset.alias.
132063         * lib/config.charset: Change the Linux/glibc rules so they become empty
132064         on glibc-2.1 or newer.
132066 2000-06-02  Jim Meyering  <meyering@lucent.com>
132068         * lib/mountlist.c: Back out last change.  Instead, do this...
132069         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
132070         me_dummy member using the same `ignore'-testing code.
132071         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
132072         fs_type strings.
132073         From Mark D. Roth.
132075 2000-05-29  Jim Meyering  <meyering@lucent.com>
132077         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
132078         mounts with the `ignore' attribute.  Based on a patch from
132079         Mark D. Roth.
132081 2000-05-28  Jim Meyering  <meyering@lucent.com>
132083         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
132084         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132085         * m4/stat.m4: Likewise.
132086         * m4/lstat.m4: Likewise.
132087         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
132089         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
132090         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
132092 2000-05-26  Jim Meyering  <meyering@lucent.com>
132094         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
132096 2000-05-24  Jim Meyering  <meyering@lucent.com>
132098         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
132099         autoconf requires that.
132100         * m4/lib-check.m4: Likewise.
132101         * m4/jm-macros.m4: Likewise.
132102         * m4/strftime.m4: Likewise.
132104         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
132105         AC_CHECK_DECLS, now that autoconf requires that.
132107 2000-05-22  Jim Meyering  <meyering@lucent.com>
132109         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132110         * m4/lstat.m4: Likewise.
132112 2000-05-22  Jim Meyering  <meyering@lucent.com>
132114         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
132116 2000-05-20  Jim Meyering  <meyering@lucent.com>
132118         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
132119         (jm_PREREQ): Use it.
132121 2000-05-18  Jim Meyering  <meyering@lucent.com>
132123         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
132124         back, too, since it may have been modified by allocate_entry.
132125         (hash_delete): Rewrite to use neither the assignment operator
132126         nor the comma operator in an if-expression.
132128 2000-05-15  Paul Eggert  <eggert@twinsun.com>
132130         * lib/closeout.c:
132131         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
132132         Remove; no longer needed.
132133         "quotearg.h": Add include.
132134         (file_name): Do not bother to explicitly initialize to NULL; it's less
132135         efficient on some hosts.
132136         (close_stdout_status): Remove test as to whether stdout was already
132137         closed; it breaks for the case "echo x | sort >&-".
132138         Quote file name colons.
132139         Do not assume that _("write error") lacks format strings.
132141 2000-05-15  Jim Meyering  <meyering@lucent.com>
132143         * lib/version-etc.c (version_etc_copyright): Update the copyright
132144         string used in all --version output.
132146 2000-05-14  Jim Meyering  <meyering@lucent.com>
132148         * lib/closeout.c (close_stdout_set_file_name): New function.
132149         (close_stdout_status): Use new file-scoped global.
132150         Return right away if fstat says the stdout file descriptor is invalid.
132151         * lib/closeout.h (close_stdout_set_file_name): Declare.
132153 2000-05-10  Jim Meyering  <meyering@lucent.com>
132155         * lib/closeout.c [default_exit_status]: New file-scoped variable.
132156         (close_stdout_set_status): New function.
132157         * lib/closeout.h (close_stdout_set_status): Declare.
132159 2000-05-09  Jim Meyering  <meyering@lucent.com>
132161         * m4/gettext.m4: Rename this...
132162         * m4/libintl.m4: ...to this.
132164 2000-05-08  Jim Meyering  <meyering@lucent.com>
132166         * lib/long-options.c: Don't include closeout.h.
132167         (parse_long_options): Don't call close_stdout for --version.
132169 2000-05-06  Paul Eggert  <eggert@twinsun.com>
132171         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
132172         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
132173         2.1.3 bug.  This avoids a clash when files like regex.c define
132174         _GNU_SOURCE.
132176 2000-05-06  Jim Meyering  <meyering@lucent.com>
132178         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
132179         (AC_REPLACE_FUNCS): Add strnlen.
132181         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
132182         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
132184         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
132185         AC_SEARCH_LIBS call for nanosleep.
132186         (LIB_NANOSLEEP): Set and AC_SUBST.
132188 2000-05-06  Jim Meyering  <meyering@lucent.com>
132190         * lib/strnlen.c: Undefine __strnlen and strnlen.
132191         [!weak_alias]: Define __strnlen to strnlen.
132193         * lib/atexit.c: New file, from libiberty.
132195 2000-05-06  Jim Meyering  <meyering@lucent.com>
132197         * lib/closeout.c (close_stdout_status): Also check for errors on the
132198         stderr stream.
132200 2000-05-05  Jim Meyering  <meyering@lucent.com>
132202         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
132203         AC_SEARCH_LIBS call for clock_gettime.
132204         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
132206         * m4/search-libs.m4: Update from autoconf.
132208         su doesn't work on Solaris 2.6.
132209         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
132210         <shadow.h>.  Reported by Dragos Harabor.
132212 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
132214         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
132215         memcpy instead of xmalloc, xrealloc, path_concat.
132216         (locale_charset): Treat empty environment variables as absent.
132217         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
132219 2000-05-04  Jim Meyering  <meyering@lucent.com>
132221         * lib/getopt.c: Update from glibc.
132222         * lib/obstack.c: Likewise.
132223         * lib/obstack.h: Likewise.
132224         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
132225         file
132227         * lib/regex.h: Likewise.
132228         * lib/strndup.c: Likewise.
132229         * lib/strnlen.c: New file, from glibc.
132231 2000-05-03  Jim Meyering  <meyering@lucent.com>
132233         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
132235 2000-05-02  Paul Eggert  <eggert@twinsun.com>
132237         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
132238         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
132239         compile-time test, rather than inspecting host and OS, to
132240         decide whether to define _LARGEFILE_SOURCE.
132242 2000-05-01  Jim Meyering  <meyering@lucent.com>
132244         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
132246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
132247         Based on a patch from Bruno Haible.
132249 2000-05-01  Jim Meyering  <meyering@lucent.com>
132251         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
132253 2000-04-29  Jim Meyering  <meyering@lucent.com>
132255         * lib/path-concat.c: Declare strdup only if it's not defined.
132256         * lib/canon-host.c: Likewise.
132258 2000-04-28  Jim Meyering  <meyering@lucent.com>
132260         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
132261         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
132262         is included first, then limits.h is included by locale.h by libintl.h.
132263         From John David Anglin.
132265 2000-04-25  Jim Meyering  <meyering@lucent.com>
132267         * lib/makepath.c (S_IRWXUGO): Define.
132268         (make_path): Always perform explicit chmod if MODE specifies any
132269         of the `special' permission bits.  Prompted by a bug report against
132270         install from Mate Wierdl and Joost van Baal.
132272 2000-04-18  Jim Meyering  <meyering@lucent.com>
132274         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
132275         (jm_PREREQ): Use it.
132277 2000-04-18  Jim Meyering  <meyering@lucent.com>
132279         * lib/README: New file.
132281         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
132282         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
132284 2000-04-17  Jim Meyering  <meyering@lucent.com>
132286         Get it right :-)
132287         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
132288         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
132289         Suggestion from Akim Demaille.
132291 2000-04-17  Jim Meyering  <meyering@lucent.com>
132293         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
132294         the definition of it to rpl_strftime also defined-away the system's
132295         declaration.
132297 2000-04-15  Jim Meyering  <meyering@lucent.com>
132299         Use `C' to denote so-called `contiguous' files, the same way
132300         that tar does.
132301         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
132302         (ftypelet): Use S_ISCTG.
132303         From Michael Deutschmann.
132305 2000-04-14  Jim Meyering  <meyering@lucent.com>
132307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
132308         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
132309         clobbered.
132311 2000-04-14  Jim Meyering  <meyering@lucent.com>
132313         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
132315 2000-04-13  Jim Meyering  <meyering@lucent.com>
132317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
132318         AH_VERBATIM to insert required #ifndef into config.h.in.
132319         Suggestion from Akim Demaille.
132321 2000-04-12  Jim Meyering  <meyering@lucent.com>
132323         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
132324         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
132325         Christian Krackowizer.
132327         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
132328         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
132329         (AC_SYS_LARGEFILE): Require.
132330         (AM_C_PROTOTYPES): Require.
132332 2000-04-08  Jim Meyering  <meyering@lucent.com>
132334         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
132335         names don't conflict.  Reported by Eli Zaretskii.
132337 2000-04-07  Jim Meyering  <meyering@lucent.com>
132339         * lib/putenv.c: Move inclusion of errno.h so it follows that of
132340         sys/types.h, to work around system header problems on AIX 3.2.5.
132341         From Bruno Haible.
132343 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
132345         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
132346         bug.  Deal with the different error behavior of Irix iconv.
132348 2000-04-05  Paul Eggert  <eggert@twinsun.com>
132350         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
132351         IRIX if the installer said otherwise.
132353 2000-04-05  Jim Meyering  <meyering@lucent.com>
132355         Portability tweaks required for ultrix4.3.
132356         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
132357         (jm_CHECK_DECLS): Add getutent to the list of functions.
132358         (_jm_DECL_HEADERS): Add utmpx.h.
132359         From John David Anglin.
132361         * m4/strftime.m4: Back out the 2000-04-02 change.
132362         Instead of that change, simply undefine putenv in the test program.
132364 2000-04-05  Jim Meyering  <meyering@lucent.com>
132366         Portability tweaks required for ultrix4.3.
132367         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
132368         getutent.
132369         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
132370         * lib/canon-host.c: Declare strdup.
132371         * lib/path-concat.c: Likewise.
132372         From John David Anglin.
132374 2000-04-04  Jim Meyering  <meyering@lucent.com>
132376         Be more DOS 8.3-friendly.
132377         * lib/ref-add.sin: Renamed from ref-add.sed.in.
132378         * lib/ref-del.sin: Renamed from ref-del.sed.in.
132379         * lib/Makefile.am: Reflect renaming.
132380         Reported by Eli Zaretskii.
132382         Use a temporary file name that won't clash with `charset.alias'
132383         in the DOS 8.3 name space.
132384         * lib/Makefile.am (charset_tmp): Define.
132385         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
132386         (uninstall-local): Likewise.
132387         Reported by Eli Zaretskii.
132389 2000-04-03  Jim Meyering  <meyering@lucent.com>
132391         * m4/gettext.m4: Fix typo in comment.
132393         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
132394         textutils/configure.in).  Suggestion from Paul Eggert.
132395         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
132397 2000-04-02  Paul Eggert  <eggert@twinsun.com>
132399         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
132400         variable in the shell rather than using putenv, which isn't
132401         portable.  This avoids the configure-time inter-test dependency
132402         on the potentially-renamed putenv function.
132404 2000-03-30  Paul Eggert  <eggert@twinsun.com>
132406         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
132407         before checking struct stat.st_blksize, so that
132408         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
132410 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132412         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
132413         since strftime.c uses HAVE_STRFTIME to decide whether to use
132414         the underlying strftime.
132416 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132418         * lib/time/strftime.c (my_strftime): Make sure we call the system
132419         strftime, not ourselves, when invoking the underlying strftime.
132421 2000-03-24  Jim Meyering  <meyering@lucent.com>
132423         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
132424         (charset_alias): Define.
132425         (install-exec-local): Factor out common code.
132426         (uninstall-local): Split lines longer than 80.
132427         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
132428         (SUFFIXES): Define.
132429         (.sed.in.sed): New rule.  Don't redirect directly to $@.
132430         (CLEANFILES): Add ref-add.sed and ref-del.sed.
132432 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
132434         * lib/config.charset: Output a line containing "Packages using this
132435         file".
132436         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
132437         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
132438         ref-del.sed): New rules.
132440 2000-03-17  Jim Meyering  <meyering@lucent.com>
132442         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
132443         Otherwise, include <strings.h>
132445 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
132447         * lib/unicodeio.c (utf8_wctomb): New function.
132448         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
132449         format instead of in UCS-4 with platform dependent endianness.
132451 2000-03-10  Jim Meyering  <meyering@lucent.com>
132453         * m4/lib-check.m4: Look for getspnam in -lgen, too.
132454         From Marco Franzen.
132456 2000-03-07  Paul Eggert  <eggert@twinsun.com>
132458         * lib/savedir.c (savedir): Work even if directory size is
132459         negative; this can happen with some screwy NFS configurations.
132461 2000-03-06  Jim Meyering  <meyering@lucent.com>
132463         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
132464         if it's NULL (because we ran out of memory).  From Bruno Haible.
132466 2000-03-05  Jim Meyering  <meyering@lucent.com>
132468         * lib/localcharset.c ("path-concat.h"): Include.
132469         (get_charset_aliases): Use path_concat instead of ANSI string
132470         concatenation.
132472         * lib/unicodeio.h (PARAMS): Define.
132473         Use it to guard prototype.
132475 2000-03-04  Jim Meyering  <meyering@lucent.com>
132477         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
132478         for lib/localcharset.c.
132480 2000-03-04  Jim Meyering  <meyering@lucent.com>
132482         * lib/Makefile.am (install-exec-local): Create $(libdir) before
132483         installing into it.
132484         (uninstall-local): Uncomment this rule so `make distcheck' works
132485         once again.
132487         * lib/unicodeio.c (<errno.h>): Include it.
132488         (errno): Declare if not defined.
132490         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
132492         * lib/config.charset: New version, incorporating remarks from a linux
132493         i18n mailing list.  From Bruno Haible.
132495 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
132497         * m4/codeset.m4: New file.
132498         * m4/iconv.m4: New file.
132499         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
132501 2000-03-03  Jim Meyering  <meyering@lucent.com>
132503         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
132505 2000-03-02  Jim Meyering  <meyering@lucent.com>
132507         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
132508         the messages come out on separate lines.
132510         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
132511         rather than jm_CHECK_DECLARATIONS.
132512         * m4/decl.m4: Remove now-unused file.
132514         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
132515         geteuid.
132517 2000-03-02  Jim Meyering  <meyering@lucent.com>
132519         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
132521 2000-03-01  Jim Meyering  <meyering@lucent.com>
132523         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
132524         * lib/unicodeio.c: Likewise.
132526 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
132528         * lib/config.charset: New file.
132529         * lib/localcharset.c: New file.
132530         * lib/unicodeio.h, lib/unicodeio.c: New files.
132531         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
132532         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
132533         (noinst_HEADERS): Add unicodeio.h.
132534         (all-local, install-exec-local, charset.alias): New targets.
132536 2000-02-28  Paul Eggert  <eggert@twinsun.com>
132538         * lib/quotearg.c (ALERT_CHAR): New macro.
132539         (quotearg_buffer_restyled): Use it.
132541 2000-02-27  Jim Meyering  <meyering@lucent.com>
132543         * m4/check-decl.m4: Add getenv to the list.
132545 2000-02-27  Jim Meyering  <meyering@lucent.com>
132547         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
132548         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
132550         * lib/backupfile.c: Guard inclusion of stdlib.h with
132551         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
132552         Declare malloc if needed.
132554         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
132555         `#ifndef HAVE_DECL..'
132556         now that autoconf always defines the HAVE_DECL_ symbols.
132557         * lib/human.c: Likewise.
132558         * lib/same.c: Likewise.
132559         * lib/strtoumax.c: Likewise.
132561         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
132562         declaration check was not run.
132563         * lib/hash.c: Likewise.
132564         * lib/human.c: Likewise.
132565         * lib/same.c: Likewise.
132566         * lib/strtoumax.c: Likewise.
132568         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
132569         `.', then first look up the entire `.'-containing string as a login
132570         name.
132572 2000-02-23  Jim Meyering  <meyering@lucent.com>
132574         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
132575         in place of my hack.
132577 2000-02-18  Paul Eggert  <eggert@twinsun.com>
132579         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
132580         (textint): New typedef.
132581         (parser_control): Member year changed from int to textint.
132582         All uses changed.
132583         (YYSTYPE): Removed; replaced by %union with int and textint members.
132584         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
132585         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
132586         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
132587         (tSNUMBER, tUNUMBER): Now of type <textintval>.
132588         (date, number, to_year): Use width of number in digits, not its value,
132589         to determine whether it's a 2-digit year, or a 2-digit time.
132590         (yylex): Store number of digits of numeric tokens.
132591         Reported by John Kendall.
132593         (parser_control): Changed from struct parser_control to typedef (for
132594         consistency).  All uses changed.
132596         (tID): Removed; not used.
132597         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
132599 2000-02-14  Paul Eggert  <eggert@twinsun.com>
132601         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
132602         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
132604 2000-02-12  Jim Meyering  <meyering@lucent.com>
132606         * lib/userspec.c (ISDIGIT): Define it.
132607         (isdigit): Remove definition.
132608         (is_number): Use ISDIGIT, not isdigit.
132609         <libintl.h>: Include.
132610         (_ and N_): Define.
132611         (parse_user_spec): Mark translatable strings.
132613 2000-02-10  Jim Meyering  <meyering@lucent.com>
132615         With these changes, nanosleep.[ch] are finally enough like the other
132616         lib/* replacement files to compile on a few more losing systems.
132618         * lib/nanosleep.h: Don't include config.h.
132619         Remove prototype from declaration of nanosleep.
132620         (PARAMS): Remove now-unneeded definition.
132621         * lib/nanosleep.c: #undef nanosleep.
132622         (rpl_nanosleep): Rename from nanosleep.
132624 2000-02-10  Jim Meyering  <meyering@lucent.com>
132626         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
132627         gnu_nanosleep to rpl_nanosleep.
132629 2000-02-09  Jim Meyering  <meyering@lucent.com>
132631         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
132632         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
132634 2000-02-08  Akim Demaille  <akim@epita.fr>
132636         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
132637         `[' and `]' and remove uses of `changequote'.
132638         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
132639         (AC_SYS_LARGEFILE): Likewise.
132640         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
132641         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
132642         of changequote.
132643         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
132644         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
132645         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
132646         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
132648 2000-02-05  Jim Meyering  <meyering@lucent.com>
132650         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
132651         Remove explicit use of AC_HEADER_TIME.  It is required by
132652         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
132653         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
132654         in autoconf whereby the expansion of the latter ended up preceding
132655         the expansion of its prerequisite, AC_HEADER_TIME.
132656         Reported by Volker Borchert.
132658 2000-02-03  Jim Meyering  <meyering@lucent.com>
132660         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
132662 2000-02-03  Jim Meyering  <meyering@lucent.com>
132664         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
132665         rather than with `#if HAVE_UTMPNAME'.
132667 2000-02-02  Jim Meyering  <meyering@lucent.com>
132669         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
132670         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
132671         Reported by Eli Zaretskii.
132673 2000-02-01  Jim Meyering  <meyering@lucent.com>
132675         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
132677 2000-01-31  Jim Meyering  <meyering@lucent.com>
132679         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
132680         functions.  Add the time.h and sys/time.h headers along with the
132681         AC_REQUIRE'ment of AC_HEADER_TIME.
132683 2000-01-31  Jim Meyering  <meyering@lucent.com>
132685         * lib/nanosleep.h (nanosleep): Guard declaration with
132686         `#if ! HAVE_DECL_NANOSLEEP'.
132687         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
132688         the declaration in that vendor's sys/timers.h.
132689         Reported by Christian Krackowizer.
132691         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
132692         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
132693         (ISPRINT): Likewise.
132694         Reported by Tom Tromey.
132696 2000-01-30  Jim Meyering  <meyering@lucent.com>
132698         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
132700         * m4/prereq.m4 (utmp_includes): Define.
132701         Check for ut_user and ut_name members in both struct utmpx
132702         and struct utmp.
132704 2000-01-30  Jim Meyering  <meyering@lucent.com>
132706         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
132707         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
132708         header files where only utmpx.ut_user is declared.
132710         * lib/readutmp.h (UT_USER): Define.
132712 2000-01-29  Jim Meyering  <meyering@lucent.com>
132714         * m4/lib-check.m4: New file containing library-related checks from
132715         fileutils and sh-utils (textutils had none).
132717 2000-01-28  Jim Meyering  <meyering@lucent.com>
132719         * m4/perl.m4: Change format of warning message to look more like that
132720         from the missing script.  Suggestion from François Pinard.
132722 2000-01-25  Jim Meyering  <meyering@lucent.com>
132724         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
132725         well as time.h in the compile check.
132726         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
132727         Fix typo in cross-compiling case: s/yes/no/.
132729 2000-01-23  Jim Meyering  <meyering@lucent.com>
132731         * m4/jm-macros.m4: Move df-related tests here from
132732         fileutils/configure.in
132734         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
132735         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
132737         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
132738         s/space/ac_fsusage_space/.
132739         (jm_FILE_SYSTEM_USAGE): Take two parameters.
132741         * m4/ftruncate.m4: New file (derived from part of
132742         fileutils/configure.in).
132743         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
132744         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
132746         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
132747         AC_SUBST these here, rather than just in sh-util/configure.in, so
132748         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
132749         all the same.
132750         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
132751         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
132752         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
132753         (AC_SUBST(POW_LIBM)): Likewise.
132754         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
132756 2000-01-23  Jim Meyering  <meyering@lucent.com>
132758         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
132759         obstack.c.
132761 2000-01-22  Jim Meyering  <meyering@lucent.com>
132763         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
132765         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
132767         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
132768         configure.in
132769         (AC_CHECK_HEADERS): Likewise for sh-utils.
132770         (AC_CHECK_HEADERS): Likewise for textutils.
132771         Merge the three lists of headers.
132773         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
132774         from fileutils' configure.in.
132776         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
132777         code. Moved tests into their own function (_jm_DECL_HEADERS) in
132778         check-decl.m4.
132780         * m4/check-decl.m4: Use #if rather than #ifdef.
132781         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
132782         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
132783         (_jm_DECL_HEADERS): Define new function.
132784         (jm_CHECK_DECLARATIONS): Require it.
132786 2000-01-22  Jim Meyering  <meyering@lucent.com>
132788         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
132789         [! HAVE_DECL_STRTOULL]: Declare strtoull.
132790         Required for some AIX systems.  Reported by Christian Krackowizer.
132791         [TESTING] (main): New function.
132793         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
132794         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
132795         letters.
132797         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
132798         iswprint.
132800         * lib/strverscmp.c (ISDIGIT): Define.
132801         (strverscmp): Use ISDIGIT, not isdigit.
132803 2000-01-19  Jim Meyering  <meyering@lucent.com>
132805         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
132806         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
132807         defines `struct timespec' in <sys/time.h>
132809         * m4/c-bs-a.m4: Remove uses of changequote altogether.
132810         Thanks to Akim for explaining.
132812 2000-01-17  Paul Eggert  <eggert@twinsun.com>
132814         * lib/nanosleep.c (nanosleep):
132815         Don't use SA_INTERRUPT to decide whether to call sigaction, as
132816         POSIX.1 doesn't require SA_INTERRUPT and some systems
132817         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
132818         it's been part of POSIX.1 since day 1 (in 1988).
132820 2000-01-17  Jim Meyering  <meyering@lucent.com>
132822         * lib/interlock: Remove unused file.  Reported by François Pinard.
132824 2000-01-16  Paul Eggert  <eggert@twinsun.com>
132826         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
132827         alert, backslash, formfeed, and vertical tab unnecessarily in
132828         shell quoting style.
132830 2000-01-16  Jim Meyering  <meyering@lucent.com>
132832         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
132833         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
132834         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
132835         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
132837 2000-01-16  Jim Meyering  <meyering@lucent.com>
132839         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
132840         because the latter didn't work.
132842 2000-01-15  Jim Meyering  <meyering@lucent.com>
132844         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
132845         (AC_REPLACE_FUNCS): Add memcpy and memset.
132846         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
132847         Add strpbrk.
132848         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
132850 2000-01-12  Jim Meyering  <meyering@lucent.com>
132852         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
132853         (jm_PREREQ): Use it.
132854         (jm_PREREQ_READUTMP): New macro.
132855         (jm_PREREQ): Use it.
132857 2000-01-11  Paul Eggert  <eggert@twinsun.com>
132859         Quote multibyte characters correctly.
132860         * m4/c-bs-a.m4: New file.
132861         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
132862         (jm_PREREQ): Use it.
132864 2000-01-11  Paul Eggert  <eggert@twinsun.com>
132866         * m4/uintmax_t.m4: Port to autoconf 2.13.
132868 2000-01-08  Jim Meyering  <meyering@ascend.com>
132870         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
132871         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
132873 2000-01-04  Jim Meyering  <meyering@ascend.com>
132875         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
132876         jm_STRUCT_DIRENT_D_TYPE.
132877         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
132878         jm_STRUCT_DIRENT_D_INO.
132879         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
132880         jm_STRUCT_UTIMBUF.
132881         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
132882         renamings.
132883         * m4/utime.m4: Likewise.
132885         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
132886         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
132888 2000-01-03  Paul Eggert  <eggert@twinsun.com>
132890         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
132891         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
132893 2000-01-02  Jim Meyering  <meyering@ascend.com>
132895         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
132896         remember if this is necessary.
132898 1999-12-26  Jim Meyering  <meyering@ascend.com>
132900         * m4/jm-macros.m4: Use it here.
132901         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
132903 1999-12-23  Jim Meyering  <meyering@ascend.com>
132905         * m4/jm-macros.m4: Check for clock_gettime (moved from
132906         fileutils/configure.in)
132907         Check for gettimeofday.
132909 1999-12-20  Jim Meyering  <meyering@ascend.com>
132911         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
132912         autoconf-2.14a-1999-12-20.
132914 1999-12-19  Jim Meyering  <meyering@ascend.com>
132916         * m4/lstat-slash.m4: New file.
132917         * m4/jm-macros.m4: Use the new macro:
132918         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132920 1999-12-07  Jim Meyering  <meyering@ascend.com>
132922         * m4/perl.m4: Require that File::Compare be available, too.
132923         Too many systems seem to lack it.
132925         * m4/strftime.m4: Add checks for most of the cpp macros tested in
132926         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
132928 1999-11-18  Paul Eggert  <eggert@twinsun.com>
132930         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
132931         problem with the QNX 4.25 shell, which doesn't propagate exit
132932         status of failed commands inside shell assignments.
132934 1999-11-17  Jim Meyering  <meyering@ascend.com>
132936         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
132938 1999-11-07  Jim Meyering  <meyering@ascend.com>
132940         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
132942 1999-11-06  Jim Meyering  <meyering@ascend.com>
132944         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
132945         * m4/jm-macros.m4 (jm_MACROS): Use it here.
132947 1999-11-05  Jim Meyering  <meyering@ascend.com>
132949         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
132950         configure.in of textutils, fileutils, and sh-utils into this one
132951         (shared between those packages) file.
132952         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
132953         AC_STRUCT_ST_BLKSIZE.
132955 1999-11-03  Jim Meyering  <meyering@ascend.com>
132957         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
132958         of AC_CHECK_TYPE checks includes unistd.h.
132959         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
132960         Suggestion from Akim Demaille.
132962 1999-10-30  Jim Meyering  <meyering@ascend.com>
132964         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
132965         m4-quoted string.
132966         * m4/ls-mntd-fs.m4: Likewise.
132967         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
132968         * m4/jm-winsz1.m4: Likewise.
132970         * m4/const.m4: Remove file, since the fix made it into the experimental
132971         version of autoconf.
132972         * m4/mktime.m4: Likewise.
132974         * m4/check-type.m4: Remove file, now that the latest version of
132975         AC_CHECK_TYPE takes a third arg to specify additional #includes.
132977         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
132978         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
132979         AC_CHECK_TYPE.
132981 1999-10-04  Jim Meyering  <meyering@ascend.com>
132983         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
132985 1999-09-22  Paul Eggert  <eggert@twinsun.com>
132987         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
132988         2.95.1 bug with HP-UX 10.20.
132990 1999-09-17  Jim Meyering  <meyering@ascend.com>
132992         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
132993         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
132994         due to missing strdup (against sh-utils-2.0).
132996 1999-08-29  Jim Meyering  <meyering@ascend.com>
132998         * m4/jm-macros.m4: Require jm_BISON.
132999         * m4/bison.m4: New file.
133001 1999-08-17  Paul Eggert  <eggert@twinsun.com>
133003         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
133004         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
133006 1999-08-05  Jim Meyering  <meyering@ascend.com>
133008         * m4/getline.m4: Rename test file from conftestdata to conftest.data
133009         to avoid conflicts with `conftest' on 8+3 filesystems.
133010         Suggestion from Eli Zaretskii.
133012 1999-08-04  Jim Meyering  <meyering@ascend.com>
133014         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
133015         fileutils and sh-utils (textutils's getline test was inadequate).
133016         (AM_FUNC_GETLINE): Run this test.
133017         (AC_CHECK_FUNCS): Check for getdelim.
133018         Reported by Bob Proulx.
133020 1999-08-02  Jim Meyering  <meyering@ascend.com>
133022         * m4/jm-macros.m4: Add a comment.
133024 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133026         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
133027         <inttypes.h> defines strtoumax as a macro (and not as a
133028         function).
133030 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133032         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
133033         that we can shift, multiply and divide unsigned long long
133034         values; Ultrix cc can't do it.
133036 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133038         * m4/mktime.m4: New file, which is a preview of what should appear
133039         in the next public autoconf release.
133041 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133043         * m4/lfs.m4: Remove this file.
133044         * m4/largefile.m4: New file.  It contains the old contents of
133045         lfs.m4, except that all names with prefix AC_LFS have been
133046         changed to use the prefix AC_SYS_LARGEFILE instead, to be
133047         compatible with future autoconf versions.  Also, some minor m4
133048         quoting problems have been fixed.
133050 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133052         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
133053         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
133054         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
133055         and simplify the shell code.
133057 1999-08-01  Jim Meyering  <meyering@ascend.com>
133059         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
133060         m4.
133062 1999-07-20  Jim Meyering  <meyering@ascend.com>
133064         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
133066 1999-07-15  Jim Meyering  <meyering@ascend.com>
133068         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
133070 1999-05-22  Jim Meyering  <meyering@ascend.com>
133072         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
133074 1999-05-20  Jim Meyering  <meyering@ascend.com>
133076         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
133077         Add a colon after each `then' in case $4 is empty.
133079 1999-05-16  Jim Meyering  <meyering@ascend.com>
133081         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
133083 1999-05-10  Jim Meyering  <meyering@ascend.com>
133085         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
133087         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
133088         AC_FUNC_MKTIME.
133090 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
133092         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
133094 1999-05-04  Paul Eggert  <eggert@twinsun.com>
133096         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
133097         not CPPFLAGS, so that linking works correctly in IRIX.
133099 1999-04-30  Paul Eggert  <eggert@twinsun.com>
133101         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
133103 1999-04-20  Paul Eggert  <eggert@twinsun.com>
133105         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
133106         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
133107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
133108         jm_AC_TYPE_UNSIGNED_LONG_LONG.
133109         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
133111         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
133113 1999-04-20  Jim Meyering  <meyering@ascend.com>
133115         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
133116         AC_REPLACE xstroull if necessary.  From Paul Eggert.
133117         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
133119 1999-04-18  Jim Meyering  <meyering@ascend.com>
133121         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
133122         * m4/jm-macros.m4: Use it.
133124 1999-04-06  Jim Meyering  <meyering@ascend.com>
133126         * m4/strftime.m4: Remove test for %f.
133128 1999-03-29  Jim Meyering  <meyering@ascend.com>
133130         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
133131         superset of the AC_TYPE_* checks in the textutils, fileutils,
133132         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
133133         AC_TYPE_PID_T.
133135 1999-03-28  Jim Meyering  <meyering@ascend.com>
133137         * m4/jm-macros.m4: Define GNU_PACKAGE here.
133138         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
133139         replaced e.g., in the *.sh files of the sh-utils.
133141 1999-03-20  Jim Meyering  <meyering@ascend.com>
133143         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
133144         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
133145         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
133147 1999-03-19  Jim Meyering  <meyering@ascend.com>
133149         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
133151 1999-03-12  Jim Meyering  <meyering@ascend.com>
133153         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
133155 1999-03-07  Jim Meyering  <meyering@ascend.com>
133157         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
133158         declared.
133160 1999-02-17  Jim Meyering  <meyering@ascend.com>
133162         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
133163         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
133165 1999-02-07  Jim Meyering  <meyering@ascend.com>
133167         * m4/group-member.m4: New file -- extracted from sh-utils'
133168         configure.in.
133170         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
133171         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
133173 1999-02-06  Jim Meyering  <meyering@ascend.com>
133175         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
133176         * m4/fnmatch.m4: Likewise.
133177         * m4/getgroups.m4: Likewise.
133178         * m4/lstat.m4: Likewise.
133179         * m4/malloc.m4: Likewise.
133180         * m4/putenv.m4: Likewise.
133181         * m4/realloc.m4: Likewise.
133182         * m4/regex.m4: Likewise.
133183         * m4/stat.m4: Likewise.
133184         * m4/strftime.m4: Likewise.
133185         Suggestion from Alain Magloire.
133187         * m4/chown.m4: Use `.$ac_objext', not `.o'.
133188         * m4/fnmatch.m4: Likewise.
133189         * m4/getgroups.m4: Likewise.
133190         * m4/getline.m4: Likewise.
133191         * m4/lstat.m4: Likewise.
133192         * m4/malloc.m4: Likewise.
133193         * m4/memcmp.m4: Likewise.
133194         * m4/putenv.m4: Likewise.
133195         * m4/realloc.m4: Likewise.
133196         * m4/regex.m4: Likewise.
133197         * m4/stat.m4: Likewise.
133198         * m4/strftime.m4: Likewise.
133199         Suggestion from Alain Magloire.
133201         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
133202         an argument.
133204         * m4/regex.m4: Add a run-time Test for proper operation of
133205         re_compile_pattern.
133207 1999-01-31  Jim Meyering  <meyering@ascend.com>
133209         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
133211 1999-01-30  Jim Meyering  <meyering@ascend.com>
133213         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
133215         * m4/jm-mktime.m4: Make this a wrapper around the official
133216         AM_FUNC_MKTIME rather than my private copy, now that the official one
133217         is up to date.
133218         * m4/mktime.m4: Remove file.
133220         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
133221         * m4/uptime.m4: Likewise.
133222         * m4/uintmax_t.m4: Likewise.
133224 1999-01-28  Jim Meyering  <meyering@ascend.com>
133226         * m4/jm-macros.m4: Use jm_AFS.
133227         * m4/afs.m4: New file (from fileutils' configure.in).
133229         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
133230         * m4/chown.m4: Likewise.
133231         * m4/d-ino.m4: Likewise.
133232         * m4/d-type.m4: Likewise.
133233         * m4/fnmatch.m4: Likewise.
133234         * m4/getgroups.m4: Likewise.
133235         * m4/gettext.m4: Likewise.
133236         * m4/jm-mktime.m4: Likewise.
133237         * m4/jm-winsz2.m4: Likewise.
133238         * m4/lcmessage.m4: Likewise.
133239         * m4/ls-mntd-fs.m4: Likewise.
133240         * m4/malloc.m4: Likewise.
133241         * m4/memcmp.m4: Likewise.
133242         * m4/putenv.m4: Likewise.
133243         * m4/realloc.m4: Likewise.
133244         * m4/st_mtim.m4: Likewise.
133245         * m4/strftime.m4: Likewise.
133247 1999-01-16  Jim Meyering  <meyering@ascend.com>
133249         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
133250         (ARGMATCH_DIE_DECL): Define.
133252 1999-01-12  Jim Meyering  <meyering@ascend.com>
133254         * m4/Makefile.am.in: Rewrite to avoid using fmt.
133255         Reported by Lars Hecking.
133257 1999-01-10  Jim Meyering  <meyering@ascend.com>
133259         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
133260         gross kludge.
133261         * m4/inttypes_h.m4: Likewise.
133262         * m4/lstat.m4: Likewise.
133263         * m4/malloc.m4: Likewise.
133264         * m4/readdir.m4: Likewise.
133265         * m4/realloc.m4: Likewise.
133266         * m4/st_dm_mode.m4: Likewise.
133267         * m4/stat.m4: Likewise.
133268         * m4/utimbuf.m4: Likewise.
133269         * m4/utimes.m4: Likewise.
133271         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
133272         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
133273         comments in config.h.in are meaningful.
133275         * m4/jm-macros.m4: Require autoconf-2.13 here.
133277         * m4/regex.m4: By default, don't use the included regex.c on systems
133278         with glibc 2.  Suggestion from Uli Drepper.
133280 1999-01-02  Jim Meyering  <meyering@ascend.com>
133282         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
133284 1998-12-18  Jim Meyering  <meyering@ascend.com>
133286         * m4/Makefile.am.in (Makefile.am): Simplify rule.
133287         Based on a suggestion from Lars Hecking.
133289 1998-11-16  Paul Eggert  <eggert@twinsun.com>
133291         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
133293 1998-11-16  Jim Meyering  <meyering@ascend.com>
133295         * m4/lfs.m4: Double-quote the `uname...` expression.
133297 1998-11-14  Jim Meyering  <meyering@ascend.com>
133299         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
133300         * m4/stat.m4: Likewise.
133302 1998-11-03  Jim Meyering  <meyering@ascend.com>
133304         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
133305         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
133307 1998-10-18  Jim Meyering  <meyering@ascend.com>
133309         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
133311 1998-10-17  Jim Meyering  <meyering@ascend.com>
133313         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
133314         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
133315         calls for those previously hard-coded headers.  Instead, take a new
133316         parameter.
133317         (jm_CHECK_DECLARATIONS): Reflect interface change.
133318         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
133319         (jm_CHECK_DECL_LOCALTIME_R): New macro.
133321         * m4/mktime.m4: Test for spring-forward gap before long-running test.
133323 1998-10-14  Jim Meyering  <meyering@ascend.com>
133325         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
133326         instead of "TZ=America/Vancouver".  From Paul Eggert.
133328 1998-10-11  Jim Meyering  <meyering@ascend.com>
133330         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
133331         This adds a test for a recently added compatibility fix for mktime.c.
133332         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
133334 1998-09-27  Jim Meyering  <meyering@ascend.com>
133336         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
133338         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
133339         ../configure.in, including a change from Gordon Matzigkeit to allow
133340         cross-compiling for the Hurd.
133342         * m4/glibc.m4: New file/macro to test for the GNU C Library
133343         versions 1 and 2.  From Gordon Matzigkeit.
133344         Indent.
133346 1998-09-21  Jim Meyering  <meyering@ascend.com>
133348         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
133350 1998-08-18  Paul Eggert  <eggert@twinsun.com>
133352         Port nanosecond-resolution times to UnixWare 2.1.2 and
133353         pedantic Solaris 2.6.
133355         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
133356         AC_STRUCT_ST_MTIM.
133357         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
133358         Generate name of ns member, instead of just 1 or undef.
133359         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
133361 1998-08-15  Jim Meyering  <meyering@ascend.com>
133363         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
133364         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
133365         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
133366         instead of jm_TYPE_SSIZE_T.
133368 1998-08-12  Jim Meyering  <meyering@ascend.com>
133370         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
133372 1998-08-02  Jim Meyering  <meyering@ascend.com>
133374         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
133375         in acconfig.h manually.
133377 1998-07-31  Paul Eggert  <eggert@twinsun.com>
133379         * m4/st_mtim.m4: New file.
133381 1998-07-28  Jim Meyering  <meyering@ascend.com>
133383         * m4/utimes.m4: Undef stat.
133385 1998-07-25  Jim Meyering  <meyering@ascend.com>
133387         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
133388         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
133390 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
133392         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
133393         uid and gid actually remain unchanged.
133395 1998-07-07  Jim Meyering  <meyering@ascend.com>
133397         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
133399 1998-07-04  Jim Meyering  <meyering@ascend.com>
133401         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
133402         to prove that this macro can be used in packages without regex.c.
133404 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
133406         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
133407         is to be used.
133409 1998-07-03  Jim Meyering  <meyering@ascend.com>
133411         * m4/gettext.m4: Add -lintl if it's found to be necessary.
133413         * m4/gettext.m4: New file -- from gettext-0.10.35.
133414         * m4/lcmessage.m4: Likewise.
133415         * m4/progtest.m4: Likewise.
133417         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
133418         * m4/jm-macros.m4: Require the new macro.
133420 1998-06-29  Jim Meyering  <meyering@ascend.com>
133422         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
133423         for the definition of NGROUPS (used in a system header included
133424         by sys/mount.h).
133426 1998-06-28  Jim Meyering  <meyering@ascend.com>
133428         * m4/ls-mntd-fs.m4: New file.
133429         * m4/fstypename.m4: New file.
133431         * m4/jm-macros.m4: Require the new macro.
133432         * m4/jm-glibc-io.m4: New file.
133434 1998-05-19  Jim Meyering  <meyering@ascend.com>
133436         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
133437         * m4/lchown.m4: New file.
133439         * m4/Makefile.am.in: New file.
133440         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
133442 1998-05-14  Jim Meyering  <meyering@ascend.com>
133444         * m4/Makefile.am (EXTRA_DIST): Add them.
133445         * m4/jm-macros.m4: New file.
133446         * m4/utimbuf.m4: New file.
133448 1998-05-12  Jim Meyering  <meyering@ascend.com>
133450         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
133452 1998-05-11  Jim Meyering  <meyering@ascend.com>
133454         * m4/isc-posix.m4: New file.
133456 1998-05-10  Jim Meyering  <meyering@ascend.com>
133458         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
133460 1998-05-09  Jim Meyering  <meyering@ascend.com>
133462         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
133463         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
133464         with automake.
133466         * m4/ssize_t.m4: New file.
133467         * m4/mktime.m4: Remove file -- the new automake has this now.
133469 1998-04-26  Jim Meyering  <meyering@ascend.com>
133471         * m4/assert.m4: New file.
133472         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
133474 1998-04-05  Jim Meyering  <meyering@ascend.com>
133476         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
133477         (jm_PREREQ): Use it here.
133479 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
133481         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
133482         in acconfig.h.
133484 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
133486         * m4/prereq.m4: New file.
133487         * m4/error.m4: New file.
133488         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
133490 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
133492         * m4/getline.m4: Don't set am_cv_func_working_getline before the
133493         cache-check for the same variable -- that defeated the purpose of
133494         the test; the test program was never run.  This was a problem only
133495         on systems with losing getline functions -- HP-UX 10.20 is one.
133496         Reported by Bjorn Helgaas.
133498 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
133500         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
133502 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
133504         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
133506         * m4/const.m4: New file.  Use an initializer in this declaration
133507         typedef int charset[2]; const charset x;
133508         Reported by Bob Glickstein.
133510 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
133512         * m4/chown.m4: Fix reversed types on -1 args to chown.
133513         From Kaveh Ghazi.
133515 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
133517         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
133518         Add lseek and memchr.
133520         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
133521         T.E.Dickey <dickey@clark.net> said that some older preprocessors
133522         have a 20-character limit on names.
133524 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
133526         * m4/inttypes_h.m4: New file.
133527         * m4/uintmax_t.m4: New file.
133528         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
133531         -----
133533         Local Variables:
133534         coding: utf-8
133535         End:
133537         Copyright (C) 1997-2020 Free Software Foundation, Inc.
133539         Copying and distribution of this file, with or without
133540         modification, are permitted provided the copyright notice
133541         and this notice are preserved.